SAP Reports / Programs

RWMFAAW1 SAP ABAP Report - Archive Write Program for Archiving Object W_MARKDOWN







RWMFAAW1 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 RWMFAAW1 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 RWMFAAW1. "Basic submit
SUBMIT RWMFAAW1 AND RETURN. "Return to original report after report execution complete
SUBMIT RWMFAAW1 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_MFCNR = D Markdown Plan No.
Selection Text: TESTRUN = Deletion program in test mode
Title: Archive Write Program for Archiving Object W_MARKDOWN
Text Symbol: 001 = Options
Text Symbol: 002 = Archived Markdown Plans
Text Symbol: 003 = MD plan no
Text Symbol: 004 = Description
Text Symbol: 005 = Unarchived Markdown Plans
Text Symbol: 006 = Reasn
Text Symbol: 007 = is processed by user
Text Symbol: 008 = does not contain activ. price phases
Text Symbol: 009 = Prices phases begin in future


INCLUDES used within this REPORT RWMFAAW1

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 = ' ' * OUTPUT_SEL_SCREEN_WHEN_DIALOG = 'X' * OUTPUT_SEL_SCREEN_WHEN_BATCH = ' ' IMPORTING ARCHIVE_HANDLE = L_ARCH_HANDLE * EXCEPTIONS * INTERNAL_ERROR = 1 * OBJECT_NOT_FOUND = 2 * OPEN_ERROR = 3 * NOT_AUTHORIZED = 4 * OTHERS = 5 .

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING ARCHIVE_HANDLE = L_ARCH_HANDLE * OBJECT_ID = ' ' * EXCEPTIONS * INTERNAL_ERROR = 1 * WRONG_ACCESS_TO_ARCHIVE = 2 * OTHERS = 3 .

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING ARCHIVE_HANDLE = L_ARCH_HANDLE * IMPORTING * OBJECT_OFFSET = * ARCHIVE_NAME = * EXCEPTIONS * FILE_IO_ERROR = 1 * INTERNAL_ERROR = 2 * OPEN_ERROR = 3 * TERMINATION_REQUESTED = 4 * WRONG_ACCESS_TO_ARCHIVE = 5 * OTHERS = 6 .

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING ARCHIVE_HANDLE = L_ARCH_HANDLE * STATISTICS_ONLY_PER_RUN = ' ' * STATISTICS_ONLY_PER_FILE = ' ' * EXCEPTIONS * INTERNAL_ERROR = 1 * OTHERS = 2 .

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = L_ARCH_HANDLE * EXCEPTIONS * INTERNAL_ERROR = 1 * WRONG_ACCESS_TO_ARCHIVE = 2 * OTHERS = 3 .

ENQUEUE_EWWMFH CALL FUNCTION 'ENQUEUE_EWWMFH' EXPORTING * MODE_WMFH = 'E' * MANDT = SY-MANDT MFCNR = WA_WMFH-MFCNR * X_MFCNR = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

ENQUEUE_EWWMFP CALL FUNCTION 'ENQUEUE_EWWMFP' EXPORTING * MODE_WMFP = 'E' * MANDT = SY-MANDT MFCNR = WA_WMFH-MFCNR * POSNR = * X_MFCNR = ' ' * X_POSNR = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING ARCHIVE_HANDLE = L_ARCH_HANDLE RECORD = WA_WMFH * RECORD_FLAGS = ' ' RECORD_STRUCTURE = 'WMFH' * 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 = L_ARCH_HANDLE RECORD = WA_WMFHT * RECORD_FLAGS = ' ' RECORD_STRUCTURE = 'WMFHT' * 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 = L_ARCH_HANDLE RECORD = WA_WMFF * RECORD_FLAGS = ' ' RECORD_STRUCTURE = 'WMFF' * 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 = L_ARCH_HANDLE RECORD = WA_WMFL * RECORD_FLAGS = ' ' RECORD_STRUCTURE = 'WMFL' * 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 = L_ARCH_HANDLE RECORD = WA_WMFP * RECORD_FLAGS = ' ' RECORD_STRUCTURE = 'WMFP' * 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 = L_ARCH_HANDLE RECORD = WA_WMFU * RECORD_FLAGS = ' ' RECORD_STRUCTURE = 'WMFU' * EXCEPTIONS * INTERNAL_ERROR = 1 * WRONG_ACCESS_TO_ARCHIVE = 2 * INVALID_RECORD_STRUCTURE = 3 * OTHERS = 4 .



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