SAP /AIF/VMAP_LAUNCH Function Module for Launch value mapping transaction









/AIF/VMAP_LAUNCH is a standard /aif/vmap launch SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Launch value mapping transaction 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 /aif/vmap launch FM, simply by entering the name /AIF/VMAP_LAUNCH into the relevant SAP transaction such as SE37 or SE38.

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



Function /AIF/VMAP_LAUNCH 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 '/AIF/VMAP_LAUNCH'"Launch value mapping transaction
EXPORTING
NS = "Namespace
NAME = "Value Mapping
* DATABASE = '' "Data element for database table type
* VMAPTYPE = '' "Data element for value mapping type
* SKIP = 'X' "
* CHANGE = 'X' "
* SENDING_SYSTEM = "Key Name of Business System
* VALUES = "Message Variable
.



IMPORTING Parameters details for /AIF/VMAP_LAUNCH

NS - Namespace

Data type: /AIF/T_VMAP-NS
Optional: No
Call by Reference: Yes

NAME - Value Mapping

Data type: /AIF/T_VMAP-VMAPNAME
Optional: No
Call by Reference: Yes

DATABASE - Data element for database table type

Data type: /AIF/DATABASE_TABLE_TYPE
Default: ''
Optional: Yes
Call by Reference: Yes

VMAPTYPE - Data element for value mapping type

Data type: /AIF/VALUE_MAPPING_TYPE
Default: ''
Optional: Yes
Call by Reference: Yes

SKIP -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: Yes

CHANGE -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: Yes

SENDING_SYSTEM - Key Name of Business System

Data type: /AIF/AIF_BUSINESS_SYSTEM_KEY
Optional: Yes
Call by Reference: Yes

VALUES - Message Variable

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

Copy and paste ABAP code example for /AIF/VMAP_LAUNCH 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_ns  TYPE /AIF/T_VMAP-NS, "   
lv_name  TYPE /AIF/T_VMAP-VMAPNAME, "   
lv_database  TYPE /AIF/DATABASE_TABLE_TYPE, "   ''
lv_vmaptype  TYPE /AIF/VALUE_MAPPING_TYPE, "   ''
lv_skip  TYPE C, "   'X'
lv_change  TYPE C, "   'X'
lv_sending_system  TYPE /AIF/AIF_BUSINESS_SYSTEM_KEY, "   
lv_values  TYPE CHAR250_D. "   

  CALL FUNCTION '/AIF/VMAP_LAUNCH'  "Launch value mapping transaction
    EXPORTING
         NS = lv_ns
         NAME = lv_name
         DATABASE = lv_database
         VMAPTYPE = lv_vmaptype
         SKIP = lv_skip
         CHANGE = lv_change
         SENDING_SYSTEM = lv_sending_system
         VALUES = lv_values
. " /AIF/VMAP_LAUNCH




ABAP code using 7.40 inline data declarations to call FM /AIF/VMAP_LAUNCH

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 NS FROM /AIF/T_VMAP INTO @DATA(ld_ns).
 
"SELECT single VMAPNAME FROM /AIF/T_VMAP INTO @DATA(ld_name).
 
DATA(ld_database) = ''.
 
DATA(ld_vmaptype) = ''.
 
DATA(ld_skip) = 'X'.
 
DATA(ld_change) = 'X'.
 
 
 


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!