2024 Oct 09 4:03 PM - edited 2024 Oct 09 10:45 PM
Hello experts,
We are using SAP standard function module "COBL_CODINGBLOCK_CHECK" in RAP Late Save Phase (exceptional case: CL_ABAP_BEHAVIOR_SAVER_FAILED/SAVE_MODIFIED) of custom ABAP Managed RAP /Fiori element app to validate the accounting lines and report errors back if occurred - this is perfectly fine.
But facing 3 issues:-
1. Standard function module has many AUTHORITY-CHECK, so application is getting crashed with error BEHAVIOR_ILLEGAL_STATEMENT.
Statement "AUTHORITY-CHECK" is not allowed with this status.
I can disable the authority-check by using authorization context in behavior definition but before that need to find all authorization objects used in function module (and in subsequent calls).
Is there any other simple way to avoid this error?
2. We have UI button "Check", since "COBL_CODINGBLOCK_CHECK" is performed in RAP Late Save Phase, accounting validations are not getting considered in "Check" action
3. When error received from "COBL_CODINGBLOCK_CHECK" in SAVE_MODIFIED by that time new number is already generated (late numbering), so new number is wasted as validation gets failed. (Number gap in transactional documents)
Do you have any suggestion to overcome these issues?
Request clarification before answering.
Calling COBL_CODINGBLOCK_CHECK from RAP behavior method might not be a good approach. Can you check if the validate action of I_JournalEntryTP can be used in your scenario?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
33 | |
22 | |
17 | |
8 | |
6 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.