SAP Reports / Programs | Logistics - General | Logistics Basic Data | Promotion(LO-MD-PR) SAP LO

W_PROMO_ARCH_WRITE SAP ABAP Report - Archive Write Program for Archiving Object W_PROMO







W_PROMO_ARCH_WRITE 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 W_PROMO_ARCH_WRITE 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 W_PROMO_ARCH_WRITE. "Basic submit
SUBMIT W_PROMO_ARCH_WRITE AND RETURN. "Return to original report after report execution complete
SUBMIT W_PROMO_ARCH_WRITE 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: REMARK = Comments for Archiving
Selection Text: RT_AKART = Promotion Type
Selection Text: RT_AKTNR = Promotion
Selection Text: SADAT = Final Date of Sales Order Per.
Selection Text: TESTRUN = Deletion Program in Test Mode
Selection Text: VKDBI = Final Date of Sales Period
Title: Archive Write Program for Archiving Object W_PROMO
Text Symbol: 001 = Restrictions
Text Symbol: 002 = Selected Promotion(s)
Text Symbol: 003 = Promotion
Text Symbol: 004 = Description
Text Symbol: 100 = &1% (&2 of &3) of the Promotions Were Archived
Text Symbol: 101 = Selected Promotions Successfully Deleted
Text Symbol: 102 = Archiving Comment


INCLUDES used within this REPORT W_PROMO_ARCH_WRITE

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:

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = testrun * CREATE_ARCHIVE_FILE = 'X' object = c_arch_object comments = remark * DO_NOT_DELETE_DATA = ' ' IMPORTING archive_handle = arch_handle.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = arch_handle.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arch_handle record = t_wakh record_structure = 'WAKH'.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arch_handle record = t_wakt record_structure = 'WAKT'.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arch_handle record = t_wakhind record_structure = 'WAKHIND'.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arch_handle record = t_wakp record_structure = 'WAKP'.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arch_handle record = t_wagu record_structure = 'WAGU'.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arch_handle record = t_wale record_structure = 'WALE'.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arch_handle record = t_wazb record_structure = 'WAZB'.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arch_handle record = t_wazt record_structure = 'WAZT'.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arch_handle record = t_wazw record_structure = 'WAZW'.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arch_handle record = t_waal record_structure = 'WAAL'.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arch_handle record = t_wakc record_structure = 'WAKC'.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arch_handle record = t_wakr record_structure = 'WAKR'.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arch_handle record = t_wakrw record_structure = 'WAKRW'.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arch_handle record = t_nast record_structure = 'NAST'.

ARCHIVE_SAVE_OBJECT * CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' * EXPORTING * ARCHIVE_HANDLE = ARCH_HANDLE.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = arch_handle EXCEPTIONS termination_requested = 1.

ARCHIVE_PROTOCOL_COLLECT





CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object_identifier i_text = 'The selected promotions were successfully archived.'(101)

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = '&1% (&2 of &3) of the promotions were archived.'(100)

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = '&1% (&2 of &3) of the promotions were archived.'(100)

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = arch_handle.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = arch_handle.

CHANGEDOCU_ARCHIVE_OBJECT CALL FUNCTION 'CHANGEDOCU_ARCHIVE_OBJECT' EXPORTING archive_handle = arch_handle * CLIENT = SY-MANDT objectclass = 'W_PROMO' objectid = l_objectid * OBJECT_DELETE_FLAG = 'X' EXCEPTIONS wrong_access_to_archive = 1 OTHERS = 2.

TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = arch_handle * CLIENT = SY-MANDT id = p_id language = '*' name = p_name object = p_object * OBJECT_DELETE_FLAG = 'X' * EXCEPTIONS * WRONG_ACCESS_TO_ARCHIVE = 1 * OTHERS = 2 .

RV_MESSAGES_REFRESH CALL FUNCTION 'RV_MESSAGES_REFRESH' EXPORTING msg_kappl = p_t685-kappl * PI_OBJKY_FROM = * PI_OBJKY_TO = * TABLES * RI_OBJKY = .

RV_MESSAGES_SELECT CALL FUNCTION 'RV_MESSAGES_SELECT' EXPORTING msg_kappl = p_t685-kappl TABLES s_kschl = range_tab_kschl s_nacha = range_tab_nacha s_objky = range_tab_objky.

RV_MESSAGES_GET CALL FUNCTION 'RV_MESSAGES_GET' EXPORTING msg_kappl = p_t685-kappl * msg_objky_from = ' ' * msg_objky_to = ' ' TABLES tab_xnast = l_nast tab_ynast = l_dummy_nast.



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