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.

9 REPLIES 9

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.

rohan_hardikar
Explorer
0 Kudos

Hi, Can you please advise how did you change the tax value , as we have a similar requirement. Many Thanks in advance.

0 Kudos

Did you already look for BAdI such as MRM_WT_SPLIT_UPDATE ?

0 Kudos

Dear Raymond,

Thanks for your reply.

yes I already checked this BADI , however there is already an standard SAP implementation for that Badi , hence u cannot modify the code.

can you please suggest any other solution to change the withholding tax base amount on MIRO screen?

thank you.

0 Kudos

Then use a solution similar to the original one of this post, try to assign some field-symbol to global data of the main program

  • Structure RBKPV of SAPLMRMC seems to contain WH information 
  • substructure H_RBWS

0 Kudos

I tries with that solution I am able to change tax value in h_rbws , but later on SAP clears out the tax amount. I am further checking…