SAP VELO16_SMOR_PREPARE Function Module for VELO : SMOR-Daten beschaffen und vorbereiten









VELO16_SMOR_PREPARE is a standard velo16 smor prepare SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for VELO : SMOR-Daten beschaffen und vorbereiten 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 velo16 smor prepare FM, simply by entering the name VELO16_SMOR_PREPARE into the relevant SAP transaction such as SE37 or SE38.

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



Function VELO16_SMOR_PREPARE 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 'VELO16_SMOR_PREPARE'"VELO : SMOR-Daten beschaffen und vorbereiten
EXPORTING
XINTERLINKED_IV = "Verkettete Aktion
* DIALOGUE_ALLOWED_IV = "
* ELEMENTARY_ACTION_IV = "Elementaraktion
* ABA_SMOR_IV = ABA_SMOR_GC "Type of Document for Action

CHANGING
VLCACTDATA_CS = "VELO : Übergabestruktur für Aktionen (Kopf und Positionen)

TABLES
* VLCDIAVEHI_IT = "VELO : Dialogstruktur für Fahrzeuge

EXCEPTIONS
TOO_MANY_SELECTED_VEHICLES = 1 ALV_GRID_ERROR = 2 ITEM_TRANSFER_ERROR = 3 OTHERS = 4
.



IMPORTING Parameters details for VELO16_SMOR_PREPARE

XINTERLINKED_IV - Verkettete Aktion

Data type: CVLC03-INTRLK
Optional: No
Call by Reference: Yes

DIALOGUE_ALLOWED_IV -

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

ELEMENTARY_ACTION_IV - Elementaraktion

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

ABA_SMOR_IV - Type of Document for Action

Data type: VLC_ACTDOCTYPE
Default: ABA_SMOR_GC
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for VELO16_SMOR_PREPARE

VLCACTDATA_CS - VELO : Übergabestruktur für Aktionen (Kopf und Positionen)

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

TABLES Parameters details for VELO16_SMOR_PREPARE

VLCDIAVEHI_IT - VELO : Dialogstruktur für Fahrzeuge

Data type: VLCDIAVEHI
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

TOO_MANY_SELECTED_VEHICLES -

Data type:
Optional: No
Call by Reference: Yes

ALV_GRID_ERROR -

Data type:
Optional: No
Call by Reference: Yes

ITEM_TRANSFER_ERROR -

Data type:
Optional: No
Call by Reference: Yes

OTHERS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for VELO16_SMOR_PREPARE 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_vlcactdata_cs  TYPE VLCACTDATA, "   
lt_vlcdiavehi_it  TYPE STANDARD TABLE OF VLCDIAVEHI, "   
lv_xinterlinked_iv  TYPE CVLC03-INTRLK, "   
lv_too_many_selected_vehicles  TYPE CVLC03, "   
lv_alv_grid_error  TYPE CVLC03, "   
lv_dialogue_allowed_iv  TYPE C, "   
lv_item_transfer_error  TYPE C, "   
lv_elementary_action_iv  TYPE VLC_ACTION, "   
lv_others  TYPE VLC_ACTION, "   
lv_aba_smor_iv  TYPE VLC_ACTDOCTYPE. "   ABA_SMOR_GC

  CALL FUNCTION 'VELO16_SMOR_PREPARE'  "VELO : SMOR-Daten beschaffen und vorbereiten
    EXPORTING
         XINTERLINKED_IV = lv_xinterlinked_iv
         DIALOGUE_ALLOWED_IV = lv_dialogue_allowed_iv
         ELEMENTARY_ACTION_IV = lv_elementary_action_iv
         ABA_SMOR_IV = lv_aba_smor_iv
    CHANGING
         VLCACTDATA_CS = lv_vlcactdata_cs
    TABLES
         VLCDIAVEHI_IT = lt_vlcdiavehi_it
    EXCEPTIONS
        TOO_MANY_SELECTED_VEHICLES = 1
        ALV_GRID_ERROR = 2
        ITEM_TRANSFER_ERROR = 3
        OTHERS = 4
. " VELO16_SMOR_PREPARE




ABAP code using 7.40 inline data declarations to call FM VELO16_SMOR_PREPARE

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 INTRLK FROM CVLC03 INTO @DATA(ld_xinterlinked_iv).
 
 
 
 
 
 
 
DATA(ld_aba_smor_iv) = ABA_SMOR_GC.
 


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!