SAP ADSUB_CHECK_PO Function Module for Functions for SAPMM06E









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

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



Function ADSUB_CHECK_PO 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 'ADSUB_CHECK_PO'"Functions for SAPMM06E
EXPORTING
* IV_PSTYP = "Item Category in Purchasing Document
* IV_SERRU = "Type of Subcontracting
* IV_DISUB_SOBKZ = "
* IV_UPTYP = "Subitem Category, Purchasing Document
* IV_UPVOR = "Subitems Exist
* IV_ANZSN = "
* IV_EBELN = "Purchasing Document Number
* IV_EBELP = "Item Number of Purchasing Document

IMPORTING
EV_ADRELEV = "
EV_RECURSIVE = "
EV_FWDXCHG = "

EXCEPTIONS
EX_NO_PO_FOUND = 1
.



IMPORTING Parameters details for ADSUB_CHECK_PO

IV_PSTYP - Item Category in Purchasing Document

Data type: EKPO-PSTYP
Optional: Yes
Call by Reference: Yes

IV_SERRU - Type of Subcontracting

Data type: EKPO-SERRU
Optional: Yes
Call by Reference: Yes

IV_DISUB_SOBKZ -

Data type: EKPO-DISUB_SOBKZ
Optional: Yes
Call by Reference: Yes

IV_UPTYP - Subitem Category, Purchasing Document

Data type: EKPO-UPTYP
Optional: Yes
Call by Reference: Yes

IV_UPVOR - Subitems Exist

Data type: EKPO-UPVOR
Optional: Yes
Call by Reference: Yes

IV_ANZSN -

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

IV_EBELN - Purchasing Document Number

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

IV_EBELP - Item Number of Purchasing Document

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

EXPORTING Parameters details for ADSUB_CHECK_PO

EV_ADRELEV -

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

EV_RECURSIVE -

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

EV_FWDXCHG -

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

EXCEPTIONS details

EX_NO_PO_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ADSUB_CHECK_PO 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_iv_pstyp  TYPE EKPO-PSTYP, "   
lv_ev_adrelev  TYPE ADSUB_D_ISADS, "   
lv_ex_no_po_found  TYPE ADSUB_D_ISADS, "   
lv_iv_serru  TYPE EKPO-SERRU, "   
lv_ev_recursive  TYPE ADSUB_D_RECURSIVE, "   
lv_ev_fwdxchg  TYPE ADSUB_D_FWDEXCHG, "   
lv_iv_disub_sobkz  TYPE EKPO-DISUB_SOBKZ, "   
lv_iv_uptyp  TYPE EKPO-UPTYP, "   
lv_iv_upvor  TYPE EKPO-UPVOR, "   
lv_iv_anzsn  TYPE ANZSN, "   
lv_iv_ebeln  TYPE EBELN, "   
lv_iv_ebelp  TYPE EBELP. "   

  CALL FUNCTION 'ADSUB_CHECK_PO'  "Functions for SAPMM06E
    EXPORTING
         IV_PSTYP = lv_iv_pstyp
         IV_SERRU = lv_iv_serru
         IV_DISUB_SOBKZ = lv_iv_disub_sobkz
         IV_UPTYP = lv_iv_uptyp
         IV_UPVOR = lv_iv_upvor
         IV_ANZSN = lv_iv_anzsn
         IV_EBELN = lv_iv_ebeln
         IV_EBELP = lv_iv_ebelp
    IMPORTING
         EV_ADRELEV = lv_ev_adrelev
         EV_RECURSIVE = lv_ev_recursive
         EV_FWDXCHG = lv_ev_fwdxchg
    EXCEPTIONS
        EX_NO_PO_FOUND = 1
. " ADSUB_CHECK_PO




ABAP code using 7.40 inline data declarations to call FM ADSUB_CHECK_PO

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 PSTYP FROM EKPO INTO @DATA(ld_iv_pstyp).
 
 
 
"SELECT single SERRU FROM EKPO INTO @DATA(ld_iv_serru).
 
 
 
"SELECT single DISUB_SOBKZ FROM EKPO INTO @DATA(ld_iv_disub_sobkz).
 
"SELECT single UPTYP FROM EKPO INTO @DATA(ld_iv_uptyp).
 
"SELECT single UPVOR FROM EKPO INTO @DATA(ld_iv_upvor).
 
 
 
 


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!