on 08-14-2015 4:44 PM
Hello! I am new to BPC. I have implemented an enhancement to calculate tax and push the values to CT_DATA. When I run UJKT the values are being rejected stating an 'INVALID MEMBER[AUDITTRAIL] = TAXEXPENSE.' It happens even when this is run from the front end. TAXEXPENSE is just a copy of an existing AUDITTRAIL= 'INPUT'. However, when I used 'INPUT' everything worked fine the first time but when I run it again, it says 'DUPLICATE ENTRY'. So, a new member 'INPUT2' was created as a COPY of 'INPUT' and we tried it but it throws the same error again.
I did not use WRITEBACK but I am just appending entries to CT_DATA structure.
LOOP AT lt_netexp INTO ls_netexp.
<ls_ctaudit> = 'TAXEXPENSE'.
<ls_result_rec> = '890001'.
.
.
.
.
APPEND <ls_rec> TO ct_data.
ENDLOOP.
Can you please share some thoughts on where the issue might be or if I am missing something.
Thanks in advance.
Sunny
Hi Sunny,
Check in debug mode whether your code is generating expected result in ct_data table.
Also, check whether you have proper write authorizations - if incase AuditTrail is relevant for authorization in your model.
Regards,
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Found the issue. It was the Admin rights to the Auditrail that were set up as 'ONLY READ'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please check your script logic Scope Parameters. Have you hardcoded only Input?
You need to add all the Audit trail IDs used for the purpose of running BAdi.
Thanks
Astha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do you call your BADI: QUERY = ON or OFF?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When I debugged the standard program POST-BADI, I found one issue. When the attributes of the AUDITTRAIL were being read by the standard class/method, the 'CALCMEMBER' flag is BLANK(Neither a Y nor an N). But when I looked at the values in the Table in SE11, the value is shown 'N'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sunny
Do you have member TAXEXPENSE in your audit dimension? If not, add and then click Save and process dimension.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.