Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get and change the values of Withholding tax grid in MIRO trx

Former Member
0 Kudos

Hi everyone,

I have a requirement where I need to get and change WT_WITHCD field in MIRO's Withholding tax grid. Is there a function module / Badi to do this? I used MRM_HEADER_CHECK, but the parameters related with this badi doesn't have this value.

Do you have any idea?

Thanks in advance!

Regards.

Leo.

4 REPLIES 4

naimesh_patel
Active Contributor
0 Kudos

Hello Leonardo,

You can change that table with help of the filed-symbol in the BADI MRM_HEADER_CHECK.

LOOP AT ti_drseg INTO ls_drseg.

lv_index = sy-tabix.

LS_DRSEG-MWSKZ = 'I0' . " < For example

MODIFY ti_drseg FROM ls_drseg INDEX lv_index.

ENDLOOP.

FIELD-SYMBOLS: <drseg> TYPE mmcr_tdrseg.

ASSIGN ('(SAPLMR1M)ydrseg[]') TO <drseg>.

<drseg> = ti_drseg[]. " this will modify the data in MIRO with your modified data

Regards,

Naimesh Patel

0 Kudos

Hi Naimesh,

The ti_drseg parameter table isn't have the field WT_WITHCD related to Withholding Tax grid.

Thanks in advance!

Leo.

0 Kudos

Oh.. I overlooked the withholding....

anyways, you can try this fields in the header I_RBKPV of the same BADI.

(I don't see any fields for withholding in the item grid.... So, I have suggested this header fields)

I_RBKPV-QSSHB Withholding Tax Base Amount

I_RBKPV-QSFBT Withholding Tax-Exempt Amount (in Document Currency)

I_RBKPV-QSSKZ Withholding Tax Code

Regards,

Naimesh Patel

0 Kudos

Naimesh,

I found a component of structure I_RBKPV called H_RBWS. It has the data which I need. Anyways, thanks a lot for your help!

Regards,

Leo.