Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

user exit FOR assign predefined vendor no

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

tarangini_katta
Active Contributor
0 Kudos

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,

8 REPLIES 8

tarangini_katta
Active Contributor
0 Kudos

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,

0 Kudos

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.

0 Kudos

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,

0 Kudos

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

0 Kudos

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?

0 Kudos

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,

0 Kudos

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,

Former Member
0 Kudos

xxx