Debug badi BBP_CREATE_BE_PO_NEW

Hi experts
How can I debug badi BBP_CREATE_BE_PO_NEW?
Thanks
Nilson

Hi,
break user will work . But are you sure that you have implemented correct BADI and it gets triggered in that transaction.
Sometimes it is not so easy to find a BADI method or user exit to implement at an exact momment of the execution of a program. Here is one of the ways that can be used to spot which BADI method or user exit should be implemented.
1. Enter SE24;
2. Enter the class name CL_EXITHANDLER;
3. Double-click the method GET_INSTANCE;
5. Set a break-point at command line CASE sy-subrc (near line 27);
6. Execute the transaction you want to analyse; It will stop at the break-point you have just set on class CL_EXITHANDLER when it finds any BADI method/Exit call.
7. On debug screen, type the field name exit_name. This field contains the BADI method/Exit name which is being called in the program on that momment.
8. Press F8 to see the next calls.
Thanks&Regards,
Phani,
poinmts if helpful

Similar Messages

  • How can I debug BADI BBP_CREATE_BE_PO_NEW  ??

    Hello experts,
    how can I debug BADI BBP_CREATE_BE_PO_NEW to find out what goes wrong with my coding?
    I set breakpoint for external Web-user. I also set session breakpoints and resent the shopping cart using FM BBP_PD_SC_TRANSFER. The BADI is never debugged.
    We use SRM 6.0 with classic scenario.
    Any useful ideas?
    Joe

    Hi,
    You can put an endless loop in your BADI BBP_CREATE_BE_PO_NEW  ,as shown below and force the program to stop there. Now  go to SM50 and switch to debug mode for the program and start debugging(take process that keeps hangs in your endless loop).
    Data: l_check.
    do.
    if l_check eq 'X'.
    exit.
    endif.
    enddo.
    BR,
    Disha.
    DO reward points for  useful answers.

  • Badi BBP_CREATE_BE_PO_NEW not triggering

    Hi all,
    Iam working on classic scenario. Working in ERP 4.0. The requirement is to populate dummy account assignment details to the shopping cart (which is successfully achieved using the badi BBP_DOC_CHANGE_BADI). 
    Next I have to remove the populated dummy account assignment details during the process of PO creation, which Iam trying to achieve using the badi BBP_CREATE_BE_PO_NEW.
    But this badi gets triggered only when the old scenario ie ERP 1 or 2 is being used. But it does not trigger while using ERP 4.0.
    I have tried checking SDN and other sites, but could not get any reply. I have checked the link http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=23593303, but does not help.
    Please help.
    Edited by: Aiswarya Chandrasekaran on Jun 6, 2011 6:31 AM

    hi,
    for this scenario, pls confirm if PO is created in the ERP system or locally in SRM.
    if PO is created locally in SRM, then this BAdI will not be triggered.
    if PO is created directly in the ERP system, then BBP_CREATE_BE_PO_NEW  BAdI should be triggered.
    regards.

  • BADI BBP_CREATE_BE_PO_NEW  for PO created from Bid.

    Hi gurus.
    Iu2019m working in classic scenario, and I need to change PO data before to create the PO in ECC.
    When we create a PO form SC we can change data in BADI BBP_CREATE_BE_PO_NEW (methods FILL_PO_INTERFACE and FILL_PO_INTERFACE1) without problem. But when we create a PO from a BID the BADI doesnu2019t work.
    If we fix a break-point the system stop for PO created from SC, but doesnu2019t stop for PO from Bid.
    Any suggest?
    Thanks and regards.
    Raúl.

    What you can try is to use the BBP_DOC_CHANGE_BADI for BID: when price is 0: clear IR_IND (invoice expected) and GR_IND (goods receipt expected) on item level. Be prepared for SRM putting back those indicators though (SRM gets these from the vendor details).
    The badi you mentioned in your first post should be the one you have to use as you are in classic mode. I would raise an OSS note because the way you use the badi is correct - it should be called and if it doesn't SAP has to provide a solution.
    Maybe there is a user-exit in ECC in the function module that creates the order (BAPI_PO_CREATE1) as a (hopefully temporary) work around.
    Regards,
    Robin

  • BADI BBP_CREATE_BE_PO_NEW to ECC EKPO-ZFIELD

    Hi all,
    My customer is asking to add a custom field in ECC table EKPO.
    This field needs to be populated with the Catalog ID number form a PO creacred in SRM.
    Im using BADI BBP_CREATE_BE_PO_NEW to trasnfer the SRM PO to ECC.
    My question is how do I transfer the Catalog ID to the custom field in EKPO-CATALOGID?
    Its IT_EXTENSIONOUT usefull for this?
    Any example?
    Thanks in advance.
    Nico.-

    Hi thanks for the replay.
    There are some things I still dont understand how they work.
    The link says:
    lh_item_account-po_item = lh_cs_item-po_item.
    lh_item_account-serial_no = lh_cs_account-serial_no.
    lh_item_account-yourcustomefieldname = 'XXX '.
    lh_extensionin-valuepart1 = lh_item_account.
    append lh_extensionin to <lt_extensionin>.
    clear lh_extensionin.
    lh_extensionin-structure = 'BAPI_TE_MEPOACCOUNTINGX'.
    lh_item_accountx-po_item = lh_cs_item-po_item.
    lh_item_accountx-serial_no = lh_cs_account-serial_no.
    lh_item_accountx-yourcustomefieldname = 'X'.
    lh_extensionin-valuepart1 = lh_item_accountx.
    append lh_extensionin to <lt_extensionin>.
    If I need to move a value to a new custom field in EKPO do I still need to use 'BAPI_TE_MEPOACCOUNTINGX'.
    What is this structure?
    How will this should be to move a value to a custom field in ECC EKPO?
    Thanks
    Nico.-

  • How to debug BADI BBP_SAPXML1_OUT_BADI during PO Creation and change

    Hi All,
    I have a scenario in which i need to send some additional  fields with the PO data to the XI via PROXY .
    To do this i have enhanced the proxy structure with additional fields and For mapping these fields, I created an implementation of method PURCHASEORDER of BAdI BBP_SAPXML1_OUT_BADI with filter PO ( Purchase orders ).
    But this implementation is not getting processed.
    Whenever Po is created the XI will receive the data but the additional fields are not available in XI.
    To check the code i need to debug the badi implementation .
    Can anybody please tell me why this badi is not triggered and how to debug the badi code.
    Its urgebt .
    Thanks in Advance.
    Regards,
    Naresh

    Hi Naresh,
    Go to your BADI Implementation set infinite loop in the method. Run the transaction SPPFP & set Promotion status to 0 & Processing Type as MET & execute it, Select the PO you want to debug & press F8. Goto sm50 to debug the BADI.
    Thanks

  • How to Debug - Badi BBP_SAPXML1_IN_BADI

    Hello Experts,
    Could you please guide me that how to debug this badi - BBP_SAPXML1_IN_BADI.
    Will this badi works for Schedule agreement release?
    Thanks in advance.
    Aakash

    you have to use the transaction sxi_support to debug the inbound xml document.
    get the xml document , insert the payload , use /h for debugging , place the breakpoint and execute.

  • Debug BADI....

    Hi all,
         I need to debug a BADI BILL_ACC_IF.
         I am setting a break point in the BADI implementation and then I am trying to maintain the Billing document online.......
         but it is not going in debugging mode.....
    can you pls hel p me ?

    You need to catch the BDoc and then debug from there.
    1.  In transaction SMQR, deregister the CSA_BILLDOC* queue.
    2.  Run the Billing Due List
    3.  In transaction SMQ2, you will see the "caught" BDoc
    4.  Execute the BDoc in debug mode, and set a breakpoint in your Implementing Class and Method
    Thanks,
    Ben

  • How to debug badi in web UI?

    Hi!!
    How to I debug a newly created badi in web UI?
    I have created badi ZCRM_BP_UIU_VIEW_CONFIG. Filter condition is
    CLEAR_HEAD/CasePopupCaseEF = VIEW_ID
    The Idea is that not all user can create cleansing cases with Accounts from ECC.
    I set break-points in BADI method, I searched for Accounts, then I activated break-points in BSP_WD_CMPWB and after this I create the cleansing case. There is a general break-point poping up, but no break-point related to my BADI.
    I am new to Badi in Web UI and I do not have any clu how to do the debugging. Maybe the badi is wrong, maybe I do not debug correctly.
    Thanks for your help!!
    Cristina

    Hi Cristina,
    Set an external break-point. In menu there are 2 buttons to debug. Click on the right side button.
    Hope this helps.
    Caíque Escaler

  • SRM - Shopping Cart - how to debug BADI BBP_CREATE_BE_RS_NEW in ECC system

    Hi,
    We are using BADI BBP_CREATE_BE_RS_NEW (ECC system).
    We put external breakpoint on this BADI.   Made sure also that the BADI is activated.
    Our problem is it didnu2019t stop on our breakpoint.  Authorizations to debug/etc are there.
    When it was not possible to debug when shopping cart is created in internet link (SRM), we used tcode BBPSC01 (ECC system) to see if we can go to the BADI and debug it.  However still the program did not stop at break point at the ECC side.
    (SRM Module shopping cart)
    How do we debug this BADI in ECC?  Anything to set up or ?????
    SRM_SERVER   550   0013    SAPKIBKT13   SRM_SERVER 550: Add-on installation
    SRM add on to ECC 6.0
    Looking forward to hearing from you as soon as possible.
    Thanks.

    Hello,
    User calling BAdI in ECC must be a dialog one in order to be able to debug with.
    Check whom user is called in R/3 by having a look at RFC transactional assigned to your R/3 backend in SRM SM59 transaction.
    Then, in R/3, modify this user as a dialog one (type 'B') then put an external break-point for this user.
    Regards.
    Laurent

  • I can't Debugging BADI WS14000133

    Hi all,
    I need debugging the BADI to workflow WS14000133, but I can't debugging. I tested with my user, the user WF-BATCH and the user to create the SC, but with nothing I have had lucky.
    Is possible this debug?
    Many thanks,
    Regards,
    David.

    Hello
    of course it is possible to debug.
    go to SE18, call your implementation, and open the get_remaining_approvers.
    put your Breakpoint here.
    Put an another Breakpoint to function module BBP_PDH_WFL_DB_UPDATE in the fu.group
    bbp_pdh_wfl. here you have to change the lv_in_dialog flag to X -> then it will go to debugging mode..
    now call the transaction bbpsc01, and create a SC. at the last step, before ordering go to debugging /h...
    there you go
    Regards,
    DAniel

  • Release vs Debug: Bad Memory Access

    Hello everyone.
    For a school assignment I have to write a program that sorts bottles (inputed by the user) into three bins, and state the minimum amount of moves it takes. I've completed the program, that's not really the problem.
    There is a drop down menu up on the top left, and it gives me the option between 'Release' and 'Debug' (under Active Configuration). Now I don't quite understand the difference, but expected for the final copy it should be compiles with it set to Release. But that's just an assumption.
    The problem is, or maybe this is just a question, when I set it to Debug and build my program, it runs great. If I change this option to Release and run the program I get "EXCBADACCESS" and the program fails.
    My main worry is this might indicate a potential problem with compatibility on other platforms (maybe). I've compiled the program in Terminal with GCC and it works fine there as well. I will post my code below if it helps any. My hope is this is either a bug in xcode, or simply nothing to worry about.
    I've underlined the area XCode highlights when the error occurs. Thank you.
    #include <stdio.h>
    #include <stdlib.h>
    const char bottle_colour[][6]={"red","white","blue"};
    int main()
    int i,low,move[6],bottles[3][3];// bottles[bin][colour]
    for (i=0;i<3;i++)
    printf("Please enter the amount of %s bottles in each bin with a space inbetween each amount\n",bottle_colour);
    scanf("%i%i%i",&bottles[0],&bottles[1],&bottles[2]);
    printf("\n");
    move[3] += bottles[1][0] + bottles[2][0];// Moving all red bottles to bin 1
    move[3] += bottles[0][1] + bottles[2][1];// Moving all white bottles to bin 2
    move[3] += bottles[0][2] + bottles[1][2];// Moving all blue bottles to bin 3
    move[2] += bottles[1][0] + bottles[2][0];// Moving all red bottles to bin 1
    move[2] += bottles[0][1] + bottles[1][1];// Moving all white bottles to bin 3
    move[2] += bottles[0][2] + bottles[2][2];// Moving all blue bottles to bin 2
    move[5] += bottles[0][0] + bottles[2][0];// Moving all red bottles to bin 2
    move[5] += bottles[1][1] + bottles[2][1];// Moving all white bottles to bin 1
    move[5] += bottles[0][2] + bottles[1][2];// Moving all blue bottles to bin 3
    move[4] += bottles[0][0] + bottles[2][0];// Moving all red bottles to bin 2
    move[4] += bottles[0][1] + bottles[1][1];// Moving all white bottles to bin 3
    move[4] += bottles[1][2] + bottles[2][2];// Moving all blue bottles to bin 1
    move[1] += bottles[0][0] + bottles[1][0];// Moving all red bottles to bin 3
    move[1] += bottles[1][1] + bottles[2][1];// Moving all white bottles to bin 1
    move[1] += bottles[0][2] + bottles[2][2];// Moving all blue bottles to bin 2
    move[0] += bottles[0][0] + bottles[1][0];// Moving all red bottles to bin 3
    move[0] += bottles[0][1] + bottles[2][1];// Moving all white bottles to bin 2
    move[0] += bottles[1][2] + bottles[2][2];// Moving all blue bottles to bin 1
    for (i=0;i<5;i++)
    _if (move[i+1] < move && move[i+1] < move[low])_
    low = i + 1;
    printf("\nThe lowest amount of moves it would take is %i.",move[low]);

    Well, welcome to programming.
    The code as printed obviously isn't quite right due to formatting problems. There's a way to format it so it is displayed correctly but I don't know it off hand.
    If you use look at the build warnings you'll get a pretty good idea what is going on. In general there should be few or zero warnings in the build process. They're there for a reason. C provides a lot of rope.
    A few issues right away from the command line compiler:
    s.c:12: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘const char (*)[6]’
    s.c:13: warning: format ‘%i’ expects type ‘int *’, but argument 2 has type ‘int (*)[3]’
    s.c:13: warning: format ‘%i’ expects type ‘int *’, but argument 3 has type ‘int (*)[3]’
    s.c:13: warning: format ‘%i’ expects type ‘int *’, but argument 4 has type ‘int (*)[3]’
    I presume the following code
    if (movei+1 < move && movei+1 < movelow)
    low = i + 1;
    is
    if (move[i+1] < move && move[i+1] < move[low])
    low = i + 1;
    If so, I see the following warning:
    s.c:43: warning: comparison between pointer and integer
    Trust me, the issue is not portability at all nor a bug in Xcode. There are significant bugs in this code that just happen to compile.
    For instance, in line 12, the %s takes a pointer to a string yet a pointer to an array of strings has been provided.
    In line 13, the scanf %i operator requires a pointer to an integer yet a pointer to an array of pointers as been provided. You should have passed something such as &bottles[x][y] for each of those arguments.
    If you actually have 'move && move[i+1]' in the code, the code is comparing an address to an integer and I'm sure that's not intended.
    Lastly, 'low' is not initialized (those are difficult to find and the compiler does not warn of them even when using the -Wall flag). Probably should be set to zero. Different compilers and platforms vary on guarantees of a zero value.
    Since this is a project in school I will stop at this (and there are more issues in the code than I have stated).
    It'll all come in time. Good luck to you.

  • SC-Customer-Fields in BADI BBP_CREATE_BE_PO_NEW

    Dear all,
    I have created SC-Costomer-Fields (Structure CI_BBP_ITEM & CI_BBP_ITEM_SC). In the BADI I don't have this customer-fields, and I ask me why?
    In the old BADI BBP_CREATE_PO_BACK we had the table IT_CUF_ITEM where the customer-fields where included. In the knew one, it's missing.
    What can I do to use this customer-fields in this BADI??
    thanks for help

    Hi
    Which SRM version are you using ?
    Seems like a bug in the  SRM system.
    Please go through the SAP OSS Notes below ->
    Note 1097408 Wrong mapping of CUF fields during transfer of service items
    Note 910391 Shopping cart: Data loss due to old BBP_CREATE_PO_BACK BADI
    Note 906465 Shopping cart transfer:Mapping BADI bbp_create_po_back/...rs
    Note 903805 Shopping cart transfer: BAdI bbp_create_po_back/...rs_back
    Do let me know.
    Regards
    - Atul

  • BBP... badi is not getting triggered

    BBP... badi is not getting triggered... Set External breakpoint... PO getting created, but not stopping in the breakpoint. Does it mean that the badi is not getting fired?

    Hi,
    If you are trying to debug the badi which creates the backend document(Po/PR),then see the foll threads for more pointers:
    Re: How can I debug BADI BBP_CREATE_BE_PO_NEW  ??
    Re: Debugging a BADI which is called in update task in background.
    BR,
    Disha.

  • BOR BANKDETAIL is not getting triggered

    Hi Experts,
    We are facing a problem, we are changing bank data but still BOR BANKDETAIL is not getting triggered.Mysterious part is that
    the event created was triggered previously, now its' not triggering.
    If i want to debug to know the resaon then how can i do it?
    How can i know the place where the event of the BOR  is raised?
    Can anoyone give any idea regarding this behaviour?

    Hi,
    If you are trying to debug the badi which creates the backend document(Po/PR),then see the foll threads for more pointers:
    Re: How can I debug BADI BBP_CREATE_BE_PO_NEW  ??
    Re: Debugging a BADI which is called in update task in background.
    BR,
    Disha.

Maybe you are looking for