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.

Similar Messages

  • 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

  • How can we debug an SRM workflow problem?

    Q: How can we debug an SRM workflow problem?

    Hi,
    In SRM system using transaction SWI6 you can troubleshoot the workflow process.
    if you are using N step badi in the workflow process, we can debug the badi BBP_WFL_APPROV_BADI
    method GET_REMAING_APPROVERS
    if required please take a help of Abap consultant to debug...
    Thanks & Regards,
    prasad.s

  • How can i debug a rfc being called from sap

    hello Gurus,
    We made a RFC call from SAP r3 to sap grc nfe......we did not receive any data in sap grc .......we go to SM58 and there it gives
    the message "Name or password is incorrect (repeat logon)u201D.
    How can i find out where the data has stuck.
    Please help.
    BR
    Honey

    HI,
    please have a look at the link below..
    this may help u !!!
    [Re: how can i debug a rfc being called from .net connector (NCO) v2.0?;
    Best of Luck !!1
    Regards
    Ravi

  • How can I debug a routine created in Deletion of similar requests?

    Hello Experts,
    I need some help from you. I need to delete overlapping requests and the common
    settings you can set are not suitable, so I decided to write my own ABAP routine.
    But how can I debug a routine, which is implemented in the deletion of similar requests?
    Hope you can help me.
    Cheers
    Daniel Weilbacher

    Please go to the routine code..
    In the menu options..u will find an option for breakpoint--set..
    The line where breakpoint is set will get highlighted and u will also see a STOP symbol..
    then come out of routine..and then run the data load..
    this ABAP routine for overlapping request deletion runs before the scheduled data load..
    the run shud stop at the set breakpoint and show the routine code..in debugger mode..
    cheers,
    Vishvesh

  • How can I debug a sequence that has a subsequence is running in a separate thread?

    Hi,
    How can I debug a sequence that has a subsequence is running in a separate thread?
    I have to have a continues check for a  digital in signal to be able to terminate the sequence if a physical button is pushed.
    This is running in a separate thread, but this way I cannot debug the main sequence.
    Is there any workaround for this?
    Thanks,
    Andras

    This KB might help you:
    http://digital.ni.com/public.nsf/websearch/46D1E157756C37E686256CED0075E156?OpenDocument
    Let me know if this does not help.
    Allen P.
    NI

  • How can we Debug the workflow?

    Hi,
    How can we debug the workflow?
    Please help  me on debugging the workflow in step by step procedure?
    Early reply is highely appriciable.
    Regards,
    Chow.

    Hi,
    If you want to set breakpoints in method which is used in workflow task then it is possible
    till ECC5 am afraid about ECC6
    you can see the graphical view of workflow through transactions said by Kalpesh
    you can also use swwl (delete workflow) for viewing the container elements of the workflow.
    SWI2_ADM1:Workitem without agents
    SWI2_DIAG:Workflow with error
    these transactions are also helpful
    Thanks & Regards
    Hari Sankar M

  • How can I debug webdynpro java application?

    hi,
    How can I debug webdynpro java application?
    Thanks

    Check this document
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0cb32c5-36a7-2910-2c9b-ba4a5bbdbb56
    Also check this sdn thread Re: DeBugginng The WebDynPro Application particularly shailesh kumar posting
    /padmanaban
    Edited by: Padmanaban on Sep 26, 2008 1:55 AM

  • I have added a ADD-ONE like smart digg I want to debug this ADD-ONE. So plz help me how can i debug this.

    I wants to debug and ADD-ONE plz help me how can i debug the ADD-ONE.

    That's correct - you can't add it to another controller.
    From the View Controller Catalog for iOS:
    A split view controller must always be the root of any interface you create. In other words, you must always install the view from aUISplitViewController object as the root view of your application’s window. The panes of your split view interface may then contain navigation controllers, tab bar controllers, or any other type of view controller you need to implement your interface. Split view controllers cannot be presented modally.
    -=-
    Ken

  • How can we debug the screen pop up?

    How can we debug the screen pop up?

    Hi,
    if you know where the popup is raised it is easy of course as you just have to uses F6 to keep the debug mode running.
    But there is a way to get the popup into debug mode similar to typing /h into the ok code field of a sandard dynpro. Therefore you have to do the following steps:
    1) click the "Create a Shortcut" button in the gui to get a shortcut on your desktop (the button next to new session)
    2) in the oped screen for shortcut setting choose:
         type -> system command
         command -> /h
         depending on gui release you have to enter a system ID -> use the one of your system and parameters -> just type abc
    3) press finish to create the shortcut
    If you have done this you can drag and drop the shortcut from the desktop to a sap session or popup to switch on the debug mode. One shortcut works for all systems you have, the system id in it does not matter.
    Oh, while I often have the case that I forget to resize the window before the popup appears so i cannot access the shortcut directly on the desktop, just remeber that you can always open a small file explorer window go to the desktop folder and drag it from there ;o)
    Best Regards
    Roman

  • How can I debug if I don't have the FlexBuilder?

    If my swf file have problems in my client's computer, how can
    I debug?
    As the action script do not allow me to write file and the
    message box cannot reflect the current status of my program.

    You can't. You'll have to connect to your PC.
     Cheers, Tom

  • How can i debug my abap program?

    hi. how can i debug my program?

    Hi,
    There are many ways to start debugger
    •     By clicking the Execute button and selecting the debugging mode.
    •     From the ABAP/4 editor, by executing a program choosing Program  Execute  Debugging from the menu.
    •     Setting breakpoint in the program
    Components of ABAP/4 debugger
    The debugger shows the program information using six different views.
    •     Fields: Displays the field contents.
    •     Table: Allows modifying the contents of internal table.
    •     Breakpoints: Displays list of Breakpoint in the Program.
    •     Watchpoints: Allows dealing with Watchpoints.
    •     Calls: System call status like Event, Form etc.,
    •     Overview: Presents the program structure, events, subroutines, and modules.
    •     Settings:  Displays the calling sequence within a particular event, up to the current breakpoint.
    All these options are shown in the following screen.
    Arrow indicates the breakpoint of the program i.e., where user has stopped the program.
    Breakpoints
    A breakpoint is the signal, which is specified in the program, tells the system to stop the program execution and to start the debugger.  Following types of breakpoint are available with ABAP/4:
    •     Static are set up with the BREAKPOINT keyword inside the program, which you can directly display with the ABAP/4 source code editor.  To set the breakpoint in the program enters the keyboard BREAKPOINT.
    •     Dynamic this breakpoint is not visible in the code.  Position the cursor over the source code line to have the breakpoint and then select utilities -  breakpoint -  set.  You can delete them or display them from breakpoint list.  Or you can execute the program in the ABAP/4 debugger i.e., in debugging mode.
    •     Watchpoints are field specific.  The program is stopped when the field reaches the value specified in the watchpoint.  Execute the program in debugging mode.  Position the cursor over the needed field.  Press the F button to get the view of field.  Select the checkbox for the needed watchpoint.  Click on the continue button.
    •     Keywords/events The program stops just before executing a specific event or keyword.  To set breakpoint at particular event, from initial screen of debugger, select Breakpoint  Breakpoint at  at event/at keyword.  Enter the name of the keyword or event.  Click on OK.
    Navigating through the breakpoint
    Following buttons are used to navigate through the program and debugger.
    •     Single step:  Executes a single program command.
    •     Execute:  Similar to the single step, but when a program calls a subroutine, it executes the whole subroutine unlike single step.
    •     Continue: Executes the program until it is finished or until it finds next breakpoint.
    •     Return:  Allows for executing the program instruction up to the end of a routine and stops in the line of code where the subroutine gives back control to the main program.
    •     Tables:  Switches the debugger to the table view.
    Displaying and modifying values
    Every time the program is stopped within a debugger, you can display and modify the contents of table field and fields.
    To display the fields, click on V and you can view the contents of system field, program field, ABAP/4 dictionary fields, and external program fields.
    Displaying and modifying internal tables
    When you click on the Table button from the initial ABAP/4 debugger screen, the system will display the table debugger view.  Here you need to enter the name of the internal table to be displayed.  You can modify or delete or add i.e., insert the internal table Contents.  These changes are applicable only for the debugging and do not affect the structure of internal table in the program.
    Reward.

  • How can i debug specail function for VA01

    How can i debug specail function for VA01,For example, I establish one and export type ZA01, the procedure code is ZRVADOR01, how do I debug this procedure?
      thank you!

    First you keep a break point in the program
    Step#1.
    RSNAST00 (on the below mentioned code).
    PERFORM (TNAPR-RONAM) IN PROGRAM (TNAPR-PGNAM) USING RETURNCODE
                                                             US_SCREEN
                                                             IF FOUND.
    and now in VA01 , just start Debugging after you choose the Output type using /H at the command.
    now you will see the Debugging , now choose the menu Settings->Update Debugging
    this will activate the Update Debugging.
    Now Press F8. now another window will open , in that you it will stop near the break point in the step 1 .
    It will take you to the corresponding program/
    Now you Debug and check what ever you want

  • How can i debug a program attached with a Job schedule ?

    Hi experts,
    In a background job one program plus one variant is attached, now I don't have any authorization  of SE38. I want to debug the program. How can it be possible?
    Thanks in Advance,
    Abhijit

    Hi
    GOTO SM51.
    There choose the server in which ur background program is running. Place the cursor on the line which shows your program. Choose the menu option 'Debugging'.
    Depending on your version the menu option is in different places.
    If you have the correct authorizations, a window pop will pop up, with your program in the debugger.
    Regards,
    Vishwa.

  • How can I debug a Tr. Code which is running in background

    I want to debug a Sapscript. Tr. code is 'F110'. In this tr code, two sapscript is running for cheque printing. This Tr Code is running in backgruond mode. I want to debug the Sapscript. How can I do that?
    Regards,
    Subhasish

    hi,
    For a batch job or long running program (SM50):
    Select the program to be debugged
    Menu: Program/Session -> Program -> Debugging
    In the job overview(SM37) you can debug each job with the ok-code JDBG.
    Warning : This is like a restart of the job.
    -> All possible updates will be executed !
    Refer to this link...
    how to debug in program in background
    Edited by: avinash kodarapu on Dec 22, 2008 4:10 PM

Maybe you are looking for

  • Delete JSESSIONID from URL

    Hi, I have created a web based application which uses FORM based authentcation. The application is developed in NWDS 2.0.16. When I deploy the application and access it in IE there are two parameters JSESSIONID and SAPLB which get appended to existin

  • DataGridCellStyle: Set Background of DataGridCell based on value in a Different DataGrid / DataTable

    Hi everyone I am trying to set the background of a cell in a datagrid based on a value in a different datagrid. Is it possible to specify this in the XAML through binding? I'm using the MVVM pattern and would like to minimise code in the code behind.

  • Executing a Operating System command from Stored Procedure ??

    I want to execute a Operating System command from a PL/SQL Stored Procedure, can anyone suggest me how can I do this ?? I am on Sun-Solaris with Oracle 8.1.7 database. Please do email me at [email protected] Thanks in Advance, Ramesh L.

  • Error on import - no new files can be added to library

    Here is the error I get ... "Some recent changes may be lost. Make sure your hard disk has enough space and that iPhoto is able to access the iPhoto Library folder." I have plenty of space on the hard drive and I am logged in as the root user. I have

  • Handler

    Hello I have tow JscrollPane ,J1 and J2 and I want that when J1 up or down his scrollBar j2 up or down too. I have make a handler for J1 that when there is a event of scroll pane this move the scrollbar of J2,good, but this produce exceptions and the