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: 

S_ALR_87012357 - Badi implementation : FI_TAX_BADI_010 to FI_TAX_BADI_016

Former Member
0 Kudos

Hi all,

I want to implement the transaction S_ALR_87012357.

Because the result of this report isn't good for my compagny.

So i try to implement all of this badi to have the good result.

The problem :

When i implement FI_TAX_BADI_010.

I just modify the display but i can't manage the sub-totals and the general totals.

See the code below :

DATA :

lv_tabix TYPE i,

ls_bukrs_sum TYPE LINE_TY_BUKRS_SUM,

lt_bukrs_sum TYPE TY_BUKRS_SUM.

FIELD-SYMBOLS :

<ft_bukrs_sum> TYPE ANY.

ASSIGN ('(RFUMSV00)GT_BUKRS_SUM[]') TO <ft_bukrs_sum>.

IF sy-subrc = 0.

lt_bukrs_sum[] = <ft_bukrs_sum>.

LOOP AT lt_bukrs_sum INTO ls_bukrs_sum WHERE mwskz = 'Z1'.

ls_bukrs_sum-HWVOR = ls_bukrs_sum-hwbas.

ls_bukrs_sum-HWSLD = ls_bukrs_sum-hwbas.

CLEAR ls_bukrs_sum-hwbas.

MODIFY lt_bukrs_sum FROM ls_bukrs_sum INDEX sy-tabix.

ENDLOOP.

ENDIF.

<ft_bukrs_sum> = lt_bukrs_sum.

UNASSIGN <ft_bukrs_sum>.

When i Implement the FI_TAX_BADI_011

The total is quiet good but i cant really manage the data ...

if CH_TAX_ITEM-MWSKZ = 'Z1' and CH_TAX_ITEM-KTOSL = 'VST'.

CH_TAX_ITEM-HWSTE = CH_TAX_ITEM-hwbas.

CH_TAX_ITEM-HWSTEaa = CH_TAX_ITEM-hwbas.

clear :

CH_TAX_ITEM-hwbas.

endif.

Normally HWBAS should be blank in the report but it isn't real.

That i need is : someone explain me the process of this BADI.

How to implement them. And if its possible give me some example (code)

Is somebody can help me.

Thks in advance.

Txang

2 REPLIES 2

Former Member
0 Kudos

Hi all,

Solved myself.

The solution of the problem :

Implement the BADI --> FI_TAX_BADI_016

In this Badi :

Method : SET_FLAG_USE_BADI_16 See the code below.

method IF_EX_FI_TAX_BADI_016~SET_FLAG_USE_BADI_16.

CH_USE_BADI_16 = 'X'.

endmethod.

This code serve to activate This Badi !

After,

Method : END_OF_SELECTION See the code below.

Implement this method with your rules !

U can change 3 parameters.

CH_GT_ALV

CH_TRVOR

CH_BUKRS_SUM

Be careful when u manipulate this tables !

After all update in this 3 parameters, the program start the edition of the report.

Hope this thread will help you if you got the same problem like me.

By everybody.

Txang.

Former Member
0 Kudos

Solved by myself.