07-14-2009 8:05 PM
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.
07-14-2009 8:28 PM
Use CLEAR, REFRESH statement. Do not do the Loop..Endloop that you are doing.
07-14-2009 8:28 PM
Use CLEAR, REFRESH statement. Do not do the Loop..Endloop that you are doing.
07-14-2009 8:46 PM
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
07-14-2009 9:52 PM
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