cancel
Showing results for 
Search instead for 
Did you mean: 

BADI MRM_WT_SPLIT_UPDATE not working properly and not able to get the values from screen field

mahabaleshwar_patil
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182371
Active Contributor
0 Kudos

Hi,

read this thread:

Withholding Tax tab in MIRO Transaction

Best regards,

Pablo

mahabaleshwar_patil
Participant
0 Kudos

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 ?

former_member182371
Active Contributor
0 Kudos

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