Activate a BADI

Hi,
I changed a BADI that was reached i save of activity.
Now the BADI is not reached.
How can I activate the BADI again?
Thanks,
Sara

Hi Sara,
1. check the transaction which is related to badi.
2. You can also check with class cl_exithandler where in get_instance you can put break point and find that the badi is called or not.
3. After making changes to the BADI Implementation and SAVE it should be activated to reach from the Debugging.
For that Go to the Change mode of the BADI from the initial Screen of SE19 and there you get the button to activate the BADI.
let me know if anything else is required.
thanks
Hemant

Similar Messages

  • Problem in Activate the BADI implementation

    HI All,
    I doing the implementation for the MB_DOCUMENT_BADi, when I am activating the implementation, it is giving one message
    'Select or Create Enhancement implemenation' ,  in that it is showing enhancement points options.
    How to activte the BADI implemetation in ECC>
    reg,
    Ajay reddy

    Hi,
    In se19 select classical badi ...give the z* name ...under create implementation select classical badi and give the badi name as
    MB_DOCUMENT_BADI ......click create button...
    Next after giving short desc...a pop-up window will be displayed for the creation of enh.implementation ...select the create button ...give the enhancement impl.   name and short desc..now in the pop-up you can see the enhancement implementation jus created select that same ...and press enter......now you can activate the implementation......as normal..
    Thanks,
    Shailaja Ainala.

  • Activate standard badi - prompts for Object Key?

    In SE19 when trying to activate an SAP delivered implementation of a badi I'm prompted for an object key for the implementation class.   
    fyi  Running ECC6 on Basis 7 kb14.
    Go to SE19
    Display badi FIAA_BW_DELTA_UPDATE
    Go to environment menu, choose activate.
    Notice that the activate option is greyed out?
    Go back and change the FIAA_BW_DELETA_UPDATE badi implementation.      Go to environment menu, choose activate. You'll be prompted for an object key for the implementing class -  CL_IM_FIAA_BW_DELTA_UPDATE.
    Is this correct behavior?   We don't want to change the class - just activate it.    Could I get around this by copying the class changing the implementation class to a ZCL_IM_FIAA_BW_DELTA_UPDATE?
    Thanks in advance for any help on this topic.

    Hi Ryan.
    You need to apply an OSS note for this
    Please check the extract below..it will solve the problem
    check the following Notes.
    Check these OSS Notes - 828240, 688477 and 590034,599896
    Note Pasted below :
    When you load the delta-enabled InfoSources of asset accounting, no time stamp information is updated in the OLTP system if you have selected "Simulation of the delta process initialization" (initialization without data transfer; technical mode 'S') as the update mode.
    This affects the InfoSources:
    1. 0ASSET_ATTR_TEXT
    2. 0ASSET_AFAB_ATTR
    3. 0FI_AA_11
    4. 0FI_AA_12
    As a result of the error, you cannot start delta extraction after the initialization without data transfer because the delta extractor does not find any time stamp information it can use.
    Other terms
    RSA3, BWOM2_TIMEST, delta, DeltaInit, BWFIT, 0FI_GL_4, BWFIT_GET_TIMESTAMPS, BWFIT_RESET_TIMESTAMPS, BWFIT_UPDATE_TIMESTAMPS
    Reason and Prerequisites
    a) The problem is caused by a program error.
    b) The 'FIAA_BW_DELTA_UPDATE' BADI is not active.
    Solution
    For a: Implement the source code corrections to create a correct time stamp for the initialization without data transfer.
    For b: For a data extraction to the BW system according to the delta method, the 'FIAA_BW_DELTA_UPDATE' BADI must be active. When assets are changed, this BADI writes the corresponding change entries which are read by the extractors to determine the delta values. If this BADI is not active, the extraction terminates with error BWFIAA 001 (BAdI implementation FIAA_BW_DELTA_UPDATE inactive in source system). During a DeltaInit extraction with data transfer, the system flags the data request as incorrect or canceled in the monitor and issues the error message. However, during the DeltaInit extraction without data transfer, the system does not issue an error in the BW system even though the extractor triggered an error message and the termination of the extraction in the OLTP system. The data request in the BW system has the status 'successful' and the user cannot see that an error has occurred. However, a time stamp is not created in these cases since the following delta extractions would cause inconsistencies because the BADI would not be able to log all changes that have occurred since the last extraction.
    Regards
    Byju

  • To activate a BADI

    Hi,
    I need help regarding a BADI.
    I have implemented a  BADI MD_PIR_FLEX_CONS  and activated it.
    I have also set PIR's having a consumption indicator = 4.
    But still when I run the MRP i.e. MD04  BADI Active is still unchecked.
    Please provide me a solution to make it active.
    Thanks .
    Arbind

    Hi,
    I have seen there is no other Activated BADI.
    But I don't know when I am activating and giving a Break-point .
    When I run the MRP MD04 ,the  Break-point is not triggering at all .
    Please help this is very important for my Implementation Project.
    Thanks.

  • How to activate Business Add-In (BAdI) for Enterprise Service

    Hi,
    I have connected enterprise service
    Find Production Order by Work Centre
    external/technical Name: ProductionOrderSimpleByWorkCentreQueryResponse_In
    Namespace: http://sap.com/xi/APPL/SE/Global
    SAP Software Component Version: ESA ECC-SE 605
    Internal Name: ECC_PRODUCTIONORDERSWQR
    SAP Library - Enterprise Services for SAP ERP
    http://es-workplace.sap.com/socoview(bD1lbiZjPTAwMSZkPW1pbg==)/render.asp?packageid=DE0426DD9B0249F19515001A64D3F462&id=…
    from our ECC system to our PI 7.1 and did first tests.
    I'm getting response to my requests from the ECC system.
    But in the response, there are only the production order IDs for the requested work centre.
    I suppose that the BAdI PORD_SE_PRODUCTIONORDERSWQR, mentioned in service description, has to be activated for the service in the ECC system, to get all the other optional production order elements, defined in the service response message type.
    Am I right?
    Which steps in the ECC backend are neccessary to activate a BAdI for an enterprise service?
    Regards
    Roland

    Salegram,
    BADi is not provide us functionality for data upload for Annual PF / Pension Report.
    BADi is using for some add in our business transaction.
    just explore tx se18 ans se19.
    Amit.

  • Activate BADI?

    Hi Experts,
    How to activate BADI 'Invoice_update' related to MM.
    Please Suggest?
    Rajiv Ranjan

    Hi,
    Here are the steps to Implement BADI.
    1. Go to SE19. Write Implementation Name as ... ZXXXYYY
    2. Then it will ask for definition name... You give 'Invoice_update'  as the name.
    3. Then you will go to the "Change Implementation ZXXXYYY page" in this page ...
    4. Go to Interface Page
    5. On interface you will see methods....
    6. Double click on the method which is useful to you... like CHANGE_AT_SAVE...
    7. It will open Class Builder...
    8. In the class builder you will be able to access the parameters of the Method. Like here you can access Document header, G/L ac posting etc.
    9. Take the useful parameters/ Modify according to your requirement and then
    10. Activate the badi...
    Hope this is helpful to you...If so pl. give points.

  • BI : activate BADI

    Hi Experts ,
    can anybody tell me the steps of how to activate the BADI FIAA_BW_DELTA_UPDATE after entering into the Tcode SE19 in R/3.and then what is the steps after that.
    Kindly advise.
    Thanks & regards.
    M.S

    Hi Arminder ,
    I have understood the process of the dataflow in the below given link :
    http://help.sap.com/saphelp_nw70/helpdata/EN/a4/f4153c4eb5d82ce10000000a114084/content.htm
    Getting the below error when done as per you said.
    BAdI definition FIAA_BW_DELTA_UPDATE is only provided for SAP internal use
    Message no. ENHANCEMENT188
    Diagnosis
    The BADI definition is provided for internal usage only.
    System Response
    No BADI implementation can be created or copied by a customer.
    Kindly advise.
    Edited by: M.S on Oct 20, 2009 4:03 PM
    Edited by: M.S on Oct 20, 2009 4:07 PM

  • Error while activating badi - ME_PROCESS_PO_CUST

    hi,
    i have written the code in the process_header and process_item separately and when i try to activate the class, it is giving warning msg
    In type group MMCNT
    'In unicode programs the '-' character cannot appear in names as it does here in the name "MMCNT_EKKO-BEDAT", "MMCNT_EKKO-WKRUS",  "MMCNT_EKKO-KDATE".
    i activated it, and the class gets activated, but when i try to activate the badi, it is giving error message "Implementation class contains errors".
    How to rectify the error and check whether my badi works or not?
    plz help me.
    thanks.
    Sakthi sri.

    In class interface, properties tab, i removed the check mark of unicode checks active and now i can activate the badi.

  • Creation of "New Badi" with Multiple Use

    Hi,
    I am trying to create New badi within enhancement spot which is multiple use, problem here is the badi interface method has got some exporting parameters.
    when i try to activate badi definition it is showing the error this type of interface which is having exporting or returning parameters cannot be used, however if i remove export parameters in the interface method, then i am able to activate the BADI definition.
    Please suggest me, is it not possible to have badi interface method with exporting or returning parameters if it is Multiple Use Badi???
    Thanks,
    Kranthi.

    Answered my self.
    it is the restriction. below is SAP documentations that explains the same
    http://help.sap.com/saphelp_nw70/helpdata/en/e4/5c3642eca5033be10000000a1550b0/frameset.htm

  • Creation of a BADI

    Hi SAP Guru's,
    Can someone provide me a detailed step by step procedure to create a BADI in CRM.
    You can also mail me at [email protected]
    Regards,
    Amit

    hi amit
    Go through the following Steps
    Goto Tcode SE18 for BADI Definition Creation.
    give definition Name : ZBADI_CUST--> Press F5 button for Creating the Definition.
    Give Description for the BADi Definition : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    In the Attributes tab you will find "TYPE" Tab
    there you will check the Check Box as "Multiple" because this badi definition is active for multiple BADI Implementations
    save & check the Badi Definition.
    Click on "Interface" tab
    Double Click on the Interface Name that is "ZIF_EX_BADI_CUST"
    here the screen is take you to tcode SE24
    here you will declare the methods
    give method name as "GET_MATERIAL" as INSTANCE Level.
    Click on Parameters Button just above your Method"GET_MATERIAL"
    and Give Parameters as
    P_MATNR IMPORT Type MATNR press enter
    X_MARA CHANGING MARA press enter
    save check and activate your badi Definition.
    Note : you just declare the method in BADI Definition Section you will write the Method Implementation
    in BADI IMPLEMENTATION Section.Because BADI's are pure Abstact class.
    Goto Tcode SE19:
    give Implementation name as : ZBADI_CUST_IMPL and press "F5" for Creation
    it asks BADI Definition name as "ZBADI_CUST" just you create .
    and press enter
    and you give the BADI Implementation Description : XXXXXXXXXXXXXXXXXXXX
    save this Implementation
    click on the Interface tab and double click on the Implementation Class as "ZCL_IM_BADI_CUST_IMPL".
    then you have the GET_MATERIAL Method . double click on the Method it opens the Code window for that method.
    as looks like bellow.
    method ZIF_EX_BADI_CUST~GET_METERIAL .
    Here you will write the coding part.
    if not p_matnr is initial.
    select single * from mara
    into x_mara
    where matnr = p_matnr.
    endif.
    endmethod.
    save,check & activate
    come back and activate again.
    then you need to use this badi in SE38 program.
    go through the following Code
    REPORT ZCUST_BADI1_IMPL_CALL.
    TABLES : MARA.
    *creatingthe BADI interface ref to following class
    DATA : OBJ TYPE REF TO ZIF_EX_CUST_BADI1.
    PARAMETERS : P_MATNR LIKE MARA-MATNR.
    START-OF-SELECTION.
    *passing the BADI interface ref var to following class method to get obj of BADI business add in class
    CALL METHOD CL_EXITHANDLER=>GET_INSTANCE
    EXPORTING
    EXIT_NAME =
    NULL_INSTANCE_ACCEPTED = SEEX_FALSE
    IMPORTING
    ACT_IMP_EXISTING =
    CHANGING
    INSTANCE = OBJ
    EXCEPTIONS
    NO_REFERENCE = 1
    NO_INTERFACE_REFERENCE = 2
    NO_EXIT_INTERFACE = 3
    CLASS_NOT_IMPLEMENT_INTERFACE = 4
    SINGLE_EXIT_MULTIPLY_ACTIVE = 5
    CAST_ERROR = 6
    EXIT_NOT_EXISTING = 7
    DATA_INCONS_IN_EXIT_MANAGEM = 8
    others = 9
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *calling the implementation class method via business add in class object
    CALL METHOD OBJ->GET_MATERIAL
    EXPORTING
    P_MATNR = P_MATNR
    CHANGING
    X_MARA = MARA.
    WRITE :/ MARA-MATNR,MARA-MBRSH,MARA-MTART.
    If you find useful mark the points
    ~~Guduri

  • Problem in invoking the BADI in SE19

    Hi,
    I am working on a BADI for the Tcode VD02 and i am facing a problem that when i am trying to activate the Implementation it is asking for the creation or assign of the Enhancement Implementation,but i am working on the existing BADI .
    Please provide me guidelines whether should i create the Enhancement or assign it to the Existing ones which are displaying in the pop-up screen......

    Hi ,
    goto SE18 and give you badi name then click on change , clcick on enter , when you are in change definition screen , from Menu click on implementation and then create , give a name and when you are in Implementation name then click on interface tab , double click on the method ,it will take you to the editor screen , you wiite your code,activate it and activate the BADI.
    Please let me know if you still need any more help.
    Thanks and regards,
    Rajeshwar

  • BADI in ECC 6.0

    Hi Experts,
    I had implemented a BADI in ECC 6.0. It is having some warnings. <b>But i am not able to activate the implementaion.</b>
    This badi is basically to copy the PO reference for Repair, Rework & Refurb to vendors to all documents.
    For this i found the BADi <b>LE_SHP_GOODSMOVEMENT</b>
    In that i have the method <b>CHANGE_INPUT_HEADER_AND_ITEMS</b>
    when i write the below logic here
    method IF_EX_LE_SHP_GOODSMOVEMENT~CHANGE_INPUT_HEADER_AND_ITEMS.
    **->Data declaration
      CONSTANTS:  C_LB TYPE LIKP-LFART VALUE 'LB',
                  C_X  TYPE C VALUE 'X',
                  C_O  TYPE MSEG-SOBKZ VALUE 'O',
                  C_E TYPE SHP_BADI_ERROR_LOG-MSGTY VALUE 'E',
                  C_ZM TYPE SHP_BADI_ERROR_LOG-MSGID VALUE 'ZM',
                  C_999 TYPE SHP_BADI_ERROR_LOG-MSGNO VALUE '999',
                  C_541 TYPE MSEG-BWART VALUE '541',
                  C_542 TYPE MSEG-BWART VALUE '542'.
      DATA: WA_CTLOG TYPE SHP_BADI_ERROR_LOG,
            WA_XIMSEG TYPE IMSEGVB,
            WA_XLIPS  TYPE LIPSVB.
      DATA: L_EBELN  TYPE EKPO-EBELN,
            L_EBELP  TYPE EKPO-EBELP,
            L_LIFEX  TYPE LIKP-LIFEX,
            L_LIFNR  TYPE LIKP-LIFNR,
            L_CHECK   TYPE C,
            L_BDMNG  TYPE RESB-BDMNG,
            L_MENGE1 TYPE MSEG-MENGE.
      TYPES: BEGIN OF TY_RESB,
               BDMNG TYPE BDMNG,
             END   OF TY_RESB,
             BEGIN OF  TY_MSEG,
               BWART TYPE BWART,
               MENGE TYPE MENGE_D,
             END   OF TY_MSEG.
      DATA: IT_RESB TYPE STANDARD TABLE OF TY_RESB INITIAL SIZE 0,
            IT_MSEG TYPE STANDARD TABLE OF TY_MSEG INITIAL SIZE 0.
      DATA: WA_RESB TYPE TY_RESB,
            WA_MSEG TYPE TY_MSEG.
    *-->Check for delivery type LB.
      CHECK IS_LIKP-LFART EQ C_LB.
    *-->Check for Purchase doc Number.
      IF IS_LIKP-LIFEX IS INITIAL.
        WA_CTLOG-MSGV1 = 'PO Number is Blank in Delivery'(001).
        L_CHECK = C_X.
      ENDIF.
      IF L_CHECK NE C_X.
        MOVE IS_LIKP-LIFEX TO L_LIFEX.
        CONDENSE L_LIFEX.
        L_EBELN = L_LIFEX+0(10).
        L_EBELP = L_LIFEX+11(5).
    *-->Get the PO Vendor
        SELECT SINGLE LIFNR INTO L_LIFNR FROM EKKO
                                 WHERE EBELN EQ L_EBELN.
        IF SY-SUBRC EQ 0.
    *-->Compare PO Vendor with the Delivery in Vendor
          IF IS_LIKP-LIFNR NE L_LIFNR.
            WA_CTLOG-MSGV1 =
            'PO Vendor does not match with Delivery Vendor'(002).
            L_CHECK = C_X.
          ELSE.
            READ TABLE IT_XLIPS INTO WA_XLIPS INDEX 1.
            IF SY-SUBRC EQ 0.
              SELECT BWART MENGE
                     INTO TABLE IT_MSEG FROM MSEG
                                     WHERE BWART IN (C_541,C_542) AND
                                           MATNR EQ WA_XLIPS-MATNR AND
                                           WERKS EQ WA_XLIPS-WERKS AND
                                           SOBKZ EQ C_O AND
                                           LIFNR EQ L_LIFNR AND
                                           EBELN EQ L_EBELN.
    **Subrc Check not required.
              SELECT BDMNG INTO TABLE IT_RESB FROM RESB WHERE
                            KZEAR EQ SPACE AND
                            MATNR EQ WA_XLIPS-MATNR AND
                            EBELN EQ L_EBELN
                            AND LIFNR EQ L_LIFNR.
              IF SY-SUBRC EQ 0.
                CLEAR L_BDMNG.
                LOOP AT IT_MSEG INTO WA_MSEG.
                  IF WA_MSEG-BWART EQ C_541.
                    L_MENGE1 = L_MENGE1 + WA_MSEG-MENGE.
                  ELSE.
                    L_MENGE1 = L_MENGE1 - WA_MSEG-MENGE.
                  ENDIF.
                ENDLOOP.
                LOOP AT IT_RESB INTO WA_RESB.
                  L_BDMNG = L_BDMNG + WA_RESB-BDMNG.
                ENDLOOP.
                L_BDMNG = L_BDMNG - L_MENGE1.
                IF NOT WA_XLIPS-LFIMG LE L_BDMNG.
                  MESSAGE I999(ZX) WITH
                  'Delivery Quantity Greater than Components'(004)
                                        'Required for Purchase order'(005).
                ENDIF.
              ELSE.
                MESSAGE I999(ZX) WITH
                'Delivery Quantity Greater than Components'(004)
                                      'Required for Purchase order'(005).
              ENDIF.
              IF L_CHECK NE C_X.
    *-->Populate PO Number in MSEG table
                LOOP AT CT_XIMSEG INTO WA_XIMSEG.
                  WA_XIMSEG-EBELN = L_EBELN.
                  WA_XIMSEG-EBELP = L_EBELP.
                  MODIFY CT_XIMSEG FROM WA_XIMSEG.
                ENDLOOP.
              ENDIF.
            ENDIF.
          ENDIF.
        ELSE.
    *-->Issue an error message if the PO entered in Delivery is Wrong
          WA_CTLOG-MSGV1 = 'Enter a Valid PO Number in the Delivery'(003).
          L_CHECK = C_X.
        ENDIF.
      ENDIF.
    *-->Populate the error table
      IF L_CHECK EQ C_X.
        WA_CTLOG-VBELN = IS_LIKP-VBELN.
        WA_CTLOG-POSNR = WA_XLIPS-POSNR.
        WA_CTLOG-MSGTY = C_E.
        WA_CTLOG-MSGID = C_ZM.
        WA_CTLOG-MSGNO = C_999.
        APPEND WA_CTLOG TO CT_LOG.
        CLEAR WA_CTLOG.
      ENDIF.
    endmethod.
    it is giving an<b> warning</b>
    <b>The feild LIFNR used in the where condition may contain Null values</b>
    <b>and i am not able to activate the implementation.</b>

    Hello Raghavendra
    For some reasons (that I do not fully understand) the field LIFNR of the tables can contain NULL values. However, with the following modifications of your coding it is possible to get rid of the warnings and activate the BAdI implementation.
    [code]  TYPES: BEGIN OF ty_resb,
      bdmng TYPE bdmng,
      lifnr TYPE lifnr,  " $field added
      END OF ty_resb,
      BEGIN OF ty_mseg,
      bwart TYPE bwart,
      menge TYPE menge_d,
      lifnr TYPE lifnr,  " $field added
      END OF ty_mseg.[/code]
    [code]...
    *-->Get the PO Vendor
        SELECT SINGLE lifnr INTO l_lifnr FROM ekko
        WHERE ebeln EQ l_ebeln.
        IF sy-subrc EQ 0.
       IF ( syst-subrc = 0 ) AND ( l_lifnr IS NOT INITIAL ).
    *-->Compare PO Vendor with the Delivery in Vendor
          IF is_likp-lifnr NE l_lifnr.
            wa_ctlog-msgv1 =
            'PO Vendor does not match with Delivery Vendor'(002).
            l_check = c_x.
          ELSE.
            READ TABLE it_xlips INTO wa_xlips INDEX 1.
            IF sy-subrc EQ 0.
              SELECT bwart menge lifnr  " $ field LIFNR added
              INTO TABLE it_mseg FROM mseg
              WHERE bwart IN (c_541,c_542) AND
              matnr EQ wa_xlips-matnr AND
              werks EQ wa_xlips-werks AND
              sobkz EQ c_o AND
              lifnr EQ l_lifnr AND  " Here it works but Why???
              ebeln EQ l_ebeln.
    **Subrc Check not required.
              SELECT bdmng lifnr  " $ field LIFNR added
              INTO TABLE it_resb FROM resb
              WHERE
              kzear EQ space AND
              matnr EQ wa_xlips-matnr AND
             lifnr EQ l_lifnr    AND  " Here it does not work but Why???
              ebeln EQ l_ebeln.
              DELETE it_resb WHERE ( lifnr NE l_lifnr ).
              DESCRIBE TABLE it_resb.  " fills sy-tfill.
             IF sy-subrc EQ 0.
              IF ( syst-tfill > 0 ).
                CLEAR l_bdmng.
    ...[/code]
    Regards
      Uwe

  • Query in Badi Implementation!!!!

    Hi all,
                     I have a requirement which requires me to Implement the Badi 'DOC_PERSONALIZE_BCS' .
    This is a filter dependent Badi.
    When I try to Implement this Badi , I am required to give a filter value.
    When I give the filter value and try to activate the Badi , I get a message as follows:
    "There are already Active Implementations for these Filter types"
    I checked and found out that there is already a Standard Implementation for this Badi.
    I want my Badi to get activated.
    Please tell me how I can activate my Badi for the Filter type.
    Kindly reply immediately as this is bit urgent.
    Regards,
    Vijay

    Hi,
    You can get your BADI activated even though the filter value is already defined in other implementation. This condition should not give any problem in activitating the BADI. But this condition should be avoided. Because if two implementations are present in BADI with same filter value then whenever the BADI is called, all implementations with the given filter value are executed which is not desirable.
    You need to deactivate the std implementation and then create new implementation or copy the std implementation and make changes in it as per your requirement.
    Please reward if useful.
    Regards,
    Ashlesha

  • BADI not access in tcode BP

    Hi Experts,
    I want to check for duplicate entries in tcode BP in CRM2007. I searched forums and most links specify bupa_addr_check. I created an implementation for this BADI and I am not able to access it. The implementation is active.
    I put an external breakpoint in class cl_exithandler in the method get_instance to know the badis/exits being called. Badi bupa_addr_check is not called.
    Is there some other way that I have to activate this badi?
    Regards,
    Abdullah Ismail

    Hi Abdullah,
    There may some other active BADI implementation for bupa_addr_check.
    So just go to se84 -> Enhancements -> Business Add-ins -> Implementation -> give bupa_addr_check in Definition Name.
    You will get all the implementation for that BADI.
    Now go to se19 and Deactivete all the other implementations.
    Then again active your implementation.
    Then it should work.
    I hope this will help you.
    Reward points, if useful.
    Regards,
    Nitin.

  • Badi ACC_DOCUMENT

    Hi BADI experts,
                             I have a requirement where I have to debug the code in the change method of BADI - ACC_DOCUMENT.....
    I have a Implementation for the same as Z_ACC_DOCUMENT_IDOC and I have the code in the change method..
    This BADI is triggered before an Inbound Idoc gets posted in SAP. Thing is that when I want to debug an error Idoc using WE19 and specifying the FM so as to get to this BADI code I am facing problems.......
    There is one thing here the BADI is Filter dependent and the Filter type is AWTYP. What does this signify?????
    One more thing is the call to the BADI is in FM -  BAPI_ACC_DOCUMENT_CHECK and  BAPI_ACC_DOCUMENT_POST ...This I got to knwo through BAPI documentation...
    Problem is like when I check for Function module for that particular Idoc's by pressing F4 I am getting a choice of different FM as 1) BAPI_IDOC_INPUT1 and 2)BAPI_IDOC_INPUTP......This is urgent give your suggestions and points will be rewarded accordingly...
    Regards,
    Raghav

    Hello Raghav
    Ans 1. BADI ACC_DOCUMENT is filter dependent that means you can activate your BADI Implementation for specific Application Area in this case. (For Example: I have used this BADI for WTY Module Claims Posting, so I used AWTYP = "WTYD" as a filtered application area for BADI Implementation)
    Ans 2. BAPIs BAPI_IDOC_INPUTP or BAPI_IDOC_INPUT1 are generic function modules used against the Process Codes for Inbound IDOC Processing, If you see code inside these two BAPIs, you will find a Query to tables like TBDBE or TBDBA, where actual Processing BAPI names are maintained against the respective Message Types. So, technically, you can use any one of these BAPIs to process your IDOC.
    Please suggest if you still have any issues.
    Thanks & regards,
    Amol G. Lohade

Maybe you are looking for