‎2006 Sep 26 12:37 PM
Hi All,
I know the exit name.that is MV45AZZ ,
1) how find this exit.
2)what is the purpose of this exit.
3)i need to add some code in this exit.
Based on some sales orgnigations i need to fill vbep-lifsp filed .
can any one kindly give the replay.
Thanks in Adcvance.
Thanks&Regards.
Ramu.
‎2006 Sep 26 12:39 PM
Hi,
MV45AFZZ is an include program, you can find it using SE38.
Inside this you have various form routines which can be used for custom functions with the Sales related functionality to do certain custom checks, filling certain custom fields etc.
You can find MOVE_FIELD subroutine within this program, where in you can put your custom code.
For your requirement you can put the code in: routine
FORM USEREXIT_MOVE_FIELD_TO_VBEP.
ENDFORM.
Rgds,
HR
Message was edited by: Hema Rao
‎2006 Sep 26 12:45 PM
Hi ramu,
1. how find this exit.
It is a normal se38 program/include.
2. what is the purpose of this exit
This include contains many subroutines
(FORM routines)
which are called by the standard transaction,
eg. while saving the sales order.
In this routine, some data (header, detail etc)
of the sales order is passed.
So, inside this routine, we can
Change some fields, put some validations etc.
Just see F1 help on this include.
3. i need to add some code in this exit.
Since it is a sap standard include,
we have to take access key
for modifying the code in this.
(This is a normal practice for this exit)
U can take help of basis team,
to get the access key
(There after u can write your code inside it,
depending upon the FORM u require.)
regards,
amit m.
‎2006 Sep 26 12:49 PM
Hi,
First of all u have to get the access key from basis to chage this program (SAPMV45A).
Also this is a program not a exit.
Include <b>MV45AZZ is an Save exit</b> for this program.
In the below perform pass the data to VBAK structure.
FORM userexit_save_document_prepare.
Also write the code like
IF sy-tcode = 'VA02' or sy-tcode = 'VA01'.
Also check for the document type.
endif.
Prakash.
‎2006 Sep 26 1:08 PM
Hello,
I would suggest you to for BADI's,
Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
1) Goto se24 (Display class cl_exithandler)
2) Double click on the method GET_INSTANCE.
3) Put a break point at Line no.25 (CASE sy-subrc).
Now
4) Execute SAP standard transaction
5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
7) This way you will find all the BADIs called on click of any button in any transaction.
Regs,
Venkat
‎2006 Sep 26 1:34 PM
hi
good
USEREXIT_PRICING_PREPARE_TKOMP or
USEREXIT_PRICING_PREPARE_TKOMK
Depending upon which table (KOMK or KOMP) the new fields were inserted we use either of the above two userexits.These userexits are found in include MV45AFZZ of the standard SAP sales order creation program SAPMV45A.
go through this link
http://sap.niraj.tripod.com/id21.html
thanks
mrutyun^