cancel
Showing results for 
Search instead for 
Did you mean: 

How to find Shopping Cart Workflow?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi All,

My basic problem is workflow for automatic PO creation is not getting triggered once I order my items in Shopping cart.

In development system when we create shopping cart from SRM portal, it doesn't create Purchase Order. It just says that Shopping Cart XXX is created. Ideally it should create PO for the given shopping cart. The same happens successfully in QA system.

Currently we are going in GUI system, retrieving details for Shopping Cart from BBP_PD and triggering the workflow.

So now can any of you tell me where can I check this or are there any settings needs to be changed?

Thanks

Siddarth

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

What is your SRM version?

What is the SC document status in BBP_PD?

What is the workflow status in BBP_PD?

Have you scheduled CLEAN_REQREQ_UP job?

Regards,

Masa

Former Member
0 Kudos

Hi Masa,

Please find replies as below for your questions: -

What is your SRM version?

SRM 6.0

What is the SC document status in BBP_PD?

Awaiting Approval

What is the workflow status in BBP_PD?

Workitem-ID 000000228269

Task WS40000014

Text SRM Approval Process

Status STARTED

Date 02/02/2010

Time 05:04:47

No Workflow Item Found

Have you scheduled CLEAN_REQREQ_UP job?

for every two minutes

thanks

Siddarth

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

It says workflow is started and awaiting approval status.

Go to transaction SWI1 and open the workitem 228269. You see workflow log. Do you see any info?

Also check the SLG1 log for object /SAPSRM/ .

Regards,

Masa

Former Member
0 Kudos

Hi Masa,

In SWI1 transaction for workitem 228269 workflow log is as follows:-

Workflow and task Status Result

SRM Approval Process for document In Process workflow started

Bind process completed process Instance Initalized

N-level Approval loop In process Blank

SLG1 log for object /SAPSRM/

Date / Time / User Number Log Number Sub Object Text

02/02/2010 00:44:48 10 00000000000000088641 Schema

Problem class medium 5

Problem class Additional information 5

Please check and let me know.

Regards,

Siddarth

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Please paste the detail message from SLG1.

>Problem class medium 5

>Problem class Additional information 5

Please also paste detail message in "Level".

Level evaluation starts after successful Schema evaluation.

Regards,

Masa

Former Member
0 Kudos

Hi Masa,

Please find details as below: -

Problem class medium

@5D\QWarning@ Event 1EV_SC_001 get description error

@5D\QWarning@ Expression 1V_SC_SCHEME get description error

@5D\QWarning@ Expression 0V_SC_EVENT get description error

@5D\QWarning@ Expression 0C_C1_C_FWFSCRLCNTNT get description error

@5D\QWarning@ Expression 0C_C2_C_EVENT get description error

Problem class Additional information

@5B\QInformation@ 10 Execute event 1EV_SC_001 Event for BO SC. 02/02/2010 00:44:49

@5B\QInformation@ 41 Execute expression 1V_SC_SCHEME Dynamic Schema Determination for SC; result BUS2121_EX01

@5B\QInformation@ 51 Execute expression 0V_SC_EVENT Event of the Object; result SAVED

@5B\QInformation@ 61 Execute expression 0C_C1_C_FWFSCRLCNTNT Class: /SAPSRM/CL_WF_RULE_CONTXT_SC; result /SAPSRM/CL_WF_RULE_CONTXT_SC

@5B\QInformation@ 61 Execute expression 0C_C2_C_EVENT Method - Event of Object; result GET_WF_EVENT

There are three level sub object text are there

1. 02/02/2010 00:45:45 20 Level

2. 02/02/2010 00:45:46 8 Level

3. 02/02/2010 00:45:46 8 Level

Please check

Thanks

Siddarth

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Please double check you are looking at correct SLG1 log.

Workitem-ID 000000228269

Task WS40000014

Text SRM Approval Process

Status STARTED

Date 02/02/2010

Time 05:04:47

This is the issue. My guess is schema or level evaluation was failed.

>N-level Approval loop In process Blank

Workflow is started at 05:04:47. You should look at SLG1 log after 05:04:47.

Regards,

Masa

Former Member
0 Kudos

Hi Masa,

Apologies for incorrect details. Correct details are as follows: -

Date / Time / User Number Sub-Object Text Log Number

02/02/2010 05:04:48 20 Level 00000000000000088721

02/02/2010 05:04:48 8 Level 00000000000000088723

I have verified external ID with GUID displaying in workflow log. Both are same. Also verified time stamp for this.

Do you want me to copy all 20 messages for this?

Moreover there is no sub-object text as 'schema' for this external Id.

So how can we proceed further?

Thanks

Siddarth

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Yes. Please copy all messages in SLG1.

Former Member
0 Kudos

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

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Do you face same issue for all SC? or only this specific SC?

Have you compared all workflow settings with QAS system?

If the issue is for all SC, please paste your BUS2121_EX01 process level definition.

Regards,

Masa

Former Member
0 Kudos

Hi Masa,

We are facing this issue for all SCs in Dev. We are comparing Dev and QAS workflows but couldn't get any clue. We are still trying to search it.

Process Level Definition for BUS2121_EX01 is as follows:-

48 Approval with Completion SC_RR_PURCHASING_GROUP <BLANK> 0EV_SC_001 Check Existence of Free Text Item (Shopping Cart) 40007952 SRM Shopping Cart Completion Decision for each Document Item

50 Approval with Completion ZCOST_05 <BLANK> 1EV002 SRM WF BO-SC Approval Step 1 40007953 SRM Shopping Cart Approval (1) Decision for each Document Item

51 Approval with Completion RR_ROLE ZSBR:S3_P2P_CAPITAL_GOODS_APPR 1EV003 SRM WF BO-SC Approval Step 2 40007953 SRM Shopping Cart Approval (1) Decision for each Document Item

98 Approval with Completion RR_EMPLOYEE EL00017291 9EV_SC_001 Check Process Level 1 40007953 SRM Shopping Cart Approval (1) Decision for each Document Item

100 Approval with Completion RR_SPENDING_LIMIT_APPROVER <BLANK> 0EV_SC_SL2 n-Level Output Limit Approval Process 40007953 SRM Shopping Cart Approval (1) Decision for each Document Item

999 Automatic (System User) <BLANK> <BLANK> 0EV999 Check Necessity of Automatic Decision by System 40007988 Automatic Approval Decision for all Document Items

We compared this in both Dev and QAS and it is exactly same.

Thanks

Siddarth

Former Member
0 Kudos

Hi Masa,

Yesterday I checked the workflow log from SWI1and compared between Dev and QAS systems. There are differences in both the workflow logs. Details are as follows: -

1. When we go manually and create the PO from SC from BBP_PD, it shows the step status as in progress in Dev whereas in QAS it is in completed status.

2. There are some container operation(No Level restart required) is missing in Dev as compare to QAS.

3. After one if condition of worflow, it is leading to different leg in Dev as compare to QAS. Because of that all further steps are different upto some extent.

4. There are 3 loops in Dev as compare to 2 loops in QAS.

Can you please check and help me on this?

Thanks

Siddarth

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Please create same SC(same data) in both DEV and QAS and compare.

Regards,

Masa

Former Member
0 Kudos

Hi Masa,

After creating shopping cart in both Dev and QA system and creating PO by starting WF in Dev system from BBP_PD, I found that workitem status in both systems is different. In Dev workitem is in Started status and in QA it is in completed status but header status is same(Awaiting Approval) for both the SCs.

Moreover in SWI1, I found one big difference in my understanding that QA workitem has different task as compare to Dev system. QA has 'Main SRM Approval Process Template' where as Dev has 'N-Level Approval Loop' as task text.

Is this somewhere helpful with respect to my issue? Can you throw some light on this?

Thanks

Siddarth

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Please compare following entries in SWETYPV transaction with DEV and QAS.

ABAP Class /SAPSRM/CL_WF_PDO READY_FOR_RELEASE SRM_PROCESS_START X

ABAP Class /SAPSRM/CL_WF_PDO READY_FOR_WORKFLOW WS40000014 X

Please also compare the SLG1 log for same SC data with DEV and QAS.

Regards,

Masa

Former Member
0 Kudos

Hi Masa,

Details of SWETYPV Tcode is as follows: -

ABAP Class /SAPSRM/CL_WF_PDO READY_FOR_WORKFLOW WS40000014 No errors.

It is same in both the systems.

SLG1 one has differences on message logs: -

Dev has following list:-

02/04/2010 04:15:14 10 Schema 00000000000000089440

02/04/2010 04:16:20 20 Level 00000000000000089442

02/04/2010 04:16:20 8 Level 00000000000000089443

02/04/2010 04:16:21 8 Level 00000000000000089444

Where as QA has following list: -

02/04/2010 04:09:53 10 Schema 00000000000000348319

02/04/2010 04:11:03 12 Level 00000000000000348320

02/04/2010 04:11:03 8 Level 00000000000000348321

02/04/2010 04:11:04 8 Level 00000000000000348322

02/04/2010 04:11:04 20 Level 00000000000000348323

02/04/2010 04:11:04 22 Level 00000000000000348324

02/04/2010 04:11:05 10 Level 00000000000000348325

Now in this messages under schema are exactly same. Messages are same for 2nd and 3rd level entry. There are significant differences 1st level log entry. Last three messages are extra in QAS system.

Please check and help me out.

Siddarth

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Your Process Level Definition BUS2121_EX01 is 5 steps approval.

48 - Completion by Purchasing Group if there is Free text item

50 - Approve by ZCOST_05 for each items

51 - Approve by S3_P2P_CAPITAL_GOODS for each items

98 - Approve by Employee 17291 for each item

100 - Approve by Spend limit approver for each item

How many approval steps went through in QAS system?

Which step is stopped in DEV system?

Regards,

Masa

Former Member
0 Kudos

Hi Masa,

I can't get you. Can you give me pointers how can I check this?

thanks for your cooperation

Siddarth

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Your workflow is 5 step approval. Please test it in QAS and let us know the behavior.

For example,

QAS:

step 48 - skipped

step 50 - true, workitem sent to user XXXX and approved

step 51 - true, workitem sent to user XXXX and approved

step 98 - true, workitem sent to user XXXX and approved

step 100 - true, workitem sent to user XXXX and approved

DEV:

step 48 - faules

step 50 - true, but no workitem is sent to user XXXX

Regards,

Masa

Former Member
0 Kudos

Hi Masa,

It is using 999 for normal shopping cart scenario workflow without approval.

999 Automatic (System User) <BLANK> <BLANK> 0EV999 Check Necessity of Automatic Decision by System 40007988 Automatic Approval Decision for all Document Items

That is not working. It looks like some agent determination is not happening correctly.

Moreover when I went to approval preview tab in shopping cart while creating an SC, I got a dump saying "Field symbol not assigned" "GETWA_NOT_ASSIGNED".

Please check and help me out.

Thanks

Siddarth

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

If it is program bug, it also does not work in QAS system.

Anyway, please check some of notes. For the dump, SAP Support can help you.

https://service.sap.com/sap/support/notes/1230429

https://service.sap.com/sap/support/notes/1364399 (SRM 7.0)

Regards,

Masa

Former Member
0 Kudos

Hi Masa,

It doesn't looks like a program bug. There must be some configuration setting which is missing over here. Because of that this workflow is not working properly in only DEV system. It is working perfectly fine in QAS. So I don't think we need to apply SAP note for this.

Moreover I am working on SRM6.0 system. I have checked complete workflow in 40000014 and 40000015. It is exactly same in both QAS and DEV system. Process level definition is also same. What else should I check?? If any pointers then it would be great.

Thanks,

Siddarth

Former Member
0 Kudos

Hi All,

Issue got resolved. there was some problem in BRF settings. We corrected that.

Thanks masa for directing us.

Siddarth

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

If you specify your steps in the final solution would be more helpful for the community. Request you to please detail you solution steps as this has turned out to be a very informative thread.

Thanks

Former Member
0 Kudos

Hi All,

First of all SRM Shopping Cart workflows can be find easily from the workflow log in SWI1. But in order to fix our problem which was of not creating PO automatically once SC is ordered, you need to check the BRF settings. Now in process level configuration go and check what all process levels are defined for your SC. Generally last one is the one which is for automatic approval. So while creating SC, you can go to approval preview tab and can check in which process level your SC is stuck. Now if it is not at desired process level then you have to change BRF settings for that particular event.

In our case, whenever we clicked on approval preview tab either it is showing us dump as "GETWA_NOT_ASSIGNED" or it is showing completely blank if get a bit late in checking approval preview tab. Main problem was the dump which was coming from some formula related class. So finally we related to checked events and expressions for each process level and found that one condition is not proper. After correcting that condition, we are able to achieve it.

In all conclusion is as follows: -

Check where is your SC getting stuck. Find out the culprit process level from approval preview tab.

Check event attached to that process level.

Check expressions related to that event.

Check formulas related to those expressions.

Hopefully you will be able to reach to the spot. After this your analysis.

thanks

Siddarth

Former Member
0 Kudos

The specific workflow number can be obtained from BBP_PD, for BUS2121 i.e., SC object. In SC details, section under Workflow item will give you the workflow details including the WF number.

@ Navin : I think u agree to that!

Former Member
0 Kudos

Hey Muthu,

Can you explain more because in BBP_PD I am getting list of all shopping carts for object type BUS2121 but not able to find the workflow which is used for creating PO when Shopping Cart is created.

Can you help me out with this?

Thanks

Siddarth

former_member183819
Active Contributor
0 Kudos

go bbp_pd obje id as u r cart no

search Workflow Item:

expand

you will see

Former Member
0 Kudos

Hi,

Can you explain what exactly you want?

If you are looking for just the workflow number that gets triggered when u create a SC , then in BBP_PD give any SC number in the object id and execute.Then expand for more details.Under Workflow item you'll get the workflow details.

Hope this helps

BR,

Navin

former_member183819
Active Contributor
0 Kudos

in bbp_pd -sc

you will have entry of wf templates

muthu