Process Controlled Workflow - Process Schemas
Hi
I am configuring Process Controlled Workflow in SRM 7.0 for shopping carts. As per one of the guidance documents, I activated the BC Sets for the shopping cart in order to pull in all the component parts. As none of the three standard Process Schemas created meet my requirements I am going to create my own Schema. Please could someone explain to me how I can ensure my schema will get activated, and not say - /SAPSRM/C_SC_600_001_SP04?
Many Thanks
Claire
Hi,
You can create custom schema definition. If you need only 1 schema, you can use constant type BRF expression.
1. Create BRF event and Expression in transaction BRF
BRF Event (ZEVALUATION1)
BRF Expression (ZEXP1) = Constant Schema name (ZSCHEMA1)
2. Link the event and expression
3. Customize Define Process Level
Process Schema Evaluation = BRF Event (ZEVALUATION1)
- linked to BRF Expression (ZEXP1) = Constant Schema name (ZSCHEMA1)
Process Schema Definition (ZSCHEMA1)
- based on your requirements
Regards,
Masa
Similar Messages
-
Process controlled workflow process schema evaluation
HI there
I want to know is there a way to choose the process schema used for a workflow dynamically? I know that based on the evaluation ID, that is how it knows which schema to choose but is there a way to do it dynamically instead of manually?
For example, if I the workflow to work based on company code. How do I build the expression to choose the schema?
Kind regardsHi ,
you have to create a custom FM expression in T.code BRFEXP01. Copy the standard FM /SAPSRM/WF_BRF_0EXP001 into custom FM. write your logic in the custom FM and assign ac access FM in the custom expression. link this expression to an event which is going to assign as process schema evaluation in SPRO.
Regards,
saravanan -
Process controlled workflow - SC process schema evaluation
Hi experts,
at the moment I'm using the n-step item level approval in SRM 5.0.
We are implementing SRM 7.0. With the new process controlled workflow I'm not sure how to
implement the logic of our "old" system.
Depending on category and item value the SC item has to be approved by 0 - 7 users.
I've created an event which finds a Z-process schema via FM.
In the FM I've tried to change the process schema (debugger) for one SC item.
But the schema has been changed for all items.
Is it possible to use different process schemas for items?
When yes how can I set the schema e.g.
item 10 schema1
item 20 schema1
item 30 schema2
item 40 schema1
Thanks in advance for your inputs!
Regards
StefanHi,
Schema Evaluation is document header level.
There are 2 ways for implementation.
1. Schema Evaluation returns Schema name. For example, 1 step approval, ... 7 step approval
2. 1 Fixed Schema and 7 level evaluations. 1 Schema has 7 approval steps and each evaluation returns true or false.
You have to implement GET_AREA_TO_ITEM_MAP method of Agent BADI to exclude/include items.
BTW. If you set workflow framework as Application-Controlled Workflow, your old workflow logic works without any change.
Regards,
Masa -
Hello experts,
We are trying to use process controlled work flow for SC approval. Approval process will be multiple based on the amount of shopping cart. Somebody has already activated BC set for one step approval in the system. If i want to have my own process schema ( multiple approval ),what i supposed to do? Do i delete the existing schema attached to BUS2121 or create my own schema ?
How system will determine which schema needs to be picked up after creation of SC?
Regards,
SagarHello Bharat,
Thanx for reply.
I have below cases for process controlled workflow.
1. No approval
2. One step approval
3.Multi level approval.
All the above scenario will be decided based on the Z field which we have added to SC header. My understanding in this case is to have three process schema for above cases. Name of schema will be decided by Evaluation ID.
Once the schema is decided then i need to define process level for each process schema.
Please let me know if i am on the right track??
Regards,
Sagar -
Process controlled Workflow is not starting
Hi,
I have problems with implementing an own process-controlled workflow. The "Sample BC Set for Process Level Definition" /SAPSRM/C_SC_600_001_SP04 is working fine. However I do not succeed in triggering a customer Process Schema for BUS2121.
The (first?) problem can be duplicated as following:
1. BC-Set /SAPSRM/C_SC_600_001_SP04 is activated
1.1 When creating a shopping card (Web Portal) a approver ("Head of organizational unit" in OrgManagement) is displayed in the Details (Approval-Workitem is created when saving the shopping cart)
--> OK
2. Deactivation of Process Schema 3C_SC_600_001 (replace Eval.IDs with customer Eval.ID which contains always false expression)
--> When creating a shopping card (Web Portal) no approval data is displayed in the Details
--> OK
3. Copy Process Schema 3C_SC_600_001 into ZC_SC_600_001; replace customer Eval.ID with original Eval.IDs (Boole; no process schema in expression (Eval-ID 3EV_SC_600_001_100; Expression 3B_SC_600_001_100: "Execute always"))
--> When creating a shopping card (Web Portal) no approval data is displayed in the Details
--> NOT OK; the same result as with 1.1 is expected
Why is 3. not working? Any ideas would be very welcome.
Best regardsIn most cases, this means that the 'Start Process' is not configured correctly. Take a look at the following:
1. make sure that the Wf assigned to your start process is active
2. make sure that reference numbers are configured and assigned to your process
3. assign a user to receive error messages when an error occurs
Thanks,
Derrick Banks -
Process Controlled Workflow - 1-step approval for shopping cart approval
Hi,
I have configured a one-level approval for SC (Process Controlled Workflow):
Object Type: BUS2121
Additional 1 level under schema: 3C_SC_600_000 (the last level is the automatic approval)
Level Type: Approval with completion
Eval ID: 0EV_SC_SL1
RR Name: RR_SPENDING_LIMIT_APPROVER
RR Param: USTONY.Y (I hardcoded it using my user ID, for the moment)
Task ID: 40007953 (I have checked, it's generalized as well)
Decision Type: Item-based decision for entire document
For PPOMA_BBP:
Under my org unit (Position):
Approval Limit: 1000
Output Limit: 1000
I didn't do any BADI implementations yet.
During creation of SC by other user, before "Order" the SC, the approval preview can show correctly that the Processor is as indicated in the config.
Once the SC is ordered, the whole step is gone and the event linkage becoming delinked (because there is error, and according to the config in SWEQADM).
However, I cannot find the workitem (no workitem generated) and SLG1 does not give any clue whatsoever.
I tried debugging method APPROVAL_LIMIT, and it seems fine as well.
Please help, what did I do wrong here?
Thanks,
Tony YHi Sahil,
I even changed to first process level to:
Level Type: Approval
Eval ID: 0EV000
RR Name: RR_MANAGER
RR Param: (Blank)
Task ID: 40007953 (I have checked, it's generalized as well)
Decision Type: Decision for entire document
Under PPOMA_BBP:
I made myself as a head of the org unit with the role manager.
The requester is "Exclude" the role manager.
The agent can be determined now.
But the workitem ID is still cannot be generated. It's always no workitem generated.
Please everyone, any help?
Thanks in advance,
Tony -
SRM 7.0 Process-controlled Workflow not starting
Hi,
I have problems with implementing an own process-controlled workflow. The "Sample BC Set for Process Level Definition" /SAPSRM/C_SC_600_001_SP04 is working fine. However I do not succeed in triggering a customer Process Schema for BUS2121.
The (first?) problem can be duplicated as following:
1. BC-Set /SAPSRM/C_SC_600_001_SP04 is activated
1.1 When creating a shopping card (Web Portal) a approver ("Head of organizational unit" in OrgManagement) is displayed in the Details (Approval-Workitem is created when saving the shopping cart)
--> OK
2. Deactivation of Process Schema 3C_SC_600_001 (replace Eval.IDs with customer Eval.ID which contains always false expression)
--> When creating a shopping card (Web Portal) no approval data is displayed in the Details
--> OK
3. Copy Process Schema 3C_SC_600_001 into ZC_SC_600_001; replace customer Eval.ID with original Eval.IDs (Boole; no process schema in expression (Eval-ID 3EV_SC_600_001_100; Expression 3B_SC_600_001_100: "Execute always"))
--> When creating a shopping card (Web Portal) no approval data is displayed in the Details
--> NOT OK; the same result as with 1.1 is expected
Why is 3. not working? Any ideas would be very welcome.
Best regardsHi..
what do you see in SLG1? .. i think your process level Eval.id result is false, that is the reason workflow is not kicking of
1- level approval.. check your process level configure and try to use 0ev000 as a Eval.Id instead your custom Eval.Id and test..
Saravanan -
Approval Level in Process Controlled workflows
Hi Sap Gurus,
How can i find the number of approval levels in process controlled workflows for Shopping Cart, Purchase Order....
Thanks in advanceHello,
IMG: SAP Implementation Guide > SAP Supplier Relationship Management > SRM Server > Cross-Application Basic Settings > Business Workflow > Process-Controlled Workflow > Business Process Configuration > Define Process Levels
For concerned object type, select "Process Schema Definition" directory.
Then, select correct process level schema to display "Process Level Configuration" directory: here are the process levels defined.
Regards.
Laurent. -
SRM Process Controlled Workflow
Hi Exports,
I have created a Process schema for SC object type (BUS2121)..
Looks like my process levels are trigged before the shopping cart is actually ordered by the user..
Is this a normal behavior? or I am missing any configuration? or I need to have a additional process level initially to check whether the SC completed?..
Please advice..
Thanks in advance
BharathHI,
Yes. That is correct task ID.
FYI. Task ID List for Process-Controlled Workflow
SRM Contract BUS2000113 No Completion Task
40007980 SRM_CT_APPR1 SRM Contract Approval
40008003 SRM_CTR_Acc Accept Decision / Adjust Document
40007997 SRM_CTR_Revi Revise Document
40107926 SRM_CTR_RW review document
SRM Shopping Cart BUS2121
40007952 SRM_SC_COMP1 SRM Shopping Cart Completion
40007953 SRM_SC_APPR1 SRM Shopping Cart Approval (1)
40007954 SRM_SC_APPR2 SRM Shopping Cart Approval (2)
40007994 SRM_SC_Acc Accept Decision / Adjust Document
40007936 SRM_SC_Revi Revise Document
40007945 SRM_SC_RW Review Document
SRM RFx BUS2200 40107917 SRM_BI_COMP1 SRM RFx Completion
40007982 SRM_BI_APPR1 SRM RFx Approval
40107922 SRM_RFx_Acc Accept Decision / Adjust Document
40007998 SRM_RFQ_Revi Revise Document
40107927 SRM_RFQ_RW Review Document
SRM Purchase Order BUS2201
40007973 SRM_PO_COMP1 SRM Purchase Order Completion
40007974 SRM_PO_APPR1 SRM Purchase Order Approval
40007995 SRM_PO_Acc Accept Decision / Adjust Document
40007996 SRM_PO_Revi Revise Document
40107924 SRM_PO_RW Review Document
SRM Supplier Quote BUS2202 No Completion Task
40007981 SRM_QT_APPR1 SRM RFx Response/Bid Approval
No Adjust task
40007999 SRM_QTE_Revi Revise Document
40107928 SRM_QTE_RW Review Document
No Completion Task
40008000 SRM_QT_APPR2 SRM Bid Approval
No Adjust task
40107934 srm_bid_revi Revise Bid
40107935 srm_bid_rw Review Bid
SRM Confirmation of Goods/Service BUS2203 No Completion Task
40007987 SRM_CF_APPR1 SRM Confirmation Approval
No Adjust task
40008004 SRM_CF_Revi Revise Document
40107929 SRM_CF_RW review confirmation
SRM Incoming Invoice BUS2205 No Completion Task
40008005 SRM_IV_APPR1 SRM Invoice Approval
No Adjust task
40008006 SRM_IV_Revi Revise Document
40107925 SRM_IV_RW Review Document
Auto 40007988 SRM_AUTOAPP Automatic Approval
Auto 40007989 SRM_AUTOREJ Automatic Rejection
Regards,
Masa -
How to make a restart of the workflow in a process controlled workflow?
Hi Experts,
How to make a restart of the workflow in case of process controlled workflow? Scenario is like this:
The user has created a shopping cart with 1000 USD. The process schema has three process level with the first level being approval with completion.
The first level being executed by the responsible purchaser. Here, the purchaser adds the source of supply and changes the price of the shopping cart 2000 USD and approve the shopping cart.
Now, I want the approval task to start from beginning so that the requestor can know the changes and accept/reject the changes.
Thanks and regards,
RanjanHi,
Restarting workflow goes to 1st level approval step. It is not requester.
I think you need to set condition for "Acceptance by Contact Person" in Define Process Level.
Regards,
Masa -
Shopping Cart - Process Controlled Workflow - replace standard task
Hallo,
I am on SRM 7.0 SAPKIBKV09 using NWBC.
I use Process Controlled Workflow for Shopping Cart, and in the process schema definition,
I replaced the standard workflow task 40007952,
(with name - SRM Shopping Cart Completion),
with a copy of task 40007952, task 90000010
(with name - SRM Shopping Cart BUYER Completion)
I did that for the following Reason: to ensure that in the Shopping Cart Approval Log, I can distinguish between diffrent approval level, all of type completion.
Issue is that now when approver is executing the task from NWBC, I get the following error:
´No default action found for task TS90000010´
Any idea?
tried to apply Note 1409276 - Not all tasks have default action in inbox config, (as this applies to SAPKIBKV06)
but no success.
Thank you
MarcoHi,
I wanted to add that there is standard report /SAPSRM/IBO_FILL_TABLES in SRM 7.0 that updates these tables for all standard tasks:
IBO_C_WF_ACS
IBO_C_WF_APS
IBO_C_WF_CAS
IBO_C_WF_TAS
IBO_C_WF_TTAS
Use these views in SM30 to create entries for customer specific tasks:
IBO_V_WF_ACC
IBO_V_WF_APC
IBO_V_WF_CAC
IBO_V_WF_IRA
IBO_V_WF_TAC
IBO_V_WF_TTAC
Best Regards,
Marcus
Edited by: Marcus Mock on Jun 6, 2011 11:56 AM
Edited by: Marcus Mock on Jun 6, 2011 11:59 AM -
Process Control Workflow Configuration error on portal
Hi Experts,
We are using process controlled workflow for BUS2121 and activated a BC Set "/SAPSRM/C_SC_600_000_SP04" Shopping cart without approval.
For this We have created a Event and a Expression in BRF as constant for Process schema evaluation. No approval is required as of now. But when try to shop from the portal it shows a dump as:
The following error text was processed in system SRD : Dynamic type conflict when assigning references
The error occurred on the application server dl3803_SRD_40 and in the work process 2 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: INIT_BRF_TRACE of program /SAPSRM/CL_WF_BRF_MSG=========CP
Method: CONSTRUCTOR of program /SAPSRM/CL_WF_BRF_MSG=========CP
Method: INITIALIZE_BRF_MSG of program /SAPSRM/CL_WF_BRF_MSG=========CP
Method: /SAPSRM/IF_WF_RULE_CONNECTOR~EVALUATE of program /SAPSRM/CL_WF_BRF_CONNECTOR===CP
Method: /SAPSRM/IF_WF_RULE_CONNECTOR~EVALUATE of program /SAPSRM/CL_WF_SCHEME_PROVIDER=CP
Method: GET_SCHEME of program /SAPSRM/CL_WF_SCHEME_PROVIDER=CP
Method: GET_PROCESS_SCHEME of program /SAPSRM/CL_WF_CONFIGURATION===CP
Method: CREATE_PROCESS_LEVEL_SEQUENCE of program /SAPSRM/CL_WF_CONFIGURATION===CP
Method: CREATE_PROCESS_INSTANCE of program /SAPSRM/CL_WF_PROCESS_MANAGER=CP
Method: CREATE_PROCESS_FORECAST of program /SAPSRM/CL_WF_APV_FACADE======CP
Kindly help to solve this problem.Hi Anand,
I am facing the same problem. Were you able to resolve that issue? if so, what is the solution? I don't find any relevant note for this.
Probelm: BRF is activated and when you do save/check on SC, throws short dump with error message as
"Dynamic type conflict when assigning references".
"MOVE_CAST_ERROR" "CX_SY_MOVE_CAST_ERROR"
Thanks
Akbar -
How to determine N Step Approval process through Process Controlled workflow
HI
For SC approval process after 4th level of approval the workflow keep go N step till the approval determine. If no approval find then go for WF Exceptions.
In PCW we have process level like 100, 200, 300 and so on. What would be the procedure for Nth process level determination in SRM process controlled workflows settings.
Regards
KharabelaHi,
From SRM 7.0 PCW, requestor of SC or creator(buyer) of the PO can't be in the approval list.. this is standard...
create two custom events like zev_po_schema_eva and zev_po_sl_approval
create two custom expression.. one with constants as zev_po_schema_def and other one is formula interpreter(0FB001)..
assign zev_po_schema_eva as schema evaluation for PO.. MAKE SURE YOU LINK THE zev_po_sl_approval
with as zev_po_schema_def..
now create schema definition entry and specify as zev_po_schema_def..
now create process level
100 approval / approval with completion ( Your chooice ) .. maintain zev_po_sl_approval as evaluation id in the process level... maintain RR_SPENDING_LIMIT_APPROVER as Resp.Resolver...
maintain formula interperter value as (OV_SC_PREVAPPROVALIMI < 0V_PO_POTOTALVALUE ) AND (OV_SC_SPNDNGLMTFRQST < 0V_PO_POTOTALVALUE).
Saravanan -
Process controlled workflows- basic questions
Hi,
I am new to SRM 7 process controlled workflows.
I need some help designing the process controlled worlflow for n step approval of shopping cart.
If there are n conditions to be checked for a cart before deetrminig the no of approvers,then does that mean for a BO(in my case Shopping cart),there will be n process schemas or just one process schemas with n process levels?
Also under each process schema,I see multiple expressions/process levels.Does the column "level sequence no" determine the sequqnce of the task in the whole approval process?
Please advise.Hi Saravanan,
Thanks for the prompt response!
Based on your inputs,I think I need to go with option 2 as based on the data in shopping cart e.g. product category,spend limit,total value and a/c assignment catgeory,the no of approvers are determined.
The flow is like:
cond 1: check the prod category,if true,add 1st approver.
cond 2: check reqeuseter spending limit with total value fo cart,if true,add further approver or approvers
cond 3: check a/c assgt category,if true for a particular catgeory,add new approver or approvers using RFC call.
cond 4: check ship-to-address,if a local address,add buyer as last approver.
For a given cart,one or multiple conditions from the above may be true.But the sequence for the cosnidtions is as defined above.
As per my understanding,I need to create only one process schema for "Shopping cart" and then create different BRF expressions for each of the above conditions right?E.g. cond1>level1,cond2>level2 etc...Please advise.
Also under process schema,process level configuration,I see one column for "resp resolvername".What do I need to enter here?My understanding was that this entry will be responsible for determining the approver values...Pls confirm.
Also if I go with option 2,you said BADI SAPSRM/BD_WF_RESP_RESOLVER' will have to be implemented for determining approvers.So the logic for determining the approvers for each of the above conditions will be implemented in this single badi?
Pls advise.
Also in the event linkage,I need to actiavte only the two entries /SAPSRM/CL_WF_PDO/SRM_PROCESS_START and /SAPSRM/CL_WF_PDO/WS40000014 right?
Also regarding the workflow template,is WS40000014 the only template for all business objects i.e. Shopping cart and PO?
Thanks again for your time and inputs. -
Issue in Process Controlled workflow for Shopping cart in Quality system.
Hello All,
I ahve configured a Process controlled workflow in SRM 7.0 with custom resolver, and I am facing an issue taht the Workflow works well in Development but in Quality the approvers are dropped after SC is ordered in Quality system.
The SC Workflow drops the approvers picked up from the Interface method /SAPSRM/IF_EX_WF_RESP_RESOLVERGET_AREA_TO_ITEM_MAP and IF_EX_WF_RESP_RESOLVERGET_APPROVERS_BY_AREA_GUID of BADI /SAPSRM/BD_WF_RESP_RESOLVER. The approvers can be seen in the shopping cart Approval preview Tab until the SC is ordered.
I have compared the OSS notes relevant for Workflow, all of them have been transported, Also I compared and checked general Workflow settings, BRF Config and Process level settings in Dev and Quality, everything is same.
Also while debugging; the approvers can be seen in the decision set table in the create_process_forecast method of class /SAPSRM/CL_WF_PROCESS_MANAGER.
Kindly let me know what else i can check to find the root cause.
Thank you in advance for help!
Regards
Prasuna.Hello Vinita;
Thanks for the input and sorry for the not so "ASAP" reply;
From what I'm seeing in from your 2 screenshot, i strongly believe that the problem is even before the Z implementation /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID (in which the FM i ZSRM_GET_USER_FROM_PGRP is called. I think the problem could be in the process level determination ZSRM_WF_BRF_0EXP000_SC_APP100. Let me explain:
In your cases where not buyer is determined, in the approval tab there is not even a process level for buyer approval. If the problem were indeed in the implementation /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID then the process level would be there, but the system will display, instead of the name of the buyer(if the buyer determination fails) a red label with the message: "With the strategy "Buyer determination" an approver could not be determined (or something like that..please check the image at the end of the text)".
I can propose a way to discard this: Implement the method /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_FALLBACK_AGENTS of class ZCL_BADI_SC_WC (in case you didn't know, in this method you can specify an "default" approver in case that the determination of approver in GET_APPROVERS_BY_AREA_GUID fails). The idea is to specify an default approval and see how it behaves:
If the user you indicated in the method GET_FALLBACK_AGENTS appears as approver, then yes, the problem is arises from implementation GET_APPROVERS_BY_AREA_GUID, in which case it could be a data problem (peharps in pposa_bbp?). You could also check in TX SU53 with the users with this problem to see if there's a missing authorization objetc.
If, in the other hand, the "default" approver is not shown, it means that the process level buyer determination is not even called, so you should check in more detail ZSRM_WF_BRF_0EXP000_SC_APP100 and /SAPSRM/CL_WF_PROCESS_MANAGER > Determine process restart –method ----- (i have never used this method, so i could not tell if it could be the source of the problem).
Also, you could implement the method GET_FALLBACK_AGENTS in this way so the default approver would be the WF administrator indicated in the customizing (or you could just append directly any user you want):
METHOD /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_FALLBACK_AGENTS.
DATA: lv_admin_expr TYPE swd_shead-admin_expr,
lv_admin TYPE swd_shead-wfi_admin,
lv_admin_type TYPE sy-input,
ls_agent TYPE /sapsrm/s_wf_approver.
CALL FUNCTION 'SWD_WF_DEFINITION_ADMIN_GET'
IMPORTING
default_admin_expr = lv_admin_expr
default_admin = lv_admin
default_admin_type = lv_admin_type.
ls_agent-approver_id = lv_admin.
APPEND ls_agent TO rt_agent.
ENDMETHOD.
Error of agent determination:
Please let me know the result of the test with the implementation of method GET_FALLBACK_AGENT. By doing this we could ensure if really the problem is in method GET_APPROVERS_BY_AREA_GUID or before. I just made the test in our system and I'm almost sure that you wont get the default approver, but i could be wrong.
Any question please let me know.
Best regards
Cristian R.
Maybe you are looking for
-
How to transfer an iphone's libraries from one pc to another one?
Hi all, I used to synch my 3gs iphone using my laptop (xp window). However, this laptop currently had started having problem with its hard drive so I decided to use another laptop (window 7) for synching my iphone in the future. I really do not want
-
Add Text Field in ME38 and ME39
Hi gurus, I would like to ask if we can add a text field in ME38 / ME39. Please see details below. - Run tcode ME33L - Enter Scheduling Agreement number - Check the display, there's a column for text in the table. - Run tcode ME38 / ME39 - Enter Sche
-
How to refresh screen in normal reports?
Hi Experts, I am developing normal report. I am writing the output using write statement. In my out put one filed is check box. Suppose I have 12 records in the output, if I tick the 2 records and process these records using application tool bar butt
-
I just bought a brand new iphone 5s and locked myself out
and forgot the passcode. it has never been backed up and it wont let me connect to itunes what do i do to restore it ?
-
The eternal log in of the spotless iMac
I have an iMac G4, this morning I got a new upgrade on Software Update, so I downloaded it and restarted. Well, I haven't been able to log in since then. I enter my password and it looks like it's going to load my desktop but it just takes me back to