2007 Aug 14 3:08 PM
hi all,
while creation of vendor is under process, i want to catch the vendor number and use it accordingly to my requirement even before the vendor is created.
i know this can be accomplished by user exits.but not sure, which user exit to use.
i have used vendor user exit EXIT_SAPMF02K_001 initially.
after i create a vendor and save it, the control goes to exit EXIT_SAPMF02K_001.by the time control comes out of this user exit,the vendor number is not yet generated by SAP.
now,i want to use a vendor user exit,so that by the time control reaches there, vendor number should have been generated.
plz look at the steps.
step1--->XK01(vendor creation).
step2--->save.
step3--->the control goes to EXIT_SAPMF02K_001, where code written according to requirement is executed.(the vendor number is not yet generated by SAP).
step4--->the control comes out of EXIT_SAPMF02K_001 .
step5--->the control comes to vendor exit EXIT_?????????_???.(the vendor number is generated by SAP,by the time control reaches here).here, i write code according to my further requirement by using vendor number generated by SAP,eventhough vendor has not been created yet.
plz suggest me the correct vendor user exit for this purpose.i have used
EXIT_RFKRRANZ_001 for this purpose, but it doesnt suit my requirement.
thanks in advance,
shivaa
hi all,
while creation of vendor is under process, i want to catch the vendor number and use it accordingly to my requirement even before the vendor is created.
i know this can be accomplished by user exits.but not sure, which user exit to use.
i have used vendor user exit EXIT_SAPMF02K_001 initially.
after i create a vendor and save it, the control goes to exit EXIT_SAPMF02K_001.by the time control comes out of this user exit,the vendor number is not yet generated by SAP.
now,i want to use a vendor user exit,so that by the time control reaches there, vendor number should have been generated.
plz look at the steps.
step1--->XK01(vendor creation).
step2--->save.
step3--->the control goes to EXIT_SAPMF02K_001, where code written according to requirement is executed.(the vendor number is not yet generated by SAP).
step4--->the control comes out of EXIT_SAPMF02K_001 .
step5--->the control comes to vendor exit EXIT_?????????_???.(the vendor number is generated by SAP,by the time control reaches here).here, i write code according to my further requirement by using vendor number generated by SAP,eventhough vendor has not been created yet.
plz suggest me the correct vendor user exit for this purpose.i have used
EXIT_RFKRRANZ_001 for this purpose, but it doesnt suit my requirement.
thanks in advance,
shivaa
2007 Aug 14 3:12 PM
Hi!
In the user exits of the creation, no numbers are avilable, only temporary ones (%000000001).
SAP will pick the number right before the commit, and in this event, there is no user-exit.
You better write a report, which colletcts the daily created vendors (from LFA1 table), and put it into a job (SM36/SM37 transactions).
Regards
Tamá
2007 Aug 14 3:37 PM
Hi Tamás ,
thanx for ur quick reply.
i had the same requirement while creating a sales order too.i have completed the task sucessfully.
there i have used the user exit MV45AFZZ.
plz see the following steps.
step1--->VA01(salesorder creation).
step2--->save.
step3--->the control goes to form FORM USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ
, where code written according to requirement is executed.(the salesorder number is not yet generated by SAP).
step4--->the control comes out of FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
step5--->now,the control comes to FORM USEREXIT_SAVE_DOCUMENT in MV45AFZZ.
(the salesdocument number is generated by SAP,by the time control reaches here).here, i write code according to further requirement by using salesdocument number generated by SAP,eventhough salesorder has not been created yet.
can u plz check once again, and suggest me the vendor user exit for my requirement.
plz its urgent.
thanking u once again for ur reply.