SAP EXIT_SAPLV56M_002 Function Module for Collective Processing Shipment: Assign Deliveries to Shipments
EXIT_SAPLV56M_002 is a standard exit saplv56m 002 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Collective Processing Shipment: Assign Deliveries to Shipments 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 saplv56m 002 FM, simply by entering the name EXIT_SAPLV56M_002 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XV56
Program Name: SAPLXV56
Main Program:
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EXIT_SAPLV56M_002 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_SAPLV56M_002'"Collective Processing Shipment: Assign Deliveries to Shipments.
EXPORTING
I_SPLIT_CAPA_SORT_CRITERIA = "Combination, Capacity, Sort Criteria
TABLES
I_VTRLK = "Delivery Header Data
I_VTRLP = "Delivery Item Data
C_VTTP = "Assignment of Deliveries to Shipments
EXCEPTIONS
ERROR = 1
Related Function Modules
Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.DYN_FIELD_CATALOG_ADD_FIELD NOTRANSL: Dynamische Felder: Feld dem Feldkatalog hinzufügen
DYN_FIELD_CATALOG_DEFINE NOTRANSL: Dynamische Felder: Feldkatalog definieren
DYN_FIELD_CATALOG_F4 NOTRANSL: Dynamische Felder: Feldkatalog als F4-Hilfe bringen
DYN_FIELD_CATALOG_READ NOTRANSL: Dynamische Felder: Eintrag aus Feldkatalog lesen
DYN_FIELD_CATALOG_VTRLK_INIT NOTRANSL: Dynamische Felder: Feldkatalog anlegen
DYN_FIELD_F1_HELP NOTRANSL: Dynamische Felder: F1 Hilfe hochbringen für beliebiges Feld
DYN_FIELD_F4_HELP NOTRANSL: Dynamische Felder: F4 Hilfe hochbringen für beliebiges Feld
DYN_FIELD_GROUPING_SET_PFSTAT NOTRANSL: Dynamische Felder: PF-Status setzen im Popup für Bildung von Gru
DYN_FIELD_MAINTAIN_GROUPING NOTRANSL: Dynamische Felder: Gruppierungen bilden
SD_SHIPMENT_CAPACITY_CRITERIA NOTRANSL: VT04: Lieferungen aufgrund Kapazitäts-Kriterien zu Transporten z
SD_SHIPMENT_COMBINE_DELIVERIES NOTRANSL: VT04: Split-, Sortier- und Kapazitätskriterien verarbeiten
SD_SHIPMENT_PLAN_PROPOSAL_DIA NOTRANSL: Planungsvorschlag VT01/VT02: Dialog im Popup
SD_SHIPMENT_PLAN_PROPOSAL_EXEC NOTRANSL: Planungsvorschlag VT01/VT02: Ausführen
SD_SHIPMENT_PLAN_PROPOSAL_INIT NOTRANSL: Planungsvorschlag VT01/VT02: Initialisieren
SD_SHIPMENT_POPULATE_DOCUMENT NOTRANSL: VT04: Einen Transport erzeugen und mit Daten bevölkern
SD_SHIPMENT_SORT_CRITERIA NOTRANSL: VT04: Lieferungen innerhalb der Transporte nach Kriterien sortie
SD_SHIPMENT_SPLIT_CRITERIA NOTRANSL: VT04: Lieferungen aufgrund bestimmter Kriterien zu Transporten z
SD_SHIPMENT_VT04_PROT_OUTPUT NOTRANSL: VT04: Protokoll ausgeben
SD_SHIPMENT_VT04_PROT_SAVE NOTRANSL: VT04: Protokoll abspeichern
IMPORTING Parameters details for EXIT_SAPLV56M_002
I_SPLIT_CAPA_SORT_CRITERIA - Combination, Capacity, Sort Criteria
Data type: VT04_SPLIT_CAPA_SORT_CRITERIAOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EXIT_SAPLV56M_002
I_VTRLK - Delivery Header Data
Data type: VTRLKOptional: No
Call by Reference: No ( called with pass by value option)
I_VTRLP - Delivery Item Data
Data type: VTRLPOptional: No
Call by Reference: No ( called with pass by value option)
C_VTTP - Assignment of Deliveries to Shipments
Data type: VTTPOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR - Errors Occurred
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_SAPLV56M_002 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_error | TYPE STRING, " | |||
| lt_i_vtrlk | TYPE STANDARD TABLE OF VTRLK, " | |||
| lv_i_split_capa_sort_criteria | TYPE VT04_SPLIT_CAPA_SORT_CRITERIA, " | |||
| lt_i_vtrlp | TYPE STANDARD TABLE OF VTRLP, " | |||
| lt_c_vttp | TYPE STANDARD TABLE OF VTTP. " |
|   CALL FUNCTION 'EXIT_SAPLV56M_002' "Collective Processing Shipment: Assign Deliveries to Shipments |
| EXPORTING | ||
| I_SPLIT_CAPA_SORT_CRITERIA | = lv_i_split_capa_sort_criteria | |
| TABLES | ||
| I_VTRLK | = lt_i_vtrlk | |
| I_VTRLP | = lt_i_vtrlp | |
| C_VTTP | = lt_c_vttp | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " EXIT_SAPLV56M_002 | ||
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLV56M_002
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