SAP Reports / Programs | Global Trade Services | Global Trade Services(SLL-LEG) SAP SLL

/SAPSLL/TLC_CUSB_UPL SAP ABAP Report - Upload Customs Duty Rates from XML File







/SAPSLL/TLC_CUSB_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/TLC_CUSB_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/TLC_CUSB_UPL - Upload Customs Duty Rates 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/TLC_CUSB_UPL. "Basic submit
SUBMIT /SAPSLL/TLC_CUSB_UPL AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPSLL/TLC_CUSB_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_DIALG = D .
Selection Text: P_UPLID = D .
Selection Text: P_SIMUL = D .
Selection Text: P_MSELF = D .
Selection Text: P_LGREG = D .
Selection Text: P_PATHS = Full File Name
Selection Text: P_PATHF = Full File Name
Selection Text: P_MTDATA = Customs Duty Rates
Selection Text: P_MCDATA = CD Rates and Country Groups
Selection Text: P_BPDPV = Data Provider
Title: Upload Customs Duty Rates from XML File
Text Symbol: BL3 = General Control Parameters
Text Symbol: BL2 = XML File
Text Symbol: BL1 = Duty-Rate-Specific Parameters
Text Symbol: B23 = Application Server
Text Symbol: B22 = Multiple Files Chosen
Text Symbol: B21 = Local Data Medium
Text Symbol: B14 = Data Scope
Text Symbol: A03 = Perform Upload Anyway?
Text Symbol: A00 = Confirm Upload
Text Symbol: 009 = Do you want to save the data?
Text Symbol: 007 = Save Data
Text Symbol: 006 = Upload Duty Rates into GTS System
Text Symbol: 005 = Choose XML File
Text Symbol: 004 = Failure
Text Symbol: 003 = Warning
Text Symbol: 002 = Successful


INCLUDES used within this REPORT /SAPSLL/TLC_CUSB_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.

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 = .

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

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

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

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

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

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

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

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting * PERCENTAGE = 0 text = lv_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 = '*.*'

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.

ENQUEUE_/SAPSLL/E_CUSB1 call function 'ENQUEUE_/SAPSLL/E_CUSB1' exporting * MODE_/SAPSLL/LC_CUSB1_ENQU_S = gc_msgty-error * tlc_aart = lgreg = iv_lgreg * ctygr_oo = * cucoo = * X_TLC_AART = ' ' * X_LGREG = ' ' * X_CTYGR_OO = ' ' * X_CUCOO = ' ' _scope = '3' * _WAIT = ' ' * _COLLECT = ' ' exceptions foreign_lock = 1 system_failure = 2 others = 3.

/SAPSLL/LC_CUSB_UPLOAD_SCAN call function '/SAPSLL/LC_CUSB_UPLOAD_SCAN' exporting im_data_provider = is_upload_param-bpdpv im_legal_regulation = ip_lgreg im_number_scheme = ls_tcots im_simul = is_upload_param-simul im_xml_data = iv_xml_stream importing ex_version_data = es_version_data * EX_INITIAL_UPLOAD = ex_country_group = et_country_group ex_duty_rate = et_lc_cusbx ex_return = lt_return.

/SAPSLL/CORE_KPRO_FILE_NAM_GET call function '/SAPSLL/CORE_KPRO_FILE_NAM_GET' exporting iv_path = is_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/LC_CUSB_UPLOAD_CTYG call function '/SAPSLL/LC_CUSB_UPLOAD_CTYG' exporting im_country_group = it_country_group importing ex_return = lt_return.

/SAPSLL/LC_CUSB_UPLOAD_CTSX call function '/SAPSLL/LC_CUSB_UPLOAD_CTSX' importing ex_return = lt_return changing ch_duty_rate = ct_lc_cusbx.

/SAPSLL/LC_CUSB_UPLOAD_CUSB call function '/SAPSLL/LC_CUSB_UPLOAD_CUSB' importing ex_return = lt_return changing ch_duty_rate = ct_lc_cusbx.

/SAPSLL/LC_CUSB_UPLOAD_POST call function '/SAPSLL/LC_CUSB_UPLOAD_POST' exporting is_ctrl_param = is_upload_param importing ex_entries_to_post = lv_count ex_return = lt_return.

/SAPSLL/STORE_UPLOAD_OBJECTS call function '/SAPSLL/STORE_UPLOAD_OBJECTS' exporting is_objdata = is_admin_data is_debug = ls_debug iv_commit = gc_true 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/TLC_CUSB_UPL or its description.