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

/SAPSLL/PRE_VD_OUTBOUND_FOR SAP ABAP INCLUDE - /SAPSLL/PREVDOUTBOUNDFOR







/SAPSLL/PRE_VD_OUTBOUND_FOR 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/PRE_VD_OUTBOUND_FOR 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/PRE_VD_OUTBOUND_FOR. "Basic submit
SUBMIT /SAPSLL/PRE_VD_OUTBOUND_FOR AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPSLL/PRE_VD_OUTBOUND_FOR 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/PRE_VD_OUTBOUND_FOR

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/PRE_GRVSY_GET CALL FUNCTION '/SAPSLL/PRE_GRVSY_GET' EXPORTING iv_modelgroup = iv_modgr iv_apploghndl = iv_apploghndl iv_log = iv_log IMPORTING ev_grvsy = lv_grvsy EXCEPTIONS no_entry_found = 1.

/SAPSLL/APPLOG_SAVE CALL FUNCTION '/SAPSLL/APPLOG_SAVE' EXPORTING iv_handle = iv_apploghndl iv_in_update_task = gc_true is_debug = gs_debug.

/SAPSLL/PRE_VD_ORG_DATA_READ CALL FUNCTION '/SAPSLL/PRE_VD_ORG_DATA_READ' EXPORTING iv_modelgrp = iv_modelgrp iv_qaldoc = gc_qaldoc-reg_cu iv_pfony = iv_pfony ir_lgreg = ir_lgreg ir_indei = lr_indei_t iv_vdvab = iv_vdvab iv_vdvbi = iv_vdvbi IMPORTING et_lrgcgp = ct_lrgcgp et_ctygpa = ct_ctygpa ev_rcode = lv_rcode ev_country = lv_modelgrp_country EXCEPTIONS internal_error = 1 OTHERS = 2.

FIMA_DATE_CREATE CALL FUNCTION 'FIMA_DATE_CREATE' EXPORTING i_date = p_vdvab i_years = '-1' IMPORTING e_date = lv_valdat.

/SAPSLL/PREVDWLO_DB_BUF_PUT CALL FUNCTION '/SAPSLL/PREVDWLO_DB_BUF_PUT' EXPORTING it_data = ct_prevdwlo is_debug = gs_debug.

/SAPSLL/APPLOG_APPEND CALL FUNCTION '/SAPSLL/APPLOG_APPEND' EXPORTING iv_lghdl = gv_apploghndl iv_msgid = sy-msgid iv_msgty = sy-msgty iv_msgno = sy-msgno iv_msgv1 = sy-msgv1 iv_msgv2 = sy-msgv2 iv_msgv3 = sy-msgv3 iv_msgv4 = sy-msgv4 iv_detlevel = iv_level is_debug = gs_debug.

/SAPSLL/ALV_GRID_FULLSCREEN CALL FUNCTION '/SAPSLL/ALV_GRID_FULLSCREEN' EXPORTING it_finfo = lt_finfo it_toolbar_excluding = lt_toolbar_excluding it_add_functions = gt_button is_layout = ls_layout iv_save = gc_true iv_repid = sy-repid iv_structure = '/SAPSLL/PREVD_REQ_INPUT_UI_S' iv_ucomm_callback = '/SAPSLL/PRE_VDO_UCOMM' * iv_before_ucomm_callback = '/SAPSLL/PRE_VDO_UCOMM' iv_titlebar = text-t01 it_sort = lt_sort iv_flag_input = gc_false CHANGING ct_data = ct_vd_input_ui_t "#EC ct_fieldcat = lt_fieldcat.

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

/SAPSLL/PREVDPAR_DB_BUF_PUT CALL FUNCTION '/SAPSLL/PREVDPAR_DB_BUF_PUT' EXPORTING it_data = ct_prevdpar is_debug = gs_debug.

/SAPSLL/APPEND_RANGE CALL FUNCTION '/SAPSLL/APPEND_RANGE' EXPORTING iv_value_low = '1' is_debug = gs_debug CHANGING ct_range = lr_indei[].

/SAPSLL/APPEND_RANGE CALL FUNCTION '/SAPSLL/APPEND_RANGE' EXPORTING iv_value_low = '3' is_debug = gs_debug CHANGING ct_range = lr_indei[].

/SAPSLL/CONVERT_DATE_TO_STAMP CALL FUNCTION '/SAPSLL/CONVERT_DATE_TO_STAMP' EXPORTING iv_date = p_vdvab iv_time = gc_time-begin IMPORTING ev_timestamp = lv_sel_datab EXCEPTIONS no_time_zone = 1 time_zone_notfound = 2 format_error = 3 OTHERS = 4.

/SAPSLL/CONVERT_DATE_TO_STAMP CALL FUNCTION '/SAPSLL/CONVERT_DATE_TO_STAMP' EXPORTING iv_date = p_vdvbi iv_time = gc_time-begin IMPORTING ev_timestamp = lv_sel_datbi EXCEPTIONS no_time_zone = 1 time_zone_notfound = 2 format_error = 3 OTHERS = 4.

/SAPSLL/TVDFRM_DB_SGL_READ CALL FUNCTION '/SAPSLL/TVDFRM_DB_SGL_READ' EXPORTING is_pk = ls_pk_tvdfrm iv_flag_bypass_buffer = ' ' iv_flag_no_db_access = ' ' iv_flag_fill_buffer = 'X' is_debug = gs_debug IMPORTING es_result = ls_tvdfrm_result EXCEPTIONS no_data = 1 invalid_call = 2 OTHERS = 3.

/SAPSLL/NUMBER_GET_NEXT CALL FUNCTION '/SAPSLL/NUMBER_GET_NEXT' EXPORTING iv_nr_range_nr = '01' iv_object = 'SLL_PREVD' * IV_QUANTITY = '1' * IV_SUBOBJECT = ' ' iv_toyear = sy-datlo(4) * IV_IGNORE_BUFFER = ' ' is_debug = gs_debug IMPORTING ev_number = ls_prevd_s-vdno * EV_QUANTITY = * EV_RETURNCODE = 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 internal_error = 7 OTHERS = 8.

/SAPSLL/CONVERT_STAMP_TO_DATE CALL FUNCTION '/SAPSLL/CONVERT_STAMP_TO_DATE' EXPORTING iv_timestamp = ls_prpref-datab iv_end_date = gc_false IMPORTING ev_date = ls_prevd_s-datab EXCEPTIONS no_time_stamp = 1 no_time_zone = 2 time_zone_notfound = 3 format_error = 4 OTHERS = 5.

/SAPSLL/CONVERT_STAMP_TO_DATE CALL FUNCTION '/SAPSLL/CONVERT_STAMP_TO_DATE' EXPORTING iv_timestamp = ls_prpref-datbi iv_end_date = gc_true IMPORTING ev_date = ls_prevd_s-datbi EXCEPTIONS no_time_stamp = 1 no_time_zone = 2 time_zone_notfound = 3 format_error = 4 OTHERS = 5.

/SAPSLL/CTSNUM_DB_SGL_READ CALL FUNCTION '/SAPSLL/CTSNUM_DB_SGL_READ' EXPORTING is_pk = ls_pk_ctsnum iv_mandt = syst-mandt is_sk = ls_sk_ctsnum iv_flag_bypass_buffer = gc_false iv_flag_no_db_access = gc_false iv_flag_fill_buffer = gc_true is_debug = gs_debug IMPORTING es_result = ls_ctsnum EXCEPTIONS no_data = 1 invalid_call = 2 OTHERS = 3.

/SAPSLL/CTSNUMC_DB_SGL_READ





CALL FUNCTION '/SAPSLL/CTSNUMC_DB_SGL_READ' EXPORTING is_pk = ls_pk_ctsnumc iv_mandt = syst-mandt is_sk = ls_sk_ctsnumc iv_flag_bypass_buffer = gc_false iv_flag_no_db_access = gc_false iv_flag_fill_buffer = gc_true is_debug = gs_debug IMPORTING es_result = ls_ctsnumc EXCEPTIONS no_data = 1 invalid_call = 2 OTHERS = 3.

/SAPSLL/TVDFRM_DB_SGL_READ CALL FUNCTION '/SAPSLL/TVDFRM_DB_SGL_READ' EXPORTING is_pk = ls_pk_tvdfrm iv_flag_bypass_buffer = gc_false iv_flag_no_db_access = gc_false iv_flag_fill_buffer = gc_true is_debug = gs_debug IMPORTING es_result = ls_tvdfrm EXCEPTIONS no_data = 1 invalid_call = 2 OTHERS = 3.

/SAPSLL/PRE_VD_DETERMINE CALL FUNCTION '/SAPSLL/PRE_VD_DETERMINE' EXPORTING it_prevdwlo = lt_prevdwlo it_prevdpar = it_prevdpar it_prpref = it_prpref iv_apploghndl = gv_apploghndl ir_lgreg = ir_lgreg CHANGING ct_vd_sf_input = ct_comm_struc.

/SAPSLL/PREVDWLO_DB_UPD CALL FUNCTION '/SAPSLL/PREVDWLO_DB_UPD' EXPORTING it_upd = lt_upd is_debug = gs_debug.

ENQUEUE_/SAPSLL/EPREVD CALL FUNCTION 'ENQUEUE_/SAPSLL/EPREVD' EXPORTING mode_/sapsll/prevd_enq_s = 'E' modelgrp = iv_modgr EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_/SAPSLL/EPREVD CALL FUNCTION 'DEQUEUE_/SAPSLL/EPREVD' EXPORTING mode_/sapsll/prevd_enq_s = 'E' modelgrp = iv_modgr.

ENQUEUE_/SAPSLL/EPRVDWLO CALL FUNCTION 'ENQUEUE_/SAPSLL/EPRVDWLO' EXPORTING mode_/sapsll/prevdwlo_enq_s = 'E' mandt = sy-mandt * GUID_PR = * org_logsystem = iv_grvsy * REFAPP = * REFNO = * X_GUID_PR = ' ' * X_ORG_LOGSYSTEM = ' ' * X_REFAPP = ' ' * X_REFNO = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_/SAPSLL/EPRVDWLO CALL FUNCTION 'DEQUEUE_/SAPSLL/EPRVDWLO' EXPORTING mode_/sapsll/prevdwlo_enq_s = 'E' mandt = sy-mandt.

/SAPSLL/EXT_PARTNER_NUMBER_GET CALL FUNCTION '/SAPSLL/EXT_PARTNER_NUMBER_GET' EXPORTING iv_grvsy = iv_grvsy iv_partner = ls_prevd-partner IMPORTING ev_bpvsy = lv_partner_ext.

/SAPSLL/PARTNER_ADRNR_GET CALL FUNCTION '/SAPSLL/PARTNER_ADRNR_GET' EXPORTING iv_parno = ls_prevd-partner IMPORTING ev_adrnr = lv_adrnr.

ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING address_selection = ls_addr_sel IMPORTING address_value = ls_address EXCEPTIONS parameter_error = 1 address_not_exist = 2 version_not_exist = 3 internal_error = 4 OTHERS = 5.

/SAPSLL/PREPARE_OUTPUT_VDO CALL FUNCTION '/SAPSLL/PREPARE_OUTPUT_VDO' EXPORTING it_data = it_vd_input_ui_t CHANGING cs_input = ls_prn.

/SAPSLL/PRINT_VDO CALL FUNCTION '/SAPSLL/PRINT_VDO' EXPORTING is_prn = ls_prn iv_qaldoc = lv_qaldoc IMPORTING es_output_info = ls_job_info.

/SAPSLL/PREVD_SAVE CALL FUNCTION '/SAPSLL/PREVD_SAVE' EXPORTING is_prn = is_prn CHANGING cv_subrc = lv_subrc ct_prevd = lt_prevd.

/SAPSLL/PREVDITM_SAVE CALL FUNCTION '/SAPSLL/PREVDITM_SAVE' EXPORTING it_prevd = lt_prevd is_prn = is_prn CHANGING cv_subrc = lv_subrc ct_prevditm = lt_prevditm.

/SAPSLL/PREVDNEG_SAVE CALL FUNCTION '/SAPSLL/PREVDNEG_SAVE' EXPORTING it_prevd = lt_prevd it_prevditm = lt_prevditm CHANGING cv_subrc = lv_subrc.

/SAPSLL/CONVERT_DATE_TO_STAMP * CALL FUNCTION '/SAPSLL/CONVERT_DATE_TO_STAMP' * EXPORTING ** IV_TIMEZONE = * iv_date = iv_vdvbi ** IV_TIME = '000000' * IMPORTING * ev_timestamp = lv_timestamp * EXCEPTIONS * no_time_zone = 1 * time_zone_notfound = 2 * format_error = 3 * OTHERS = 4 * .

/SAPSLL/PREVDCHG_DB_RNG_READ CALL FUNCTION '/SAPSLL/PREVDCHG_DB_RNG_READ' EXPORTING is_crit = ls_crit_prevdchg iv_flag_fill_buffer = 'X' is_debug = gs_debug IMPORTING et_result = ct_prevdchg EXCEPTIONS no_data = 1 open_sql_error = 2 OTHERS = 3.

/SAPSLL/PREVD_DB_RNG_READ CALL FUNCTION '/SAPSLL/PREVD_DB_RNG_READ' EXPORTING is_crit = ls_crit_prevd iv_flag_fill_buffer = gc_true is_debug = gs_debug IMPORTING et_result = lt_prevd_ex EXCEPTIONS no_data = 1 open_sql_error = 2 OTHERS = 3.

/SAPSLL/PRE_VDO_PREVD_BUFFER CALL FUNCTION '/SAPSLL/PRE_VDO_PREVD_BUFFER' EXPORTING it_prevd = ct_prevd.




/SAPSLL/PREVDNEG_DB_BUF_PUT CALL FUNCTION '/SAPSLL/PREVDNEG_DB_BUF_PUT' EXPORTING it_data = ct_prevdneg is_debug = gs_debug.

/SAPSLL/CONVERT_DATE_TO_STAMP CALL FUNCTION '/SAPSLL/CONVERT_DATE_TO_STAMP' EXPORTING iv_date = gc_date-omega iv_time = gc_time-begin IMPORTING ev_timestamp = lv_sel_date.

/SAPSLL/ALV_GRID_FULLSCREEN CALL FUNCTION '/SAPSLL/ALV_GRID_FULLSCREEN' EXPORTING it_finfo = lt_finfo it_toolbar_excluding = lt_toolbar_excluding it_add_functions = gt_button is_layout = ls_layout iv_structure = '/SAPSLL/PREVD_DB_UI_S' iv_ucomm_callback = '/SAPSLL/PRE_VDO_UCOMM' iv_titlebar = text-t06 "#EC * * it_sort = lt_sort iv_flag_input = gc_false CHANGING ct_data = ct_display ct_fieldcat = lt_fieldcat.

/SAPSLL/PRE_MODGR_GET CALL FUNCTION '/SAPSLL/PRE_MODGR_GET' IMPORTING ev_modgr = cv_modgr EXCEPTIONS no_data = 1 not_unique = 2 OTHERS = 3.

/SAPSLL/APPEND_FINFO CALL FUNCTION '/SAPSLL/APPEND_FINFO' EXPORTING iv_tablename = iv_table iv_fieldname = iv_field iv_fieldinfo = iv_finfo is_debug = gs_debug CHANGING ct_finfo = ct_finfo EXCEPTIONS invalid_call = 1 OTHERS = 2.

/SAPSLL/PARTNER_ADRNR_GET CALL FUNCTION '/SAPSLL/PARTNER_ADRNR_GET' EXPORTING iv_parno = cs_param-addr-modgr IMPORTING ev_adrnr = lv_adrnr.

ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING address_selection = ls_addrsel IMPORTING address_value = ls_addrval EXCEPTIONS parameter_error = 1 address_not_exist = 2 version_not_exist = 3 internal_error = 4 OTHERS = 5.

/SAPSLL/PRE_VDO_PRINT_PARAM CALL FUNCTION '/SAPSLL/PRE_VDO_PRINT_PARAM' EXPORTING is_print_param = cs_param.

/SAPSLL/PRE_VD_ADD_DATA_READ CALL FUNCTION '/SAPSLL/PRE_VD_ADD_DATA_READ' EXPORTING it_pntpr = it_products iv_stcts = gs_param-product-stcts iv_modelgrp_country = iv_modelgrp_country IMPORTING et_prcts = ct_prcts.

/SAPSLL/PRPREFNG_DB_BUF_PUT CALL FUNCTION '/SAPSLL/PRPREFNG_DB_BUF_PUT' EXPORTING it_data = ct_prprefng is_debug = gs_debug.

/SAPSLL/APPLOG_DISPLAY CALL FUNCTION '/SAPSLL/APPLOG_DISPLAY' EXPORTING iv_object = '/SAPSLL/PREF' iv_subobject = '/SAPSLL/PREFLEOU' * iv_extnumber = iv_handle = iv_loghandle iv_funcname = '/SAPSLL/APPLOG_PROF_POPUP_DET' * is_log_filter = * IS_MSG_FILTER = * IV_USE_GRID = * IS_DEBUG = EXCEPTIONS no_log_found = 1 OTHERS = 2.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = iv_tcode EXCEPTIONS ok = 1 not_ok = 2 OTHERS = 3.

/SAPSLL/APPLOG_SAVE CALL FUNCTION '/SAPSLL/APPLOG_SAVE' EXPORTING iv_handle = iv_apploghndl iv_in_update_task = gc_true is_debug = gs_debug IMPORTING et_lognumbers = lt_lognumbers.

/SAPSLL/PRE_STCTS_GET CALL FUNCTION '/SAPSLL/PRE_STCTS_GET' EXPORTING iv_pfony = iv_pfony IMPORTING ev_stcts = cv_stcts EXCEPTIONS no_data = 1 not_unique = 2 OTHERS = 3.

SUSR_USER_READ CALL FUNCTION 'SUSR_USER_READ' EXPORTING user_name = iv_uname EXCEPTIONS user_name_not_exists = 1 internal_error = 2 OTHERS = 3.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = '/SAPSLL/PREVD_REQ_INPUT_UI_S' CHANGING ct_fieldcat = ct_fieldcat[] EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = '/SAPSLL/PREVD_DB_UI_S' CHANGING ct_fieldcat = ct_fieldcat[] EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

/SAPSLL/PREVDWLO_DB_DEL CALL FUNCTION '/SAPSLL/PREVDWLO_DB_DEL' EXPORTING it_del = lt_del is_debug = gs_debug.

/SAPSLL/PREVDPAR_DB_DEL CALL FUNCTION '/SAPSLL/PREVDPAR_DB_DEL' EXPORTING it_del = lt_del is_debug = gs_debug.



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