Skip to Content
avatar image
Former Member

Using BADI (MRM_WT_SPLIT_UPDATE) in MIRO

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 14, 2009 at 07:28 PM

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

    Add comment
    10|10000 characters needed characters exceeded

    • 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