cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced claims workflow : How to determine next approver level number ?

suresh_subramanian2
Active Contributor
0 Kudos

Hello !

         I’m into development for advanced claims workflow.


         The standard workflow(WS18900023) supports one level approval. How to make it for two level approval?


         I’ve developed the code for two level agent determination in the BAdI "HRPBSIN_NEXT_APPROVER" and its method "GET_NEXT_APPROVER".

         When the employee submits the claim from portal, the workflow triggers successfully and sends the work item to first approver. When the approver approves it, work item is not getting completed. Why is it so ? Is it because that next approver level hasn't been identified ?

         Actually, the approver level has to be passed to the above BAdI. Because the above BAdI contains import parameter for approver level. For first level, the approval level is passed from the include program LHRPBSINNEWCLAIMSF04. For next level approval, where the approval level determination has to be configured or where the ABAP logic has to be programmed ? Is there any additional functional configuration required for multilevel approval ?

        Please suggest for which I’d be grateful.

Regards,

S.Suresh.

Accepted Solutions (0)

Answers (1)

Answers (1)

dsharmak
Advisor
Advisor
0 Kudos

Hello Suresh,

Level need to be passed in the ABAP code. for eg :

   IF ist_trnhe-rqcan EQ '00001'.

    IF ifd_aplvl = 1 AND ( ist_trnhe-pernr = 'XXX' ).
      efd_apern = '333'.
      efd_apgrp = 'DEFAULT_GROUP'.

If only one level, then need to mention as above.

Best Regards,

Deepak.

suresh_subramanian2
Active Contributor
0 Kudos

Hello Deepak !

            Thank you so much for reply.

            You mean to state that the above code has to be maintained in the 

method "GET_NEXT_APPROVER" of the implementation of the BAdI "HRPBSIN_NEXT_APPROVER" .

            Well, that's not my question. My question is from where the ifd_aplvl for approver level two, three etc., has be passed to the above BAdI ?

            ifd_aplvl is import parameter in the above BAdI. For first level, it is passed by the declaration CONSTANTS: c_approver_initial_level   TYPE  pin_aplvl  VALUE '1' from the include program LHRPBSINNEWCLAIMSTOP..

           Like wise, at where the logic for identifying approver level(not approver id) has to be maintained ?

           Is there any BAdI where it should be maintained or implicit enhancement should be used ?

           I couldn't find in the system and on Internet too on the same.

Regards,

S.Suresh.

           

           

dsharmak
Advisor
Advisor
0 Kudos

Hello Suresh,

There is no where we can customize the level in the system, This need to be set up in the BADI itself.  You can use the Function Module  rh_struc_get for determining the root object as the level and use it in the BADI.

Best Regards,

Deepak..