Useful link for Process controlled workflow
FYI Useful link for Process controlled workflow..
http://help.sap.com/saphelp_srm70/helpdata/en/74/c0256bebb54f1c8dfb519d2908152b/frameset.htm
Thanks!!
Bharath
Hi Peter Novoth,
Can you please create this as a sticky thread, so that this will be us full for everyone..
Thanks!!
Bharath
Similar Messages
-
Badi guide for process controlled workflow
Where can I find the SRM 7.0 BADI guide for process controlled workflow in service marketplace?
Thankswhy you need a service marketplace for this??.. We have option in SPRO itself..
Path:
SRM Server -> Business Add-Ins -> Business Workflow -> Process-Controlled Workflow..
Thanks!!
Bharath -
Complexity of using N-step BADI in SRM 7using Process controlled Workflow.
Hi,
Just as a big thought,
I have a Shopping Cart requirement, Here i am asked to develop a Custom workflow for SRM 7.0.
And the client is looking for us to use Process Control Workflows i.e(BRF integrated one).
I need to understand the complexity of using a N-step BADI.
How would be the complexity level if I use a N step BADI( ie Multiple approval levels on Line Item Based).
Kindly tell me the complexity of Using it and if any one has come across some requirement like this, then explain me that how did you face the situation.
Expecting an Earliest Response.
Thanks,
ShankyHi,
Is your project SRM 7.0 implementation project then you have to go for Process Controlled Workflow and if your project is upgrade then you can still go with Application Controlled Workflow but down line this has to switch to Process Controlled Workflow.
Best Regards,
Saravanan -
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 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 -
SRM 7.0 Process Controlled Workflow-Level Type in Process level config
Hello Experts,
In SRM 7.0 for Process controlled workflow,for Level Type in Process Level configuration we have 3 different options
1) Approval with Completion
2) Approval
3) Automatic(System User)
Can you plz explain what is the difference between these 3 diffrent potion for Level Type in Process Level configuration.
Your help will be highly appreciated,
Thanks & Regards,
RKS1. Approval with completion : This allows approvers to make any changes to document while approving. Generally you define this type for buyer in SC approval.
2. Approval : above minus change
3. Automatic (system approval) : If no process level is determined, you need to set up a process level with automatic approval to approve the document by system. -
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. -
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 -
Can the USB NI DAQs be used for process control,eg.closed loop? or is too fast
can the USB NI DAQs be used for process control,eg.closed loop? or is too fast.
Hi mho,
1.usb is very high speed that is correct.Better you can choose PCI DAQ.But thats upto you.
2. see this:-
http://sine.ni.com/nips/cds/view/p/lang/en/nid/14136
3.If Matlab support TCP/IP, that could be an option.
see Another idea: http://digital.ni.com/public.nsf/allkb/244A37667BD7CBCE86257520007F937B
Another simplest way to do it (assuming you running Windows) is to use a Matlab script.
If both programs running on different systems:-
Most simple and slow - Create two VI's with shared variable on both machines, and use a matlab script to
share data. (this makes matlab some kind of "slave").
More advanced but still relatively slow (Create two VI's with shared variable, on the Matlab machine build the .NET
dll, and it can be used on Matlab too ( at least at 2010b version, earlier version support only COM).
Create TCP/IP connection between two comps.
There is "out of the box" NI products, that communicate with Simulink models.You please do a simple search on that...OK
I think this link is also helpful for you:-
Procedimiento para la interface entre LabView 2009 y Matlab 2009b.pdf 1128 KB
Anyway All the best.Try....do it.
Thanks as kudos only -
SRM Process Controlled Workflow - Re-start using FM BBP_PD_SC_UPDATE
Hi All,
We are upgrading from SRM4.0 to SRM7.0 SP07 in classic scenario. We switched to Process Controlled Workflow.
We have a CUSTOM application where the requisition items are entered and a Shopping Cart is created in SRM through Function Module BBP_PD_SC_CREATE. When the Shopping Cart is created in SRM , the Process Controlled Worflow is triggered successfully.
In the custom application , we allow users to do changes to the requisition that are awaiting approval.The changes are updated in SRM Shopping Cart through function module BBP_PD_SC_UPDATE. It is noticed that the workflow process levels are not re-started after the shopping cart is updated through FM BBP_PD_SC_UPDATE.
However , the process levels are re-started when the change is directly done to the Shopping Cart in SRM POWL. We want the process levels to be re-started even when the changes are done through BBP_PD_SC_UPDATE. The users are used do changes to the requisition through the custom application. We also noticed that system does not go through BAdI /SAPSRM/BD_WF_PROCESS_RESTART when changes are done to the SC through BBP_PD_SC_UPDATE.
Is there any way that we can trigger process level re-start when SC is changed through FM BBP_PD_SC_UPDATE
Thanks
SukumarHI ,
This is not the correct way of updating the SC. please check the below process...
first you try to get the SC document in Edit mode and this can be done only SY-UNAME should requester of the SC or( user who are changing the SC should be in the Org structure ). ( This point why i mentioned is you mentioned that your editing through custom application ).
note : use try and endtry and catch the exception when u get the SC document in Edit mode.
DATA: lo_pdo_sc TYPE REF TO /sapsrm/cl_pdo_bo_sc_adv.
"Instance SC PDO Layer
lo_pdo_sc ?= /sapsrm/cl_pdo_factory_sc_adv=>get_instance( iv_header_guid = p_guid "ps_shopping_cart-guid
iv_mode = /sapsrm/if_pdo_constants_gen_c=>gc_mode_edit ).
now you do what ever changes to the document. I mentioned points below.
"Get Item Details
lo_pdo_sc->/sapsrm/if_pdo_bo_sc~get_item_detail
do changes to the items of the SC.
"Update SC Items
lo_pdo_sc->/sapsrm/if_pdo_bo_sc~update_items
"Submit Update
lo_pdo_sc->/sapsrm/if_pdo_base~submit_update
"Save SC
lo_pdo_sc->/sapsrm/if_pdo_base~save
or order the SC again.
COMMIT WORK AND WAIT.
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 controlled workflow - Reject SC approval
Experts,
I configured process controlled workflow in SRM 7. My approval process is working fine but i need to send a notification e-mail when the approver rejects the SC approval. The requisitioner will receive this email saying that the SC was rejected.
Is there any chance to do this with configuration? Do you have to use a new expression linked to an event to perform this ?
Thanks for your help,
Best regards,
MárioHello Mario,
See IMG path below:
SAP Implementation Guide -> SAP Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Business Workflow -> Process-Controlled Workflow -> Business Process Configuration -> Define Recipient of Notifications
For scenario "Approve Shopping Cart", you can define user role which will receive notification in the event of "Rejection".
Regards.
Laurent. -
Approver not determined process controlled workflow in SAP SRM 7.0
Hello all,
I have setup process controlled workflow in SAP SRM 7.0 EHP3 for shopping cart approval.
I have 4 approval levels.
I have used item-based Decision for entire document because for some items i want system approval.
In implementation of BADI /SAPSRM/BD_WF_RESP_RESOLVER, in the method /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_AREA_TO_ITEM_MAP, i am skipping the items for which i want system approval.
Also in method /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID of BADI implementation class, i am keeping the approver table empty for the step which i want system approval.
For example i have 1 item in shopping cart and for 1st step, based on some accouting criteria, i want system approval for 1st level and the workitem should go directly to 2 approval step when shopping cart is ordered. This is not happening.
But if i have multiple items, and one item should have system approval based on some criteria and the 1st approval level should be system approval and other item should go to the 1st approver. This is happening and showing 'system' approver for item1 and 'appr_xyz' for item 2.
For shopping cart having only 1 item, If i approve the shopping cart in this state only, it doesn't go to any approver and is not usable.
am i missing anything in BADI /SAPSRM/BD_WF_RESP_RESOLVER??
Please let me know.
Regards,
Yayati EkboteHi Adrian,
Yes it is possible to display custom workflows in the Universal Worklist, However, I am not sure what you are trying to do with a routing table. If the workitems are of type decision, you can use UserDecisionHandler (action handler) configured in the XML file to use the Approve/Reject functionality - we are talking about webflow connector here correct? R/3 connector?
Regards,
Beth Maben
EP - Senior Support Consultant II
SAP Active Global Support
Global Support Centre Ireland
**SDN Forum Moderator:
SAP Enterprise Portal: Application Integration
**SDN Universal Worklist Wiki:
http://wiki.sdn.sap.com/wiki/x/ehU -
Process-controlled workflow hang due to dump
Hi all,
due to a temporary dump in an SRM 7 system, some document-related workflows are stucked... in other terms, these workflow processes have been started, the the dump occoured and by now, they seems to be stucked in "in process" state.
Tecnically, these are not workflow in error, so SWI2_DIAG is not helpful.
We'd like to unlock this situation and -eventually- restart the workflow process. How can we do it?
Thanks in advance for your help and support.
edit: system dump is now solved, which means, triggering the same workflow process will result in a success.
Edited by: Matteo Montalto on Jun 30, 2011 4:34 PMOk. There used to be OSS Note 1458380 - Process Controlled Workflow Restart Program, if the document is in "Awaiting Approval" Status.
Or do the manual restart by using tcode SWUE (Event trigger)
Object Category - ABAP Class
Object Type - /SAPSRM/CL_WF_PDO_SC
Event - READY_FOR_WORKFLOW
Object Key - <DOCUMENT_GUID>
Event Parameter - <SC Creator User ID>
and Click "Create Event" button
Use SWI1 to check whether the event is created and see whether the document is submitted for workflow triggering or use SWI6 to check for that SC document -
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
Maybe you are looking for
-
Entry Variable not available in Free char in Query?
Hi I have to remove one of the entry variable in a query, its costing date and is mandatory variable; but it is not visible in Free characteristic to remove it. Its one of the factory reports. Any idea how to remove it? Thanks in advance Ishi
-
Multiple Lines for one Business Partner on Agng Report
Hi all, From version 8.8 of SAP Business One (and PL 08 which I have tested) on the aging report I see, for the same Business Partner, more than one lines with different amounts. The sum of those amounts make the real balance of the BP so i think tha
-
Unit of Measure missing in Shopping Cart
Hi all, Currently, we have implemented BADI BBP_CATALOG_TRANSFER to map Unit of Measure from z-table, based on shopper's backend system. The mapping is done successfully when it return to Shopping Cart (e.g. PAC (catalog UoM) -> PAK (backend system's
-
Remote JDBC Problem with Oracle BPM Studio
Hi all, i am facing the Remote JDBC Problem with Oracle BPM Studio. When i configure a Remote JDBC Connection for SQL in BPM Studio, it prompt me an error. The SQL Connection is configured as following : External Resource: Name : MyDS Type : SQL Data
-
Need code for Logoff the screen
Hi, i have requirement to close the sap application when then user is invalid. when a invalid user logs into the system, i need to show an error message and logoff the system