Free Text Shopping cart WorkFlow

Hi,
I have to know if a shopping cart was created from a Free text item or from catalog before the WF starts (in a check funtion module).
Is there any way to know if the shopping cart was created from free text or catalog?
Thanks

Hi,
As per my understanding, you want to make decision, if it is Free text you need to start one work flow, else another workflow.
This check you can do it in Starting conditions of the workflow. SWB_COND (Transaction).
Go to SWB_COND, choose business object BUS2121, it will display all work flows which are event linkage activated.
Now go to specific workflow which you need to start if it is Free text Shopping cart, if the condition is true workflow will start.
If starting conditions are complex, suggest you to create new attribute and use the same in starting conditions.
Hope this will be helpful, all the best.
Regards,
Mohan Vamsi

Similar Messages

  • Free text Shopping cart WF

    Hi,
    I have to know if a shopping cart was created from a Free text item or from catalog before the WF starts (in a check funtion module).
    Is there any way to know if the shopping cart was created from free text or catalog?
    Thanks

    Answered in SRM Workflow forum.

  • Wrong Agent Determination in Shopping cart Workflow

    Hi All,
    I am having problem in shopping cart workflow.
    If we create shopping cart with 15 or more line items then Approval is going to wrong line item cost object owner. However if we create shopping cart with 14 line items then it showing correct financial Approver. Even we raised one more shopping cart with value similar to 15 line items shopping cart and it also going to correct Approver.

    After 2 days of debugging i found where is the problem. I am explaing this below.
    First i created 2 Shopping cart. First one has 14 Line item which shows correct Agent.
                                                  2nd one has 15 Line item which shows wrong Agent.
            CALL METHOD l_o_pdo_sc->get_item_detail
              EXPORTING
                iv_item_guid = l_r_item_guid->guid
              IMPORTING
                et_item      = l_i_item_i
                et_account   = l_i_account_i
    *MOD-002:Begin
                et_limit     =   l_i_limit_i.
            APPEND LINES OF: l_i_limit_i TO l_i_limit.
            APPEND LINES OF: l_i_item_i TO l_i_item,
                                           l_i_account_i TO l_i_account.
    Case for First SC.
    l_i_account_i  has value of Line Items. First line item suppose 1L.
    After appending the l_i_account(2nd itab) has also first .line item 1L.
    Case for 2nd one.
    l_i_account has value of Line Items. First line item 1L.
    But after appending the l_i_account has no first line item 1L.
    Please give some solution to this problem.

  • Shopping Cart Workflow Problem is not able to determine agents

    Hi Experts,
    We are facing a problem in SRM 5.0 shopping cart workflow. Normal flow is as follows: -
    Create SC > Goes for Approval to level 1 approver > Item appears in Approver's list > L1 approver approves it > Follow - on Document is created.
    Currently while creating shopping cart, we are able to see name of approver in approval preview. Still that item doesn't appear in approver's list. We checked in workflow log, it is getting stuck in task which is supposed to determine next level approver.
    Currently approval is done using workflow template WS14000133 and BADI BBP_WFL_APPROV_BADI. In this BADI we are able to find approver perfectly but that is not getting filled in the container of workflow. The Approver List of workflow container is appearing blank.
    Any pointers to this issue will be helpful
    Thanks
    Siddarth

    Hi Ricardo,
    In BBP_WF_APPROV_BADI we have implemented Method GET_REMAING_APPROVERS. The code snippet of method is as follows: -
    CALL METHOD EXITINTF->GET_REMAING_APPROVERS
      EXPORTING
        IN_UPDATE = IN_UPDATE
        DELETE_REJECTED_ITEMS = DELETE_REJECTED_ITEMS
        ITEM_DEDUCT_RESET = ITEM_DEDUCT_RESET
        ITEM_APPROVAL_HISTORY_TABLE = ITEM_APPROVAL_HISTORY_TABLE
        APPROVAL_HISTORY_TABLE = APPROVAL_HISTORY_TABLE
        ACTUAL_APPROVAL_INDEX = ACTUAL_APPROVAL_INDEX
        GUID = GUID
        OBJECT_TYPE = OBJECT_TYPE
        OBJECT_ID = OBJECT_ID
      IMPORTING
        APPROVAL_TABLE = APPROVAL_TABLE
        APPROVAL_ADMINISTRATORS = APPROVAL_ADMINISTRATORS
        ITEM_APPROVAL_TABLE = ITEM_APPROVAL_TABLE
        NO_FURTHER_APPROVAL_NEEDED = NO_FURTHER_APPROVAL_NEEDED
      CHANGING
        ITEM_APPROVAL_OBJ = ITEM_APPROVAL_OBJ.
    Now can you please tell me which variable I am suppose to look at?
    Thanks
    Siddarth

  • How to find Shopping Cart Workflow?

    Hi Experts,
    I want to find which work flow is triggered when I create a shopping cart. Can you please tell me the way to find this?
    Thanks
    Siddarth

    Hi Masa,
    List of message are as follows: -
    02/02/2010  05:04:48  20  Level  00000000000000088721
    @5D\QWarning@     Event 0EV_SC_001 get description error
    @5B\QInformation@     10 Execute event 0EV_SC_001 Check Existence of Free Text Item (Shopping Cart). 02/02/2010 03:04:48
    @5D\QWarning@     Expression 0B_SC_XSTFRTXTLNTM get description error
    @5B\QInformation@     41 Execute expression 0B_SC_XSTFRTXTLNTM An item exists from a free entry; result is empty
    @5D\QWarning@     Expression 0C_C1_C_FWFSCRLCNTNT get description error
    @5B\QInformation@     51 Execute expression 0C_C1_C_FWFSCRLCNTNT Class: /SAPSRM/CL_WF_RULE_CONTXT_SC; result /SAPSRM/CL_WF_RULE_CONTXT_SC
    @5D\QWarning@     Expression 0C_C2_C_GET_PROPERTY get description error
    @5B\QInformation@     51 Execute expression 0C_C2_C_GET_PROPERTY Method - Get Atrribute Value; result GET_PROPERTY
    @5D\QWarning@     Expression 0C_C3_C_XSTFRTXTLNTM get description error
    @5B\QInformation@     51 Execute expression 0C_C3_C_XSTFRTXTLNTM An item exists from a free entry; result EXISTFREETEXTLINEITEM
    @5D\QWarning@     Expression ZCHECK_FREE get description error
    @5B\QInformation@     41 Execute expression ZCHECK_FREE ; result is: =blank
    @5D\QWarning@     Expression ZR_FREETEXT get description error
    @5B\QInformation@     51 Execute expression ZR_FREETEXT ; result FREE
    @5D\QWarning@     Expression 0C_C1_C_FWFSCRLCNTNT get description error
    @5B\QInformation@     63 Execute expression 0C_C1_C_FWFSCRLCNTNT Class: /SAPSRM/CL_WF_RULE_CONTXT_SC; result /SAPSRM/CL_WF_RULE_CONTXT_SC
    @5D\QWarning@     Expression ZCHECK_PRICE get description error
    @5B\QInformation@     51 Execute expression ZCHECK_PRICE ; result G
    @5D\QWarning@     Expression 0C_C1_C_FWFSCRLCNTNT get description error
    @5B\QInformation@     63 Execute expression 0C_C1_C_FWFSCRLCNTNT Class: /SAPSRM/CL_WF_RULE_CONTXT_SC; result /SAPSRM/CL_WF_RULE_CONTXT_SC
    02/02/2010  05:04:48  8  Level 00000000000000088723
    @5D\QWarning@     Event 1EV002 get description error
    @5B\QInformation@     10 Execute event 1EV002 SRM WF BO-SC Approval Step 1. 02/02/2010 03:04:48
    @5D\QWarning@     Expression 1B_SC_GEN_APPROVAL1 get description error
    @5B\QInformation@     42 Execute expression 1B_SC_GEN_APPROVAL1 SRM WF BO-SC Generated Formula for Approval Step 1; result is: =blank
    @5D\QWarning@     Expression ZR_COSTCNTR get description error
    @5B\QInformation@     52 Execute expression ZR_COSTCNTR COST CENTER OUTPUT; result is empty
    @5D\QWarning@     Expression 0C_C1_C_FWFSCRLCNTNT get description error
    @5B\QInformation@     63 Execute expression 0C_C1_C_FWFSCRLCNTNT Class: /SAPSRM/CL_WF_RULE_CONTXT_SC; result /SAPSRM/CL_WF_RULE_CONTXT_SC
    Please check
    Thanks
    Siddarth

  • Moving the Shopping Cart workflow forward in a approver Rejects a line item

    Hi Friends,
       We a facing an issue while Shopping Cart Approval process.
    We have designed our SC Workflow , with Schema and 4 Process levels. Currently the Approvals are happening fine.
    Issue is happening when a Line Item is Rejected by a Single Approver. The Approval process does not move forward.
    We need need to move the SC process forward.
    Ex: SC: 1000000032
    Approval Flow:
    ITEM1:  APP01 -> APP02
    ITEM2:  APP05 -> APP07
    Scenario:01 :
    Once APP01 & APP05 approves in first level.  Then APP02 & APP07 approves . Then the process completes.
    Scenario:02:
    Once APP01 Rejects & APP05 Approves in first level. Then the SC WF does not move forward.
    How can I move the WF process forward once a approver rejects.
    Need your inputs.
    Regards,
    Jagan

    Hello Markus,
    what you describe does not correspond to condition standard determination to know if decision has to be checked or not.
    Indeed, this evaluation is done by /SAPSRM/IF_WF_PROCESS_SBWF~IS_DECISION_ACCEPT_REQUIRED method from /SAPSRM/CL_WF_PROCESS_SBWF class.
    Inside this method, the default behavior is based on decision of current process level:
    - If it is not "rejected" or not "approved" (this means, if it is "inquired"), there is an interaction
    - else, there is no interaction.
    Then, for "rejected" or "approved" decision, a Business Rule evaluation is done in order to check if the document responsible need to accept the current decision.
    If evaluation ID is true, acceptance by Contact Person is required.
    I am currently not able to check workflow behaviour for partial rejection when no acceptance by contact person is customized.
    I will see this next week.
    Regards.
    Laurent.

  • Shopping Cart Workflow - "Wait for change event" not firing?

    Hi there,
    I have a scenario where if I create a shopping cart above my spending limit it will go into the approver's inbox, that is fine.
    Now if I change the total value of the shopping cart to be within my spending limit the original workflow should be "logically deleted" and a "no step approval workflow" should be triggered.
    I see when the SC workflow triggers it also branches with a "wait for events", so that if it changes etc it will get caught here.
    When I change the SC it does not do anything, the value of the cart changes but it still sits in the approvers inbox and the "no step approval workflow" does not trigger.
    We are busy upgrading to SRM 5.0, it worked perfectly in the SRM 3.0 system we had.
    Any ideas what would cause the "change event" not to fire?
    Thanks for the help
    Lynton

    Hey Masa,
    You are the man!! That solved it.....I have implemented the BBP_WFL_SECUR_BADI and for whatever reason I set the security level to 4 when it should have been 2.
    4     "High" (workflow is never restarted when changes are made)
    3     "Medium" (WF restarted conditionally when changes are made)
    2     "Low" (workflow is always restarted when changes are made)
    1     "None" (changes to the object are not allowed)
    0     "Not defined"
    Thanks for the help
    Lynton

  • Shopping Cart workflow retrigger for changes done to SC already created

    Hi all,
    A shopping cart is created and later on in "Check Status" when the shopping cart is opened in change mode and any changes are made to the shopping cart either header or item level, the whole approval workflow is retriggered and the approvers are determined again.
    We have a scenario where for a particular account assignment category the approvers are added manually - ad hoc approvers through the "Add Approver" in "Approval Preview". For these shopping carts with manual approvers when in "Check Status" any changes are done to header or items of the shopping cart, the whole approval workflow is retriggered and the manual approvers previously added are refreshed as per standard SAP.
    I have to put a check in DOC_CHECK badi for the existence of approvers. If no approvers found an error message has to be thrown for adding the approvers manually. I am doing this by reading the approvers from the container for a cart created already. But when changes are made and the workflow is retriggered, the workflow container contains only the previous approvers and not the refreshed ones. So this is not captured in DOC_CHECK badi.
    Is there any way to capture the retriggering of workflow in DOC_CHECK badi, so that the check for approvers works fine even after a change being done to a shopping cart which is already created.
    Thanks and Regards,
    Asha

    Try this FM BBP_PDH_WFL_APPROVAL_SIMULATE
    Regards, IA

  • AD-hoc approver n step item level shopping cart workflow

    Hi
    We are on latest version of SRM and using n step item level SC approval workflow.
    The scenario goes like this:
    -     Requester creates shopping cart and workflow goes for two step approval.
    -     In the approval preview the requester is able to see both levels of approvers, which is correct.
    -     Requester now selects second level approver and replaces him with a ad-hoc approver. WE DO NOT WANT THIS.  Requester should NOT be able to replace an approver determined by approval badi. However should be able to extend approval step with ad-hoc approver say third level approver a ad-hoc approver. Also he should be able to change AD-HOC approvers ONLY.
    Thanks
    Joe

    Jo,
      You may be able to achieve it in the BADI BBP_WFL_SECUR_BADI .
    You can use the Business Add-In (BAdI) BBP_WFL_SECUR_BADI to determine whether
    A shopping cart can be changed during the approval process
    The approval workflow restarts when changes are made to the document
    A reviewer/approver can be added or changedThese are the call scenarios (see import parameter SCENARIO).
    Regards,
    Suren

  • Change Shopping Cart Workflow

    Trying to figure out a way to route the shopping cart back to the requestor at all points during the approval process. There are customizations made to the workflow such as a finance reviewer, a commodity approver, manager (org hierarchy) and a financial approver (for $50K+). Client wants shopping cart to come back to approver at any point. Any suggestions?
    Thanks in advance.

    Basically, what we want to do is to route the shopping cart back to the requestor at any point in the approval process. Commodity Approval is based on material group, Manager Approval is based on shopping cart amount and org hierarchy, CFO approval is based on shopping cart amounts over $500k.Approval amounts are nased on a Z-Table. Using workflow WS14000133 n-step approval of shopping cart (BADI)
    Thanks for the response so far! Let me know if you need any additional info MJ!

  • Use HR Structure for Agent Determination in Shopping Cart Workflow SRM7.0

    We are implementing a Shopping Cart Approval Workflow in SRM 7.0. The process is that the Requester creates a Shopping Cart and an approval process will take effect.
    The approvers will come from an HR structure wherein the direct superior (or supervisor) is the first approver. The second approver is the direct superior of the first approver; and so on, until the Shopping Cart is approved. A maximum of 7 approvals can be done in a Shopping Cart document.
    I would like to ask the following:
    1. How can I achieve this in our WF? I tried to implement BADI /SAPSRM/BD_WF_RESP_RESOLVER but I was not able to activate it (there are other active implementations for this in Shopping Cart).
    2. If there are other suggestions on how to accomplish this, please let me know.
    Thanks in advance for your help.

    Thanks Masa.
    We created 2 custom expression for our requirement and copied FM /SAPSRM/WF_BRF_0EXP001 to put values on those expressions. Then, on our BRF we compared these 2 expressions. After putting the Eval. ID on the process level configurations, we were able to see in SLG1 that the fields are populated correctly. However, we just put constant values on the custom expressions so we can proceed with testing.
    There is one problem in terms of populating the other custom expression. This expression is for the Level of the Manager. I understand that this custom expression is populated before RR_MANAGER_OF_MANAGER. I would like to understand how to get the next approver in the copy of FM /SAPSRM/WF_BRF_0EXP001. In this way, I can get the Manager Level from table HRP5581 and use this to compare with the Release Strategy. If this will not work, is there a way to get the work item ID for the WF so I could get the previous approver then get the superior of the that previous approver and then get the Manager Level from there?
    Currently, only the GUID and Object Type is populated in the FM. Can I reuse some of the fields from other expressions so I can achieve my requirement?
    Thank you very much for your help.

  • Shopping Cart workflow error

    Hi,
    We have just started with the setting up of the SRM 5.0 system. Scenario is Classic. we have activated the Shopping Cart without approval WF, however, when a SHC is created the system shows the status of SHC in Approval. Dont know what i have missed.
    Full points will be awarded.
    Thanks in advance,
    Amit

    Hi,
    Sorry guys, i guess this was a false alarm. I had not completed the settings for SWU3. Issue seems to be resolved.
    Thanks
    Amit

  • E-mail notification in SRM 7.0 for Shopping Cart Workflow

    Hi Gurus
    We have a requirement in SRM 7.0 Process Controlled Workflow.
    1. To send E-mail notification to  approver Outlook / lotus notes in case of SC goes for approval. 
    2. Incase SC is rejected by the approver then the E-mail notification has to be send to the creator of SC.
    How do we configure this E-mail Notification in SRM 7.0 . Also , how do we include Customized E-Mail text while sending these notifications.
    Kindly let me know .
    Thanks,
    Ashish

    Hi Ashish,
    Look out for this path ..
    SPRO-> SRM Server-> cross application->event and event schema for alert management
    in Define events look for Approval_process_doc_rejected and Approval_process_doc_approved
    you can check for event control enter event Approval_process_doc_rejected Or Approval_process_doc_approved
    and event category, event sub category
    also...see Define receipeint of notifications -> here you can configure the receipeint  in case of approval / rejection.
    ~vipin

  • Error in SOCO while trying to process a shopping cart

    Hi SRM Experts,
    We have SRM 7.0 with extended classic scneario.  I have created free text shopping cart ordered successfully.
    The status of SC is "approved".  The SC is sourcing enabled.  When I go to Sourcing cockpit and select the requisiton and press NEXT (for further further processing of assigning sourcing and creating draft PO), there is an error
    "Requistion xxxx cannot be opened in edit mode".
    I have tried with different sets of user s.  Also, checked the SC in BBP_PD there are no error messages displayed.
    Can you please help how to overcome this issue.
    Thanks in advance,
    Sundar K

    Hi,
    Is your SC open in edit mode in another window by any chance?
    Regards,
    Nikhil

  • GL directly from  shopping cart without account assignment

    Hi All
    Is there any prerequisite in the account assignment overview  to select GL from the free text shopping cart?
    (backend acct assignment category ) X= GL ( Account assignment category ).
    any instances we may need to do this from SRM?
    i believe BAPI  BAPI_PO_CREATE1  badi always expects SOME ACCOUNT ASSIGNMENT  right?
    Note 1408312 - Direct material does not derive correct account assignment - Can some one expalin this sap note please?
    MM06EF0P_PRUEFEN
         MESSAGE e000(mepo).
        ENDIF.
        LOOP AT ett WHERE item_with_error NE space.
          MOVE-CORRESPONDING ett TO potkey.
          READ TABLE pot WITH KEY potkey BINARY SEARCH.
          IF sy-subrc EQ 0 AND pot-loekz NE 'L'.
            MESSAGE e001(mepo) WITH ett-ebelp.
          ENDIF.
        ENDLOOP.
        LOOP AT knt WHERE item_with_error NE space.
          MOVE-CORRESPONDING knt TO potkey.
          READ TABLE pot WITH KEY potkey BINARY SEARCH.
          IF sy-subrc EQ 0 AND pot-loekz NE 'L'.
            MESSAGE e046(mepo) WITH knt-ebelp.
          ENDIF.
        ENDLOOP.
      ENDIF.
    Muthu

    Thanks Summer
    My context is different.
    free text --cost assignment folder --. select  GL account only ( slect account assignment category -AcctAssCat ) - so
    now assignto G/L ACCOUNT AND G/L ACCOUNT thats all and again i am fing GL accounts and select ..order
    We do have option in SRM posting to direct GL account like GL = X (BACKENED ACCOUNT ASSIGNMENET) . FOR FREE TEXT ITEM , Can we post the GL account directly without ORDER / COST CENTER /WBS eleement .
    if we choose GL all will disappear like cost center , order , wbs .
    cost assignment
    account assignemnt over view
    line ; -1
    percentage ;-100
    assign to ; -G/L account
    description;- balank
    G/l ACCOUNT ;- 2XXXXX
    Description;- Testing
    Business area ;- blank
    hope it clears now
    thats what i am asking.the note might confused .
    FOR EX
    BBP_PDACC TABLE ACC_CAT = GL NOT CC
    Muthu

Maybe you are looking for