07-27-2007 7:47 AM
Dear Experts,
I have a particular requirement in tcode ME51N.
Issue -
A user creates a Purchase Requisition using doctype 'CR' where in the system allows him to change the material description. After entering the details and changing the material description the user changes the doctype to 'ER' for which change in material description is not allowed and saves the data. So the description which he changed during doctype 'CR' gets saved for doctype 'ER'.
I don't want the user to do this practice. So I want to put a restriction for doctype 'ER' that if the material description is changed it will automatically pick the description from makt table and will not reflect the changes in description which he has made using doctype 'CR'.
For this from sdn.sap I came to know that there is a BADI named ME_PROCESS_REQ_CUST. But I am not aware how to use it as I am new to BADI.
Can anyone tell me how to implemement this?
07-27-2007 8:13 AM
Hi,
Steps:
1. Execute Business Add-In(BADI) transaction SE18
2. Enter BADI name i.e. ME_PROCESS_REQ_CUST and press the display
button
3. Select menu option Implementation->Create
4. Give implementation a name such as Z_ME_PROCESS_REQ_CUST
5. You can now make any changes you require to the BADI within this
implementation, for example choose the Interface tab
6. Double click on the method you want to change, you can now enter
any code you require.
7. Please note to find out what import and export parameters a
method has got return the original BADI definition
(i.e. ME_PROCESS_REQ_CUST) and double click on the method name
for example within ME_PROCESS_REQ_CUST contract is a method
8. When changes have been made activate the implementation
Check these links for info about badi..
http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
http://support.sas.com/rnd/papers/sugi30/SAP.ppt
http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
http://support.sas.com/rnd/papers/sugi30/SAP.ppt
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
http://members.aol.com/_ht_a/skarkada/sap/
http://www.ct-software.com/reportpool_frame.htm
http://www.saphelp.com/SAP_Technical.htm
http://www.kabai.com/abaps/q.htm
http://www.guidancetech.com/people/holland/sap/abap/
http://www.planetsap.com/download_abap_programs.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
http://www.esnips.com/web/BAdI
http://www.allsaplinks.com/badi.html
Regards
07-27-2007 8:13 AM
Hi,
Steps:
1. Execute Business Add-In(BADI) transaction SE18
2. Enter BADI name i.e. ME_PROCESS_REQ_CUST and press the display
button
3. Select menu option Implementation->Create
4. Give implementation a name such as Z_ME_PROCESS_REQ_CUST
5. You can now make any changes you require to the BADI within this
implementation, for example choose the Interface tab
6. Double click on the method you want to change, you can now enter
any code you require.
7. Please note to find out what import and export parameters a
method has got return the original BADI definition
(i.e. ME_PROCESS_REQ_CUST) and double click on the method name
for example within ME_PROCESS_REQ_CUST contract is a method
8. When changes have been made activate the implementation
Check these links for info about badi..
http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
http://support.sas.com/rnd/papers/sugi30/SAP.ppt
http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
http://support.sas.com/rnd/papers/sugi30/SAP.ppt
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
http://members.aol.com/_ht_a/skarkada/sap/
http://www.ct-software.com/reportpool_frame.htm
http://www.saphelp.com/SAP_Technical.htm
http://www.kabai.com/abaps/q.htm
http://www.guidancetech.com/people/holland/sap/abap/
http://www.planetsap.com/download_abap_programs.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
http://www.esnips.com/web/BAdI
http://www.allsaplinks.com/badi.html
Regards
07-30-2007 10:32 AM