SAP LE_ATP_CHECK_GROUP Function Module for NOTRANSL: Verfügbarkeitsprüfung und Bedarfsverarbeitung einer Gruppe von P
LE_ATP_CHECK_GROUP is a standard le atp check group 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: Verfügbarkeitsprüfung und Bedarfsverarbeitung einer Gruppe von P 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 le atp check group FM, simply by entering the name LE_ATP_CHECK_GROUP into the relevant SAP transaction such as SE37 or SE38.
Function Group: LE_ATP_CHECK
Program Name: SAPLLE_ATP_CHECK
Main Program: SAPLLE_ATP_CHECK
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LE_ATP_CHECK_GROUP 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 'LE_ATP_CHECK_GROUP'"NOTRANSL: Verfügbarkeitsprüfung und Bedarfsverarbeitung einer Gruppe von P.
EXPORTING
IF_PERFORM_PRESTEP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IS_XVBAP = "
IS_CVBAP = "
* IS_MAT = "
IF_PERFORM_CHECK = "DE-EN-LANG-SWITCH-NO-TRANSLATION
IF_SORTED_CHECK = "DE-EN-LANG-SWITCH-NO-TRANSLATION
IF_SIMULATED_CHECK = "DE-EN-LANG-SWITCH-NO-TRANSLATION
IS_ITEM = "
* IS_ITEM_OLD = "
* IS_VBAPF = "
* IS_VBAK = "
IS_I_CONTROL = "
TABLES
* LT_XVBAP = "
LT_EKET = "
LT_ITEM = "LES: Delivery Item Data Used for ATP Check
* LT_ITEM_OLD = "LES: Delivery Item Data Used for ATP Check
LT_I_CONTROL = "LES: Item-Specific Control Parameters Used for ATP
* LT_VBAK = "Sales Document: Header Data
* LT_VBAPF = "Document-Flow Data from the Order Item Used in LES ATP
* LT_SORT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
LT_OUTDATA = "Output Data of the Delivery's ATP Group Check
LT_CVBAP = "
* LT_MAT = "
* LT_VBEP = "
* LT_VBUP = "
* LT_OR_VBPA = "
* LT_SHP_VBPA = "
* LT_VBFA = "
LT_EKPO = "
EXCEPTIONS
ENQUEUE_FEHLER = 1 MARC_MATNR_GESPERRT = 2 MARC_VPMAT_GESPERRT = 3
IMPORTING Parameters details for LE_ATP_CHECK_GROUP
IF_PERFORM_PRESTEP - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
IS_XVBAP -
Data type: VBAPVBOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_CVBAP -
Data type: VBAPVBOptional: No
Call by Reference: No ( called with pass by value option)
IS_MAT -
Data type: LES_SHP_ATP_MATOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_PERFORM_CHECK - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
IF_SORTED_CHECK - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
IF_SIMULATED_CHECK - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
IS_ITEM -
Data type: LES_SHP_ATP_ITEMOptional: No
Call by Reference: No ( called with pass by value option)
IS_ITEM_OLD -
Data type: LES_SHP_ATP_ITEMOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_VBAPF -
Data type: LES_SHP_ATP_VBAPFOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_VBAK -
Data type: LES_SHP_ATP_VBAKOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_I_CONTROL -
Data type: LES_SHP_ATP_ITEM_CONTROLOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for LE_ATP_CHECK_GROUP
LT_XVBAP -
Data type: VBAPVBOptional: Yes
Call by Reference: Yes
LT_EKET -
Data type: EKETOptional: No
Call by Reference: No ( called with pass by value option)
LT_ITEM - LES: Delivery Item Data Used for ATP Check
Data type: LES_SHP_ATP_ITEMOptional: No
Call by Reference: Yes
LT_ITEM_OLD - LES: Delivery Item Data Used for ATP Check
Data type: LES_SHP_ATP_ITEMOptional: Yes
Call by Reference: Yes
LT_I_CONTROL - LES: Item-Specific Control Parameters Used for ATP
Data type: LES_SHP_ATP_ITEM_CONTROLOptional: No
Call by Reference: Yes
LT_VBAK - Sales Document: Header Data
Data type: LES_SHP_ATP_VBAKOptional: Yes
Call by Reference: Yes
LT_VBAPF - Document-Flow Data from the Order Item Used in LES ATP
Data type: LES_SHP_ATP_VBAPFOptional: Yes
Call by Reference: Yes
LT_SORT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: LES_SHP_ATP_SORTOptional: Yes
Call by Reference: Yes
LT_OUTDATA - Output Data of the Delivery's ATP Group Check
Data type: LES_ATP_GRP_OUTDATAOptional: No
Call by Reference: Yes
LT_CVBAP -
Data type: VBAPVBOptional: No
Call by Reference: No ( called with pass by value option)
LT_MAT -
Data type: LES_SHP_ATP_MATOptional: Yes
Call by Reference: Yes
LT_VBEP -
Data type: VBEPVBOptional: Yes
Call by Reference: Yes
LT_VBUP -
Data type: VBUPVBOptional: Yes
Call by Reference: Yes
LT_OR_VBPA -
Data type: VBPAVBOptional: Yes
Call by Reference: Yes
LT_SHP_VBPA -
Data type: VBPAVBOptional: Yes
Call by Reference: Yes
LT_VBFA -
Data type: VBFAVBOptional: Yes
Call by Reference: Yes
LT_EKPO -
Data type: EKPOOptional: No
Call by Reference: Yes
EXCEPTIONS details
ENQUEUE_FEHLER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MARC_MATNR_GESPERRT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MARC_VPMAT_GESPERRT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LE_ATP_CHECK_GROUP 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_lt_xvbap | TYPE STANDARD TABLE OF VBAPVB, " | |||
| lv_enqueue_fehler | TYPE VBAPVB, " | |||
| lv_if_perform_prestep | TYPE XFELD, " | |||
| lt_lt_eket | TYPE STANDARD TABLE OF EKET, " | |||
| lv_is_xvbap | TYPE VBAPVB, " | |||
| lt_lt_item | TYPE STANDARD TABLE OF LES_SHP_ATP_ITEM, " | |||
| lv_is_cvbap | TYPE VBAPVB, " | |||
| lv_is_mat | TYPE LES_SHP_ATP_MAT, " | |||
| lt_lt_item_old | TYPE STANDARD TABLE OF LES_SHP_ATP_ITEM, " | |||
| lt_lt_i_control | TYPE STANDARD TABLE OF LES_SHP_ATP_ITEM_CONTROL, " | |||
| lt_lt_vbak | TYPE STANDARD TABLE OF LES_SHP_ATP_VBAK, " | |||
| lt_lt_vbapf | TYPE STANDARD TABLE OF LES_SHP_ATP_VBAPF, " | |||
| lt_lt_sort | TYPE STANDARD TABLE OF LES_SHP_ATP_SORT, " | |||
| lt_lt_outdata | TYPE STANDARD TABLE OF LES_ATP_GRP_OUTDATA, " | |||
| lt_lt_cvbap | TYPE STANDARD TABLE OF VBAPVB, " | |||
| lv_if_perform_check | TYPE XFELD, " | |||
| lv_marc_matnr_gesperrt | TYPE XFELD, " | |||
| lt_lt_mat | TYPE STANDARD TABLE OF LES_SHP_ATP_MAT, " | |||
| lv_if_sorted_check | TYPE XFELD, " | |||
| lv_marc_vpmat_gesperrt | TYPE XFELD, " | |||
| lt_lt_vbep | TYPE STANDARD TABLE OF VBEPVB, " | |||
| lv_if_simulated_check | TYPE XFELD, " | |||
| lv_is_item | TYPE LES_SHP_ATP_ITEM, " | |||
| lt_lt_vbup | TYPE STANDARD TABLE OF VBUPVB, " | |||
| lt_lt_or_vbpa | TYPE STANDARD TABLE OF VBPAVB, " | |||
| lv_is_item_old | TYPE LES_SHP_ATP_ITEM, " | |||
| lv_is_vbapf | TYPE LES_SHP_ATP_VBAPF, " | |||
| lt_lt_shp_vbpa | TYPE STANDARD TABLE OF VBPAVB, " | |||
| lv_is_vbak | TYPE LES_SHP_ATP_VBAK, " | |||
| lt_lt_vbfa | TYPE STANDARD TABLE OF VBFAVB, " | |||
| lt_lt_ekpo | TYPE STANDARD TABLE OF EKPO, " | |||
| lv_is_i_control | TYPE LES_SHP_ATP_ITEM_CONTROL. " |
|   CALL FUNCTION 'LE_ATP_CHECK_GROUP' "NOTRANSL: Verfügbarkeitsprüfung und Bedarfsverarbeitung einer Gruppe von P |
| EXPORTING | ||
| IF_PERFORM_PRESTEP | = lv_if_perform_prestep | |
| IS_XVBAP | = lv_is_xvbap | |
| IS_CVBAP | = lv_is_cvbap | |
| IS_MAT | = lv_is_mat | |
| IF_PERFORM_CHECK | = lv_if_perform_check | |
| IF_SORTED_CHECK | = lv_if_sorted_check | |
| IF_SIMULATED_CHECK | = lv_if_simulated_check | |
| IS_ITEM | = lv_is_item | |
| IS_ITEM_OLD | = lv_is_item_old | |
| IS_VBAPF | = lv_is_vbapf | |
| IS_VBAK | = lv_is_vbak | |
| IS_I_CONTROL | = lv_is_i_control | |
| TABLES | ||
| LT_XVBAP | = lt_lt_xvbap | |
| LT_EKET | = lt_lt_eket | |
| LT_ITEM | = lt_lt_item | |
| LT_ITEM_OLD | = lt_lt_item_old | |
| LT_I_CONTROL | = lt_lt_i_control | |
| LT_VBAK | = lt_lt_vbak | |
| LT_VBAPF | = lt_lt_vbapf | |
| LT_SORT | = lt_lt_sort | |
| LT_OUTDATA | = lt_lt_outdata | |
| LT_CVBAP | = lt_lt_cvbap | |
| LT_MAT | = lt_lt_mat | |
| LT_VBEP | = lt_lt_vbep | |
| LT_VBUP | = lt_lt_vbup | |
| LT_OR_VBPA | = lt_lt_or_vbpa | |
| LT_SHP_VBPA | = lt_lt_shp_vbpa | |
| LT_VBFA | = lt_lt_vbfa | |
| LT_EKPO | = lt_lt_ekpo | |
| EXCEPTIONS | ||
| ENQUEUE_FEHLER = 1 | ||
| MARC_MATNR_GESPERRT = 2 | ||
| MARC_VPMAT_GESPERRT = 3 | ||
| . " LE_ATP_CHECK_GROUP | ||
ABAP code using 7.40 inline data declarations to call FM LE_ATP_CHECK_GROUP
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.Search for further information about these or an SAP related objects