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: 

Using BADI (MRM_WT_SPLIT_UPDATE) in MIRO

Former Member
0 Kudos

In some cases i will use the BADI (MRM_WT_SPLIT_UPDATE) to clear the table of Withholding Tax in miro

I want to clear the table of Withholding Tax, look my font:

METHOD if_ex_mrm_wt_split_update~whtax_split_update.

DATA: wa_rbws TYPE rbws,

wa_rbvs TYPE rbvs.

te_rbws[ ] = i_rbkpv-h_rbws[ ].

te_rbvs[ ] = i_rbkpv-h_rbvs[ ].

LOOP AT i_rbkpv-h_rbws INTO wa_rbws.

CLEAR wa_rbws.

MODIFY te_rbws FROM wa_rbws INDEX sy-tabix.

ENDLOOP.

LOOP AT i_rbkpv-h_rbvs INTO wa_rbvs.

CLEAR wa_rbvs.

MODIFY te_rbvs FROM wa_rbvs INDEX sy-tabix.

ENDLOOP.

ENDMETHOD.

But does not work.

Please help me.

1 ACCEPTED SOLUTION

TusharP
Advisor
Advisor
0 Kudos

Use CLEAR, REFRESH statement. Do not do the Loop..Endloop that you are doing.

3 REPLIES 3

TusharP
Advisor
Advisor
0 Kudos

Use CLEAR, REFRESH statement. Do not do the Loop..Endloop that you are doing.

Former Member
0 Kudos

Thanks for the help Tushar Pradhan but do not solved my problem, i changed the font code to:

METHOD if_ex_mrm_wt_split_update~whtax_split_update.

DATA: wa_rbws TYPE rbws,

wa_rbvs TYPE rbvs.

te_rbws[ ] = i_rbkpv-h_rbws[ ].

te_rbvs[ ] = i_rbkpv-h_rbvs[ ].

REFRESH: te_rbws,

te_rbvs.

ENDMETHOD.

In any case, thanks for try.

Edited by: Raphael Maia on Jul 14, 2009 9:47 PM

0 Kudos

hi,

I dont know the exact solution but reading the documentation of the BADI.....i can figure out u need to do the configuration settings in SPRO.........

Secondly,try only refreshing and clearing the fields u dont want dont refresh the whole internal table.....

regards

kanishak