Скрипт для создания профиля в OEBS:
DECLARE vr_Profile_name VARCHAR2(100) := 'PROFILE_CODE!!'; BEGIN fnd_profile_options_pkg.load_row ( x_profile_name => vr_Profile_name , x_owner => 'INITIAL SETUP' , x_application_short_name => 'APPL_CODE!!' , x_user_profile_option_name => 'PROFILE_NAME!!' , x_description => 'PROFILE_NAME!!' , x_user_changeable_flag => 'Y' , x_user_visible_flag => 'Y' , x_read_allowed_flag => 'Y' , x_write_allowed_flag => 'Y' , x_site_enabled_flag => 'Y' , x_site_update_allowed_flag => 'Y' , x_app_enabled_flag => 'Y' , x_app_update_allowed_flag => 'Y' , x_resp_enabled_flag => 'Y' , x_resp_update_allowed_flag => 'Y' , x_user_enabled_flag => 'Y' , x_user_update_allowed_flag => 'Y' , x_start_date_active => to_char(sysdate,'yyyy/mm/dd') , x_end_date_active => NULL , x_sql_validation => 'SQL="SELECT LOOKUP_CODE, MEANING \"Включить проверку\" INTO :PROFILE_OPTION_VALUE, :VISIBLE_OPTION_VALUE FROM FND_LOOKUPS WHERE LOOKUP_TYPE = ''YES_NO''" COLUMN="\"Включить проверку\"(20)"' ); -- IF NOT fnd_profile.save ( x_name => vr_Profile_name , x_value => 'Y' , x_level_name => 'SITE' ) THEN DBMS_OUTPUT.Put_Line('Error in setting value'); END IF; COMMIT; END;
Похожие записи:
Categories: Oracle e-Business Suite, SQL FND_LOOKUPS, fnd_profile_options_pkg, OEBS, PROFILE, профиль, скрипт
Последние комментарии