on 10-28-2013 12:02 PM
HI All ,
I need some help in Workflow .. the SRM system is newly developed and I am able to create a SC and it goes into status requiring approval however there is no approver is determined for few cases .. please can some one guide me on where to check for the error ?
This happens in few cases randomly for the rest of the cases it works fine...so I am assuming it is not a setting issue ..
also it works sometimes for same users and for the same user it did not work when tried again so I assume it is not role related .. Please let me know on what should I check ?
Let me know
Vinita
Hey guys thanks for your help my issue got fixed . I found out that in the class
ZSRM_CL_BADI_SC_RESTART there is a method /SAPSRM/IF_EX_WF_PROC_RESTART~VALIDATE_RESTART which should be called eveytime when a SC is changed / Approved / Workload redistributed however I saw that when the approver was just opening the SC and doing nothing it still triggered this code and was the cause of my issue .
It deleted a X which should have been there so now for workload redistrbution when it checks we have manually added that X and then when the evaluation ID is run it correctly picks fom the table based on the flag and it works !
I am closing this post incase any one needs some kind of help further feell free to post .
Yes but I still did not get on how to put the log points ABAP points etc .. !!
Thanks everyone for help !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vinita kasliwal ,
I am facing the same issue . in my case sometimes whole approver get lost and sometimes buyer is lost after they approve the SC. We are working with ACW. Also I checked with the above method but in my case its not going to that class. Check my thread and please provide some input from your end.
Thanks
Gaurav Gautam
Hi Guys I am attching another document where feel that the step shows as missing since the approver as determined frm the system is different from the user who is taking action on it
please can you check the link ive attached a doc here and kindlt provide me inputs
https://drive.google.com/file/d/0B_ROIRDr5-DSY2RHMkJyNFNINzQ/edit?usp=sharing
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It gets it from a FM which has a select statement and picks up entries from a table . However incase a Agent who has admin right is approving the SC as against the determined approver do you think it causes an issue ? please can u check the link below for a doc and comment on the same ?
https://drive.google.com/file/d/0B_ROIRDr5-DSY2RHMkJyNFNINzQ/edit?usp=sharing
Hi Vinita,
Agent determination BADI:
As per your infomation, ZSRM_EHI_WF_AGENTS_SC is the implementation for the enhancement spot /SAPSRM/BD_WF_agents for buyer level.Check the filter values
Document type is BUS2121 and
RESP_RESOLVER_NAME is ZSC_RR_BUYER.
Put a break point in the method GET_APPROVERS_BY_AREA_GUID and check the approver logic.
At BRF:
Go to BRF transaction,search for the event ZSRM_SC_SCHEMA_100.Definitely this event is associated with on expression.Check the expression type i.e, that expression is boolean,character or Function module type.Check that expression is returning true.If it returns true,then only buyer level will appear in SC.
Dynamic process levels:
Check whether dynamic process level is implemented for this Buyer level.For that,Check whether the BADI /SAPSRM/BD_WF_PROCESS_CONFIG is implemented for this level.If implemented,then check the filter values and put a break point in the method /SAPSRM/IF_EX_WF_PROC_CONFIG~CREATE_PROCESS_LEVEL_CONFIG.
Hope this info will help you.....
Regards,
Jaya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Im not able to put debug points anywhere thats exactly the problem even when trying to take help from SAP . they are admant that we should send them the logs but the logs dont just get created .
I have tried everything almost and just doesnt work .
please can I call you up to discuss further if I could do screen sharing with you ?
Below is the reply from SAP ..
Therefore you have to trace your coding in this function module to find
out why the result is blank and sometimes 'X'.
For example you can create logs using log points or write some useful
information into a custom table.
Please contact the developer who is responsible for the function module
ZSRM_WF_BRF_0EXP000_SC_APP100.
HI Jaya , Konstantine , venkata
Thanks for offering to help . I also approached to SAP but again im back to square 1 since they want me to put log points using SAAB at the below points and I am unable to do so ! Please can you see the details below :
ZSRM_WF_BRF_0EXP000_SC_APP100 --------to check if the level is returning true once changing the PGGR at workload
/SAPSRM/CL_WF_PROCESS_MANAGER > Determine process restart –method ----- To check if restart occurred .
BADI ZSRM_EHI_WF_AGENTS_SC class ZCL_BADI_SC_WC method GET_APPROVERS_BY_AREA_GUID to check if the approvers are being returned correctly .
Alos i tried to check thorugh SWUD and found the below have a look at the attached document and let me know if this is the cause for our concern ?
@Venkata : Also I checked the evaluation ID by double clicking it and it does not take me to the expression .. please check below ?
@jaya : below are the filter values not sure where do I go from here .
@venkata : When I go the SC buyer step and click on evaluation ID it takes me to the below
I dont see the expression details you had asked me to check kindly confirm !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey All I am looking for some support while trying to redistribute the work ... and when the SC is assigned to the first step approver it misses on the step and goes to the next approver I am new to WF so dont know on how to debug .. need assistance urgently if anyone could let me know ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinita,
Eval.id is the event in BRF.Check in BRF whether that buyer Event is restricted with any condition or not.If it is restricted also that level will not be appeared in SC.
Next possibility is ,check whether the agent determination badi is implemented for this buyer level or not.
BADI : /SAPSRM/BD_WF_RESP_RESOLVER.
if implemented, check the filter values for the enhancement implementation.
Regards,
Jaya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey
I will try to explain the issue again .. the below shows the missing buyer detemrination in the workflow which was the first step .. the WF gets refrshed once we assign a different pur org and it should determine agents from the first level fo approval however the same is missed and it goes to level 2 directly .
Buyer determination should be the first step in approval and its missing.
Below is the process level schema :
evalauation ID is ZSRM_SC_SCHEMA_100 yes a custom one .. please could some ne guide me further here . Also , please include detailed steps as I am new to WF issues . Thanks for the help in advance if need more info please let me know !
Hello Vinitia,
Go to BRF transaction & check the evaluation ID: ZSRM_SC_SCHEMA_100 & check the expression type. If the expression type is 0FB001, then keep the breakpoint in the method PROCESS_SPECIFIC of the class CL_FORMULA_BRF at formula evaluate.
If the expression type is 0CF001, then keep the breakpoint in the method PROCESS_SPECIFIC of the class CL_CALL_FUNC_METHOD_BRF before call function ms_brf146-get_function.
In the debugging you have to find out whether the program is evaluating the process step or not.
Hi ,
Which workflow you use? how the approver should be determined, like line manager approver or custom one?
This can be due to:
1- wrong configuration at PPOMA
2- wrong WFL configuration
Please share your configuration, this might can help us to help you.
Thanks,
Melina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
How are the users usually determined? Does the initiator get presented with a default?
SRM 5 or 7?
regards
Rick Bakker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinita,
possible reason, you have some users not integrated in PPOMA_BBP.
Not integrated user will not be selected as an approver.
What Workflow do you have? Standard or custom? ACW or PCW?
Regards
Konstantin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.