cancel
Showing results for 
Search instead for 
Did you mean: 

SRM SC not going to approver in few cases randomly

vinita_kasliwal
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

vinita_kasliwal
Active Contributor
0 Kudos

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 !!

former_member190689
Contributor
0 Kudos

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

Answers (8)

Answers (8)

vinita_kasliwal
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Vinita,

the validity of an approval step depends on the result of the BRF event.

As far as I see you are using a custom event ZSRM_SC_SCHEMA_100.

Where does ZSRM_SC_SCHEMA_100 gets the result from?

Is there an expression or access function module?

Cheers

Ron

vinita_kasliwal
Active Contributor
0 Kudos

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

Former Member
0 Kudos

It depends how and when your table gets filled.

why don't you log your code? (application log, check points...)

vinita_kasliwal
Active Contributor
0 Kudos

Can you guide me on how to do that I have asked SAP for assitance but they send me a link which didnt help . Do we have to manually write it in the code ? I am not having authorisations for it !

Former Member
0 Kudos

Just google for ABAP + Checkpoint or ABAP + Application log.

You will find a lot of useful links.

Yes, you have to modify the code. Since it's custom code, there should be no problem

Former Member
0 Kudos

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.

vinita_kasliwal
Active Contributor
0 Kudos

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.

vinita_kasliwal
Active Contributor
0 Kudos

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 !

vinita_kasliwal
Active Contributor
0 Kudos

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 ?

Former Member
0 Kudos

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.

vinita_kasliwal
Active Contributor
0 Kudos

Hi please can you check additional information which I just attached and let me know ?

vinita_kasliwal
Active Contributor
0 Kudos

I have process controlled workflow . Workflow has no issues when we create shopping cart

All the approvers are correct when only it goes s for workload redistribution...that too not always....its not picking the first step(that is buyer again in few cases)

What do I check ??

konstantin_anikeev
Active Contributor
0 Kudos

Hi Vinita,

you have a custom Eval.Id. What is it? you own function?

Regards

Konstantin

vinita_kasliwal
Active Contributor
0 Kudos

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 !

konstantin_anikeev
Active Contributor
0 Kudos

Hi Vinita,

as I can see. Customizing should be correct - you get a preview.

If the first step not taken during approval - what do you use as a ZSRM_SC_SCHEMA_100? Function module? Class? The error could be there.

Could you provide a piece of code here.

Regards

Konstantin

former_member186533
Discoverer
0 Kudos

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.


Former Member
0 Kudos

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

vinita_kasliwal
Active Contributor
0 Kudos

Which setting of PPOMA should I check and WFL configuration exactly what do you need ?

I have attached the process level configuration .. which could be used ..

vinita_kasliwal
Active Contributor
0 Kudos

Hey Melina

are you the same person who is also checking the OSS I had raised ?

former_member185167
Active Contributor
0 Kudos

Hello,

How are the users usually determined? Does the initiator get presented with a default?

SRM 5 or 7?

regards

Rick Bakker

vinita_kasliwal
Active Contributor
0 Kudos

users are defined based on the process level configuration steps its srm 7 approvers  are correctly determined when sc is placed however when we do workload dirstibutio forst step is skipped ..

konstantin_anikeev
Active Contributor
0 Kudos

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

vinita_kasliwal
Active Contributor
0 Kudos

I have process controlled workflow . Workflow has no issues when we create shopping cart

All the approvers are correct when only it goes s for workload redistribution...that too not always....its not picking the first step(that is buyer again in few cases)

What do I check ??