Skip to Content

Trigger badi after giving data in custom tab of po item


We have added custom tab in po item level, now we want to make those fields manditory

for specific document type.We are using badi ME_PROCESS_PO_CUST .

The message is getting triggered initially , but after giving data in the custom fields the badi

is not getting triggered again.And triggers if we make changes to some other fields in po.

So can we trigger the badi after giving data in custom tab ?

I was trying something like this.


  DATA: l_if_header TYPE REF TO if_purchase_order_mm,
        ls_header TYPE mepoheader,
       ls_mepoitem TYPE mepoitem,
  l_if_header = im_item->get_header( ).
  ls_header   = l_if_header->get_data( ).
  CALL METHOD im_item->get_data
      re_data = ls_mepoitem.
IF ls_header-bsart = 'BW'.
if ls_mepoitem-ZZONAME IS INITIAL.
MESSAGE 'Plz enter Operator name in custom data' TYPE 'E'.

Any pointers are welcome..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Oct 01, 2009 at 06:45 AM

    Solved using exit EXIT_SAPMM06E_012

    This exit will trigger even after giving data in custom tab at po item level.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.