SAP SD_CONDITION_VAKEY_FILL Function Module for Fill VAKEY According to KOMG Structure









SD_CONDITION_VAKEY_FILL is a standard sd condition vakey fill SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Fill VAKEY According to KOMG Structure 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 sd condition vakey fill FM, simply by entering the name SD_CONDITION_VAKEY_FILL into the relevant SAP transaction such as SE37 or SE38.

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



Function SD_CONDITION_VAKEY_FILL 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 'SD_CONDITION_VAKEY_FILL'"Fill VAKEY According to KOMG Structure
EXPORTING
P_KOTABNR = "
P_KVEWE = "
P_KOMG = "

IMPORTING
P_VAKEY = "Variable key 255 Character
.



IMPORTING Parameters details for SD_CONDITION_VAKEY_FILL

P_KOTABNR -

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

P_KVEWE -

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

P_KOMG -

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

EXPORTING Parameters details for SD_CONDITION_VAKEY_FILL

P_VAKEY - Variable key 255 Character

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

Copy and paste ABAP code example for SD_CONDITION_VAKEY_FILL 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_p_vakey  TYPE KONH-VAKEY, "   
lv_p_kotabnr  TYPE KONH-KOTABNR, "   
lv_p_kvewe  TYPE KONH-KVEWE, "   
lv_p_komg  TYPE KOMG. "   

  CALL FUNCTION 'SD_CONDITION_VAKEY_FILL'  "Fill VAKEY According to KOMG Structure
    EXPORTING
         P_KOTABNR = lv_p_kotabnr
         P_KVEWE = lv_p_kvewe
         P_KOMG = lv_p_komg
    IMPORTING
         P_VAKEY = lv_p_vakey
. " SD_CONDITION_VAKEY_FILL




ABAP code using 7.40 inline data declarations to call FM SD_CONDITION_VAKEY_FILL

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 VAKEY FROM KONH INTO @DATA(ld_p_vakey).
 
"SELECT single KOTABNR FROM KONH INTO @DATA(ld_p_kotabnr).
 
"SELECT single KVEWE FROM KONH INTO @DATA(ld_p_kvewe).
 
 


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!