on 2023 Oct 20 7:38 PM
Hi Experts,
I am trying to access customer additional group data using sap released cds view I_CustomerSalesArea. I have written a select query to fetch the data from cds view. When I try to execute the badi via the business process its giving short dump.
Code:
SELECT SINGLE additionalcustomergroup1
FROM i_customersalesarea
WHERE customer = @item_attributes-soldtoparty
AND salesorganization = @item_attributes-salesorganization
AND distributionchannel = @item_attributes-distributionchannel
AND division = @item_attributes-division
INTO @DATA(lv_cust_group).
Also, in ADT there is a warning - Executing "Unprivileged SQL" from "CHANGE_CONDITION_AMOUNT" violates transactional contract "FUNCTIONAL".
Error in short dump - Execution takes place in a transactional context: A "CALL <functional>" call is active with "ZCL_PRCG_DOC_ITEM_CONDITION_AM". The current statement "AUTHORITY-CHECK(DCL)" is therefore forbidden.
Can someone guide in getting this resolved?
Appreciate your help !
Thanks!
Request clarification before answering.
Hi Shadab,
Could you add the keyword 'WITH PRIVILEGED ACCESS' and try this? You can find more details here
Best Regards,
Prasanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
39 | |
8 | |
5 | |
3 | |
3 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.