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

badi

Hi,

can i have some sample prog's on badi.

Regards,

kb

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2007 at 10:38 AM

    hi,

    go to spro ---> material's management --->purchasing --->buisness addin's for purchasing

    the second badi : ME_PROCESS_PO_CUST

    THE 4th badi : ME_GUI_PO_CUST

    sap provides sample code for both of them.in the menu bar goto --> sample code.

    hope it helps.

    rgds

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2007 at 10:49 AM

    &----


    *& Report ZBADI_TEST *

    *& *

    &----


    *& *

    *& *

    &----


    REPORT ZBADI_TEST .

    tables: spfli.

    data: wa_spfli type spfli,

    it_spfli type table of spfli with key carrid connid.

    *Initialise the object of the interface.

    data: exit_ref type ref to ZCL_IM_IM_LINESEL,

    exit_ref1 type ref to ZIF_EX_BADISPFLI1.

    selection-screen begin of block b1.

    select-options: s_carr for spfli-carrid.

    selection-screen end of block b1.

    start-of-selection.

    select * from spfli into corresponding fields of table it_spfli

    where carrid in s_carr.

    end-of-selection.

    loop at it_spfli into wa_spfli.

    write:/ wa_spfli-carrid,

    wa_spfli-connid,

    wa_spfli-cityfrom,

    wa_spfli-deptime,

    wa_spfli-arrtime.

    hide: wa_spfli-carrid, wa_spfli-connid.

    endloop.

    at line-selection.

    check not wa_spfli-carrid is initial.

    create object exit_ref.

    exit_ref1 = exit_ref.

    call method exit_ref1->lineselection

    EXPORTING

    i_carrid = wa_spfli-carrid

    i_connid = wa_spfli-connid.

    clear wa_spfli.

    regards,

    srinivas

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi,

      B4 creating report i think we need to create badi in se18.

      can u just send me that process and the fields dec by ref to wht all that req.

      Pls i dont know anything in badi.

      pls help.

      Regards,

      kb

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2007 at 10:58 AM

    Hello,

    Since you have an example of custom BADi given by a fellow SDN member ,Please go through the following as a part of standard SAP enhancement

    using BADIs

    Requirement : to bring additional header and item tabs in transaction 'MIGO' using BADI

    Summary:

    Creating an instance of BADI can be done to bring additional header and details screen to the MIGO transaction

    Click on SE19 -> Give implementation name as ZBADI_tab -> Create

    In the definition name

    Give MB_MIGO_BADI -> Enter

    Enter text, save and activate

    Click on GOTO -> Sample Code -> Display / Copy

    if you want to see the code inside the BADI

    Click on display ->Class Builder CL_EXM_IM_MB_MIGO_BADI with methods will be shown

    Double click on the methods to view the code

    inside the code on top of the programming container you can view the export/import/tables...parameters

    You can work only with these parameters inside that particular method

    If you want to see a live implementation of the BADI,

    ***8Request you to save the BADI as a local object or try in IDES or delete the custom instance ZBADI_tab after purpose

    since in MIGO screen extra header and item tab will appear********

    Click on Copy...Overwrite

    Click “yes”

    Activate again

    Go and Run MIGO

    You can see that a header and item level tab strip has already been added to the screen with

    names MIGO BAdI EXAMPLE for item and MIGO BAdI EXAMPLE as header tab text

    Regards

    Byju

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2007 at 10:58 AM

    aslo check this link.it gives step by step procedure to implement badi:

    http://www.saptechnical.com/Tutorials/ABAP/XD01/XD01.htm

    plz reward points if it helps.

    rgds

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2007 at 11:54 AM

    hi,

    not necessarily, u dont have to create a badi.

    like if we want add additional fields in purchase order me21n header.

    then we will have to use the badi's i mentioned before.badi's have thier own methods u write code in those methods.

    the badis which i mentioned for purtchase order have sample code for them.

    do reward points it helps.

    rgds

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2009 at 10:28 PM

    thanks

    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.