SAP EXIT_SAPLVBXD_003 Function Module for Control for the APO Call
EXIT_SAPLVBXD_003 is a standard exit saplvbxd 003 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Control for the APO Call 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 exit saplvbxd 003 FM, simply by entering the name EXIT_SAPLVBXD_003 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XVBX
Program Name: SAPLXVBX
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EXIT_SAPLVBXD_003 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 'EXIT_SAPLVBXD_003'"Control for the APO Call.
CHANGING
APO_CONTROL = "ATP Controller: Control Parameters
TABLES
APO_LINES = "ATP: Requirements to be Checked/Considered
* APO_FIELDS = "Product Allocation: Characteristic Catalog
Related Function Modules
Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.VBXD_ATP_WITH_CRITERIA ATP Check with Selection Criteria
VBXD_ATP_WITH_CRITERIA_RFC NOTRANSL: ATP-Prüfung mit Selektionskriterien RFC-fähig
VBXD_BATCH_CRITERIA_CHECK NOTRANSL: Prüft die Zulässigkeit der Chargen
VBXD_BATCH_CRITERIA_CHECK_RFC NOTRANSL: Prüft die Zulässigkeit der Chargen (RFC fähig)
VBXD_CBATP_CHECK NOTRANSL: Prüfung, ob merkmalsbasierte ATP aktiv
VBXD_CLASSIFICATION_SCREEN NOTRANSL: Klassifizierungsdynpro
VBXD_CRITERIA_GET NOTRANSL: Lesen der Selektionskriterien
VBXD_CRITERIA_SET_VBAP NOTRANSL: Setzen der Selektionskriterien zur Kundenauftragsposition
VBXD_CUOBJ_CBATP_CHECK_AND_SET NOTRANSL: CUOBJ_CH für merkmalsbasierte APO-ATP prüfen und ggf. aus Charge
VBXD_CUOBJ_CBATP_REQ_TRANSFER NOTRANSL: CUOBJ_CH für merkmalsbasierte APO-ATP übertragen
VBXD_CUOBJ_CBATP_SET NOTRANSL: CUOBJ_CH für merkmalsbasierte APO-ATP setzen
VBXD_DO_DIALOG_BY_CUOBJ_CH NOTRANSL: Erzeugen der Klassifizierung aus einer CUOBJ_CH
VBXD_GENERATE_CRITERIA NOTRANSL: Erzeugen der Selektionskriterien
VBXD_GET_CUOBJ_CH_BY_CONDITION NOTRANSL: Ermitteln der CUOBJ_CH für Chargenselektion aus dem Konditionssa
VBXD_MATERIAL_CBATP_CHECK NOTRANSL: Prüfung, ob für Material merkmalsbasierte APO-ATP aktiv
VBXD_PROCESS_CBATP_CHECK NOTRANSL: Prüfung, ob für Prozess und Material merkmalsb. APO-ATP aktiv i
CHANGING Parameters details for EXIT_SAPLVBXD_003
APO_CONTROL - ATP Controller: Control Parameters
Data type: ATPCAOptional: No
Call by Reference: Yes
TABLES Parameters details for EXIT_SAPLVBXD_003
APO_LINES - ATP: Requirements to be Checked/Considered
Data type: ATPCSOptional: No
Call by Reference: Yes
APO_FIELDS - Product Allocation: Characteristic Catalog
Data type: ATPFIELDOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for EXIT_SAPLVBXD_003 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_apo_lines | TYPE STANDARD TABLE OF ATPCS, " | |||
| lv_apo_control | TYPE ATPCA, " | |||
| lt_apo_fields | TYPE STANDARD TABLE OF ATPFIELD. " |
|   CALL FUNCTION 'EXIT_SAPLVBXD_003' "Control for the APO Call |
| CHANGING | ||
| APO_CONTROL | = lv_apo_control | |
| TABLES | ||
| APO_LINES | = lt_apo_lines | |
| APO_FIELDS | = lt_apo_fields | |
| . " EXIT_SAPLVBXD_003 | ||
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLVBXD_003
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