01-29-2009 10:21 AM
hi i am new to USER EXITS.
i understood the concetp of user exit. there is some list of user exit available in SMOD.
i have requirment of pre-assigning my vendor no whenever i am creation po USING me21n.
tell me the step by step way to find out the user exits for the same requirement.
regards
Giri
01-29-2009 10:26 AM
Hi,
U want the user exits while creating ME21.
Do one thing.
Goto transaction ME21.
Then go to system-->status.Then take take standarad program for the me21n.I think 'SAPLMEGUI'.
Open this program in SE38 and go to attrubutes.Take the package of this program.Package is 'ME'.
Go to SMOD.Press F4.Click on iforamtion systems button.Give u r package 'ME' there.
Press enter.U will get all the enhancements. there.For Adding enhancement we have the enhancement
'MM06E005'.
Now go to CMOD and create the project and Assign this Enhancemt in Enhancement assigments.Then u wil get the exits which u have to implement.
I hope this may help you.
Thanks,
01-29-2009 10:26 AM
Hi,
U want the user exits while creating ME21.
Do one thing.
Goto transaction ME21.
Then go to system-->status.Then take take standarad program for the me21n.I think 'SAPLMEGUI'.
Open this program in SE38 and go to attrubutes.Take the package of this program.Package is 'ME'.
Go to SMOD.Press F4.Click on iforamtion systems button.Give u r package 'ME' there.
Press enter.U will get all the enhancements. there.For Adding enhancement we have the enhancement
'MM06E005'.
Now go to CMOD and create the project and Assign this Enhancemt in Enhancement assigments.Then u wil get the exits which u have to implement.
I hope this may help you.
Thanks,
01-29-2009 10:40 AM
thanks for youre reply.
there is a list of exits' available on the SMOD....
how to we concude that our vendor assingment is relating to this user exit. how to assess???
what code shoudl i write inside the exit.....?
hope u help in this regard.
01-29-2009 10:44 AM
Hello ,
Once you find all the exits in enhancement MM06E005 , Please see the Interface of the Different Exit Functions available and implement your code for Assiging vendor (By default) .
I hope you are going to set the vendor based on POOrg Elements .
Regards,
01-29-2009 10:50 AM
HI giri.
As i said u in previous use
Enhancement MM06E005
Exit EXIT_SAPMM06E_006.
Implement this exit.
I_ekko-Lifnr = 'U r lifnr which u want to pass.
Tats it.
U need not do anything.
Thanks
01-29-2009 11:29 AM
thanks for your reply.
as u suggested i have assigned the I_ekko-Lifnr = 'S-1001'.
It's not giving any error. after assigning it , i have raised one po nothing is happening , i put a break point here. and raised po. when i click save button in me21n it is accessing this exit. but to no impact on the vendor no field....
ur suggestion pls?
01-29-2009 12:44 PM
HI giri,
Ok Do you idea in BADI.
Go to se19.GIve ME_PROCESS_PO in Classical BADI and click on create implementation.
In that BADI in OPEN method u can defualt the value in VEndor then u can save the vendor value.
Thanks,
01-29-2009 1:13 PM
hello giri,
data : ls_mepoheader type mepoheader
DATA : LS_MEPO´HEADER TYPE MEPOHEDAER.
l_mepohaeder-lifnr = 'S-1001'.
CALL METHOD im_header->set_data
EXPORTING
im_data = ls_MEPoheader.
i think it solvs u r problem.
Thanks,
03-18-2009 7:41 AM