08-30-2017 12:29 PM - edited 02-04-2024 2:14 AM
I have to calculate withholding tax table data automatically
My requirement is to update withholding tax using the line item entries in MIRO.I update I_rbkpv-h_rbws table, I give split key as '1' for everthing.
I have wrote the following code in badi.
TE_RBVS[] = I_RBKPV-H_RBVS[].
TE_RBWS[] = I_RBKPV-H_RBWS[].
DATA: wa_drseg TYPE mmcr_drseg,
wa_rbws TYPE rbws,
wa_rbvs TYPE rbvs,
lv_index TYPE sy-tabix.
LOOP AT te_rbws INTO wa_rbws.
lv_index = sy-tabix.
wa_rbws-wt_qsshb = 140.
wa_rbws-wt_qbuihb = 60.
MODIFY te_rbws FROM wa_rbws INDEX lv_index TRANSPORTING wt_qsshb wt_qbuihb.
ENDLOOP.
in this example We would like to fix base amount to 150, its adding the table te_rbws but not showing on the screen(MIRO).
I can able to see the changes in internal table but not reflecting in MIRO with holding tax screen.
when I execute MIRO I can see below data in I_RBKPV-H_RBWS
TE_RBWS table
now i will execute my code as shown above and modify the the tab
after execution TE_RBVS values
Everything fine in the interl table but when I see in miro screenn values are not getting populated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
according Note 904652 - MIRO:changes which are done in BADI MRM_WT_SPLIT_UPDATE ie manually adding the withholding tax to table te_rbws calculations and value transfers do not take place until the document has been posted rite.
But if I add it manully I can able to see the values in with holding tab and if I add values to table te_rbws I am not able to see the values in with holding tab. Is there any way where I can overcome this issue ?
Hi,
according to this OSS Note:
1156325 - BAdIs in the Logistics Invoice Verification environment
How does the BAdI affect the application?
Changed values are returned to the application.
An active implementation of this BAdI excludes the manual entry of the withholding tax base and amount. You define the settings for the calculation in Financial Accounting Customizing under the following activity: Define Withholding Tax Type for Invoice Posting
Best regards,
Pablo
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.