‎2006 Jul 27 6:15 PM
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.
‎2006 Jul 27 6:17 PM
Hi Sey ni,
Take a look at these docs.. They explain user exits in detail..
http://help.sap.com/saphelp_erp2005/helpdata/en/55/4063b9b5f611d395ef00a0c929f4c9/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/af/390b389321be5ae10000009b38f842/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/2d/531437a96f11d1a1de080009b433a9/frameset.htm
cheers,
Prashanth
P.S Please reward helpful posts
‎2006 Jul 27 6:17 PM
Hi Sey ni,
Take a look at these docs.. They explain user exits in detail..
http://help.sap.com/saphelp_erp2005/helpdata/en/55/4063b9b5f611d395ef00a0c929f4c9/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/af/390b389321be5ae10000009b38f842/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/2d/531437a96f11d1a1de080009b433a9/frameset.htm
cheers,
Prashanth
P.S Please reward helpful posts
‎2006 Jul 27 6:20 PM
Hi Sey,
Please check import parameter I_BNCOM.
It contains material, plant and batch information.
Hope this will help.
Regards,
Ferry Lianto
‎2006 Jul 27 6:26 PM
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
‎2007 May 10 7:55 PM
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
‎2006 Jul 27 6:47 PM
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..
‎2006 Jul 27 6:51 PM
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