SAP VELO16_SMOR_EXECUTE Function Module for VELO : Aktion SMOR (Service-Auftrag mit Vorgängen anlegen)









VELO16_SMOR_EXECUTE is a standard velo16 smor execute 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 : Aktion SMOR (Service-Auftrag mit Vorgängen anlegen) 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 execute FM, simply by entering the name VELO16_SMOR_EXECUTE 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_EXECUTE 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_EXECUTE'"VELO : Aktion SMOR (Service-Auftrag mit Vorgängen anlegen)
EXPORTING
* ABA_SMOR_IV = ABA_SMOR_GC "Type of Document for Action

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

TABLES
VLCDIAVEHI_CT = "VELO : Dialogstruktur für Fahrzeuge
VLCH_MSSG_CT = "

EXCEPTIONS
ACTION_NOT_PERFORMED = 1 TOO_MANY_SELECTED_VEHICLES = 2 FILL_OPR_ERROR = 3
.



IMPORTING Parameters details for VELO16_SMOR_EXECUTE

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_EXECUTE

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_EXECUTE

VLCDIAVEHI_CT - VELO : Dialogstruktur für Fahrzeuge

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

VLCH_MSSG_CT -

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

EXCEPTIONS details

ACTION_NOT_PERFORMED -

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

TOO_MANY_SELECTED_VEHICLES -

Data type:
Optional: No
Call by Reference: Yes

FILL_OPR_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for VELO16_SMOR_EXECUTE 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_aba_smor_iv  TYPE VLC_ACTDOCTYPE, "   ABA_SMOR_GC
lv_vlcactdata_cs  TYPE VLCACTDATA, "   
lt_vlcdiavehi_ct  TYPE STANDARD TABLE OF VLCDIAVEHI, "   
lv_action_not_performed  TYPE VLCDIAVEHI, "   
lt_vlch_mssg_ct  TYPE STANDARD TABLE OF VLCH_MSSG_PT, "   
lv_too_many_selected_vehicles  TYPE VLCH_MSSG_PT, "   
lv_fill_opr_error  TYPE VLCH_MSSG_PT. "   

  CALL FUNCTION 'VELO16_SMOR_EXECUTE'  "VELO : Aktion SMOR (Service-Auftrag mit Vorgängen anlegen)
    EXPORTING
         ABA_SMOR_IV = lv_aba_smor_iv
    CHANGING
         VLCACTDATA_CS = lv_vlcactdata_cs
    TABLES
         VLCDIAVEHI_CT = lt_vlcdiavehi_ct
         VLCH_MSSG_CT = lt_vlch_mssg_ct
    EXCEPTIONS
        ACTION_NOT_PERFORMED = 1
        TOO_MANY_SELECTED_VEHICLES = 2
        FILL_OPR_ERROR = 3
. " VELO16_SMOR_EXECUTE




ABAP code using 7.40 inline data declarations to call FM VELO16_SMOR_EXECUTE

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_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!