Beruflich Dokumente
Kultur Dokumente
Here if we enter the enhancement name it results the list of user exit names.
But we dont known the Enhancement name so press the Utilities > Find menu option.
Press Execute
In the above enhancements our program name SAPMV45A Matches four enhancements.
So, In the below enhancements we have to check the right one.
My Analysis :
Every Function Module for Enhancement supplies some Import and Export Parameters.
Through which we get some values.
V45A0001 The Description of this enhancement tell us that it determines the alternative materials for
product selection. (i.e., If one material is not available what is the other material that has to be used as an
alternative. So it is item specific).
FUNCTION EXIT_SAPFV45S_001.
*"---------------------------------------------------------------------*"*"Lokale Schnittstelle:
*"
IMPORTING
*"
VALUE(REQUESTED_DELIVERY_DATE) LIKE VBAK-VDATU
*"
VALUE(ENTERED_MATERIAL) LIKE VBAP-MATNR
*"
VALUE(REQUESTED_DELIVERY_QUANTITY) LIKE VBAP-KWMENG
*"
VALUE(SALES_UNIT) LIKE VBAP-VRKME OPTIONAL
*"
VALUE(DELIVERED_QUANTITY) LIKE VBAP-KLMENG OPTIONAL
*"
VALUE(DELIVERING_PLANT) LIKE VBAP-WERKS OPTIONAL
*"
VALUE(STORAGE_LOCATION) LIKE VBAP-LGORT OPTIONAL
If we observe the Importing parameters
1. There is no way to get VBAK EBELN (Sales Order No.) and other header data form VBAK.
So, this user exit is not useful.
V45A0002 - By Description we understand that we can predefine sold-to party in the sales document.
(i.e., it is used to populate the field sold-to party through user-exit while entering the data. ) But our
requirement comes after entering the data in the screen and save button is pressed.
FUNCTION EXIT_SAPMV45A_002.
*"---------------------------------------------------------------------*"*"Lokale Schnittstelle:
*"
IMPORTING
*"
VALUE(I_TVAK) LIKE TVAK STRUCTURE TVAK
*"
VALUE(I_TVTA) LIKE TVTA STRUCTURE TVTA
*"
*"
And even the importing parameters are not useful for us.
V45A0004 - Copy packing proposal Into Out bound delivery. This description implies that whenever we
create a Delivery Order from Sales Order it copies the packing proposal Based on the already created
Sales order. So, there is no chance for us to save the data while we create or change a Sales order.
V45A0003 - Collector for customer function module pool MV45A - This description some what looks good
. But description there is no functionality mentioned. So, let us drill down.
We have 2 exits.
Function module
Short Text
EXIT_SAPMV45A_003
EXIT_SAPMV45A_004
FUNCTION EXIT_SAPMV45A_004.
*"---------------------------------------------------------------------*"*"Lokale Schnittstelle:
*"
IMPORTING
*"
VALUE(I_SCREEN_NAME) LIKE FELD-NAME
*"
VALUE(I_VBAP) LIKE VBAP STRUCTURE VBAP
*"
VALUE(I_VBUP) LIKE VBUPVB STRUCTURE VBUPVB
*"
VALUE(I_SCREEN_GROUP4) LIKE FELD-GRP4
*"
VALUE(I_T180_AKTYP) LIKE T180-AKTYP
From Exit 004 Description and Importing parameters we can clearly see that this exit is used for Field
modifications.
EXIT_SAPMV45A_003 - From the Description and Importing parameters we get the header data that can
be used for our requirement.
FUNCTION EXIT_SAPMV45A_003.
*"---------------------------------------------------------------------*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(XVBAK) LIKE VBAK STRUCTURE VBAK
*" VALUE(XVBUK) LIKE VBUK STRUCTURE VBUK
*" VALUE(XKOMK) LIKE KOMK STRUCTURE KOMK
The purpose of SMOD is to find User Exits.
Once we find the user exits, We go to CMOD. The purpose of the CMOD is to register what we are going
to do in the particular enhancement. So, at the time of up gradation it will be easy to retain the code.
click on Create.
Now in the next screen (see below), click on Save and then on Enhancement assignments)
Now enter your enhancement name, click on Save and then on Components