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

/SAPSLL/CD_UPLOAD_F01 SAP ABAP INCLUDE - /SAPSLL/CDUPLOADF01







/SAPSLL/CD_UPLOAD_F01 is a standard ABAP INCLUDE 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/CD_UPLOAD_F01 into the relevant SAP transactions such as SE38 or SE80


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/CD_UPLOAD_F01. "Basic submit
SUBMIT /SAPSLL/CD_UPLOAD_F01 AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPSLL/CD_UPLOAD_F01 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT /SAPSLL/CD_UPLOAD_F01

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:

/SAPSLL/AUTH_CHECK_LRG_SGL CALL FUNCTION '/SAPSLL/AUTH_CHECK_LRG_SGL' EXPORTING iv_autho = 'GTS_LDT' iv_lgreg = iv_lgreg it_ac_actvt = lt_actvt[] iv_langu = sy-langu IMPORTING ev_auth_check_ok = cv_check_ok EXCEPTIONS no_activity_provided = 1 no_authority = 2 wrong_authority_object = 3 OTHERS = 4.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = lv_filename filetype = 'BIN' has_field_separator = ' ' header_length = 0 IMPORTING filelength = cv_filesize TABLES data_tab = lt_xml_tab[] EXCEPTIONS OTHERS = 1.

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.

SCMS_BINARY_TO_XSTRING CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' EXPORTING input_length = cv_filesize IMPORTING buffer = cv_xmldata TABLES binary_tab = lt_xml_tab EXCEPTIONS failed = 1 OTHERS = 2.

SMUM_XML_PARSE CALL FUNCTION 'SMUM_XML_PARSE' EXPORTING xml_input = cv_xmldata TABLES xml_table = lt_result_xml[] return = ct_return[].

/SAPSLL/LLNS_GUID_GET CALL FUNCTION '/SAPSLL/LLNS_GUID_GET' EXPORTING iv_stcts = iv_stcts_cond iv_ccngn = lv_ccngn iv_rptdt = lv_timestamp is_debug = gs_debug IMPORTING ev_guid_cts = cs_cd02-guid_ctscd * EV_GUID_CTSNUM = * EV_GUID_CTSNUMC = * EV_GUID_CTSGEN = EXCEPTIONS invalid_call = 1 invalid_schema = 2 invalid_number = 3 internal_error = 4 OTHERS = 5.

/SAPSLL/LLNS_GUID_GET CALL FUNCTION '/SAPSLL/LLNS_GUID_GET' EXPORTING iv_stcts = iv_stcts_cond iv_ccngn = lv_ccngn iv_rptdt = lv_timestamp is_debug = gs_debug IMPORTING ev_guid_cts = cs_cd04-guid_ctscd EXCEPTIONS invalid_call = 1 invalid_schema = 2 invalid_number = 3 internal_error = 4 OTHERS = 5.

/SAPSLL/CTSNUM_DB_SGL_READ CALL FUNCTION '/SAPSLL/CTSNUM_DB_SGL_READ' EXPORTING iv_mandt = syst-mandt is_sk = ls_ctsnum-sk iv_timestamp = lv_rptet is_debug = gs_debug IMPORTING es_result = ls_ctsnum EXCEPTIONS no_data = 1 invalid_call = 2 OTHERS = 3.

/SAPSLL/TLEGSU_DB_SGL_READ CALL FUNCTION '/SAPSLL/TLEGSU_DB_SGL_READ' EXPORTING is_pk = ls_tlegsu-pk iv_date = sy-datlo is_debug = gs_debug IMPORTING es_result = ls_tlegsu EXCEPTIONS no_data = 1 invalid_call = 2 OTHERS = 3.

/SAPSLL/APPLOG_INIT CALL FUNCTION '/SAPSLL/APPLOG_INIT' EXPORTING iv_object = gc_applog_obj-license iv_subobject = gc_applog_subobj-license_determination_upload * IV_EXTNUMBER = iv_delete_mess = gc_true * IV_DEFAULT_SET = 'X' * IV_SKIP_SEARCH = ' ' * IV_READ_ARCHIVE = ' ' * IV_NO_CREATION = ' ' * IS_DEBUG = GS_DEBUG * IV_ALDATE_DEL = * iv_del_before = gc_true * IS_TCOPAP = CHANGING cv_handle = cv_loghndl EXCEPTIONS invalid_call = 1 log_header_inconsistent = 2 internal_error = 3 OTHERS = 4.

/SAPSLL/APPLOG_APPEND CALL FUNCTION '/SAPSLL/APPLOG_APPEND' EXPORTING iv_lghdl = iv_loghndl iv_msgid = is_syst-msgid iv_msgty = is_syst-msgty iv_msgno = is_syst-msgno iv_msgv1 = is_syst-msgv1 iv_msgv2 = is_syst-msgv2 iv_msgv3 = is_syst-msgv3 iv_msgv4 = is_syst-msgv4 * IV_PROBCLASS = ' ' iv_detlevel = iv_detlevel * IS_MSG_PAR = * IV_CUMULATE = ' ' is_debug = gs_debug * IV_PARAMETER = * IV_ROW = * IV_FIELD = * IV_SYSTEM = * CHANGING * CT_BAPIRET2 = EXCEPTIONS internal_error = 1 log_is_full = 2 OTHERS = 3.

/SAPSLL/T005_SELECT_SGL CALL FUNCTION '/SAPSLL/T005_SELECT_SGL' EXPORTING is_pk = iv_lndab EXCEPTIONS no_data = 1 OTHERS = 2.

/SAPSLL/CTYGP_DB_SGL_READ CALL FUNCTION '/SAPSLL/CTYGP_DB_SGL_READ' EXPORTING is_pk = ls_ctygp-pk is_debug = gs_debug IMPORTING es_result = ls_ctygp EXCEPTIONS no_data = 1 invalid_call = 2 OTHERS = 3.

/SAPSLL/T606_DB_SGL_READ CALL FUNCTION '/SAPSLL/T606_DB_SGL_READ' EXPORTING is_pk = ls_t606-pk is_debug = gs_debug EXCEPTIONS no_data = 1 invalid_call = 2 OTHERS = 3.

/SAPSLL/GET_COND_SCHEMA CALL FUNCTION '/SAPSLL/GET_COND_SCHEMA' EXPORTING iv_stcts = iv_stcts IMPORTING ev_stcts_cond = cv_stcts_cond EXCEPTIONS no_data_found = 1 OTHERS = 2.

/SAPSLL/APPLOG_DISPLAY CALL FUNCTION '/SAPSLL/APPLOG_DISPLAY' EXPORTING iv_object = gc_applog_obj-license iv_subobject = gc_applog_subobj-license_determination_upload * IV_EXTNUMBER = iv_handle = iv_loghndl * IV_FUNCNAME = * IS_LOG_FILTER = * IS_MSG_FILTER = * IS_DISPLAY_PROFILE = * IV_USE_GRID = * IV_HEAD_TEXT = * IV_READ_ARCHIVE = ' ' * IT_MSG_CONTEXT_FILTER = * IS_DEBUG = EXCEPTIONS no_log_found = 1 OTHERS = 2.

/SAPSLL/CD_UPLOAD_SET_LOGHNDL CALL FUNCTION '/SAPSLL/CD_UPLOAD_SET_LOGHNDL' EXPORTING iv_loghndl = iv_loghndl.

/SAPSLL/ALV_GRID_FULLSCREEN CALL FUNCTION '/SAPSLL/ALV_GRID_FULLSCREEN' EXPORTING * IT_FINFO = * IT_TOOLBAR_EXCLUDING = it_add_functions = lt_button[] * IT_F4_FIELDS = * IS_VARIANT = is_layout = ls_layout iv_save = gc_true iv_repid = '/SAPSLL/CD_UPLOAD' iv_structure = '/SAPSLL/ECDR_UPL_UI_S' * IV_GRID_ID = * IV_DBL_CLK_CALLBACK = * iv_before_ucomm_callback = '/SAPSLL/CUHD_INCOMP_UCOMM' iv_ucomm_callback = '/SAPSLL/CD_UPLOAD_CB' * IV_ENTER_CALLBACK = * IV_CHECK_CALLBACK = * iv_button_callback = 'USER_COMMAND' * IV_MENU_BUTTON_CALLBACK = * IV_APPL_EVENT = * IV_FLAG_STYLE = iv_titlebar = text-t01 * IT_SORT = * IT_FILTER = * IV_FLAG_INPUT = 'X' * IV_FLAG_REDUCE_BUTTONS = * IV_FLAG_CWIDTH_OPT = * IV_FLAG_ZEBRA = * IV_GUID_DISPLAY = ' ' * IV_PF_STATUS = * IT_EXCL_FCODE = * iv_pf_callback = 'USER_COMMAND' is_debug = gs_debug CHANGING * CT_FIELDCAT = ct_data = lt_alv_data[].

/SAPSLL/CTSNUM_DB_SGL_READ





CALL FUNCTION '/SAPSLL/CTSNUM_DB_SGL_READ' EXPORTING is_pk = ls_ctsnum-pk is_debug = gs_debug IMPORTING es_result = ls_ctsnum EXCEPTIONS no_data = 1 invalid_call = 2 OTHERS = 3.

/SAPSLL/CD02_DB_DEL CALL FUNCTION '/SAPSLL/CD02_DB_DEL' IN UPDATE TASK EXPORTING it_del = lt_cd02_old[] is_debug = gs_debug.

/SAPSLL/CD04_DB_DEL CALL FUNCTION '/SAPSLL/CD04_DB_DEL' IN UPDATE TASK EXPORTING it_del = lt_cd04_old[] is_debug = gs_debug.

/SAPSLL/CD02_DB_INS CALL FUNCTION '/SAPSLL/CD02_DB_INS' IN UPDATE TASK EXPORTING it_ins = it_cd02[] is_debug = gs_debug.

/SAPSLL/CD04_DB_INS CALL FUNCTION '/SAPSLL/CD04_DB_INS' IN UPDATE TASK EXPORTING it_ins = it_cd04[] is_debug = gs_debug.

/SAPSLL/LGREG_REGTY_CHECK CALL FUNCTION '/SAPSLL/LGREG_REGTY_CHECK' EXPORTING iv_lgreg = iv_lgreg iv_srvll = iv_srvll EXCEPTIONS wrong_regulation_type = 1 OTHERS = 2.

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 = 'A' i_server = ' ' i_path = lv_path filemask = '*.*'

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/CD_UPLOAD_F01 or its description.