Skip to Content

SRM SC not going to approver in few cases randomly

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

9 Answers

  • Best Answer
    Dec 12, 2013 at 03:19 PM

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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • Oct 30, 2013 at 04:57 AM

    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 ?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 11, 2013 at 12:51 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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.

  • Oct 28, 2013 at 03:40 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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 ??

  • avatar image
    Former Member
    Oct 28, 2013 at 09:08 PM

    Hello,

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

    SRM 5 or 7?

    regards

    Rick Bakker

    Add comment
    10|10000 characters needed characters exceeded

    • 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 ..

  • avatar image
    Former Member
    Oct 28, 2013 at 09:21 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 29, 2013 at 07:36 AM

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Vinita Kasliwal

      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.


  • Nov 11, 2013 at 09:37 AM

    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 !

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 23, 2013 at 07:06 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Vinita Kasliwal

      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