Skip to Content
0
Former Member
Sep 28, 2013 at 07:10 AM

How to add new field to report S_ALR_87009895

919 Views

Dear Expert,

I would like to add "GL Account" field to "output tax total" report (t-code S_ALR_87009895), i using BADI "IF_EX_FI_TAX_BADI_014",but when i choose this field on layout screen,SAP show shotdump , please see attached file (dump.txt)

please advise.

Regards.

Pornchai.

My code is below.

method IF_EX_FI_TAX_BADI_014~MODIFY_FIELDCAT.
* Change Teem : CH01
* Change By : Pornchai P.
* Change Date : 2013.09.28
* Change Description : Add field G/L for t-code "S_ALR_87009895" , summary

* HAN1Output tax: Line items
* HAN2Output tax: Totals list
* HAN3Input tax: Line items
* HAN4Input tax: Totals list
* HAN5Tax difference: Line items
* HAN6Balance per company code
* HAN7Cross-company code balance


data ls_field_cate TYPE LINE OF SLIS_T_FIELDCAT_ALV.

IF i_handle = 'HAN2'.

READ TABLE ch_tab_fieldcat into ls_field_cate WITH KEY fieldname = 'HKONT'.
if sy-subrc ne 0.
ls_field_cate-fieldname = 'HKONT'.
ls_field_cate-REF_TABNAME = 'BSEG'.
ls_field_cate-no_out = 'X'.

append ls_field_cate to ch_tab_fieldcat.
endif.


ENDIF.
endmethod.

Attachments

step_02.png (83.1 kB)
step_01.png (103.9 kB)
dump.txt.zip (24.3 kB)