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

How to use BADI

Hello,

I have to use 'MB_MIGO_BADI' definition and 'CIN_PLUG_IN_TO_MIGO' is the implementation for this.

Can anybody please tell me how to call the Particular BADI method in my Z program..

Or any BADI related document if you have...???

Regards,

Rushikesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

8 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2006 at 06:09 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2006 at 06:12 AM

    With every implementation there is a class associated!!

    You will see the class in the attributes of the implementation(SE19)

    Just call the method of the class.

    Anyway, why do you want that?? BADI's are exits for the standard program.They are used to meet some standard customer requirements to bypass the modification of the code!!

    Implementation of a 'Z' badi is a good idea, only if you don't want your code to be tampered!! but still 'Z' codes are always modifiable!!(😉)

    regards,

    Amiya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2006 at 07:37 AM

    'CIN_PLUG_IN_TO_MIGO'-->Go to SE18 then

    1) put Definition name MB_MIGO_BADI

    2)Implementation creat-put ZMB_MIGO_BADI,name of implementation class as zCL_IM_CIN_PLUG_IN_TO_MIGO save it under transport request and activate it

    3)go to SE19 then put the same badi name, it contains several

    4)ZCL_IM_CIN_PLUG_IN_TO_MIGO, double click on it contains several methods to be used

    5)i.eeIF_EX_MB_MIGO_BADI~LINE_MODIFY Add / Change a Line (GOITEM)

    METHOD if_ex_mb_migo_badi~line_modify .

    • CHECK gf_not_relevant_to_cin NE abap_true.

    CALL FUNCTION 'J_1IEXGM_BADI_LINE_MODIFY'

    EXPORTING

    i_line_id = i_line_id

    CHANGING

    cs_goitem = cs_goitem.

    ENDMETHOD. "IF_EX_MB_MIGO_BADI~LINE_MODIFY

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Miloni,

      Thanks for replying..

      My requirment is like i have to create GR with Excise Details.I think 'POST_DOCUMENT' method of 'MB_MIGO_BADI' will work for me.

      AS per your suggestion if i create Z implementaion for the same, how exactly i have to use the Z implementation in my program..

      Waiting for your reply..

      Regards,

      Rushikesh

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2006 at 06:12 AM

    Hi,

    Check the link below.

    badi

    Hope it helps.

    Cheers

    VJ

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2006 at 06:59 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 12, 2006 at 08:56 AM

    Steps:1. Execute Business Add-In(BADI) transaction SE18

    2. Enter BADI name i.e. HRPBSGB_HESA_NISR and press the display button

    3. Select menu option Implementation->Create

    4. Give implementation a name such as Z_HRPBSGB_HESA_NISR

    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. HRPBSGB_HESA_NISR) and double click on the method name for example within HRPBSGB_HESA_NISR contract is a method

    8. When changes have been made activate the implementation

    regards

    vinod

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2007 at 09:39 AM

    Hi all,

    I need to add line items (involving tax calculation) to the screen of FI documents in MIGO.

    Can someone suggest me how i can go about this.

    Is it possible to use the BADI MB_MIGO_BADI .If yes, which method and implementation do I need to use.

    Regards,

    nsp.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2014 at 09:49 AM

    This message was moderated.

    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.