SAP META_PO_GETITEMS Function Module for Display purchase order items









META_PO_GETITEMS is a standard meta po getitems SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display purchase order items 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 meta po getitems FM, simply by entering the name META_PO_GETITEMS into the relevant SAP transaction such as SE37 or SE38.

Function Group: BBP_BD_META_BAPIS
Program Name: SAPLBBP_BD_META_BAPIS
Main Program: SAPLBBP_BD_META_BAPIS
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function META_PO_GETITEMS 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 'META_PO_GETITEMS'"Display purchase order items
EXPORTING
* PURCHASEORDER = "Purchasing Document Number
* MAT_GRP = "Material group
* I_PRODUCT_GUID = "Interner, eindeutiger Identifikator des Produkts
* I_ORDERED_PROD = "Eingegebener Produktname
* I_PRODUCT_SRC_SYS = "Logisches System, aus dem das Produkt stammt
* ITEM_CAT = "Item category in purchasing document
* ACCTASSCAT = "Account assignment category
* PLANT = "Plant
* TRACKINGNO = "Requirement Tracking Number
* SHORT_TEXT = "Short text
* CREATED_BY = "Name of Person who Created the Object
* DOC_TYPE = "Einkaufsbelegart
* PREQ_NAME = ' ' "Name of requisitioner/requester
* WITH_PO_HEADERS = ' ' "
* DELETED_ITEMS = ' ' "
* ITEMS_OPEN_FOR_RECEIPT = ' ' "
* LOGICAL_SYSTEM = "
* DEL_DATE_FROM = "Lieferdatum
* DEL_DATE_TO = "Lieferdatum
* ACCTASSFLDVAL = "Transfer Structure: Display/List: PO Account Assignment
* SUP_PROD_NUM = "Material number used by vendor
* DOC_DATE = "Datum des Einkaufsbelegs
* DOC_DATE_TO = "Purchasing document date
* PUR_GROUP = "Einkäufergruppe
* PURCH_ORG = "Purchasing organization
* VENDOR = "Vendor's account number
* SUPPL_PLANT = "Supplying (issuing) plant in case of stock transport order
* MATERIAL = "Material Number

TABLES
* PO_HEADERS = "Übergabestruktur Anzeigen/Listen - Bestellkopf mit Lief.Name
PO_ITEMS = "EBP: Übergabestruktur Bestellposition
* PO_SELECTION = "Struktur für Bestellselektion
* RETURN = "
* CONTROL_RECORD = "
* IT_REF_DOC_NO = "Range-Struktur für XBLNR
* IT_PURCHASEORDER = "Range_struktur für EBELN
* IT_ORDERED_PROD = "Interface Struktur für Ranges über die Produkt-ID
.



IMPORTING Parameters details for META_PO_GETITEMS

PURCHASEORDER - Purchasing Document Number

Data type: BBPS_BAPIEKKO-PO_NUMBER
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAT_GRP - Material group

Data type: BBPS_BAPIEKPO-MAT_GRP
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PRODUCT_GUID - Interner, eindeutiger Identifikator des Produkts

Data type: COMT_PRODUCT_GUID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ORDERED_PROD - Eingegebener Produktname

Data type: CRMT_ORDERED_PROD_DB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PRODUCT_SRC_SYS - Logisches System, aus dem das Produkt stammt

Data type: CRMT_PRODUCT_SRC_SYS
Optional: Yes
Call by Reference: No ( called with pass by value option)

ITEM_CAT - Item category in purchasing document

Data type: BBPS_BAPIEKPO-ITEM_CAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

ACCTASSCAT - Account assignment category

Data type: BBPS_BAPIEKPO-ACCTASSCAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLANT - Plant

Data type: BBPS_BAPIEKPO-PLANT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TRACKINGNO - Requirement Tracking Number

Data type: BBPS_BAPIEKPO-TRACKINGNO
Optional: Yes
Call by Reference: No ( called with pass by value option)

SHORT_TEXT - Short text

Data type: BBPS_BAPIEKPO-SHORT_TEXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

CREATED_BY - Name of Person who Created the Object

Data type: BBPS_BAPIEKKOC-CREATED_BY
Optional: Yes
Call by Reference: No ( called with pass by value option)

DOC_TYPE - Einkaufsbelegart

Data type: BBPS_BAPIEKKO-DOC_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PREQ_NAME - Name of requisitioner/requester

Data type: BBPS_BAPIEKPOC-PREQ_NAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_PO_HEADERS -

Data type: BAPIMMPARA-SELECTION
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DELETED_ITEMS -

Data type: BAPIMMPARA-SELECTION
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ITEMS_OPEN_FOR_RECEIPT -

Data type: BAPIMMPARA-SELECTION
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LOGICAL_SYSTEM -

Data type: BBP_BACKEND_DEST-LOG_SYS
Optional: Yes
Call by Reference: No ( called with pass by value option)

DEL_DATE_FROM - Lieferdatum

Data type: BBP_BAPI_EEIND_PI
Optional: Yes
Call by Reference: No ( called with pass by value option)

DEL_DATE_TO - Lieferdatum

Data type: BBP_BAPI_EEIND_PI
Optional: Yes
Call by Reference: No ( called with pass by value option)

ACCTASSFLDVAL - Transfer Structure: Display/List: PO Account Assignment

Data type: BBPS_BAPIEKKN
Optional: Yes
Call by Reference: No ( called with pass by value option)

SUP_PROD_NUM - Material number used by vendor

Data type: BBPS_BAPIEKPO-VEND_MAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

DOC_DATE - Datum des Einkaufsbelegs

Data type: BBPS_BAPIEKKO-DOC_DATE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DOC_DATE_TO - Purchasing document date

Data type: BBPS_BAPIEKKO-DOC_DATE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PUR_GROUP - Einkäufergruppe

Data type: BBPS_BAPIEKKO-PUR_GROUP
Optional: Yes
Call by Reference: No ( called with pass by value option)

PURCH_ORG - Purchasing organization

Data type: BBPS_BAPIEKKO-PURCH_ORG
Optional: Yes
Call by Reference: No ( called with pass by value option)

VENDOR - Vendor's account number

Data type: BBPS_BAPIEKKO-VENDOR
Optional: Yes
Call by Reference: No ( called with pass by value option)

SUPPL_PLANT - Supplying (issuing) plant in case of stock transport order

Data type: BBPS_BAPIEKKO-SUPPL_PLNT
Optional: Yes
Call by Reference: No ( called with pass by value option)

MATERIAL - Material Number

Data type: BBPS_BAPIEKPO-MATERIAL
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for META_PO_GETITEMS

PO_HEADERS - Übergabestruktur Anzeigen/Listen - Bestellkopf mit Lief.Name

Data type: BBPS_BAPIEKKOL
Optional: Yes
Call by Reference: Yes

PO_ITEMS - EBP: Übergabestruktur Bestellposition

Data type: BBPS_IF_BAPIEKPOC_PI
Optional: No
Call by Reference: Yes

PO_SELECTION - Struktur für Bestellselektion

Data type: BBPS_IF_BAPIPOKEY_PI
Optional: Yes
Call by Reference: Yes

RETURN -

Data type: BAPIRETURN
Optional: Yes
Call by Reference: No ( called with pass by value option)

CONTROL_RECORD -

Data type: BBP_CONTROL_RECORD
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_REF_DOC_NO - Range-Struktur für XBLNR

Data type: BBP_PDS_RANGE_REF_DOC_NO
Optional: Yes
Call by Reference: Yes

IT_PURCHASEORDER - Range_struktur für EBELN

Data type: BBP_RANGE_EBELN
Optional: Yes
Call by Reference: Yes

IT_ORDERED_PROD - Interface Struktur für Ranges über die Produkt-ID

Data type: BBP_PDS_RANGE_ORDERED_PROD
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for META_PO_GETITEMS 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:
lt_po_headers  TYPE STANDARD TABLE OF BBPS_BAPIEKKOL, "   
lv_purchaseorder  TYPE BBPS_BAPIEKKO-PO_NUMBER, "   
lv_mat_grp  TYPE BBPS_BAPIEKPO-MAT_GRP, "   
lv_i_product_guid  TYPE COMT_PRODUCT_GUID, "   
lv_i_ordered_prod  TYPE CRMT_ORDERED_PROD_DB, "   
lv_i_product_src_sys  TYPE CRMT_PRODUCT_SRC_SYS, "   
lv_item_cat  TYPE BBPS_BAPIEKPO-ITEM_CAT, "   
lv_acctasscat  TYPE BBPS_BAPIEKPO-ACCTASSCAT, "   
lv_plant  TYPE BBPS_BAPIEKPO-PLANT, "   
lv_trackingno  TYPE BBPS_BAPIEKPO-TRACKINGNO, "   
lv_short_text  TYPE BBPS_BAPIEKPO-SHORT_TEXT, "   
lv_created_by  TYPE BBPS_BAPIEKKOC-CREATED_BY, "   
lv_doc_type  TYPE BBPS_BAPIEKKO-DOC_TYPE, "   
lt_po_items  TYPE STANDARD TABLE OF BBPS_IF_BAPIEKPOC_PI, "   
lv_preq_name  TYPE BBPS_BAPIEKPOC-PREQ_NAME, "   SPACE
lv_with_po_headers  TYPE BAPIMMPARA-SELECTION, "   SPACE
lv_deleted_items  TYPE BAPIMMPARA-SELECTION, "   SPACE
lv_items_open_for_receipt  TYPE BAPIMMPARA-SELECTION, "   SPACE
lv_logical_system  TYPE BBP_BACKEND_DEST-LOG_SYS, "   
lv_del_date_from  TYPE BBP_BAPI_EEIND_PI, "   
lv_del_date_to  TYPE BBP_BAPI_EEIND_PI, "   
lv_acctassfldval  TYPE BBPS_BAPIEKKN, "   
lv_sup_prod_num  TYPE BBPS_BAPIEKPO-VEND_MAT, "   
lv_doc_date  TYPE BBPS_BAPIEKKO-DOC_DATE, "   
lt_po_selection  TYPE STANDARD TABLE OF BBPS_IF_BAPIPOKEY_PI, "   
lt_return  TYPE STANDARD TABLE OF BAPIRETURN, "   
lv_doc_date_to  TYPE BBPS_BAPIEKKO-DOC_DATE, "   
lv_pur_group  TYPE BBPS_BAPIEKKO-PUR_GROUP, "   
lt_control_record  TYPE STANDARD TABLE OF BBP_CONTROL_RECORD, "   
lv_purch_org  TYPE BBPS_BAPIEKKO-PURCH_ORG, "   
lt_it_ref_doc_no  TYPE STANDARD TABLE OF BBP_PDS_RANGE_REF_DOC_NO, "   
lv_vendor  TYPE BBPS_BAPIEKKO-VENDOR, "   
lt_it_purchaseorder  TYPE STANDARD TABLE OF BBP_RANGE_EBELN, "   
lv_suppl_plant  TYPE BBPS_BAPIEKKO-SUPPL_PLNT, "   
lt_it_ordered_prod  TYPE STANDARD TABLE OF BBP_PDS_RANGE_ORDERED_PROD, "   
lv_material  TYPE BBPS_BAPIEKPO-MATERIAL. "   

  CALL FUNCTION 'META_PO_GETITEMS'  "Display purchase order items
    EXPORTING
         PURCHASEORDER = lv_purchaseorder
         MAT_GRP = lv_mat_grp
         I_PRODUCT_GUID = lv_i_product_guid
         I_ORDERED_PROD = lv_i_ordered_prod
         I_PRODUCT_SRC_SYS = lv_i_product_src_sys
         ITEM_CAT = lv_item_cat
         ACCTASSCAT = lv_acctasscat
         PLANT = lv_plant
         TRACKINGNO = lv_trackingno
         SHORT_TEXT = lv_short_text
         CREATED_BY = lv_created_by
         DOC_TYPE = lv_doc_type
         PREQ_NAME = lv_preq_name
         WITH_PO_HEADERS = lv_with_po_headers
         DELETED_ITEMS = lv_deleted_items
         ITEMS_OPEN_FOR_RECEIPT = lv_items_open_for_receipt
         LOGICAL_SYSTEM = lv_logical_system
         DEL_DATE_FROM = lv_del_date_from
         DEL_DATE_TO = lv_del_date_to
         ACCTASSFLDVAL = lv_acctassfldval
         SUP_PROD_NUM = lv_sup_prod_num
         DOC_DATE = lv_doc_date
         DOC_DATE_TO = lv_doc_date_to
         PUR_GROUP = lv_pur_group
         PURCH_ORG = lv_purch_org
         VENDOR = lv_vendor
         SUPPL_PLANT = lv_suppl_plant
         MATERIAL = lv_material
    TABLES
         PO_HEADERS = lt_po_headers
         PO_ITEMS = lt_po_items
         PO_SELECTION = lt_po_selection
         RETURN = lt_return
         CONTROL_RECORD = lt_control_record
         IT_REF_DOC_NO = lt_it_ref_doc_no
         IT_PURCHASEORDER = lt_it_purchaseorder
         IT_ORDERED_PROD = lt_it_ordered_prod
. " META_PO_GETITEMS




ABAP code using 7.40 inline data declarations to call FM META_PO_GETITEMS

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 BBPS_BAPIEKKO INTO @DATA(ld_purchaseorder).
 
"SELECT single MAT_GRP FROM BBPS_BAPIEKPO INTO @DATA(ld_mat_grp).
 
 
 
 
"SELECT single ITEM_CAT FROM BBPS_BAPIEKPO INTO @DATA(ld_item_cat).
 
"SELECT single ACCTASSCAT FROM BBPS_BAPIEKPO INTO @DATA(ld_acctasscat).
 
"SELECT single PLANT FROM BBPS_BAPIEKPO INTO @DATA(ld_plant).
 
"SELECT single TRACKINGNO FROM BBPS_BAPIEKPO INTO @DATA(ld_trackingno).
 
"SELECT single SHORT_TEXT FROM BBPS_BAPIEKPO INTO @DATA(ld_short_text).
 
"SELECT single CREATED_BY FROM BBPS_BAPIEKKOC INTO @DATA(ld_created_by).
 
"SELECT single DOC_TYPE FROM BBPS_BAPIEKKO INTO @DATA(ld_doc_type).
 
 
"SELECT single PREQ_NAME FROM BBPS_BAPIEKPOC INTO @DATA(ld_preq_name).
DATA(ld_preq_name) = ' '.
 
"SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_with_po_headers).
DATA(ld_with_po_headers) = ' '.
 
"SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_deleted_items).
DATA(ld_deleted_items) = ' '.
 
"SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_items_open_for_receipt).
DATA(ld_items_open_for_receipt) = ' '.
 
"SELECT single LOG_SYS FROM BBP_BACKEND_DEST INTO @DATA(ld_logical_system).
 
 
 
 
"SELECT single VEND_MAT FROM BBPS_BAPIEKPO INTO @DATA(ld_sup_prod_num).
 
"SELECT single DOC_DATE FROM BBPS_BAPIEKKO INTO @DATA(ld_doc_date).
 
 
 
"SELECT single DOC_DATE FROM BBPS_BAPIEKKO INTO @DATA(ld_doc_date_to).
 
"SELECT single PUR_GROUP FROM BBPS_BAPIEKKO INTO @DATA(ld_pur_group).
 
 
"SELECT single PURCH_ORG FROM BBPS_BAPIEKKO INTO @DATA(ld_purch_org).
 
 
"SELECT single VENDOR FROM BBPS_BAPIEKKO INTO @DATA(ld_vendor).
 
 
"SELECT single SUPPL_PLNT FROM BBPS_BAPIEKKO INTO @DATA(ld_suppl_plant).
 
 
"SELECT single MATERIAL FROM BBPS_BAPIEKPO INTO @DATA(ld_material).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!