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 regards
Hi ,
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
Similar Messages
-
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 -
Process Schema Evaluation - Evaluation ID Shopping Cart
Hi exprts
i'd like to know what is the Evaluation ID, for Shopping Cart into SRM 7.0, with NO Approval.
regards
andreaHi ,
Evaluation ID for Automatic approval 0EV000 .
Configure as follows ..Example
Process Schema Definition ; BUS2121 : ZSC_AUTO_APPROVAL
Process Schema : ZSC_AUTO_APPROVAL
Seq no : 999
Process Level configuration
Level Type : Automatic
Evaluation id : 0EV000
Task id : 40007988
Decision Type : Decision Entire document type.
Regards,
Devi -
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
ClaireHi,
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 -
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 -
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 -
SRM 7.0 Process Controlled Workflow change
Hi
I have a SRM 7 process controlled Shopping cart workflow working ok, Approval based on value levels. The customer wouldlike to change this so that approval is also based on cost center attributes and also want at each approval level to have a reviewer.
Could anyone advise me how to add in a reviewer, as well as an approver for a particular process step, and also confirm that to have the cost center attribute taken account of at each process step, i would have to develop and code a new expression / evaluation ID, rather than use existing one.
Many Thanks
johnHi John,
Reviews are common for all process level.. itu2019s not process level specify like approvers.. Also we can add reviewers dynamically by a simple BADI implementation and configurations as follows..
BADI Implementation:
BADI : /SAPSRM/BD_WF_RESP_RESOLVER
Enhancement Spot: /SAPSRM/BD_WF_AGENTS
BADI Definition : /SAPSRM/BD_WF_REVIEWER_RULE
Configuration:
We can see Reviewer folder for all process schemas..
For adding approver or pool of approvers for a particular process level, review my answer in the following forum.. Re: SRM 7.0 SP05 - BRF Item level approval does not work
Thanks!!
Bharath -
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 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
Maybe you are looking for
-
2009 MacBook Pro Freezing, Starting Slowly
So my mid-2009 17" MBP has run as well as the day I got it up until a couple weeks ago, when suddenly it started booting/shutting down slowly, and beach balling randomly for minutes at a time. Does anyone know what might be causing this? Here's my Et
-
Conditional display in the report.
Hi, I have a report on the page that dislplays values (numeric). Is it possible to dislplays null values as N/A in the column? Thanks in advance. Robert
-
Am still having trouble downloading Adobe Flash Player.
Am still having trouble downloading Adobe Flash Player.
-
Cant create bookmarks in the bookmarks toolbar panel
Hi guys I cannot create any bookmarks in the bookmarks toolbar panel. When ever I add a website to the bookmark toolbar panel, it is not displayed in the bookmarks toolbar panel. If I go to bookmarks menu and check under bookmarks toolbar, all the we
-
Firefox allows me to view the whole album pictures in my facebook account but when i click on individual image, it navigates to the enlarge image page, picture did not display. Please assist what I can do. == URL of affected sites == http://www.faceb