10-29-2007 6:36 PM
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.
10-29-2007 6:45 PM
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
10-29-2007 6:51 PM
Hi Naimesh,
The ti_drseg parameter table isn't have the field WT_WITHCD related to Withholding Tax grid.
Thanks in advance!
Leo.
10-29-2007 7:07 PM
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
10-29-2007 7:42 PM
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.
04-29-2024 12:16 PM
Hi, Can you please advise how did you change the tax value , as we have a similar requirement. Many Thanks in advance.
04-29-2024 1:23 PM
04-29-2024 2:30 PM
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.
04-29-2024 3:49 PM
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
04-29-2024 4:02 PM
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…