SAP MY_BEFORE_OUTPUT_PROCESS Function Module for
MY_BEFORE_OUTPUT_PROCESS is a standard my before output process SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for my before output process FM, simply by entering the name MY_BEFORE_OUTPUT_PROCESS into the relevant SAP transaction such as SE37 or SE38.
Function Group: LIFO
Program Name: SAPLLIFO
Main Program: SAPLLIFO
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MY_BEFORE_OUTPUT_PROCESS pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'MY_BEFORE_OUTPUT_PROCESS'".
EXPORTING
* I_MYHIST = "LIFO Valuation: Type of History Data (Layer)
* I_MYXXFO = 'LI' "Type of Consumption Sequence Procedure Used in Bal. Sht Val.
* I_MYFID = "LIFO Valuation: Material Groupings
* I_PROG = "Character Field of Length 6
* I_VERSI_' ' = "Checkbox
* I_SELC = "
IMPORTING
E_LEVEL = "
E_MYEBENE = "
E_UP_LEVEL = "
CHANGING
XS_MYPAR = "Control Parameters LIFO/FIFO Valuation
* X_METHOD = "
* XS_NIWE = "Transfer Structure for Lowest Value Determination
* XS_NIWEFY = "Lowest Value: Fiscal Year ID Data
* XS_NIWELS = "
* XS_NIWEF1 = "
* X_BUKRS = "
* X_GJAHR = "Fiscal Year
* X_MYPER = "
* X_MYVER = "LIFO Layer Version
IMPORTING Parameters details for MY_BEFORE_OUTPUT_PROCESS
I_MYHIST - LIFO Valuation: Type of History Data (Layer)
Data type: MYHISTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MYXXFO - Type of Consumption Sequence Procedure Used in Bal. Sht Val.
Data type: MYXXFODefault: 'LI'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MYFID - LIFO Valuation: Material Groupings
Data type: MYFIDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PROG - Character Field of Length 6
Data type: CHAR6Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VERSI_SPACE - Checkbox
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SELC -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MY_BEFORE_OUTPUT_PROCESS
E_LEVEL -
Data type: TCURM-MYKEY_CUSOptional: No
Call by Reference: No ( called with pass by value option)
E_MYEBENE -
Data type: RM08Y-KEYTEXTOptional: No
Call by Reference: No ( called with pass by value option)
E_UP_LEVEL -
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for MY_BEFORE_OUTPUT_PROCESS
XS_MYPAR - Control Parameters LIFO/FIFO Valuation
Data type: MYPAROptional: No
Call by Reference: Yes
X_METHOD -
Data type: MYMETHODOptional: Yes
Call by Reference: Yes
XS_NIWE - Transfer Structure for Lowest Value Determination
Data type: SNIWEOptional: Yes
Call by Reference: Yes
XS_NIWEFY - Lowest Value: Fiscal Year ID Data
Data type: SNIWEFYOptional: Yes
Call by Reference: Yes
XS_NIWELS -
Data type: SNIWELSOptional: Yes
Call by Reference: Yes
XS_NIWEF1 -
Data type: SNIWEF1Optional: Yes
Call by Reference: Yes
X_BUKRS -
Data type: BUKRSOptional: Yes
Call by Reference: Yes
X_GJAHR - Fiscal Year
Data type: GJAHROptional: Yes
Call by Reference: Yes
X_MYPER -
Data type: MYPEROptional: Yes
Call by Reference: Yes
X_MYVER - LIFO Layer Version
Data type: MYVEROptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for MY_BEFORE_OUTPUT_PROCESS Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_e_level | TYPE TCURM-MYKEY_CUS, " | |||
| lv_i_myhist | TYPE MYHIST, " | |||
| lv_xs_mypar | TYPE MYPAR, " | |||
| lv_x_method | TYPE MYMETHOD, " | |||
| lv_xs_niwe | TYPE SNIWE, " | |||
| lv_i_myxxfo | TYPE MYXXFO, " 'LI' | |||
| lv_e_myebene | TYPE RM08Y-KEYTEXT, " | |||
| lv_i_myfid | TYPE MYFID, " | |||
| lv_xs_niwefy | TYPE SNIWEFY, " | |||
| lv_e_up_level | TYPE XFELD, " | |||
| lv_i_prog | TYPE CHAR6, " | |||
| lv_xs_niwels | TYPE SNIWELS, " | |||
| lv_xs_niwef1 | TYPE SNIWEF1, " | |||
| lv_i_versi_space | TYPE XFELD, " | |||
| lv_i_selc | TYPE XFELD, " | |||
| lv_x_bukrs | TYPE BUKRS, " | |||
| lv_x_gjahr | TYPE GJAHR, " | |||
| lv_x_myper | TYPE MYPER, " | |||
| lv_x_myver | TYPE MYVER. " |
|   CALL FUNCTION 'MY_BEFORE_OUTPUT_PROCESS' " |
| EXPORTING | ||
| I_MYHIST | = lv_i_myhist | |
| I_MYXXFO | = lv_i_myxxfo | |
| I_MYFID | = lv_i_myfid | |
| I_PROG | = lv_i_prog | |
| I_VERSI_SPACE | = lv_i_versi_space | |
| I_SELC | = lv_i_selc | |
| IMPORTING | ||
| E_LEVEL | = lv_e_level | |
| E_MYEBENE | = lv_e_myebene | |
| E_UP_LEVEL | = lv_e_up_level | |
| CHANGING | ||
| XS_MYPAR | = lv_xs_mypar | |
| X_METHOD | = lv_x_method | |
| XS_NIWE | = lv_xs_niwe | |
| XS_NIWEFY | = lv_xs_niwefy | |
| XS_NIWELS | = lv_xs_niwels | |
| XS_NIWEF1 | = lv_xs_niwef1 | |
| X_BUKRS | = lv_x_bukrs | |
| X_GJAHR | = lv_x_gjahr | |
| X_MYPER | = lv_x_myper | |
| X_MYVER | = lv_x_myver | |
| . " MY_BEFORE_OUTPUT_PROCESS | ||
ABAP code using 7.40 inline data declarations to call FM MY_BEFORE_OUTPUT_PROCESS
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single MYKEY_CUS FROM TCURM INTO @DATA(ld_e_level). | ||||
| DATA(ld_i_myxxfo) | = 'LI'. | |||
| "SELECT single KEYTEXT FROM RM08Y INTO @DATA(ld_e_myebene). | ||||
Search for further information about these or an SAP related objects