BADI Implementation for MIGO

Hi,
  My requirement is to <b>add a new field</b> at header level in transaction code <b>MIGO</b>. No new fields at item level is required
  To achieve above task i have implemented the BADI <b>MB_MIGO_BADI</b>. As per documentation of this BADI, copied the sample implementation.
This sample code gives one field (Number) at header level and at item (Detail)level a screen with new tab  with three fields ( namely <b>Quantity , Unit of Measure  and Text</b>).
Now i have commented the new screen at item level created by this BADI. Still the fields in the commented screen validation is taking place.
  Even though the screen is commented at item level still the fields validation has taken place. I dont want these iteme level validations also. how do it ?
Can you please give us the solution to above requirement.
Regards
Badari Talanki
Message was edited by: Badari narayana Talanki

Hi,
  Can you please post the details of the BADI definition (Definition name), so that it would be helpful for the forum to answer the query.
Rgds,

Similar Messages

  • BADI implementation for NOTIF_EVENT_POST not getting triggered

    Hi All,
            We have created an implementaion for the NOTIF_EVENT_POST. And it was working fine previously. Now it is not working for some reason. In fact issue is that the implemetation is not getting triggerd at all. I have put a BREAK-POINT statement in the code, but does not even goes into the code.
    I have checked all the properties. It is active. The table V_EXT_IMP has a entry corresponding to the BADI definition and implementation.
    I tried to debug the standard transaction IW52 (which uses this). The program runs till the FM call for CL_EXITHANDLER=>GET_INSTANCE. It created a instance also. But it does not get inside the call for the method of the BADI LR_BADI_INST->CHECK_DATA_AT_POST.
    I am at a fix now. Can somebody answer this issue? It would be very helpful.
    Regards
    Barada.
    Edited by: Baradakanta Swain on Aug 5, 2008 4:06 PM

    I did not get the issue with the BADI implementation. But as our time line was very tight, we moved the code to BTE event for Updating Notifications.
    This required a little tweaking of the code and now it is working.
    I am marking it ANSWERED so as to remove it from the list of unanswered questions.
    Regards
    Barada

  • Need a BADI/ exit for MIGO transaction

    Hi,
    I need a BADI / exit for tha transaction MIGO. My requirement is before displaying the materials in the item tab, check whether the user has authorization for that material or not. If he has no authorization, give error message. This should be done for all types of documents.
    Please let me know if you need more information.
    thanks,
    Kishore

    hi,
    You can have the authorization for the inventory management via authorisation..
    Check the path: SPRO --> MM --> Purchasing --> Inv. management nad physical inventory --> Authorization management  --> Maintain roles and assign users....
    Regards
    Priyanka.P

  • Help required with badi implementation for IBASE

    Hi,
    I have implemented and activated a BADI (Defination name: BADI_IBASE_SAVE_CHCK). This BADI is for additional checks before changes to an IBASE is saved. However, this BADI is not getting triggered.
    I tried debugging the transaction IB52 during the SAVE operation, but couldnt get the reason.
    Can anyone help me out with this...
    I implemeted the BADI from the SPRO transaction in the following path.
    SPRO>Customer Relationship Management>Master Data>Installed Base> Enhancements-->BADI:Additional check when saving Installed Base.

    Hi Dharmendra,
      Check if this is your case..
    Note
    This Business Add-In is not suitable for checking individual field content in an installed base, or installed base component: To do this, see Business Add-In: Additional Checks When Modifying Installed Base Headers and Business Add-In: Additional Checks When Modifying Components.
    Regards.
    Manuel

  • !!URGENT!! BADI Implementation for creation of G/L accounts

    Please can you urgently help. I am trying to implement a user exit or badi to check the uniqueness of the description while creating a G/L account.
    I tried to create a BADI implementation to the definition FI_LIMIT_ACCOUNT but it gives error messages that this is for SAP internal use.
    The user exit ZXF03U01 used in enhancement SAPMF02H cannot be used as this exit passes only SKA1 and SKB1.I would like to check on SKAT. The fields affected in SKAT-TXT20 and SKAT-TXT50.
    Do you see a solution to this?
    I have the same to be implemented for KS01/KS02 - Create/Change Costcenter.
    A prompt response would be appreciated.

    Also try :
    CL_IM_QISR1_GL_ACCOUNT_CRE  Class
    Or FM`s
    GL_ACCOUNT_INSERT            
    GL_ACCOUNT_IN_COA_INSERT     
    GL_ACCOUNT_IN_COMPANY_INSERT 
    GL_ACCOUNT_SAMPLE_INSERT     
    GL_ACCT_CH_REQ_CREATE_ACCOUNT
    Thanks

  • To find out BADI implementation for a standard transaction

    Like for User Exit is there any standard code to find the BADI implemetation for a Transaction Code.
    If so please paste the code.

    Hi pagal,
    The following is the code for the report program which lists Userexits and BAdi's for a given Tcode...
    Regards
    Karthik D
    <b>P.S.: Reward Points if this is Helpful</b>
    *& Report  ZDK_FIND_BADI
    REPORT  ZDK_FIND_BADI.
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    * Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    * Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    * For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    endcase.

  • QISR1 BADI implementation for HCM Processes & Forms

    Hello All,
       I am working on HCM Processes and Forms. I have created a process for Promotion/Position changes. For which I have to provide the drop down values for position, job, EE group, and Bonus Plan information. These value helps need to be restricted based on certain conditions.
    In order to achieve this, I have created a new implementation for QISR1 and added the logic in the method "IF_EX_QISR1~INT_SERVICE_REQUEST_INIT". When I test my process, it is not considering the new implementation and always pointing to the reference implementation with the scenario "SASR".
    Is there any customization settings for getting the new implementation while testing the process.
    Please tell me what was the mistake in my process.
    Thanks,
    Bindu

    Hi,
    Do you have a Z scenario created to handle the requirement ? I believe you need to perform a bunch of customizing activities in QISRSCENARIO transaction.
    Phani.

  • BADI/UserExit for MIGO in Stock Transfer

    Hi Gurus,
    I have a requirement.
    When posting a GR in MIGO, if the material has been flagged to go through inspection, MIGO post the batch to quality inspection.
    Now, when a batch has already gone through inspection (for example in another plant) and its released (passed) and its been transferred to another plant, if we are receiving this batch doing a post GR in MIGO, it automatically post it to quality inspection again.
    Is there a BADI, UserExit or way to skip this inspection and post the batch to unrestricted stock since its already gone through inspection in the previous plant and has a Decision Code A0 (accepted etc).
    We don't want to change the material master for this because we still want the material/batch to go through quality inspection if its hasn't already been.
    Thanks..
    Baz
    Edited by: Basil Balogun on Sep 23, 2010 1:49 AM

    Hi,
    Try the possibilities of MB_MIGO_BADI. I think in method LINE_MODIFY, POST_DOCUMENT and perhaps PAI_DETAIL.
    I hope this helps you
    Regards,
    Eduardo

  • BADI implementation for Copying control in CRM

    HI,
      Can anybody help me for my requirment, i want to implement BADI for copying control in CRM how to implement, and i want to filed in qutation screen how .
    Regards,
    Sivakumar.

    Check the BADI "ME_PROCESS_PO_CUST".
    Regards
    Vinod

  • BADI implementation for importing values from excel

    Hi All,
    This is my first ever post in this forum and I am a newbie in ABAP. I have this doubt rather I would say I am stuck while implementing a BADI for importing Excel values.
    We have a BADI for 'Upload flow rate' button which is built on PLM frame work on webdynpro.
    The requirement is that after clicking the ' 'Upload flow rate'  button it should prompt for selecting the excel file and after selecting that file, the values should get loaded to the internal table.
    what I have tried till now is that
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
       EXPORTING
        I_FIELD_SEPERATOR    =
         I_LINE_HEADER        = 'X'
         I_TAB_RAW_DATA       = IT_RAW       " WORK TABLE
         I_FILENAME           = 'C:\abcdl\book1.xlsx'
       TABLES
         I_TAB_CONVERTED_DATA = lt_result
       EXCEPTIONS
         CONVERSION_FAILED    = 1
         OTHERS               = 2.
    IF SY-SUBRC <> 0.
       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endmethod.   
    I tried hard coding the xls file but it gives error as 'CNTL_error' which I guess is a known issue when we use this function module in webdynpro.
    So how can I get the values from excel without using datasource and just by hard coding the file name?
    Regards,
    Anand
    Anand

    There is no solution to this - SAP have said they will re-introduce this functionality, but they havent said when (as far as I am aware).
    However, we have developed a workaround (for Web reports anyway), let me know if you are interested.
    Patrick

  • Badi implementation for T-code: QE71

    Hi Experts,
    I am implementing a badi in transcation QE71 my requirement is to automatically generate quality data. In this t-code we enter the value for the MIC of the material for each inspection lot.
    But in the screen only one entry can be done at a time our requirement is to enter 10 data at a time. Badi which hits when we press save button is QE_RESULT_VALUATION but the data entered in screen is column wise that is if it has 5 MIC for the material (thickness, socket length,....) then first it take thickness then in another loop it take socket length and so on. Please give me suggestion that how would I implement this badi. Please help
    Thanks and regards,
    Suruchi

    HI,
    Based on you requirement to enter the multiple entries at a time of inspection result data.
    you can perform the same scenario with the one more transaction called qa32. Over here you need to enter inspection lot no. and serial no. later on the another screen appears with different parameters to enter its respective values.
    using Badi QE_SAVE with two methods 1.) IS_ACTIVE 2.) TABLES_IN_OPERATION
    IS_ACTIVE-RV_ACTIVE = 'X'.
    in  TABLES_IN_OPERATION method, you will find the structure : IS_QALS
                                                                                    EV_SAVING_ALLOWED
                                                                                    CS_QAPO
                                                                                    CS_QAPP
                                                                                    CT_QAMK
                                                                                    CT_QASP
                                                                                    CT_QASE
                                                                                    CT_QAKL
    IS_QALS, CS_QAPP &  CT_QAMK , you will get the all the basic inform.
    and using function modules 1.) QAPB_QAPP_POST 2.) QEBU_QASR_POSTING
    we can update/ insert multiple entries of data in to the qapp, qasr, qals tables.
    At last by running the T-Code : qe71 you will find the all the entries you have inserted in the tables.
    regards,
    balu.

  • Java BAdI implementation for Customer specific Spell check

    In IS-M/AMC, I am working on implementation of a Java BAdI, namely ICustSpellCheck, which enables Customer Specific Spell check instead of the standard MS-Word spell check. Could someone provide pointers on the java code that goes into different methods of this class?

    Hi Dharmendra,
      Check if this is your case..
    Note
    This Business Add-In is not suitable for checking individual field content in an installed base, or installed base component: To do this, see Business Add-In: Additional Checks When Modifying Installed Base Headers and Business Add-In: Additional Checks When Modifying Components.
    Regards.
    Manuel

  • BADi/UserExit for MIGO : To popup batch classification screen auto

    Hi all,
    I want to pop up batch classification screen automatically in MIGO when performing a goods movement . In MIGO there is a command button for that to open up the batch classification screen, but my requirement is when click CHECK or SAVE button, branch it to batch classification screen if those characteristics are not maintained.
    Please reply .
    Thanks and Best regards,
    Sandun

    HI ,
    Chk BADI using these steps..
    1. Go to the TCode SE24 and enter CL_EXITHANDLER as object type.
    2. In 'Display' mode, go to 'Methods' tab.
    3. Double click the method 'Get Instance' to display it source code.
    4. Set a breakpoint on 'CALL METHOD cl_exithandler => get_class_name_by_interface'.
    5. Then run your transaction.
    6. The screen will stop at this method.
    7. Check the value of parameter 'EXIT_NAME'. It will show you the BADI for that transaction.

  • BADI/EXIT for MIGO for accounting  document posting

    Hi
    I am using MIGO where SAP post Mat Document and Accountying document.
    This Uses FM  'MB_POST_GOODS_MOVEMENT  < Include LMIGOKG1>, once this FM executed both MKPF and BKPF data gets filled . I can see tha data for MKPF in debug but I am not able to see data for Accounting Document.Even I cant see the Acc. document no assigned by SAP
    I need to change some fieds for Acc. Document <BSEG-VBUND>
    Can any one help me to find in which structure or table I can get data for Accounting document

    am using the method POST_DOCUMENT,
    am writing the code like..
    sample code..
    DATA: wa_mseg type mseg,
    wa_mch1 type mch1,
    wa_ausp type ausp.
    loop at it_mseg into wa_mseg.
    *select single * from mch1 into wa_mch1 where matnr = wa_mseg-matnr*
                                                               and charg = wa_mseg-charg.
    if sy-subrc is initial.
    *select * from ausp into wa_ausp where objek = wa_mch1-cuonj_bm*
                                                   and klart = '023'.
    if sy-subrc is initial.
    if wa_ausp-atwrt EQ 'ACCEPTED'.
    continue.
    else.
    if wa_ausp-atwrt EQ 'REJECTED'.
    call function 'popup_to_display_text'.
    endif.
    endif.
    endif.
    endif.
    endloop.
    when i debug ,i find no data in the mch1 table ..
    any help..
    thanx

  • BAdI Implementation for Customer/Vendor Basic Data

    My requirement is, In vendor and Customer Invoices I need to include a Employee Data
    [z table] which is a item data and this employee data will be in a table control in the BAdI - BADI_FDCB_SUBBAS01. For doing this, I need a program specifications and Procedure. Please any help me and provide me this
    Thanks in Advance,
    Regards,
    KAMAL KP.

    Hi Nalini,
    Could you help in populating Z segment (ZTAX) which is added to the ZDEBMAS07 (copied from DEBMAS07).
    This segment is added at very last and I only can see sinle method FILL_ALE_SEGMENTS_OWN_DATA in BADI CUSTOMER_ADD_DATA_BI. But not getting logic how can I populate this locating it very last of the tree.
    Its easy for me to put it say after E1KNA1M or after E1KNA11. Please show something if you can.
    Code what I have written still is:
    TYPES: BEGIN OF ty_j_1imocust,
              j_1icstno TYPE j_1imocust-j_1icstno,
              j_1ilstno TYPE j_1imocust-j_1ilstno,
             END OF ty_j_1imocust.
      DATA: ls_j_1imocust1 TYPE ty_j_1imocust.
      DATA: lv_kunnr TYPE kna1-kunnr,
            ls_t_idoc_data TYPE edidd.
      DATA: lv_flag TYPE char1.
      DATA: lv_j1icstno TYPE j_1imocust-j_1icstno,
            lv_j1ilstno TYPE j_1imocust-j_1ilstno.
      DATA: ls_edidd TYPE edidd.
      DATA: ls_j_1imocust TYPE j_1imocust.
        CLEAR ls_t_idoc_data.
        READ TABLE t_idoc_data INTO ls_t_idoc_data WITH KEY segnam = 'E1KNA1M'.
        IF sy-subrc = 0.
          lv_kunnr = ls_t_idoc_data-sdata+3(10).
        ENDIF.
      CLEAR ls_t_idoc_data.
      READ TABLE t_idoc_data INTO ls_t_idoc_data WITH KEY segnam = 'ZTAX'.
      IF sy-subrc = 0.
        DELETE t_idoc_data INDEX sy-tabix.
      ENDIF.
      CLEAR ls_j_1imocust.
      SELECT SINGLE *
      FROM j_1imocust INTO ls_j_1imocust WHERE kunnr = lv_kunnr.
      IF sy-subrc = 0.
        MOVE ls_j_1imocust-j_1icstno TO ls_j_1imocust1-j_1icstno.
        MOVE ls_j_1imocust-j_1ilstno TO ls_j_1imocust1-j_1ilstno.
        ls_edidd-mandt = sy-mandt.
        ls_edidd-segnam = 'ZTAX'.
        ls_edidd-sdata  = ls_j_1imocust1.
        APPEND ls_edidd TO t_idoc_data.
      ENDIF.

Maybe you are looking for

  • Class to Get File List from Application Server

    Hi all I've to obtain the file list of a directory from application server, I can use a FM too but It's possible the lenght of file name is upper then 40 characters so I can't use FM EPS_GET_DIRECTORY_LISTING. Thanks Edited by: Aristoteles92 on Apr 2

  • Segment and Accounts Recievable

    dear all,           i have activated document splitting for segment reporting for the co code.the issue is when payments & Reciepts are made in AR/AP system creates two line items for the same invoice for clearing purpose.however our client requires

  • I accidentally trashed the desktop folder on MacbookPro OS10.8.5.

    I transferred from another Mac an iPhoto library, which appeared on the desktop of my 2008 MacbookPro with OS10.8.5. When I trashed it, the entire desktop folder was also trashed  It now starts up with a blank screen, except for the picture. Any sugg

  • Re: Calling to India in free trial subscription

    vidyasagar wrote: Just now I have activated free trial calls to any where. But when I am calling to India the calls are not going. I have dialed +91XXXXXXXXXX. Same time when I called to my mobile (USA) number it is connecting. Could you please help

  • SAP james bond's

    hi can any body tell me what is the scenario and why should we creat 3KEH and 3KEI ? and what is  DOCUMENT SPLITTING what is the purpose of it PLZ TELL ME IN DETAIL AND CLEARLY