SAP Reports / Programs

/SAPSLL/PREF_RULES_UPL SAP ABAP Report - Load Preference Rules from XML File







/SAPSLL/PREF_RULES_UPL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter /SAPSLL/PREF_RULES_UPL into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

/SAPSLL/PREF_RLS_UPL - Upload Preference Rules from XMLs


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT /SAPSLL/PREF_RULES_UPL. "Basic submit
SUBMIT /SAPSLL/PREF_RULES_UPL AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPSLL/PREF_RULES_UPL VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_UPLID = D .
Selection Text: P_STCTS = D .
Selection Text: P_SIMUL = D .
Selection Text: P_MSELF = D .
Selection Text: P_DIALG = D .
Selection Text: P_PATHS = Full File Name
Selection Text: P_PATHF = Full File Name
Selection Text: P_BPDPV = Data Provider
Title: Load Preference Rules from XML File
Text Symbol: BL3 = General Control Parameters
Text Symbol: BL2 = XML File
Text Symbol: BL1 = Preference-Rule-Specific Parameters
Text Symbol: B23 = Application Server
Text Symbol: B22 = Multiple Files Chosen
Text Symbol: B21 = Local Data Medium
Text Symbol: A03 = Do you still want to run the upload?
Text Symbol: A00 = Confirm Upload
Text Symbol: 009 = Do you want to save the data?
Text Symbol: 007 = Save Data
Text Symbol: 006 = Upload Preference Rules into SAP GTS
Text Symbol: 005 = Choose XML File
Text Symbol: 004 = Error
Text Symbol: 003 = Warning
Text Symbol: 002 = Successful


INCLUDES used within this REPORT /SAPSLL/PREF_RULES_UPL

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

DYNP_VALUES_READ call function 'DYNP_VALUES_READ' exporting dyname = sy-cprog dynumb = syst-dynnr tables dynpfields = gt_dynpfields[] exceptions invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 double_conversion = 9 stepl_not_found = 10 others = 11.

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting * PERCENTAGE = 0 text = gv_text.

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting * PERCENTAGE = 0 text = gv_text.

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting * PERCENTAGE = 0 text = gv_text.

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting * PERCENTAGE = 0 text = gv_text.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' "#EC * exporting * DEFAULTOPTION = 'Y' titel = text-007 textline1 = gv_text textline2 = text-009 * START_COLUMN = 25 * START_ROW = 6 * CANCEL_DISPLAY = 'X' importing answer = gv_answ .

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting * PERCENTAGE = 0 text = gv_text.

/SAPSLL/BROWSE_LOCAL_FILE_SYST call function '/SAPSLL/BROWSE_LOCAL_FILE_SYST' exporting iv_window_title = text-005 iv_default_filename = '*.XML'

DYNP_VALUES_UPDATE call function 'DYNP_VALUES_UPDATE' exporting dyname = '/SAPSLL/TLC_CUSB_UPL' dynumb = '1000' tables dynpfields = lt_dynpfield exceptions invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 undefind_error = 7 others = 8.

FILE_VALIDATE_NAME call function 'FILE_VALIDATE_NAME' exporting logical_filename = gc_log_fname-sll_upl parameter_1 = lv_cprog changing physical_filename = lv_path exceptions others = 1.

FILE_GET_NAME call function 'FILE_GET_NAME' exporting logical_filename = gc_log_fname-sll_upl including_dir = gc_true importing file_name = lv_path.

FILE_GET_NAME call function 'FILE_GET_NAME' exporting logical_filename = gc_log_fname-sll_upl including_dir = gc_true importing file_name = lv_path.

F4_DXFILENAME_TOPRECURSION call function 'F4_DXFILENAME_TOPRECURSION' exporting i_location_flag = gc_msgty-abort i_server = ' ' i_path = lv_path filemask = '*.*'

ENQUEUE_/SAPSLL/EPFONA call function 'ENQUEUE_/SAPSLL/EPFONA' exporting * MODE_/SAPSLL/TPFONA = gc_msgty-error * MANDT = SY-MANDT pfona = iv_pfona * X_PFONA = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' exceptions foreign_lock = 1 system_failure = 2 others = 3.

AUTHORITY_CHECK_DATASET call function 'AUTHORITY_CHECK_DATASET' exporting * PROGRAM = activity = 'READ' filename = lv_file_ext exceptions no_authority = 1 activity_unknown = 2 others = 3.

GUI_UPLOAD call function 'GUI_UPLOAD' exporting filename = lv_filename filetype = iv_filetype importing filelength = ev_filesize tables data_tab = lt_data exceptions file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 others = 6.

FILE_VALIDATE_NAME call function 'FILE_VALIDATE_NAME' exporting logical_filename = gc_log_fname-sll_upl parameter_1 = lv_cprog changing physical_filename = lv_filename exceptions others = 1.

/SAPSLL/PREF_RULES_SCAN call function '/SAPSLL/PREF_RULES_SCAN' exporting im_xml_data = iv_xml_stream importing ex_pref_rules = ls_pref_rules ex_return = lt_return.

/SAPSLL/CORE_KPRO_FILE_NAM_GET





call function '/SAPSLL/CORE_KPRO_FILE_NAM_GET' exporting iv_path = iv_admin_data-kpro-path importing ev_file_name = lv_filename.

/SAPSLL/CONVERT_STAMP_TO_DATE call function '/SAPSLL/CONVERT_STAMP_TO_DATE' exporting iv_timestamp = ls_admin_data-uldat * iv_timezone = * iv_end_date = importing ev_date = lv_date * EV_TIME = exceptions no_time_stamp = 1 no_time_zone = 2 time_zone_notfound = 3 format_error = 4 others = 5.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' "#EC * exporting defaultoption = 'N' titel = 'Upload bestätigen'(a00) textline1 = lv_text textline2 = text-a03 * START_COLUMN = 25 * START_ROW = 6 cancel_display = ' ' * IMPORTING * answer = .

/SAPSLL/CONVERT_STAMP_TO_DATE call function '/SAPSLL/CONVERT_STAMP_TO_DATE' exporting iv_timestamp = ls_admin_data-uldat * iv_timezone = * iv_end_date = importing ev_date = lv_date * EV_TIME = exceptions no_time_stamp = 1 no_time_zone = 2 time_zone_notfound = 3 format_error = 4 others = 5.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' "#EC * exporting defaultoption = 'Y' titel = 'Upload bestätigen'(a00) textline1 = lv_text textline2 = text-a03 * START_COLUMN = 25 * START_ROW = 6 cancel_display = ' ' * IMPORTING * answer = .

/SAPSLL/PREF_RULES_CHCK call function '/SAPSLL/PREF_RULES_CHCK' exporting im_scheme = p_stcts importing ex_return = lt_return.

/SAPSLL/PREF_RULES_POST call function '/SAPSLL/PREF_RULES_POST' exporting im_simu = iv_simu iv_cchng = is_admin_data-cchng importing ex_return = lt_return.

/SAPSLL/STORE_UPLOAD_OBJECTS call function '/SAPSLL/STORE_UPLOAD_OBJECTS' exporting is_objdata = is_admin_data-kpro is_debug = gs_debug iv_commit = gc_false iv_save_applog = gc_true iv_save_file = gc_true exceptions internal_error = 1 db_write_error = 2 empty_log = 3 others = 4.

TR_OBJECTS_CHECK call function 'TR_OBJECTS_CHECK' exporting * IV_NO_STANDARD_EDITOR = ' ' iv_no_show_option = 'X' * IV_EXTERNALPS = ' ' * IV_EXTERNALID = ' ' * IV_NO_PS = ' ' * IMPORTING * we_order = * we_task = * WE_OBJECTS_APPENDABLE = tables wt_ko200 = lt_ko200 * wt_e071k = * TT_TADIR = exceptions cancel_edit_other_error = 1 show_only_other_error = 2 others = 3 .

FILE_VALIDATE_NAME call function 'FILE_VALIDATE_NAME' exporting logical_filename = gc_log_fname-sll_upl parameter_1 = lv_cprog changing physical_filename = lv_path exceptions others = 1.

FILE_GET_NAME call function 'FILE_GET_NAME' exporting logical_filename = gc_log_fname-sll_upl including_dir = gc_true importing file_name = lv_path.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name /SAPSLL/PREF_RULES_UPL or its description.