BAPI_PO_GET_LIST ( BAPI Function Module )


BAPI PO GET LIST function module introduction & syntax details

BAPI PO GET LIST

Function Module:
BAPI_PO_GET_LIST

Functionality
You
can use this method to list all purchase orders that have to be
released (approved) with a certain release code and group (collective
release). As of SAP Release 4.0A, use the method GetItemsForRelease of
the business object PurchaseOrder.

Pattern:

CALL FUNCTION ‘BAPI_PO_GET_LIST’
” EXPORTING
” REL_GROUP =
” REL_CODE =
” ITEMS_FOR_RELEASE = ‘X’
TABLES
PO_HEADERS =
” PO_ADDRESSES =
” PO_ADDRESSES_NEW =
PO_ITEMS =
” RETURN =
” EXCEPTIONS
” REL_CODE_MISSING = 1
” REL_AUTHORITY_CHECK_FAILED = 2
” OTHERS = 3
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.