Badi n steps problem

Hello, my SRM uses the Extended classic scenario + has the badi n steps implementation. The users are getting a problem in their  approval workflow.I am unable to replicate the  problem.
The problem is:
A user creates a shopping cart for another one:
While creating his SC he has the following approvers:
A
B
C
D
he inserts a new approver , say Y in second position.
A
-> Y
B
C
D
but when he has saved and approved his SC the approvers appears in the following order in the BBP_PD transaction.
Agent                        USER
A                              A
Y                              Y
B                              B
C                              B
D                              D
When agent should have been the same as user.( the agent is the user name eg tom jones and user is his SAP login e.g TOM1JON )
Anyone encountered this problem?

Hi,
As per Daniel sadi try to debug the badi ( BBP_WFL_APPROVE_BADI) using transaction SE18
take help of abaper or workflow guy to sovle the issue..
Thanks
prasad.s

Similar Messages

  • Bad Bind Variable Problem

    Hi
    I am trying to create a trigger and facing Bad Bind Variable problem.
    Plz let me know, what's the problem in this trigger.
    CREATE OR REPLACE TRIGGER Tender_tax_update AFTER
    INSERT
    OR UPDATE
    OR DELETE OF ITEM_QTY,ITEM_RATE,TENDER_ACC_QTY ON TENDER_ENQUIRY_ITEM_D REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW
    Declare
         v_amt TENDER_VENDOR_TAX_D.TAX_AMOUNT%TYPE;
         v_tax_ty TENDER_VENDOR_TAX_D.TAX_TYPE%TYPE;
         v_tax_cd TENDER_VENDOR_TAX_D.TAX_CODE%TYPE;
         v_ven_cd TENDER_VENDOR_TAX_D.VENDOR_CODE%TYPE;     
         v_item_cd TENDER_VENDOR_TAX_D.item_cd%TYPE;     
         v_tenno TENDER_VENDOR_TAX_D.tender_enquiry_no%TYPE;
    Begin
         if inserting then
              v_tax_ty:=:new.TAX_TYPE;
              v_tax_cd:=:new.TAX_CODE;
              v_ven_cd:=:new.vendor_code;
              v_item_cd:=:new.item_cd;
              v_tenno:=:new.tender_enquiry_no;
    select TAX_AMOUNT into v_amt from TENDER_TAX_DETAILS where tender_enquiry_no=v_tenno and TAX_CODE=v_tax_cd and TAX_TYPE=v_tax_ty and item_cd=v_item_cd and vendor_code=v_ven_cd;
    update TENDER_VENDOR_TAX_D set TAX_AMOUNT=v_amt where tender_enquiry_no=v_tenno and TAX_CODE=v_tax_cd and TAX_TYPE=v_tax_ty and item_cd=v_item_cd and vendor_code=v_ven_cd;
         end if;
    End Tender_tax_update;
    Database deails are as follows:
    TENDER_VENDOR_TAX_D
    Name Null? Type
    TENDER_ENQUIRY_NO NOT NULL VARCHAR2(8)
    VENDOR_CODE NOT NULL VARCHAR2(4)
    TAX_CODE NOT NULL VARCHAR2(4)
    PERCENTAGE NUMBER(5,2)
    TAX_AMOUNT NUMBER(15,2)
    ITEM_CD NOT NULL VARCHAR2(10)
    TAX_FLAG VARCHAR2(1)
    TAX_TYPE CHAR(3)
    TENDER_TAX_DETAILS
    Name Null? Type
    TENDER_ENQUIRY_NO NOT NULL VARCHAR2(8)
    VENDOR_CODE VARCHAR2(4)
    ITEM_CD VARCHAR2(10)
    TAX_CODE NOT NULL VARCHAR2(4)
    TAX_TYPE CHAR(3)
    TAX_AMOUNT NUMBER
    Message was edited by:
    user648065

    facing Band Bind Variable problem.Doesn't the error message tell you which bind variable is the problem?

  • Standard badi modification steps

    Hi ,
    I am new to BADI concept can any one tell me  how to modify the standard badi with steps and after implimentation how to debug it?

    Changing standard badis is not advisable!
    Implementing a BADI (the way I do it):
    1. find the badi you need in transaction SPRO (SRM-server->BADIs), read the documentation
    2. Click the execute button in front of it, this will give you a popup where you can enter your implementation name, generally I take the name of the BADI itself so for BBP_CATALOG_TRANSFER badi my name would be ZBBP_CATALOG_TRANSFE (the R doesn't fit...) when no filter value needs to be added. If a filter value is added I use a different naming. For the BBP_DOC_CHANGE_BADI for purchase order my name would be: ZBBP_PO_CHANGE.
    3. Implement the method you need.
    4. Activate the implementation
    5. Activate the BADI (4 and 5 are not the same: you have to activate your code - the implementation and you have to activate the BADI)
    6. Test/Debug/Adjust
    Changing standard badis:
    1. Make a copy of the standard implementation
    2. Deactivate the standard BADI
    3. Change the copy to your needs
    4. Activate the copy
    Regards,
    Robin

  • BADI n-step SC approval - Approval Index and Data Change Problems

    Dear forum gurus,
    We are implementing SRM 5.0 (SRM SERVER 5.5 SP 9) in Extended classic. I am developing the BADI's to use the n-step SC approval workflow WS14000133.
    Our approval process is as follows:
    1. Cost Centre approver (based on CC with the largest value in the SC)
    2. Financial approver (based on the total value of the SC)
    I have done this now and it works as long as every step is approved!
    I have implemented the BADI 'BBP_WFL_EMPL_WI_BADI' - method 'CHECK_REQUESTER_WI' to send back any changes to the cost centre to the shopper to review. The standard also sends back total value changes to the shopper in the same way.
    My problem is that if the main CC or the total value of the SC are changed, the logic goes back to the shopper and then if the shopper 'Accepts changes', the logic skips the first apporver again and goes directly to the second (financial approver).
    I think there are 2 options:
    1. After the shopper accepts chnages, to restart the WF so a new WF template is generated. Then my logic will show the new CC and FI approvers again.
    2. I change my logic in the 'GET_REMAING_APPROVERS' method so the apporval index is not assumed to be 1 or 2 only. I guess I will have to work with logic to read the history and apporval index, but this seems very complex.
    Option 1 - I can't get this to work. After the shopper accepts changes I can't get the WF to restart in the 'BBP_WFL_SECUR_BADI'.
    Has anyone fixed this?
    Option 2 - The logic for checking apporval index and apporval history tables seems to me very complex. Has anyone done this and can they explain the logic to me if so? The problem here is that the sample code for this BADI assumes the approval indexis always 1 for the first step and 2 for the second step, but this is not the case!
    Thanks in advance,
    Best regards,
    Nick

    Hi,
    I feel setting the parameter BBP_WFL_SECURITY  for the Approver should do the trick.i.e. Restart the workflow adn the same approval process should be followed again.So plese adjust the value of this parameter for the Approver role in trascn PFCG.Also if you want to overwrite the settings of this paramtere(as maintained in PFCG),you can implement the BADI "BBP_WFL_SECUR_BADI".
    For  more info,refer  the foll links:
    http://help.sap.com/saphelp_srm50/helpdata/en/37/830b3b7e7ef74de10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/f7/a6a3415e34b05fe10000000a1550b0/frameset.htm
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • Workflow approval - 'n' step BADI, Approval hierarchy problem

    Hi,
    Description of the issue:
    For a shopping cart approval, the approver's list determined by the 'n' step approval BADI does not include the user who is the immediate in the org. hierarchy. Rather the work item goes to the superior authority (say MD) for approval, which must not be the case.
    Pre-requisites checked:
    1. Checked the org. hierarchy - Proper.
    2. Checked the Roles maintainence for shopping cart approval - All is fine
    3. Checked for approval/spend limits also - All is fine.
    4. Tested BADI/Business Object - Approval Table is empty & Approver_administrator is 'WF-Admin was informed'.
    5. Workflow log (technical details) - Checked in the containers for 'Approver's list'.
    6. Checked table HRUS_D2 for any substitutes assigned - All seem fine.
    This is the org. hierarchy,
    (A - Requestor) --> (B - 1st level approver) --> (C - 2nd level approver) --> (D - MD final level approval)
    The approver's list shows two names instead of 3, that is only B & D and not C. Hence the work item goes to D directly than going to C.
    Please suggest.
    Best regards,
    Harsh Dave

    hi,
    Well the approver list is created from the badi for n-step approval in SRM.
    If you say that approver list is empty when testing the badi, then you have to check which workflow is used in your environmennt.
    It could be that  someone decided to create their own logic.
    so start by finding out which workflow template is used in this scenario, also you can set external break-points for users in teh approval badi which would be executed if you you use the approval preview in SRM (I'm guessing it is SRM since it sounds like it)
    Kind regards, Rob Dielemans

  • Dialog Participant step problem when completed with CQ Sidekick

    Hi,
    I got the problem that the dialog that is used in a Dialog participant step isn't displayed correctly when i complete the Step via the CQ Sidekick. If i complete the step from the User inbox the dialog is rendered correctly. To make it clear : if i use the CQ Sidekick to complete the Step then i can only enter the next step and a comment and not the additional fields that should be added because of the dialog.
    My first guess is that my dialog.xml isn't correct but i can't find the Problem. What is your experience with the Dialog Praticipant step?
    This is the dialog i use:
    <?xml version="1.0" encoding="UTF-8"?>
    <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
        jcr:primaryType="cq:Panel">
        <items jcr:primaryType="cq:WidgetCollection">
            <title
                jcr:primaryType="cq:Widget"
                border="{Boolean}true"
                collapsed="{Boolean}false"
                collapsible="{Boolean}false"
                fieldLabel="Bullet Points"
                name="./listItems"
                typeHint="String"
                xtype="multifield">
                <fieldConfig
                    jcr:primaryType="nt:unstructured"
                    maxLength="{Long}50"
                    minLength="{Long}1"
                    separator=""
                    xtype="textfield"/>
            </title>
        </items>
    </jcr:root>
    Thank you

    You can do this via the Workflow/WorkItem Metadata. https://dev.day.com/docs/en/cq/5-5/workflows/wf-ref/workflow_steps.html explains how to access the metadata. if the reviewer needs to be set dynamically (the dalog does not allows that), follow Ram Atmakur's post at http://forums.adobe.com/message/4317233 .

  • Workflow : Mail Step Problem

    Hi,
    I am getting a peculiar problem with Mail step. I am getting the following ERROR :
    <i><b>Work Item XXX Object YYY method SWW_BI_EXECUTE_S cannot be executed</b></i>
    What could be the problem?
    All the containers are properly BINDED are getting passed to the Mail Step.
    Regards,
    Raja Sekhar

    If you are using the standard Selfitem.SendTaskDescription method and are getting the error, one or more of the values being passed could be wrong. Check if Workflow technical log has more info on the error.
    Cheers,
    Ramki Maley.

  • OWSM SAML Verify step problem: Missing Security Header in SOAP message

    I'm having a problem with SAML steps. From gateway log:
    2008-09-17 13:21:32,987 INFO [HTTPThreadGroup-58] saml.InsertSAMLSVStep - User attributes map set to generate the attribute assertions: null
    2008-09-17 13:21:33,034 INFO [HTTPThreadGroup-60] saml.SAMLProcessor - Assertion Major Version :1 , Minor Version :1
    2008-09-17 13:21:33,034 WARNING [HTTPThreadGroup-60] saml.SAMLProcessor - SAML Assertion verification error: An invalid token was provided
    2008-09-17 13:21:33,034 WARNING [HTTPThreadGroup-60] saml.VerifySAMLStep - SAML Token verification failed:
    2008-09-17 13:21:33,096 SEVERE [HTTPThreadGroup-58] wssecurity.OSDTWSSecurity - Missing Security Header in SOAP message
    2008-09-17 13:21:33,096 WARNING [HTTPThreadGroup-58] wssecurity.SecurityBaseStep - Failure while applying XML Security
    FAULT CODE: InvalidSecurity FAULT MESSAGE: Missing WS Security header in the SOAP message
    at com.cfluent.policysteps.security.wssecurity.OSDTWSSecurity.decryptVerify(OSDTWSSecurity.java:369)
    at com.cfluent.policysteps.security.wssecurity.DecryptStep.performXmlSecurity(DecryptStep.java:131)
    at com.cfluent.policysteps.security.wssecurity.SecurityBaseStep.execute(SecurityBaseStep.java:238)
    at com.cfluent.pipelineengine.container.DefaultPipeline.executeStep(DefaultPipeline.java:124)
    but the wsse:Security header with SAML assertion IS confirmed in the incoming message log. Anybody seen this issue?

    Below is the log of the incoming message just prior to the failing SAML Verify step:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://exception.common.periop.gehc.com" xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns2="http://www.patient.patientmanager.periop.gehc.com/service/" xmlns:ns3="http://entity.common.periop.gehc.com" xmlns:ns4="http://entity.patient.patientmanager.periop.gehc.com" xmlns:ns5="http://entity.allergy.patientmanager.periop.gehc.com" xmlns:ns6="http://pdo.domain.customizer.periop.gehc.com" xmlns:ns7="http://entity.cases.scheduler.periop.gehc.com" xmlns:ns8="http://entity.insurance.patientmanager.periop.gehc.com">
    - <env:Header>
    - <ns1:Security>
    - <saml:Assertion MajorVersion="1" MinorVersion="1" AssertionID="158RBY2QvCFPiTqdXYWh9A22" IssueInstant="2008-09-17T19:58:43Z" Issuer="GE" xmlns="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion">
    <saml:Conditions NotBefore="2008-09-17T19:58:13Z" NotOnOrAfter="2008-09-17T19:59:43Z" />
    - <saml:AuthenticationStatement AuthenticationInstant="2008-09-17T19:58:43Z" AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:password">
    - <saml:Subject>
    <saml:NameIdentifier NameQualifier="www.ge.com" Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">gowri</saml:NameIdentifier>
    - <saml:SubjectConfirmation>
    <saml:ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:sender-vouches</saml:ConfirmationMethod>
    </saml:SubjectConfirmation>
    </saml:Subject>
    </saml:AuthenticationStatement>
    </saml:Assertion>
    </ns1:Security>
    </env:Header>
    - <env:Body>
    - <ns2:getPatient>
    <ns2:patientId>137115</ns2:patientId>
    </ns2:getPatient>
    </env:Body>
    </env:Envelope>

  • First steps problems - instalation goes all wrong

    Hi, I just bought a adobe creative and, when I tried to install it, it came with error code 205 (I google it, and the adobe forum said it was a corrupt file problem). i tried again in another brownser, but now, it wont recognize my accout. The way it shows its like I never bought anything, and I cant install the Adobe Download Manager. What should I do?

    Hi There,
    If you are getting error 205 please try the steps mentioned in the below mentioned link
    Error downloading and installing Creative Cloud application
    Meanwhile, you are troubleshooting error 205, you can initiate the download for the software that you need from an alternate source.
    Download CC 2014: Adobe CC 2014 Direct Download Links: Creative Cloud 2014 Release | ProDesignTools.
    Thanks,
    Atul Saini

  • BADI for MIGO problem

    Hello everybody!
    I found badi of MIGO.   -> "MB_MIGO_BADI".
    but this within exit have a method, namely PBO_DETAIL.
    when use this method i found have a problem! 
    as follows!
    DATA: GF_CLASS_ID TYPE MIGO_CLASS_ID.
    GF_CLASS_ID = 'MIGO_BADI_IMPLEMENTATION_CIN'
    please help me! (I don't know how find this ID)
    thanks advanced!

    Hi,
    You can try with MB_DOCUMENT_BADI.
    Regards,
    Renjith

  • Fork Step problem

    Hi,
    I have a scenario in which my BPM expects two different idocs and uses a Multimapping Transformation step to merge it into one single file structure, that is N:1 mapping( 2Idocs ---> 1 File).I am using a Fork Step in which there are 2 recieve steps in order to recieve the two idocs and then a Transformation step and then a Send step.
    The problem is my BPM is waiting for both the IDOCS in order to complete the Fork and  get to the Transformation step, but in my case i want the transformation to happen if any of the two IDOCS is recieved.Is this possible..or is there anyother way to achieve this....I have Marked the start process for both the recieve steps....Wud appreciate ur thought on this.Thank You.

    > Hi,
    >
    > >>>>but in my case i want the transformation to
    > happen if any of the two IDOCS is recieved.Is this
    > possible
    >
    > so why do you need the fork if you want
    > only one idoc?
    >
    >
    > Regards,
    > michal
    > -
    > <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI /
    > PI FAQ - Frequently Asked Questions</b></a>
    Hi Mike,
    Infact i am trying to derieve three different File structures from the Output of the Multi map(Which i havent mentioned...Sorry for that).
    If  the Transaction is R/3 generates these two idocs at a single shot then i would be generating Total of 3-final file structures which has fields from Both the idocs.
    Otherwise if the Transaction is used to generate only one IDOC (say IDOC1) the i would be generating only one file structure based on it.
    So the IDOC2 is optional It may or may not Occur.
    so my logic is something like this
    IDOC1               IDOC2
    Intermediate File Structure
    Check Condition (If IDOC2 is a reference of IDOC1)
    >IF Yes Generate Three Files
    >If No then generate Only one File based on IDOC1.
    Is this the right way to do it...need ur inputs.

  • A Paticularly Bad iPod Connection Problem

    My ipod will not connect to my PC it shows up in windows explorer but when you click on it or rightclick it freezes the "explorer.exe" and i have to end its task..the ipod updater is the same way it freezes as soon as i plug in my ipod..or open it with the ipod connected.
    Once I plug in my Ipod there is no way short of restarting it while its plugged in i can do to get it free'd up I've been having alot of problems with this lately normally I would be able to restore it and start fresh but nothing I do seems to have any effect this time,
    its been on a declining slope since it broke originally see this thread for my previous question:
    http://discussions.apple.com/thread.jspa?threadID=535772&tstart=0
    I'm guessing a major harddrive failure...wouldn't that just be the way of it now that i'm off Warrentee...

    I posted this in another topic, but I had the same problem that you have...this is how I resolved it:
    Success!!!! Here's how I did it:
    1) Re-named iTunes music folders in my My Music documents, just to avoid any mishaps during the uninstall process. I just called them "Backup" and "Backup2"
    2) if you have the ORIGNAL iPod updater installed on your computer, restore iPod using this updater. If not skip this.
    3) Uninstall iTunes, and any iPod updaters that you have, including the original. Delete any leftover files & folders from the C: drive.
    4) If your iPod is in disk mode, and is available in Windows Explorer, find it and right-click, and select format. Make sure to have the volume type set as FAT32, and do not use quick format. This is really just an extra step, just to be sure that your iPod is clean of any newer software.
    5) Re-boot, and re-install your ORIGINAL software.
    I have a 3G 15GB iPod, and do not listen to podcasts. So not having that capability in iTunes is no loss to me. If you have more music in iTunes than will fit on your iPod, you can either manually update iPod, or create a playlist, and set iTunes to only update that playlist (or any others you create later). If you listen to podcasts, and need that functionality in iTunes, you may be out of luck, as oldversion.com does not currently have older versions of iTunes available. If you stil have a setup program for iTunes 5, you may want to back that up as well and re-install that after your original install is complete.
    I have re-charged my iPod, and listened to it for a bit, with no song skipping, and all songs I have asked for on it. I'll keep an eye on it over the next couple of days, but it seems like I have cured my sick iPod.

  • Bad Plug-in problem

    Ok. First off I will say that I installed a Native Instruments Komplete 4 plugin package that I new was suspect. Yes I'm sorry, I should have known better and will never do it again. My bad.
    Now I have a problem. When FCE4 opens it scans for plug-in and then gives this message. "B4 II: Still no tone wheel files found. Please install B4 again." Also, the program freezes and I have to force quit.
    I tried the re-install first but it's obviously a screwed up copy of the plug in as the problem is still there. So I tried to get rid of the plug ins completely no matter what I do FCE4 still freezes at that message. I can get it open about one time out of ten and then I noticed a Native Instruments folder in the audio filters which I cannot delete as it's locked. I tried re-installing FCE4 but it keeps remembering the stupid plug-ins. How do I get rid of these plug ins.

    Took a while but I eventually found all the NI files. I also did a clean install of FCE4. All good once again. Thanks.
    Message was edited by: Harri Palm

  • Enter text step problem

    Hello,
    I have a decision step in workflow and when the user chooses to reject, it should appear a textbox so that the user can write the motive of rejection.
    The problem is that the textbox should appear instantly after the user presses the reject button, but instead, it's appearing by the form of a new workitem in the inbox. I have done this in other workflows and I replicated everything, I don't understand why this is happening.
    Any ideias?
    Thanks

    Hi,
    Can you let us know what is teh design you approached,
    1. After the decision took by the enduser, how are you popluating the text box where he can write rejection comments.
    Here are some check points
    1. First Execute SWUD txn and check for the task consistency and then try to execute Task not started and in the next screen you would be able to see something like Refresh Organizational Env.. execute this
    2. Make sure you have enabled the chekc box ADVANCE WITH DIALOG in thet activity step properties under the tabDetails you would be able to find.. and then refresh the buffer SWU_OBUF
    3. Try to logout completely from the server and relogin into the system and check.
    4. Try to update the Index (To be on safe side) This you can do it from the basic data ---> Agent assignment (Yellow Apple) ---> there in the next screen you will see a red and white Football on the applicaiton tool bar click it.
    Regards
    Pavan

  • MS6701 Medion Computer -- bad capacitors serious problems

    For the last week or so my machine has been locking up, not booting, or rebooting randomly.    I called medion support and got nowhere.
    I finally slapped in a new hard drive and loaded a fresh install of Windows XP onto the hard drive.  I removed all other componets from the machine but left the
    memory. I rest the BIOS with the latest update (2003) and turned off the USB, sound and firewire support in the new BIOS.  Problems were the same and getting worse by the hour.
    I did a seach for symptoms, and found what I think is the problem.  Bad capacitors
    Looking over the MB I can see what is called BUNG on the top of nearly 10 of them. 
    This could easily be the cause of all my problems.
    I am in the process of getting these suckers replaced.  See for example www.badcaps.net for more information.
    It seems that MSI boards are not immune to this problem although very little discussion of the problem is on this forum.
    I will let you know how it goes....

    I've no problems with my mobo's caps. Maybe it an OEM board where others have done some tweaks to the original... Just my guess here.

Maybe you are looking for