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

/SAPSLL/CUHD_UPGR_SUMA_PREPARE SAP ABAP Report - Create Presentation Documents for Open Customs Shipment Items







/SAPSLL/CUHD_UPGR_SUMA_PREPARE 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/CUHD_UPGR_SUMA_PREPARE 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/CUHD_UPGR_SUMA_PREPARE. "Basic submit
SUBMIT /SAPSLL/CUHD_UPGR_SUMA_PREPARE AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPSLL/CUHD_UPGR_SUMA_PREPARE 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: S_COYEAR = D .
Selection Text: S_CORDER = D .
Selection Text: P_SIMUL = Simulation Run
Title: Create Presentation Documents for Open Customs Shipment Items
Text Symbol: 072 = Error updating the customs shipment
Text Symbol: 071 = Error while creating the presentation document:
Text Symbol: 070 = Presentation document created: &1 &2
Text Symbol: 064 = Error processing table LEGTPR
Text Symbol: 063 = Error processing table LEGPGE, item &1
Text Symbol: 062 = Error processing table LEGCUS, item &1
Text Symbol: 061 = Error processing table CUIT, item &1
Text Symbol: 060 = Error processing table CUIT
Text Symbol: 051 = Item &1 will not be processed
Text Symbol: 050 = Item &1 has open safekeeping quantities (&2 of &3)
Text Symbol: 044 = There are no registration numbers for presentation
Text Symbol: 043 = Communication language cannot be determined
Text Symbol: 042 = Activity sequence cannot be determined
Text Symbol: 041 = Legal unit cannot be determined
Text Symbol: 040 = Legal regulation cannot be determined
Text Symbol: 033 = There are no open safekeeping quantities
Text Symbol: 032 = The customs shipment does not have any items
Text Symbol: 031 = Error reading the customs shipment
Text Symbol: 030 = Customs shipment is blocked
Text Symbol: 021 = Processing registration number &1
Text Symbol: 020 = Document Number/Year: &1 &2
Text Symbol: 010 = No relevant customs shipments found


INCLUDES used within this REPORT /SAPSLL/CUHD_UPGR_SUMA_PREPARE

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/TEXT_GET_HEADER CALL FUNCTION '/SAPSLL/TEXT_GET_HEADER' EXPORTING iv_txtobj = lv_txtobj iv_txtnam = lv_txtnam IMPORTING et_thead = lt_thead.

/SAPSLL/TEXT_GET_TLINES CALL FUNCTION '/SAPSLL/TEXT_GET_TLINES' EXPORTING is_txtkey = ls_txtkey IMPORTING et_tlines = lt_tlines EXCEPTIONS text_not_found = 1 OTHERS = 2.

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = lv_split2 IMPORTING output = lv_itvsy.

/SAPSLL/CUSTOMS_DOC_CREATE CALL FUNCTION '/SAPSLL/CUSTOMS_DOC_CREATE' EXPORTING iv_srvll = gc_services-trans_proc iv_prdes = gc_procedure_dest-presentation iv_lgreg = lv_lgreg iv_cuhda = lv_cuhda iv_cdorg = ls_obj_trs-cdorg iv_guid_ftorg = ls_obj_trs-guid_ftorg iv_guid_ftvbs = lv_guid_ftvbs is_tlepaf = ls_tlepaf-k is_obj = ls_obj_sum it_obj_txt = lt_obj_txt is_cust_doc_sk_flow = ls_cuhd_trs-sk iv_object_discard = gc_false iv_save = gc_false iv_commit = gc_false iv_update_task = gc_false IMPORTING es_obj = es_obj EXCEPTIONS invalid_call = 1 no_number_determined = 2 input_data_inconsistently = 3 error_creating_doc_flow = 4 error_ivm_posting = 5 internal_error = 6 no_scrapping_no = 7 no_ivm_availability_check = 8 no_ivm_closing_portion = 9 no_ivm_reservation_cancel = 10 enqueue_failed_cuswlo = 11 invalid_customs_authorization = 12 no_ivm_initial_load = 13 OTHERS = 14.

/SAPSLL/CUHD_MAINTAIN_SUBOBJ CALL FUNCTION '/SAPSLL/CUHD_MAINTAIN_SUBOBJ' EXPORTING is_cuit_sk = ls_cuit-sk CHANGING ct_legcol = lt_legcol.

/SAPSLL/CUHD_MAINTAIN_SUBOBJ CALL FUNCTION '/SAPSLL/CUHD_MAINTAIN_SUBOBJ' CHANGING ct_cuhdsta = lt_cuhdsta_trs.

/SAPSLL/CORFLOW_SAVE CALL FUNCTION '/SAPSLL/CORFLOW_SAVE' EXPORTING iv_update_task = gc_false is_debug = gs_debug.

/SAPSLL/TEXT_COMMIT CALL FUNCTION '/SAPSLL/TEXT_COMMIT' EXPORTING iv_savemode = gc_true.

/SAPSLL/CUHD_SAVE_MASS CALL FUNCTION '/SAPSLL/CUHD_SAVE_MASS' EXPORTING iv_commit = gc_true is_debug = gs_debug.

/SAPSLL/CUHD_GET_OBJECT CALL FUNCTION '/SAPSLL/CUHD_GET_OBJECT' EXPORTING is_sk = is_cuhd_sk iv_dbcgr = gc_access_group-customs iv_dbcfc = gc_access_function-cd_comp IMPORTING es_obj = cs_obj_trs CHANGING cv_trtyp = lv_trtyp EXCEPTIONS entry_already_exists = 1 entry_does_not_exist = 2 foreign_lock = 3 OTHERS = 4.

/SAPSLL/CUHD_DISCARD_OBJECT CALL FUNCTION '/SAPSLL/CUHD_DISCARD_OBJECT' EXPORTING is_debug = gs_debug.

/SAPSLL/T606G_DB_SGL_READ CALL FUNCTION '/SAPSLL/T606G_DB_SGL_READ' EXPORTING is_pk = ls_t606g_pk is_debug = gs_debug IMPORTING es_result = ls_t606g EXCEPTIONS no_data = 1 invalid_call = 2 OTHERS = 3.

/SAPSLL/TLEPR_DB_RNG_READ CALL FUNCTION '/SAPSLL/TLEPR_DB_RNG_READ' EXPORTING is_crit = ls_tlepr_crit is_debug = gs_debug IMPORTING et_result = lt_tlepr EXCEPTIONS no_data = 1 open_sql_error = 2 OTHERS = 3.

/SAPSLL/TLEPAF_DB_RNG_READ CALL FUNCTION '/SAPSLL/TLEPAF_DB_RNG_READ' EXPORTING is_crit = ls_tlepaf_crit is_debug = gs_debug IMPORTING et_result = lt_tlepaf EXCEPTIONS no_data = 1 open_sql_error = 2 OTHERS = 3.

/SAPSLL/GUID_CREATE CALL FUNCTION '/SAPSLL/GUID_CREATE' IMPORTING ev_guid_16 = cv_guid.

/SAPSLL/LEGPGE_PGENR_GET_NEXT CALL FUNCTION '/SAPSLL/LEGPGE_PGENR_GET_NEXT' "#EC FB_RC IMPORTING ev_pgenr = cv_pgenr EXCEPTIONS interval_not_found = 1 number_range_not_intern = 2 object_not_found = 3 quantity_is_0 = 4 quantity_is_not_1 = 5 interval_overflow = 6 buffer_overflow = 7 OTHERS = 8.

/SAPSLL/APPEND_RANGE CALL FUNCTION '/SAPSLL/APPEND_RANGE' EXPORTING iv_value_low = iv_value CHANGING ct_range = ct_range EXCEPTIONS invalid_range_structure = 1 OTHERS = 2.



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