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

BADI

Former Member
0 Likes
1,010

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.

4 REPLIES 4
Read only

Former Member
0 Likes
936

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

Read only

david_mg1
Explorer
0 Likes
936

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.

Read only

Former Member
0 Likes
936

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,