on 05-08-2014 10:02 AM
Hiii Experts.... i am trying to get offsetting account in faglb03... i did badi implementation in se19 and in classic badi wrote FAGL_ITEMS_CH_DATA and copied to Z_FAGL_ITEMS_CH_DATA and in interface tab.. did change items--> abap code and activated the badi... i got the ofsetting account in the report but its coming blank... guide me to get the data
Regards,
Abhay
Hi Abhi
I have used note 112312 (BTE in FIBF) to get the Offsetting accounts
Ofcourse, The note given by Eli is a better one.. But see if the BTE also can suffice
Br. Ajay M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhay,
Follow the link below.
Regards,
kavita
Hi,
Please find herewith the code which needs to be written in BADI to bring the Offset account.
Logic for getting Offset Account Information in FAGLL03 report.
method IF_EX_FAGL_ITEMS_CH_DATA~CHANGE_ITEMS.
* Added Additional fields Offset A/C, Offset A/C type to Transaction
* FAGLL03
DATA: wa_items TYPE faglposx. LOOP AT ct_items INTO wa_items.
CALL FUNCTION 'GET_GKONT' EXPORTING
belnr = wa_items-belnr
bukrs = wa_items-bukrs
buzei = wa_items-buzei
gjahr = wa_items-gjahr
gknkz = '3'
IMPORTING
gkont = wa_items-gkont
koart = wa_items-gkart EXCEPTIONS
belnr_not_found = 1
buzei_not_found = 2
gknkz_not_found = 3
OTHERS = 4.
IF sy-subrc = 0.
* Get Offset Account Description Based on Account Type
* In case of G/L Account
Data: w_txt50 type txt50, w_name1 type name1.
Clear: wa_items-zzgkont_ltxt, w_txt50,
w_name1.
if wa_items-gkart = 'S'. select single txt50
from skat into w_txt50
where spras = sy-langu and saknr = wa_items-gkont.
if sy-subrc = 0.
wa_items-zzgkont_ltxt = w_TXT50. endif.
* In case of Customer
elseif wa_items-gkart = 'D'. select single name1
from kna1 into w_name1
where kunnr = wa_items-gkont. if sy-subrc = 0.
wa_items-zzgkont_ltxt = w_name1.
endif.
* In case vendor
elseif wa_items-gkart = 'K'. select single name1
from lfa1 into w_name1
where lifnr = wa_items-gkont. if sy-subrc = 0.
wa_items-zzgkont_ltxt = w_name1. endif.
endif.
MODIFY ct_items FROM wa_items. ENDIF.
ENDLOOP.
endmethod.
Regards,
Ramana
Hi,
I guess, you mean to have offset account in the line items report. Please, check if this note is duly applied:
1504612 - Line items: Offsetting account info (BAdI FI_ITEMS_CH_DATA)
Regards,
Eli
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
7 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.