on 12-24-2012 3:29 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.