SAP LE_DSP_ALL_STEPS Function Module for Liefersplit: Alle Schritte
LE_DSP_ALL_STEPS is a standard le dsp all steps SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Liefersplit: Alle Schritte 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 dsp all steps FM, simply by entering the name LE_DSP_ALL_STEPS into the relevant SAP transaction such as SE37 or SE38.
Function Group: V53S
Program Name: SAPLV53S
Main Program: SAPLV53S
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LE_DSP_ALL_STEPS 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_DSP_ALL_STEPS'"Liefersplit: Alle Schritte.
EXPORTING
* IF_BATCH = 'X' "'X' = Sofort splitten -> mit Sperren lesen
IF_SIMULATE = "'X' = Simulation -> kein Split, keine Sperren
* IS_CALL = "Zu splittende Objekte (HU, Pos.), Scenario
* IF_COMBINE = "'X' = Lieferzusammenführung
* IF_SPLIT_INBOUND = "'X' = Liefersplit für Anlieferungen
* IF_SPLIT_RETURNS = "'X' = LIeferplit für Retouren
* IF_NO_SAVE_AND_POST = "'X' = Liefernummerierung und Buchen deaktiv
* IF_NO_COMMIT = "'X' = Baustein führt kein commit work aus
* IF_MERGE = "'X' = Baustein addiert Splitlieferung zur Mutter zurück
IMPORTING
ES_CALL_RESULT = "Split(simulations)ergebnis
EF_SUBRC = "Returncode
CHANGING
CS_SPLIT_WA = "Arbeitsbereich. Bei Mehfachaufruf nicht löschen!
* CF_NO_SAVE_AND_POST = "'X' = Deactivate Delivery Renumbering and Posting
TABLES
* ET_VBLS = "
EXCEPTIONS
NOT_AN_UPMOST_HU = 1 NOTHING_TODO = 10 SPLIT_QUANTITY_TO_HIGH = 11 WRONG_CALL = 12 LOCKING_ERROR = 13 MESSAGED_ERROR = 14 ERROR_IN_SUBFUNCTIONS = 15 PACKED_ITEM = 2 HU_MULTIPLE_SPECIFIED = 3 MULTIPLE_HIGHEST_LEVEL = 4 INTERNAL_ERROR = 5 SPLITPROFILE_NOT_FOUND = 6 TVLK_NOT_FOUND = 7 VARIABEL_ERROR = 8 INCONSISTENT_RES_OLD = 9
IMPORTING Parameters details for LE_DSP_ALL_STEPS
IF_BATCH - 'X' = Sofort splitten -> mit Sperren lesen
Data type: BOOLE_DDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_SIMULATE - 'X' = Simulation -> kein Split, keine Sperren
Data type: BOOLE_DOptional: No
Call by Reference: No ( called with pass by value option)
IS_CALL - Zu splittende Objekte (HU, Pos.), Scenario
Data type: LEDSPD_CALLOptional: Yes
Call by Reference: Yes
IF_COMBINE - 'X' = Lieferzusammenführung
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_SPLIT_INBOUND - 'X' = Liefersplit für Anlieferungen
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_SPLIT_RETURNS - 'X' = LIeferplit für Retouren
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_NO_SAVE_AND_POST - 'X' = Liefernummerierung und Buchen deaktiv
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_NO_COMMIT - 'X' = Baustein führt kein commit work aus
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_MERGE - 'X' = Baustein addiert Splitlieferung zur Mutter zurück
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for LE_DSP_ALL_STEPS
ES_CALL_RESULT - Split(simulations)ergebnis
Data type: LEDSPD_CALL_RESULTOptional: No
Call by Reference: Yes
EF_SUBRC - Returncode
Data type: SYSUBRCOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for LE_DSP_ALL_STEPS
CS_SPLIT_WA - Arbeitsbereich. Bei Mehfachaufruf nicht löschen!
Data type: LEDSP_ALLOptional: No
Call by Reference: Yes
CF_NO_SAVE_AND_POST - 'X' = Deactivate Delivery Renumbering and Posting
Data type: BOOLE_DOptional: Yes
Call by Reference: Yes
TABLES Parameters details for LE_DSP_ALL_STEPS
ET_VBLS -
Data type: VBLSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_AN_UPMOST_HU -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOTHING_TODO -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SPLIT_QUANTITY_TO_HIGH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_CALL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LOCKING_ERROR -
Data type:Optional: No
Call by Reference: Yes
MESSAGED_ERROR -
Data type:Optional: No
Call by Reference: Yes
ERROR_IN_SUBFUNCTIONS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PACKED_ITEM -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
HU_MULTIPLE_SPECIFIED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MULTIPLE_HIGHEST_LEVEL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SPLITPROFILE_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TVLK_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VARIABEL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INCONSISTENT_RES_OLD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LE_DSP_ALL_STEPS 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_et_vbls | TYPE STANDARD TABLE OF VBLS, " | |||
| lv_if_batch | TYPE BOOLE_D, " 'X' | |||
| lv_cs_split_wa | TYPE LEDSP_ALL, " | |||
| lv_es_call_result | TYPE LEDSPD_CALL_RESULT, " | |||
| lv_not_an_upmost_hu | TYPE LEDSPD_CALL_RESULT, " | |||
| lv_nothing_todo | TYPE LEDSPD_CALL_RESULT, " | |||
| lv_split_quantity_to_high | TYPE LEDSPD_CALL_RESULT, " | |||
| lv_wrong_call | TYPE LEDSPD_CALL_RESULT, " | |||
| lv_locking_error | TYPE LEDSPD_CALL_RESULT, " | |||
| lv_messaged_error | TYPE LEDSPD_CALL_RESULT, " | |||
| lv_error_in_subfunctions | TYPE LEDSPD_CALL_RESULT, " | |||
| lv_ef_subrc | TYPE SYSUBRC, " | |||
| lv_if_simulate | TYPE BOOLE_D, " | |||
| lv_packed_item | TYPE BOOLE_D, " | |||
| lv_cf_no_save_and_post | TYPE BOOLE_D, " | |||
| lv_is_call | TYPE LEDSPD_CALL, " | |||
| lv_hu_multiple_specified | TYPE LEDSPD_CALL, " | |||
| lv_if_combine | TYPE BOOLE_D, " | |||
| lv_multiple_highest_level | TYPE BOOLE_D, " | |||
| lv_internal_error | TYPE BOOLE_D, " | |||
| lv_if_split_inbound | TYPE BOOLE_D, " | |||
| lv_if_split_returns | TYPE BOOLE_D, " | |||
| lv_splitprofile_not_found | TYPE BOOLE_D, " | |||
| lv_tvlk_not_found | TYPE BOOLE_D, " | |||
| lv_if_no_save_and_post | TYPE BOOLE_D, " | |||
| lv_if_no_commit | TYPE BOOLE_D, " | |||
| lv_variabel_error | TYPE BOOLE_D, " | |||
| lv_if_merge | TYPE BOOLE_D, " | |||
| lv_inconsistent_res_old | TYPE BOOLE_D. " |
|   CALL FUNCTION 'LE_DSP_ALL_STEPS' "Liefersplit: Alle Schritte |
| EXPORTING | ||
| IF_BATCH | = lv_if_batch | |
| IF_SIMULATE | = lv_if_simulate | |
| IS_CALL | = lv_is_call | |
| IF_COMBINE | = lv_if_combine | |
| IF_SPLIT_INBOUND | = lv_if_split_inbound | |
| IF_SPLIT_RETURNS | = lv_if_split_returns | |
| IF_NO_SAVE_AND_POST | = lv_if_no_save_and_post | |
| IF_NO_COMMIT | = lv_if_no_commit | |
| IF_MERGE | = lv_if_merge | |
| IMPORTING | ||
| ES_CALL_RESULT | = lv_es_call_result | |
| EF_SUBRC | = lv_ef_subrc | |
| CHANGING | ||
| CS_SPLIT_WA | = lv_cs_split_wa | |
| CF_NO_SAVE_AND_POST | = lv_cf_no_save_and_post | |
| TABLES | ||
| ET_VBLS | = lt_et_vbls | |
| EXCEPTIONS | ||
| NOT_AN_UPMOST_HU = 1 | ||
| NOTHING_TODO = 10 | ||
| SPLIT_QUANTITY_TO_HIGH = 11 | ||
| WRONG_CALL = 12 | ||
| LOCKING_ERROR = 13 | ||
| MESSAGED_ERROR = 14 | ||
| ERROR_IN_SUBFUNCTIONS = 15 | ||
| PACKED_ITEM = 2 | ||
| HU_MULTIPLE_SPECIFIED = 3 | ||
| MULTIPLE_HIGHEST_LEVEL = 4 | ||
| INTERNAL_ERROR = 5 | ||
| SPLITPROFILE_NOT_FOUND = 6 | ||
| TVLK_NOT_FOUND = 7 | ||
| VARIABEL_ERROR = 8 | ||
| INCONSISTENT_RES_OLD = 9 | ||
| . " LE_DSP_ALL_STEPS | ||
ABAP code using 7.40 inline data declarations to call FM LE_DSP_ALL_STEPS
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.| DATA(ld_if_batch) | = 'X'. | |||
Search for further information about these or an SAP related objects