Skip to Content
author's profile photo Former Member
Former Member

Filter for MB_MIGO_BADI

Hi Experts,

i have implemented a BADI (MB_MIGO_BADI) in MIGO for customer screen but the requirement is this screen has to be called only for a particular Movement type not for all the movement types.So how can i achive it?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 07, 2008 at 03:55 PM

    i have solved my problem by my own,

    by using enchancement spots

    i have created a enchancement in saplmigo's include

    LMIGOSMC

    at

    ENHANCEMENT-POINT FIELDSELECTION_01 SPOTS ES_SAPLMIGO.

    and i have wrote this code

    EXPORT GODEFAULT_TV-BWART from GODEFAULT_TV-BWART TO MEMORY ID 'INTERNAL'.

    and the BADI i have wrote

    IMPORT GODEFAULT_TV-BWART TO BWART FROM MEMORY ID 'INTERNAL'.

    IF BWART = 'ZGR'.

    E_CPROG = 'ZMIGO'.

    E_DYNNR = '0200'.

    E_HEADING = 'ROLL DETAILS'.

    ENDIF.

    now its working....

    thanks to all for your replys.........

    if any one got the same requirment then use this

    Regards,

    Ameen Shaik

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 17, 2008 at 10:53 AM

    Hi ameen,

    Since the BADI MB_MIGO_BADI Is not a filter dependent badi so you cannot set filter for the badi.

    inside the badi implementaion why dont you give the condtions like

    if the movement type (bwart ) eq < your reqired movement type>

    write your logic.

    endif.

    Regards

    Kiran

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      i have solved my problem by my own,

      by using enchancement spots

      i have created a enchancement in saplmigo's include

      LMIGOSMC

      at

      ENHANCEMENT-POINT FIELDSELECTION_01 SPOTS ES_SAPLMIGO.

      and i have wrote this code

      EXPORT GODEFAULT_TV-BWART from GODEFAULT_TV-BWART TO MEMORY ID 'INTERNAL'.

      and the BADI i have wrote

      IMPORT GODEFAULT_TV-BWART TO BWART FROM MEMORY ID 'INTERNAL'.

      IF BWART = 'ZGR'.

      E_CPROG = 'ZMIGO'.

      E_DYNNR = '0200'.

      E_HEADING = 'ROLL DETAILS'.

      ENDIF.

      now its working....

      thanks to all for your replys.........

      if any one got the same requirment then use this

      Regards,

      Ameen Shaik

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.