SAP ISAUTO_SIC_PD_GETITEMS Function Module for Get purchasing document items
ISAUTO_SIC_PD_GETITEMS is a standard isauto sic pd 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 Get purchasing document 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 isauto sic pd getitems FM, simply by entering the name ISAUTO_SIC_PD_GETITEMS into the relevant SAP transaction such as SE37 or SE38.
Function Group: ISAUTO_SIC_READ
Program Name: SAPLISAUTO_SIC_READ
Main Program: SAPLISAUTO_SIC_READ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISAUTO_SIC_PD_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 'ISAUTO_SIC_PD_GETITEMS'"Get purchasing document items.
EXPORTING
* PURCHASEORDER = "Purchasing document number
* ACCTASSCAT = "Account assignment category
* PLANT = "Plant
* TRACKINGNO = "Requirement tracking number
* SHORT_TEXT = "Short text
* CREATED_BY = "Name of person who created the object
* PREQ_NAME = "Name of requisitioner/requester
* WITH_PO_HEADERS = ' ' "Selection flag
* DELETED_ITEMS = ' ' "Selection flag
* ITEMS_OPEN_FOR_RECEIPT = ' ' "Selection flag
* EMATN = "Material number
* 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
TABLES
* MATERIAL_RANGE = "Range for Material Number (MATNR)
* VENDOR_RANGE = "BAPI Communication Structure: Range for Vendor
* PO_HEADERS = "Transfer Structure: Display/List: PO Header with Vendor Name
PO_ITEMS = "Transfer Structure: Create/List - PO Item
* RETURN = "Return parameter
IMPORTING Parameters details for ISAUTO_SIC_PD_GETITEMS
PURCHASEORDER - Purchasing document number
Data type: BAPIEKPOC-PO_NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
ACCTASSCAT - Account assignment category
Data type: BAPIEKPO-ACCTASSCATOptional: Yes
Call by Reference: No ( called with pass by value option)
PLANT - Plant
Data type: BAPIEKPO-PLANTOptional: Yes
Call by Reference: No ( called with pass by value option)
TRACKINGNO - Requirement tracking number
Data type: BAPIEKPOC-TRACKINGNOOptional: Yes
Call by Reference: No ( called with pass by value option)
SHORT_TEXT - Short text
Data type: BAPIEKPO-SHORT_TEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
CREATED_BY - Name of person who created the object
Data type: BAPIEKKOC-CREATED_BYOptional: Yes
Call by Reference: No ( called with pass by value option)
PREQ_NAME - Name of requisitioner/requester
Data type: BAPIEKPOC-PREQ_NAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
WITH_PO_HEADERS - Selection flag
Data type: BAPIMMPARA-SELECTIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DELETED_ITEMS - Selection flag
Data type: BAPIMMPARA-SELECTIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ITEMS_OPEN_FOR_RECEIPT - Selection flag
Data type: BAPIMMPARA-SELECTIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EMATN - Material number
Data type: EMATNROptional: Yes
Call by Reference: No ( called with pass by value option)
DOC_TYPE - Purchasing document type
Data type: BAPIEKKO-DOC_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
DOC_DATE - Purchasing document date
Data type: BAPIEKKO-DOC_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
PUR_GROUP - Purchasing group
Data type: BAPIEKKO-PUR_GROUPOptional: Yes
Call by Reference: No ( called with pass by value option)
PURCH_ORG - Purchasing organization
Data type: BAPIEKKO-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: BAPIEKKO-SUPPL_PLNTOptional: Yes
Call by Reference: No ( called with pass by value option)
MAT_GRP - Material group
Data type: BAPIEKPO-MAT_GRPOptional: Yes
Call by Reference: No ( called with pass by value option)
ITEM_CAT - Item category in purchasing document
Data type: BAPIEKPO-ITEM_CATOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISAUTO_SIC_PD_GETITEMS
MATERIAL_RANGE - Range for Material Number (MATNR)
Data type: MAT_RANGEOptional: Yes
Call by Reference: Yes
VENDOR_RANGE - BAPI Communication Structure: Range for Vendor
Data type: BAPI2017_GM_VENDOR_RAOptional: Yes
Call by Reference: Yes
PO_HEADERS - Transfer Structure: Display/List: PO Header with Vendor Name
Data type: BAPIEKKOLOptional: Yes
Call by Reference: Yes
PO_ITEMS - Transfer Structure: Create/List - PO Item
Data type: BAPIEKPOCOptional: No
Call by Reference: Yes
RETURN - Return parameter
Data type: BAPIRETURN1Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for ISAUTO_SIC_PD_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: | ||||
| lv_purchaseorder | TYPE BAPIEKPOC-PO_NUMBER, " | |||
| lt_material_range | TYPE STANDARD TABLE OF MAT_RANGE, " | |||
| lv_acctasscat | TYPE BAPIEKPO-ACCTASSCAT, " | |||
| lv_plant | TYPE BAPIEKPO-PLANT, " | |||
| lv_trackingno | TYPE BAPIEKPOC-TRACKINGNO, " | |||
| lv_short_text | TYPE BAPIEKPO-SHORT_TEXT, " | |||
| lv_created_by | TYPE BAPIEKKOC-CREATED_BY, " | |||
| lv_preq_name | TYPE BAPIEKPOC-PREQ_NAME, " | |||
| 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_ematn | TYPE EMATNR, " | |||
| lt_vendor_range | TYPE STANDARD TABLE OF BAPI2017_GM_VENDOR_RA, " | |||
| lv_doc_type | TYPE BAPIEKKO-DOC_TYPE, " | |||
| lt_po_headers | TYPE STANDARD TABLE OF BAPIEKKOL, " | |||
| lv_doc_date | TYPE BAPIEKKO-DOC_DATE, " | |||
| lt_po_items | TYPE STANDARD TABLE OF BAPIEKPOC, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRETURN1, " | |||
| lv_pur_group | TYPE BAPIEKKO-PUR_GROUP, " | |||
| lv_purch_org | TYPE BAPIEKKO-PURCH_ORG, " | |||
| lv_suppl_plant | TYPE BAPIEKKO-SUPPL_PLNT, " | |||
| lv_mat_grp | TYPE BAPIEKPO-MAT_GRP, " | |||
| lv_item_cat | TYPE BAPIEKPO-ITEM_CAT. " |
|   CALL FUNCTION 'ISAUTO_SIC_PD_GETITEMS' "Get purchasing document items |
| EXPORTING | ||
| PURCHASEORDER | = lv_purchaseorder | |
| ACCTASSCAT | = lv_acctasscat | |
| PLANT | = lv_plant | |
| TRACKINGNO | = lv_trackingno | |
| SHORT_TEXT | = lv_short_text | |
| CREATED_BY | = lv_created_by | |
| 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 | |
| EMATN | = lv_ematn | |
| 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 | |
| TABLES | ||
| MATERIAL_RANGE | = lt_material_range | |
| VENDOR_RANGE | = lt_vendor_range | |
| PO_HEADERS | = lt_po_headers | |
| PO_ITEMS | = lt_po_items | |
| RETURN | = lt_return | |
| . " ISAUTO_SIC_PD_GETITEMS | ||
ABAP code using 7.40 inline data declarations to call FM ISAUTO_SIC_PD_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 BAPIEKPOC INTO @DATA(ld_purchaseorder). | ||||
| "SELECT single ACCTASSCAT FROM BAPIEKPO INTO @DATA(ld_acctasscat). | ||||
| "SELECT single PLANT FROM BAPIEKPO INTO @DATA(ld_plant). | ||||
| "SELECT single TRACKINGNO FROM BAPIEKPOC INTO @DATA(ld_trackingno). | ||||
| "SELECT single SHORT_TEXT FROM BAPIEKPO INTO @DATA(ld_short_text). | ||||
| "SELECT single CREATED_BY FROM BAPIEKKOC INTO @DATA(ld_created_by). | ||||
| "SELECT single PREQ_NAME FROM BAPIEKPOC INTO @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 DOC_TYPE FROM BAPIEKKO INTO @DATA(ld_doc_type). | ||||
| "SELECT single DOC_DATE FROM BAPIEKKO INTO @DATA(ld_doc_date). | ||||
| "SELECT single PUR_GROUP FROM BAPIEKKO INTO @DATA(ld_pur_group). | ||||
| "SELECT single PURCH_ORG FROM BAPIEKKO INTO @DATA(ld_purch_org). | ||||
| "SELECT single SUPPL_PLNT FROM BAPIEKKO INTO @DATA(ld_suppl_plant). | ||||
| "SELECT single MAT_GRP FROM BAPIEKPO INTO @DATA(ld_mat_grp). | ||||
| "SELECT single ITEM_CAT FROM BAPIEKPO INTO @DATA(ld_item_cat). | ||||
Search for further information about these or an SAP related objects