Application Development and Automation 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: 
Read only

User Exit

Former Member
0 Likes
1,173

Hi Experts,

For the first time I'm working on user exits. This is regarding 'EXIT_SAPLVBMD_001' related to transaction MSC2N. I don't know how to start with in the inlcude program 'ZXMHDU01'. My requirement is to calcualte the "shelf life exp. date" based on a calculation and give this as a message.

I hope I'm using the correct User Exit!!

My question is: How can I refer the 'MATERIAL NUMBER', 'BATCH' and 'PLANT' entered in the transaction 'MSC2N' in the Include.

For Eg: If the user entered 'E028' for material number,

'4586' for the batch

'US21' for the plant.

Please advise me.

thnx.

1 ACCEPTED SOLUTION
6 REPLIES 6
Read only

Former Member
0 Likes
964

Hi Sey,

Please check import parameter I_BNCOM.

It contains material, plant and batch information.

Hope this will help.

Regards,

Ferry Lianto

Read only

Manohar2u
Active Contributor
0 Likes
964

Yes this is the correct exit to change shelf life exp. date <b>C_MHDAT</b>

Here you have the structure BNCOM as an input. Use this structure's input to calculate the date value based on the logic you have.

For this you need to create a project from CMOD say Z1.

Add this component SAPLMHD1.

Then double click on this function module, then again double click on the include. Here you write your logic.

Then activate and come out to the initial screen of CMOD and actiave the exit.

Then you can test from transaction to test your exit's code. You can also place break points on your name.

Regds

Manohar

Read only

Former Member
0 Likes
964

In MSC2N transaction,

when i try using I_BNCOM importing parameter.

its blank

is there any setting that is to be done to to pass the matnr, charg, werks field to populate to use the user exit for shelf life exp date.

Regards,

Ramya

Read only

abdul_hakim
Active Contributor
0 Likes
964

hi

you first need to find the corresponding enhancement name of this customer exit.

for this you could follow the below steps.

1.go to se85

2.choose environment

3.exit tech

4.enhancement

5.customer exit

6.press the extended selection button

7.type SAPLVBMD in the component name field.

8.press execute.

9.it will give you the corresponding enhancement name

Implementing Customer exit.

1.go to CMOD transaction

2.create a project

3.assign enhancement which u have found.

3.edit the components

4.do your necessary changes inside the customer include.

5.activate the project

you can get material number,batch etc from the interface parameter of the customer exit..

Cheers,

Abdul Hakim

Mark all useful answers..

Read only

Former Member
0 Likes
964

hi sey,

first of all if u know the package name, the way to find the userexit for a specific transaction is

go to transaction SE80 --> Repository Information System --> Enhancements --> Customer Exits --> Enhancements --> now give the package name in the seletion screen ...... and execute ... u'll get all the user xits name .....

This is one of the way to find the user exit

to find the package :

Go to tcode --> system --> status ... U get the program name .. then goto GOTO --> Attributes --> get the package name

i think it would be helpful for you

Regards,

Naveen