SAP J_1B_READ_WIP Function Module for NOTRANSL: Read work-in-process data
J_1B_READ_WIP is a standard j 1b read wip SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Read work-in-process data processing and below is the pattern details for this FM, 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 j 1b read wip FM, simply by entering the name J_1B_READ_WIP into the relevant SAP transaction such as SE37 or SE38.
Function Group: J1B2
Program Name: SAPLJ1B2
Main Program: SAPLJ1B2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J_1B_READ_WIP 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 'J_1B_READ_WIP'"NOTRANSL: Read work-in-process data.
EXPORTING
I_MBEW = "Material Valuation
I_OBJCURR = "Checkbox
I_LFMON = "Current period (posting period)
I_LFGJA = "Fiscal Year of Current Period
* I_READ_BUFFERED = "
I_BUKRS = "Base Unit of Measure
I_KOKRS = "Currency Key
I_VERS = "Currency Key
I_CURR_KOKRS = "Current period (posting period)
I_CURTP_KOKRS = "Fiscal Year of Current Period
I_CURR_BUKRS = "Currency Key
I_CURTP_BUKRS = "Currency type and valuation view
I_WIPD = "Single-Character Indicator
IMPORTING
E_MBEW = "Material Valuation
E_EQBEW = "
EXCEPTIONS
NO_SELECTION = 1
IMPORTING Parameters details for J_1B_READ_WIP
I_MBEW - Material Valuation
Data type: MBEWOptional: No
Call by Reference: Yes
I_OBJCURR - Checkbox
Data type: KKA_YES_NOOptional: No
Call by Reference: No ( called with pass by value option)
I_LFMON - Current period (posting period)
Data type: MARV-LFMONOptional: No
Call by Reference: No ( called with pass by value option)
I_LFGJA - Fiscal Year of Current Period
Data type: MARV-LFGJAOptional: No
Call by Reference: No ( called with pass by value option)
I_READ_BUFFERED -
Data type: COptional: Yes
Call by Reference: Yes
I_BUKRS - Base Unit of Measure
Data type: T001-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_KOKRS - Currency Key
Data type: TKA01-KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_VERS - Currency Key
Data type: COSB-VERSNOptional: No
Call by Reference: No ( called with pass by value option)
I_CURR_KOKRS - Current period (posting period)
Data type: T001-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
I_CURTP_KOKRS - Fiscal Year of Current Period
Data type: TKA01-CTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_CURR_BUKRS - Currency Key
Data type: T001-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
I_CURTP_BUKRS - Currency type and valuation view
Data type: CURTPOptional: No
Call by Reference: No ( called with pass by value option)
I_WIPD - Single-Character Indicator
Data type: CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for J_1B_READ_WIP
E_MBEW - Material Valuation
Data type: MBEWOptional: No
Call by Reference: Yes
E_EQBEW -
Data type: MBEWOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_SELECTION -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for J_1B_READ_WIP 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_mbew | TYPE MBEW, " | |||
| lv_i_mbew | TYPE MBEW, " | |||
| lv_no_selection | TYPE MBEW, " | |||
| lv_i_objcurr | TYPE KKA_YES_NO, " | |||
| lv_i_lfmon | TYPE MARV-LFMON, " | |||
| lv_i_lfgja | TYPE MARV-LFGJA, " | |||
| lv_i_read_buffered | TYPE C, " | |||
| lv_e_eqbew | TYPE MBEW, " | |||
| lv_i_bukrs | TYPE T001-BUKRS, " | |||
| lv_i_kokrs | TYPE TKA01-KOKRS, " | |||
| lv_i_vers | TYPE COSB-VERSN, " | |||
| lv_i_curr_kokrs | TYPE T001-WAERS, " | |||
| lv_i_curtp_kokrs | TYPE TKA01-CTYP, " | |||
| lv_i_curr_bukrs | TYPE T001-WAERS, " | |||
| lv_i_curtp_bukrs | TYPE CURTP, " | |||
| lv_i_wipd | TYPE CHAR1. " |
|   CALL FUNCTION 'J_1B_READ_WIP' "NOTRANSL: Read work-in-process data |
| EXPORTING | ||
| I_MBEW | = lv_i_mbew | |
| I_OBJCURR | = lv_i_objcurr | |
| I_LFMON | = lv_i_lfmon | |
| I_LFGJA | = lv_i_lfgja | |
| I_READ_BUFFERED | = lv_i_read_buffered | |
| I_BUKRS | = lv_i_bukrs | |
| I_KOKRS | = lv_i_kokrs | |
| I_VERS | = lv_i_vers | |
| I_CURR_KOKRS | = lv_i_curr_kokrs | |
| I_CURTP_KOKRS | = lv_i_curtp_kokrs | |
| I_CURR_BUKRS | = lv_i_curr_bukrs | |
| I_CURTP_BUKRS | = lv_i_curtp_bukrs | |
| I_WIPD | = lv_i_wipd | |
| IMPORTING | ||
| E_MBEW | = lv_e_mbew | |
| E_EQBEW | = lv_e_eqbew | |
| EXCEPTIONS | ||
| NO_SELECTION = 1 | ||
| . " J_1B_READ_WIP | ||
ABAP code using 7.40 inline data declarations to call FM J_1B_READ_WIP
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 LFMON FROM MARV INTO @DATA(ld_i_lfmon). | ||||
| "SELECT single LFGJA FROM MARV INTO @DATA(ld_i_lfgja). | ||||
| "SELECT single BUKRS FROM T001 INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single KOKRS FROM TKA01 INTO @DATA(ld_i_kokrs). | ||||
| "SELECT single VERSN FROM COSB INTO @DATA(ld_i_vers). | ||||
| "SELECT single WAERS FROM T001 INTO @DATA(ld_i_curr_kokrs). | ||||
| "SELECT single CTYP FROM TKA01 INTO @DATA(ld_i_curtp_kokrs). | ||||
| "SELECT single WAERS FROM T001 INTO @DATA(ld_i_curr_bukrs). | ||||
Search for further information about these or an SAP related objects