Skip to Content

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

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.

i-rbkpv-h-rbws.jpg (36.1 kB)
te-rbws.jpg (31.9 kB)
te-rbws-after.jpg (45.1 kB)
te-rbvs.jpg (38.6 kB)
miro.jpg (16.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 30, 2017 at 03:15 PM

    Hi,

    read this thread:

    Withholding Tax tab in MIRO Transaction

    Best regards,

    Pablo

    Add comment
    10|10000 characters needed characters exceeded