2007 Feb 06 12:05 PM
Hello All,
I am in a fix right now.
I want a certain validation done in Tcode me21n.
Although I have the name of the badi that I have to use,
I can only see the BADI in se18 / Badi definition.
How do I proceed?
The name of the BADI is ME_PROCESS_PO_CUST.
Do I create an implementation for the BADI or what??
Thanks.
Hello All,
I am in a fix right now.
I want a certain validation done in Tcode me21n.
Although I have the name of the badi that I have to use,
I can only see the BADI in se18 / Badi definition.
How do I proceed?
The name of the BADI is ME_PROCESS_PO_CUST.
Do I create an implementation for the BADI or what??
Thanks.
2007 Feb 06 12:08 PM
Have a look at below links. May be helpful to you.
http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
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
Best Regards,
Vibha
*Please mark all the helpful answers
2007 Feb 06 3:37 PM
Hi Ravi,
Goto Tcode SE19:
give Implementation name as : ZME_PROCESS_PO_CUST and press "F5" for Creation
it asks BADI Definition name as "ME_PROCESS_PO_CUST" just you create .
and press enter
and you give the BADI Implementation Description : XXXXXXXXXXXXXXXXXXXX
save this Implementation
click on the Interface tab and double click on the Implementation Class as "ZCL_IM_ME_PROCESS_PO_CUST".
then you have the Following Methods . double click on the Method it opens the Code window for that method.
IF_EX_ME_PROCESS_PO_CUST~INITIALIZE Instance Method Public Initializations (Invoked Once Only)
IF_EX_ME_PROCESS_PO_CUST~OPEN Instance Method Public Open a Purchase Order
IF_EX_ME_PROCESS_PO_CUST~PROCESS_HEADER Instance Method Public Processing of Header Data
IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM Instance Method Public Processing of Item Data
IF_EX_ME_PROCESS_PO_CUST~PROCESS_SCHEDULE Instance Method Public Processing of Delivery Schedule Line Data
IF_EX_ME_PROCESS_PO_CUST~PROCESS_ACCOUNT Instance Method Public Processing of Account Assignment Data
IF_EX_ME_PROCESS_PO_CUST~CHECK Instance Method Public Closing Check
IF_EX_ME_PROCESS_PO_CUST~POST Instance Method Public Post
IF_EX_ME_PROCESS_PO_CUST~CLOSE Instance Method Public Closing Processing
IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_HEADER_REFKEYS Instance Method Public Field Selection Reference Key Document Header
IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_HEADER Instance Method Public Special Field Selection Header
IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM_REFKEYS Instance Method Public Field Selection Reference Key Document Item
IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM Instance Method Public Special Field Selection Item
as looks like bellow.
<b>method IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM.
Here you will write the coding part.
endmethod.
save,check & activate
come back and activate again.</b>
Thanks & regards
Sreeni
2007 Jul 25 1:38 PM
Hello, i need help with this BADI IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM
I need to modify ekpo-loektz when I record an order.
it is posible from this badi?
Help please.
2007 Jul 25 4:04 PM
Hi David,
LOEKZ is a deletion indicator in PO. Why do you need to modify this?
Anyway, to answer your query, yes it it possible to change in method PROCESS_ITEM.
Try this one..
DATA: ls_mepoitem TYPE mepoitem.
*... get data
ls_mepoitem = im_item->get_data( ).
ls_mepoitem-loekz = space.
*... set data
im_item->set_data( ls_mepoitem ).
Hope this helps.
Best regards,