Debugging N step badi triggering GOA workflow

Hi Gurus,
We have a approval workflow which is triggered whenever a GOA document is saved or its change version is saved.
The BADI is used for determining the approvers and assigning leves as we have multiple level approval process.
I want to debug this badi whenever i create a GOA document using transaction BBP_CTR_MAINCC.
I tried using normal session break point technique but it didn't work. I also tried to put infinite loop in the badi and tried debugging using sm50 but without success.
Request you to suggest how to debug that badi .
Regards,
Rohit

I think you can just debug the badi from SE19.
1. Create a GOA in the web frontend, but don't do any approval just yet
2. Write the GOA number down somewhere.
3. the object type is BUS2000113
4. Start SE19 and start debugging the BADI workflow
5. Enter the object id = goa number, object type = BUS2000113
6. Start debugging
Regards,
Robin

Similar Messages

  • N-step BADI approval SRM workflow

    Hi,
    I am implementing N-step approval badi for SC approval using header level workflow (WS14000133) in SRM 5.0. My requirement is to determine the financial analysts responsible for each line item and then the mangement approvers based on their approval limits. Financial analyst need to approve the SC concurrently before the management approvers receives the SC. I developed the code in the BADI to populate the approval table. First time when the SC is created the approval table looks as follows,
    Index    Branch    Approver
    1         1        FA1
    1         2        FA2
    1         3        FA3
    2         1        MGMT approver1
    3         1        MGMT approver2
    FA1, FA2 and FA3 recieves the SC. The approval preview looks great. Since this is not item level workflow, FA will approve the SC at the header level.
    Here is the Issue--
    When FA1, FA2 or FA3 approves the SC, the approval index is incremented by 1 in the workflow, the SC is sent to MGMT approvers based on he index by skipping all the FA approvers.
    In this scenario, how to develop logic to send the SC to MGMT approvers only after the FA approvers approves it. I mean how to control the index and branching in BADi. I am using header level workflow.
    Any suggestion would be highly appreciated.
    Thanks
    Venkat

    Hello,
    You won't like my answer, but this behaviour is not possible with standard workflows.
    First WS14000133 does not handle parallel processing with badi.
    You could try the template WS14000141 that was at a time handling the branch number in approval table, but it is not officially support. I mean this is obsolete.
    This only parallel processing is provided with template WS14000015, but it's at item level: separated item can be sent in parallel, but it's not working well if you try to send the same item in 2 branch.
    You cannot send the same object in a parallel process, the reason is that the application layer cannot properly handle this.
    Rgds,
    Pierre

  • Complexity of using N-step BADI in SRM 7using Process controlled Workflow.

    Hi,
    Just as a big thought,
    I have a Shopping Cart requirement, Here i am asked to develop a Custom workflow for SRM 7.0.
    And the client is looking for us to use Process Control Workflows i.e(BRF integrated one).
    I need to understand the complexity of using a N-step BADI.
    How would be the complexity level if I use a N step BADI( ie Multiple approval levels on Line Item Based).
    Kindly tell me the complexity of Using it and if any one has come across some requirement like this, then explain me that how did you face the situation.
    Expecting an Earliest Response.
    Thanks,
    Shanky

    Hi,
      Is your project SRM 7.0 implementation project then you have to go for Process Controlled Workflow and if your project is upgrade then you can still go with Application Controlled Workflow but down line this has to switch to Process Controlled Workflow.
    Best Regards,
    Saravanan

  • N Step BADI Approval Workflow Error in SRM 7.0

    Hi,
    I have implemented SC  Workflow Approval based on line item(sequential approval). I implemented process controlled workflow for this using N step Badi. Necessasy configuration done for each level at schema. All steps are executed per line item and agents determined using N step Badi /SAPSRM/BD_WF_RESP_RESOLVER.
    Even in SC after the document is ordered, in approval overview tab i see the all level sequence with  approvers name for that  line item.
    But when approved by first approver, it doesnot move to the next level for approval and the SC is approved bypassing all approvers in the following levels.
    For example, if there four levels of approvals for one line item. as soon as the first approver approves the SC is approved and in SC Approval Overiew tab that contained four level of approval in it is now reset to one level with SC marked as appproved.
    Have anybody come across this error.
    Not able to figure out why it is happening so... need some expert advice.
    Thanks in Advance.

    Hi Masa .. thanks for your reply.
    Was on vacation so could not reply.
    I have below settings in SRM for SC
    Process Level definition should be like this.
    Level Eva.ID ; Resolver Task ID Decision Type
    100 L100 R100 40007953 Item-Based decision for Partial Doc.
    200 L200 R100 40007953 Item-Based decision for Partial Doc.
    300 L300 R100 40007953 Item-Based decision for Partial Doc.
    I have implemented /SAPSRM/BD_WF_RESP_RESOLVER for R100.
    for grouping we are using line item number ... so each line item is a group.
    Below are issues that i am facing now.
    For say 2 line item in a SC... with 3 level of approvals for each line item. I am not able to approve one line item in a sequence. For example: If for first line item, when I approve level one .. then the workitem doesnot move to 2nd approver's inbox for that line item. Now if second items (asssuming there are only 2 line items in SC) first approver has approved then i see all second level of approvers available for all line item.
    In short system waits for all one level approvers to approver for all line item and when all the line items are approved at one level then the workitems are available for seconds level of approval.
    Is this the standard behaviour?
    As per our requirement we wanted one line item shoudl follow the approveral sequence without being dependent on other items approval.

  • Approver skipped during approval process in N-step BADI workflow

    Hi,
    I am some problem in n-step BADI approval process. For some reasons one of the approvers is skipping during approval. And later in the approval preview it observes that the approver, who is just above the skipped approver, is appeared twice.
    I am not able to simulate this issue though this is happening in the system frequesntly though it is not for all.
    Can you please let me know what is the problem in the system and how can we rectify this issue?
    Thank You.
    Regards,
    Krish

    Hello
    sorry search for the n-step WS14500015 is the item based...
    Another thing, you can try with testing to restrict the case to special conditions. Are there any added-approver there? Is there any approver who makes some changes to the SC? etc..
    Daniel

  • Name of the BADI when any workflow Created

    Hi Experts,
                     I want to know what happens when any new workflow created, i mean is any BADI triggers?  If so please let me know which BADI triggers, and also let me know How to find what triggers  when creating WORKFLOW.

    Hi,
    Pleaes tell us the actual requirement so that we can help you bertter.
    Workflow is started by event. Events are created by the SAP itselt ( generally ).
    Now if the event is created in the SAP , workflow will be started autometically.
    Now before starting the workflow you can check or put some conditon.
    For this purpose go to Tcode SWE2 and select any entry ... you find there is a option called "ChecK Function Module"
    maintain the custom FM to check the start condition of the workflow.
    Its starting immediately by the standard fucntion module. ( assume that event linkage is maintained properly )
    SAP system starts the workflow by creating a workitem ( which is nothing but a run time instance of wokflow template ).
    In that case SAP system need to know for which template workitem needs to be created.
    There may be millions of workflow template number and SAP system will use only that one which is mention in the SWE2.
    Let me explain with example.
    Object Category BO
    Object Type CATS
    Event SAVED
    Receiver Type WS93000002
    Receiver Call Function Module
    Receiver Function Module SWW_WI_CREATE_VIA_EVENT_IBF
    Check Function Module
    Receiver Type Function Module
    Now when SAVED event is generated in the system SAP system will create the workitem of type WS93000002
    by using FM SWW_WI_CREATE_VIA_EVENT_IBF.
    Acually you can not debug a workflow as there is not place to set the break point. In ECC 6 there is some option to set break point but I do not have mutch knoledge in that.
    Simply FM SWW_WI_CREATE_VIA_EVENT_IBF is used to start workflow by creating workitem. You do not have to worry how SAP does that.
    Thanks and regards,
    SNJY

  • How Can I debug into  a BADI?

    I m not able to debug into a BADI, though I tried putting a break point in the include for the BADI as well as tried using
    break-point 'MYUSERID'.
    It still doesnt work

    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.
    G@urav.

  • APPROVAL_HISTORY_TABLE not getting populated in N step Badi

    Hi Guys
    I have implemented the N step Badi for the contract workflow WS14000148. The approval functionality is fine however the importing parameter APPROVAL_HISTORY_TABLE is not getting populated in the Badi. Appreciate if somebody who has faced the similar situation could let me know the root cause. I am using SRM 5.00 with support pack level SAPKIBKT14.
    Regards
    Rajeev

    This is a known issue, bug 14341496. To avoid it please use java 1.6 on the browser.
    Phil

  • N - Step BADI Approval Flow - Reminders & Dead Line monitoring

    Hi,
    I am on SRM 5.0 and we are using N-step BADI workflow for Shopping cart. We have coded the logic to pull the approvers and we got additional requirement of sending reminders to the approvers multiple time for example: 1st reminder on 3rd day and second reminder on 7th day and finally on 10th day the Shopping Cart should be moved to next level of approval.
    So here there are 2 things that I need to achieve
    1. Sending multiple reminders to approver on different days. 3rd day, 6th day etc..
    2. Moving the Shopping Cart to next Approval Level if the existing approver has not approved it in specific duration of time.
    Your inputs of achieving my requirements would be of more help.
    Regards,
    Satya

    Hi Satya,
    Workflow functionality Deadline Monitoring would be useful to you in such a case.
    You can add a 'Requested End' condition to the workitem you need to monitor.
    When the deadline is reached you can perform the desired operation. I your case you need repeated reminders. For this in the requested end branch, add a Loop step and send reminder mails as desired. Add a terminating condition for loop to say 10 days to stop sending reminders there after.
    I had a similar requirement and this approach worked for me.
    Hope thie helps!
    Regards,
    Saumya

  • No workitem found error in BBP_PD after Implementing N-Step BADI

    Hi Gurus,
    We have implemented N-Step BADI  BBP_WFL_APPROV_BADI For Approvals Levels in SRM.
    Work flow is triggering correctly and workitem is sent at all the levels. But in transaction code  BBP_PD the status of the workitem is not updating showing the error message "NO WORKITEM FOUND" also  status is not updating in BBP_PD.
    Please reply with your suggestions.
    Thanks in advance.
    Madhukar

    Hello,
    Message should be raised within BBP_DOC_CHECK_BADI.
    This badi would check if there is any approver available (you can use a FM BBP_WFL_DIN_APPR_CONTAINER_GET and take the return parameter ET_APPROVAL_AGENTS).
    If it is empty, you could raise a message informing that no approver exists.
    I hope this helps.
    Kind regards,
    Ricardo

  • Roles based ' N 'step BADI

    Hi,
    Could any one tell, how to do the role based workflow using 'N'step BADI and also send sample code.
    Thanks.
    Prasad.

    Check with SRM forum I think this question was discussed there. It seems some parameters in BADI needs to be populated for this issue.
    Thanks
    Arghadip

  • Triggering the workflow

    Dear all,
    I have copied the standard business object BUS2089-Employee trip and used in my workflow
    Now i want to trigger the workfllow when the trip is created
    Which triggering method can be used for triggering the workflow.What are the linkages has to be done.
    Thanks and Regards,
    M.Sabarinath

    Hi,
    Check this link for a step by step demo:-
    To trigger events programmatically;-
    http://****************/Tutorials/Workflow/EvtsPrg/EvtsPrg.htm
    To trigger workflow when events are triggered:-
    http://****************/Tutorials/Workflow/MaterialCreate/Page1.htm
    Best of luck,
    Bhumika

  • How to debug a program exit in a Workflow ?

    Hi experts,
                      How to debug a program exit in a workflow when the workflow is triggered ?
    thanks in advance
    regards
    Ashwin

    In 4.6c I did this by creating a function module and a table (zsm50_debug). In the table are just two fields: User name (key), and a flag (yes/no).
    The function module:
    FUNCTION zsm50_debug.
    *"*"Local interface:
    *"  IMPORTING
    *"     REFERENCE(Z_DEBUG_USER) LIKE  SY-UNAME
      DATA: z_exit,
            z_debug.
      CLEAR: z_debug.
      DATA: starttime   TYPE t,
            currenttime TYPE t,
            time_passed TYPE i.
      starttime = sy-uzeit.
    * Check if debugging is switched on
      SELECT SINGLE debug FROM  zsm50_debug
                          INTO  z_debug
                          WHERE uname = z_debug_user.
    * Debugging is switched on:
      IF z_debug = 'X'.
    *   Not an endless loop, but it will continue after approx. 1 minute...
    *   Plenty of time to go to SM50 to debug the program and continue!
        DO.
    *     Change the value of z_exit to 'X' to exit the loop an stay in
    *     debug mode.
          IF z_exit = 'X'.
            EXIT.
          ENDIF.
    *     To prevent an endless loop (if the user forgot that debugging was
    *     switched on in ZSM50_DEBUG, time is measured to allow the program
    *     to continue after 2 minutes
          GET TIME FIELD currenttime.
          time_passed = currenttime - starttime.
          IF time_passed > 120.
            WRITE: / '!!!==========================================!!!'.
            WRITE: / '!!!DEBUGGING STILL SWITCHED ON IN ZSM50_DEBUG!!!'.
            WRITE: / '!!!    Program was delayed by two minutes    !!!'.
            WRITE: / '!!!==========================================!!!'.
            EXIT.
          ENDIF.
        ENDDO.
      ENDIF.
    ENDFUNCTION.
    This FM reads the table and checks if the flag is switched on. If so, it loops for two minutes. After that, it continues regardless. If not flagged, it continues immediately.
    This way, you can debug any program that is running in the background.
    In every method I program I add this FM right in the beginning. With authorization for SM50, I can then debug the program (in production it may be difficult to get the correct server, if there are more).

  • BADI triggered when we change change Usage in quotation

    Hi,
    Pls let me know what the BADI triggered when we change the Usage in Quotation. Is there any special way to find out BADIs in CRM?
    Regds
    Harish

    Hi Sirivaram,
    1. Refer the following blog to find the BADI.
    /people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
    2. You can put a breakpoint in method get_instance of class cl_exithandler and debug your transaction. The parameter exit_name will give you the Badi's in that transaction.
    3. Find the package for the transaction from SE93 and then open the package in SE80 to see all the BADI definitions and implementations for the transaction.
    <b>Reward points if it helps.</b>

  • BTE 1030 - we use for AP documents, create an event that triggers a workflow

    Hello all,
    We use SAP's program RFBIBL00 to post AP documents.  We coded a function module that is called when BTE 1030 is reached.  Our FM creates an event that triggers a workflow.
    We are now doing some testing with an external vendor who is creating AP documents by doing an RFC  using function module BAPI_ACC_DOCUMENT_POST.
    It seems that this BTE, 1030, is not being triggered when the IDOC created by this function module posts the AP document.
    Has anybody else seen this issue and found a way to deal with it?
    Thanks
    Bruce

    AFAIK BAPI_ACC_DOCUMENT_POST and FI posting should trigger BTE 00001030 but BAPI_INCOMINGINVOICE_CREATE and AC interfacewould trigger BTE 00001050. (or is BAPI_ACC_DOCUMENT_POST also using AC interface, I will let you check it)
    Nevertheless call your FM triggered thru BTE 1030 also in a FM triggered thru BTE 1050. Also in the call check for update task
    function z_fi_00001050.
    call function 'TH_IN_UPDATE_TASK'
         importing
           in_update_task = in_update_task.
       if in_update_task eq 0 and i_xvbup eq 'X'.
         call function 'Z_FI_00001030' in update task
           exporting
             i_xvbup = ' '
           tables
             t_bkpf  = t_bkpf
             t_bseg  = t_bseg..
       else.
         call function 'Z_FI_00001030'
           exporting
             i_xvbup = ' '
           tables
             t_bkpf = t_bkpf
             t_bseg = t_bseg...
       endif.
    Regards,
    Raymond

Maybe you are looking for

  • How can i create an album with chose category list and next/previous button

    hello guys im working on a project for my uni i finished the whole website but one thing is missing i need to create a photo album with next and previous button, with choosing a category and inside each category i have like 5 pictures and i can chang

  • Problems In the Special G/L Transaction

    Hy people, I have the following problem: The same vendor can be service, material and productive. I have it registered only once (at the request of the audit). He is classified as an account of conciliation 213007 (material).  I can´t register this v

  • Corrupt- ipod nano

    i was trying to put pictures on my ipod then all of a sudden it came up corrupton and it turned off now i cant turn it on tried un in stall and repair all the tips but the things just seems dead . would this be repairable in a shop etc plse help

  • Creating instances in Java Papi

    Hi all, Actually,I am a newbie to aqualogic bpm.I have written a papi code in java to get process instances directly from studio workspace.Now, I want to crate process instances in java papi code itself and then getting those instances.I don't know h

  • Why is my bill so much?

    I recently called costumer service about how much my data usage went up and made some changes to my account. From what I understand the agent told me I would be saving at the end and the total was going to be a little over 420. How did I get charged