SAP BBP_PD_GETITEMS_31I Function Module for NOTRANSL: Auflisten von Einkaufsbelegen
BBP_PD_GETITEMS_31I is a standard bbp pd getitems 31i 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: Auflisten von Einkaufsbelegen 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 bbp pd getitems 31i FM, simply by entering the name BBP_PD_GETITEMS_31I into the relevant SAP transaction such as SE37 or SE38.
Function Group: BBPM
Program Name: SAPLBBPM
Main Program: SAPLBBPM
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BBP_PD_GETITEMS_31I 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 'BBP_PD_GETITEMS_31I'"NOTRANSL: Auflisten von Einkaufsbelegen.
EXPORTING
* PURCHASEORDER = "Purchasing Document Number
* PLANT = "Plant
* TRACKINGNO = "Requirement Tracking Number
* SHORT_TEXT = "Short Text
* CREATED_BY = "Name of Person who Created the Object
* WITH_PO_HEADERS = "Selection flag
* DELETED_ITEMS = "Selection flag
* ITEMS_OPEN_FOR_RECEIPT = "Selection flag
* DOC_TYPE = "Purchasing Document Type
* DOC_DATE = "Purchasing Document Date
* PUR_GROUP = "Purchasing Group
* PURCH_ORG = "Purchasing Organization
* SUPPL_PLANT = "Supplying (issuing) plant in case of stock transport order
* MAT_GRP = "Material Group
* ITEM_CAT = "Item Category in Purchasing Document
* ACCTASSCAT = "Account assignment category
TABLES
* MATERIAL_RANGE = "Structure for Material Master Interface: Material No. Range
* VENDOR_RANGE = "Structure for Material Master Interface: Vendor Range
* PO_HEADERS = "Transfer Structure: Display/List: PO Header with Vendor Name
PO_ITEMS = "Transfer Structure: Create/List PO Item (3.1I)
* RETURN = "Return Parameter
IMPORTING Parameters details for BBP_PD_GETITEMS_31I
PURCHASEORDER - Purchasing Document Number
Data type: BBPEKKOC-PO_NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
PLANT - Plant
Data type: BBPEKPOC-PLANTOptional: Yes
Call by Reference: No ( called with pass by value option)
TRACKINGNO - Requirement Tracking Number
Data type: BBPEKPOC-TRACKINGNOOptional: Yes
Call by Reference: No ( called with pass by value option)
SHORT_TEXT - Short Text
Data type: BBPEKPOC-SHORT_TEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
CREATED_BY - Name of Person who Created the Object
Data type: BBPEKKOC-CREATED_BYOptional: Yes
Call by Reference: No ( called with pass by value option)
WITH_PO_HEADERS - Selection flag
Data type: BAPIMMPARA-SELECTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
DELETED_ITEMS - Selection flag
Data type: BAPIMMPARA-SELECTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
ITEMS_OPEN_FOR_RECEIPT - Selection flag
Data type: BAPIMMPARA-SELECTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
DOC_TYPE - Purchasing Document Type
Data type: BBPEKKOC-DOC_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
DOC_DATE - Purchasing Document Date
Data type: BBPEKKOC-DOC_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
PUR_GROUP - Purchasing Group
Data type: BBPEKKOC-PUR_GROUPOptional: Yes
Call by Reference: No ( called with pass by value option)
PURCH_ORG - Purchasing Organization
Data type: BBPEKKOC-PURCH_ORGOptional: Yes
Call by Reference: No ( called with pass by value option)
SUPPL_PLANT - Supplying (issuing) plant in case of stock transport order
Data type: BBPEKKOC-SUPPL_PLNTOptional: Yes
Call by Reference: No ( called with pass by value option)
MAT_GRP - Material Group
Data type: BBPEKPOC-MAT_GRPOptional: Yes
Call by Reference: No ( called with pass by value option)
ITEM_CAT - Item Category in Purchasing Document
Data type: BBPEKPOC-ITEM_CATOptional: Yes
Call by Reference: No ( called with pass by value option)
ACCTASSCAT - Account assignment category
Data type: BBPEKPOC-ACCTASSCATOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BBP_PD_GETITEMS_31I
MATERIAL_RANGE - Structure for Material Master Interface: Material No. Range
Data type: BBPMATRAMOptional: Yes
Call by Reference: No ( called with pass by value option)
VENDOR_RANGE - Structure for Material Master Interface: Vendor Range
Data type: BBPVENDRAMOptional: Yes
Call by Reference: No ( called with pass by value option)
PO_HEADERS - Transfer Structure: Display/List: PO Header with Vendor Name
Data type: BBPEKKOLOptional: Yes
Call by Reference: No ( called with pass by value option)
PO_ITEMS - Transfer Structure: Create/List PO Item (3.1I)
Data type: BBPEKPOC1Optional: No
Call by Reference: No ( called with pass by value option)
RETURN - Return Parameter
Data type: BAPIRETURNOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BBP_PD_GETITEMS_31I 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_purchaseorder | TYPE BBPEKKOC-PO_NUMBER, " | |||
| lt_material_range | TYPE STANDARD TABLE OF BBPMATRAM, " | |||
| lv_plant | TYPE BBPEKPOC-PLANT, " | |||
| lv_trackingno | TYPE BBPEKPOC-TRACKINGNO, " | |||
| lv_short_text | TYPE BBPEKPOC-SHORT_TEXT, " | |||
| lv_created_by | TYPE BBPEKKOC-CREATED_BY, " | |||
| lv_with_po_headers | TYPE BAPIMMPARA-SELECTION, " | |||
| lv_deleted_items | TYPE BAPIMMPARA-SELECTION, " | |||
| lv_items_open_for_receipt | TYPE BAPIMMPARA-SELECTION, " | |||
| lv_doc_type | TYPE BBPEKKOC-DOC_TYPE, " | |||
| lt_vendor_range | TYPE STANDARD TABLE OF BBPVENDRAM, " | |||
| lv_doc_date | TYPE BBPEKKOC-DOC_DATE, " | |||
| lt_po_headers | TYPE STANDARD TABLE OF BBPEKKOL, " | |||
| lt_po_items | TYPE STANDARD TABLE OF BBPEKPOC1, " | |||
| lv_pur_group | TYPE BBPEKKOC-PUR_GROUP, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRETURN, " | |||
| lv_purch_org | TYPE BBPEKKOC-PURCH_ORG, " | |||
| lv_suppl_plant | TYPE BBPEKKOC-SUPPL_PLNT, " | |||
| lv_mat_grp | TYPE BBPEKPOC-MAT_GRP, " | |||
| lv_item_cat | TYPE BBPEKPOC-ITEM_CAT, " | |||
| lv_acctasscat | TYPE BBPEKPOC-ACCTASSCAT. " |
|   CALL FUNCTION 'BBP_PD_GETITEMS_31I' "NOTRANSL: Auflisten von Einkaufsbelegen |
| EXPORTING | ||
| PURCHASEORDER | = lv_purchaseorder | |
| PLANT | = lv_plant | |
| TRACKINGNO | = lv_trackingno | |
| SHORT_TEXT | = lv_short_text | |
| CREATED_BY | = lv_created_by | |
| WITH_PO_HEADERS | = lv_with_po_headers | |
| DELETED_ITEMS | = lv_deleted_items | |
| ITEMS_OPEN_FOR_RECEIPT | = lv_items_open_for_receipt | |
| DOC_TYPE | = lv_doc_type | |
| DOC_DATE | = lv_doc_date | |
| PUR_GROUP | = lv_pur_group | |
| PURCH_ORG | = lv_purch_org | |
| SUPPL_PLANT | = lv_suppl_plant | |
| MAT_GRP | = lv_mat_grp | |
| ITEM_CAT | = lv_item_cat | |
| ACCTASSCAT | = lv_acctasscat | |
| TABLES | ||
| MATERIAL_RANGE | = lt_material_range | |
| VENDOR_RANGE | = lt_vendor_range | |
| PO_HEADERS | = lt_po_headers | |
| PO_ITEMS | = lt_po_items | |
| RETURN | = lt_return | |
| . " BBP_PD_GETITEMS_31I | ||
ABAP code using 7.40 inline data declarations to call FM BBP_PD_GETITEMS_31I
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 PO_NUMBER FROM BBPEKKOC INTO @DATA(ld_purchaseorder). | ||||
| "SELECT single PLANT FROM BBPEKPOC INTO @DATA(ld_plant). | ||||
| "SELECT single TRACKINGNO FROM BBPEKPOC INTO @DATA(ld_trackingno). | ||||
| "SELECT single SHORT_TEXT FROM BBPEKPOC INTO @DATA(ld_short_text). | ||||
| "SELECT single CREATED_BY FROM BBPEKKOC INTO @DATA(ld_created_by). | ||||
| "SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_with_po_headers). | ||||
| "SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_deleted_items). | ||||
| "SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_items_open_for_receipt). | ||||
| "SELECT single DOC_TYPE FROM BBPEKKOC INTO @DATA(ld_doc_type). | ||||
| "SELECT single DOC_DATE FROM BBPEKKOC INTO @DATA(ld_doc_date). | ||||
| "SELECT single PUR_GROUP FROM BBPEKKOC INTO @DATA(ld_pur_group). | ||||
| "SELECT single PURCH_ORG FROM BBPEKKOC INTO @DATA(ld_purch_org). | ||||
| "SELECT single SUPPL_PLNT FROM BBPEKKOC INTO @DATA(ld_suppl_plant). | ||||
| "SELECT single MAT_GRP FROM BBPEKPOC INTO @DATA(ld_mat_grp). | ||||
| "SELECT single ITEM_CAT FROM BBPEKPOC INTO @DATA(ld_item_cat). | ||||
| "SELECT single ACCTASSCAT FROM BBPEKPOC INTO @DATA(ld_acctasscat). | ||||
Search for further information about these or an SAP related objects