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

/SAPSLL/PREVD_ARCHIVE_FOR SAP ABAP INCLUDE - /SAPSLL/PREVDARCHIVEFOR







/SAPSLL/PREVD_ARCHIVE_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/PREVD_ARCHIVE_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/PREVD_ARCHIVE_FOR. "Basic submit
SUBMIT /SAPSLL/PREVD_ARCHIVE_FOR AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPSLL/PREVD_ARCHIVE_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/PREVD_ARCHIVE_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_MODGR_GET CALL FUNCTION '/SAPSLL/PRE_MODGR_GET' IMPORTING ev_modgr = cv_modgr EXCEPTIONS no_data = 1 not_unique = 2 OTHERS = 3.

/SAPSLL/AUTH_CHECK_LRG_SGL CALL FUNCTION '/SAPSLL/AUTH_CHECK_LRG_SGL' EXPORTING iv_autho = gc_authobj_pref iv_lgreg = ' ' iv_actvt = gc_activity * it_ac_actvt = * IV_LANGU = ' ' * IMPORTING * EV_AUTH_CHECK_OK = EXCEPTIONS no_activity_provided = 1 no_authority = 2 wrong_authority_object = 3 OTHERS = 4.

ENQUEUE_/SAPSLL/EPREVD CALL FUNCTION 'ENQUEUE_/SAPSLL/EPREVD' EXPORTING * MODE_/SAPSLL/PREVD_ENQ_S = 'E' mandt = sy-mandt vdtyp = gc_vdtyp-preference rltyp = lv_rltyp * GUID_PR = modelgrp = iv_modgr * PARTNER = * DATBI = _scope = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = iv_handle record = ls_prevd * RECORD_FLAGS = ' ' record_structure = gc_archive_tabname-prevd EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = iv_handle record = ls_prevdsel * RECORD_FLAGS = ' ' record_structure = gc_archive_tabname-prevdsel EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.

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

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

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



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