SAP PPC1WP_GOODS_RECEIPT Function Module for WIP update for Goods Receipt
PPC1WP_GOODS_RECEIPT is a standard ppc1wp goods receipt SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for WIP update for Goods Receipt 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 ppc1wp goods receipt FM, simply by entering the name PPC1WP_GOODS_RECEIPT into the relevant SAP transaction such as SE37 or SE38.
Function Group: PPC1WP
Program Name: SAPLPPC1WP
Main Program: SAPLPPC1WP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PPC1WP_GOODS_RECEIPT 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 'PPC1WP_GOODS_RECEIPT'"WIP update for Goods Receipt.
EXPORTING
IF_ORDERID = "Key (UID) for an Order in APO
IF_DOCDATE = "Document Date in Document
IF_ACCASSOBJ = "Account Assignment Object (UID)
IF_FLG_REVERSAL = "Reversal Backflush (Document-Neutral)
IF_REPPOINT = "Internal reporting point (GIUD 16 Byte)
IF_HEADID = "Internal backflush header key (GUID, format RAW16)
* IF_FLG_SCRAP = "Scrap indicator
IF_HEADQUANT = "Backflush Quantity - Header Material
IF_MATERIALNR = "Material Number
IF_PLANT = "Plant
IF_SPECIAL_STOCK_VAL = "Valuation of Special Stock
IF_SALES_DOC = "Sales Document
IF_SALES_DOC_ITEM = "Sales document item
IF_WORK_BREAKDOWN_STRUCTURE = "WBS Element
IF_POSTDATE = "Posting Date in the Document
IMPORTING
ET_BELNR_TAB = "Table for QRP_DOCUMENTS
EXCEPTIONS
ERROR_GET_COMP = 1 REPPOINT_ERROR = 2 PPEGUID_ERROR = 3
IMPORTING Parameters details for PPC1WP_GOODS_RECEIPT
IF_ORDERID - Key (UID) for an Order in APO
Data type: PPC_HEAD-ORDERIDOptional: No
Call by Reference: Yes
IF_DOCDATE - Document Date in Document
Data type: BLDATOptional: No
Call by Reference: Yes
IF_ACCASSOBJ - Account Assignment Object (UID)
Data type: PPC_ACCASSOBJ_INTOptional: No
Call by Reference: Yes
IF_FLG_REVERSAL - Reversal Backflush (Document-Neutral)
Data type: PPC_FLG_REVOptional: No
Call by Reference: Yes
IF_REPPOINT - Internal reporting point (GIUD 16 Byte)
Data type: PPC_REPPOINT_INTOptional: No
Call by Reference: Yes
IF_HEADID - Internal backflush header key (GUID, format RAW16)
Data type: PPC_HEAD-HEADIDOptional: No
Call by Reference: Yes
IF_FLG_SCRAP - Scrap indicator
Data type: PPC_FLG_SCRAPOptional: Yes
Call by Reference: Yes
IF_HEADQUANT - Backflush Quantity - Header Material
Data type: PPC_HEADCONFQUANTOptional: No
Call by Reference: Yes
IF_MATERIALNR - Material Number
Data type: MATNROptional: No
Call by Reference: Yes
IF_PLANT - Plant
Data type: WERKS_DOptional: No
Call by Reference: Yes
IF_SPECIAL_STOCK_VAL - Valuation of Special Stock
Data type: KZBWSOptional: No
Call by Reference: Yes
IF_SALES_DOC - Sales Document
Data type: VBELN_VAOptional: No
Call by Reference: Yes
IF_SALES_DOC_ITEM - Sales document item
Data type: POSNR_VAOptional: No
Call by Reference: Yes
IF_WORK_BREAKDOWN_STRUCTURE - WBS Element
Data type: PS_POSNROptional: No
Call by Reference: Yes
IF_POSTDATE - Posting Date in the Document
Data type: BUDATOptional: No
Call by Reference: Yes
EXPORTING Parameters details for PPC1WP_GOODS_RECEIPT
ET_BELNR_TAB - Table for QRP_DOCUMENTS
Data type: QRP_T_DOCUMENTSOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_GET_COMP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
REPPOINT_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PPEGUID_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for PPC1WP_GOODS_RECEIPT 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_if_orderid | TYPE PPC_HEAD-ORDERID, " | |||
| lv_et_belnr_tab | TYPE QRP_T_DOCUMENTS, " | |||
| lv_error_get_comp | TYPE QRP_T_DOCUMENTS, " | |||
| lv_if_docdate | TYPE BLDAT, " | |||
| lv_if_accassobj | TYPE PPC_ACCASSOBJ_INT, " | |||
| lv_if_flg_reversal | TYPE PPC_FLG_REV, " | |||
| lv_if_reppoint | TYPE PPC_REPPOINT_INT, " | |||
| lv_if_headid | TYPE PPC_HEAD-HEADID, " | |||
| lv_if_flg_scrap | TYPE PPC_FLG_SCRAP, " | |||
| lv_if_headquant | TYPE PPC_HEADCONFQUANT, " | |||
| lv_reppoint_error | TYPE PPC_HEADCONFQUANT, " | |||
| lv_if_materialnr | TYPE MATNR, " | |||
| lv_ppeguid_error | TYPE MATNR, " | |||
| lv_if_plant | TYPE WERKS_D, " | |||
| lv_if_special_stock_val | TYPE KZBWS, " | |||
| lv_if_sales_doc | TYPE VBELN_VA, " | |||
| lv_if_sales_doc_item | TYPE POSNR_VA, " | |||
| lv_if_work_breakdown_structure | TYPE PS_POSNR, " | |||
| lv_if_postdate | TYPE BUDAT. " |
|   CALL FUNCTION 'PPC1WP_GOODS_RECEIPT' "WIP update for Goods Receipt |
| EXPORTING | ||
| IF_ORDERID | = lv_if_orderid | |
| IF_DOCDATE | = lv_if_docdate | |
| IF_ACCASSOBJ | = lv_if_accassobj | |
| IF_FLG_REVERSAL | = lv_if_flg_reversal | |
| IF_REPPOINT | = lv_if_reppoint | |
| IF_HEADID | = lv_if_headid | |
| IF_FLG_SCRAP | = lv_if_flg_scrap | |
| IF_HEADQUANT | = lv_if_headquant | |
| IF_MATERIALNR | = lv_if_materialnr | |
| IF_PLANT | = lv_if_plant | |
| IF_SPECIAL_STOCK_VAL | = lv_if_special_stock_val | |
| IF_SALES_DOC | = lv_if_sales_doc | |
| IF_SALES_DOC_ITEM | = lv_if_sales_doc_item | |
| IF_WORK_BREAKDOWN_STRUCTURE | = lv_if_work_breakdown_structure | |
| IF_POSTDATE | = lv_if_postdate | |
| IMPORTING | ||
| ET_BELNR_TAB | = lv_et_belnr_tab | |
| EXCEPTIONS | ||
| ERROR_GET_COMP = 1 | ||
| REPPOINT_ERROR = 2 | ||
| PPEGUID_ERROR = 3 | ||
| . " PPC1WP_GOODS_RECEIPT | ||
ABAP code using 7.40 inline data declarations to call FM PPC1WP_GOODS_RECEIPT
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 ORDERID FROM PPC_HEAD INTO @DATA(ld_if_orderid). | ||||
| "SELECT single HEADID FROM PPC_HEAD INTO @DATA(ld_if_headid). | ||||
Search for further information about these or an SAP related objects