SAP PUROB_READ Function Module for NOTRANSL: Ursprungscharge zum Fertigungsauftrag lesen
PUROB_READ is a standard purob read 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: Ursprungscharge zum Fertigungsauftrag lesen 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 purob read FM, simply by entering the name PUROB_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: VBOB
Program Name: SAPLVBOB
Main Program:
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PUROB_READ 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 'PUROB_READ'"NOTRANSL: Ursprungscharge zum Fertigungsauftrag lesen.
EXPORTING
* I_EBELN = "
* I_EBELP = "
* I_AJAHR = "
* I_UCWRK = "
* I_UCMAT = "
* I_UCCHA = "
* RESET_BUFFER = "
* I_CHECK_AJAHR = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION
TABLES
* T_PUROB = "
EXCEPTIONS
NOT_FOUND = 1 INVALID_PARAMETERS = 2
IMPORTING Parameters details for PUROB_READ
I_EBELN -
Data type: PUROB-EBELNOptional: Yes
Call by Reference: Yes
I_EBELP -
Data type: PUROB-EBELPOptional: Yes
Call by Reference: Yes
I_AJAHR -
Data type: PUROB-AJAHROptional: Yes
Call by Reference: Yes
I_UCWRK -
Data type: PUROB-WERKSOptional: Yes
Call by Reference: Yes
I_UCMAT -
Data type: PUROB-UCMATOptional: Yes
Call by Reference: Yes
I_UCCHA -
Data type: PUROB-UCCHAOptional: Yes
Call by Reference: Yes
RESET_BUFFER -
Data type: BOOLEANOptional: Yes
Call by Reference: Yes
I_CHECK_AJAHR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for PUROB_READ
T_PUROB -
Data type: PUROBOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_PARAMETERS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PUROB_READ 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_i_ebeln | TYPE PUROB-EBELN, " | |||
| lt_t_purob | TYPE STANDARD TABLE OF PUROB, " | |||
| lv_not_found | TYPE PUROB, " | |||
| lv_i_ebelp | TYPE PUROB-EBELP, " | |||
| lv_invalid_parameters | TYPE PUROB, " | |||
| lv_i_ajahr | TYPE PUROB-AJAHR, " | |||
| lv_i_ucwrk | TYPE PUROB-WERKS, " | |||
| lv_i_ucmat | TYPE PUROB-UCMAT, " | |||
| lv_i_uccha | TYPE PUROB-UCCHA, " | |||
| lv_reset_buffer | TYPE BOOLEAN, " | |||
| lv_i_check_ajahr | TYPE BOOLEAN. " 'X' |
|   CALL FUNCTION 'PUROB_READ' "NOTRANSL: Ursprungscharge zum Fertigungsauftrag lesen |
| EXPORTING | ||
| I_EBELN | = lv_i_ebeln | |
| I_EBELP | = lv_i_ebelp | |
| I_AJAHR | = lv_i_ajahr | |
| I_UCWRK | = lv_i_ucwrk | |
| I_UCMAT | = lv_i_ucmat | |
| I_UCCHA | = lv_i_uccha | |
| RESET_BUFFER | = lv_reset_buffer | |
| I_CHECK_AJAHR | = lv_i_check_ajahr | |
| TABLES | ||
| T_PUROB | = lt_t_purob | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| INVALID_PARAMETERS = 2 | ||
| . " PUROB_READ | ||
ABAP code using 7.40 inline data declarations to call FM PUROB_READ
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 EBELN FROM PUROB INTO @DATA(ld_i_ebeln). | ||||
| "SELECT single EBELP FROM PUROB INTO @DATA(ld_i_ebelp). | ||||
| "SELECT single AJAHR FROM PUROB INTO @DATA(ld_i_ajahr). | ||||
| "SELECT single WERKS FROM PUROB INTO @DATA(ld_i_ucwrk). | ||||
| "SELECT single UCMAT FROM PUROB INTO @DATA(ld_i_ucmat). | ||||
| "SELECT single UCCHA FROM PUROB INTO @DATA(ld_i_uccha). | ||||
| DATA(ld_i_check_ajahr) | = 'X'. | |||
Search for further information about these or an SAP related objects