SAP EXIT_SAPMV45A_002 Function Module for Preassignment of Sold-to Party in Sales Documents









EXIT_SAPMV45A_002 is a standard exit sapmv45a 002 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Preassignment of Sold-to Party in Sales Documents 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 exit sapmv45a 002 FM, simply by entering the name EXIT_SAPMV45A_002 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPMV45A_002 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 'EXIT_SAPMV45A_002'"Preassignment of Sold-to Party in Sales Documents
EXPORTING
I_TVAK = "Customizing of Current Sales Document Types
I_TVTA = "Customizing of Current Distribution Channel
I_VKGRP = "Sales Group
I_VKBUR = "Sales Office

IMPORTING
E_KUNNR = "Customer Number of Proposal for the Sold-To Party
.



IMPORTING Parameters details for EXIT_SAPMV45A_002

I_TVAK - Customizing of Current Sales Document Types

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

I_TVTA - Customizing of Current Distribution Channel

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

I_VKGRP - Sales Group

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

I_VKBUR - Sales Office

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

EXPORTING Parameters details for EXIT_SAPMV45A_002

E_KUNNR - Customer Number of Proposal for the Sold-To Party

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

Copy and paste ABAP code example for EXIT_SAPMV45A_002 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_i_tvak  TYPE TVAK, "   
lv_e_kunnr  TYPE KNA1-KUNNR, "   
lv_i_tvta  TYPE TVTA, "   
lv_i_vkgrp  TYPE VBAK-VKGRP, "   
lv_i_vkbur  TYPE VBAK-VKBUR. "   

  CALL FUNCTION 'EXIT_SAPMV45A_002'  "Preassignment of Sold-to Party in Sales Documents
    EXPORTING
         I_TVAK = lv_i_tvak
         I_TVTA = lv_i_tvta
         I_VKGRP = lv_i_vkgrp
         I_VKBUR = lv_i_vkbur
    IMPORTING
         E_KUNNR = lv_e_kunnr
. " EXIT_SAPMV45A_002




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPMV45A_002

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 KUNNR FROM KNA1 INTO @DATA(ld_e_kunnr).
 
 
"SELECT single VKGRP FROM VBAK INTO @DATA(ld_i_vkgrp).
 
"SELECT single VKBUR FROM VBAK INTO @DATA(ld_i_vkbur).
 


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!