Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: Asset accounting T095B

$
0
0

Hi Sathya,

 

 

 

Thanks for the reply. The report is based on the Assets and Depreciation and disposal dates.

ANLA is the primary table from which the asset data is pulled from. I am using different extractors for

master and tansactional data

 

Master data : 0asset_att_text

                      0asset_afab_attr

                      0Transtype__text

                      0transtype_attr

                     0asset_main

 

 

 

Transactional  : 0fi_aa_11

 

 

 

Most of the assets and depreciation information is available from ANLA, ANEP,ANLB, T095 tables

that are base tables for all the above extractors.

 

The problem is because of the 2 fields from Table T095B.

 

Field 1 :   zzassetgl(my custom field) ---> Asset GL Acc ( T095B - KTNAFB)

 

             For asset ANLA- ANLN1 ( ANLN1 = 1000000)

                   account determination field  ( ANLA-KTOGR  =  054832)

            

            go to T095B table

 

           Set chart of accounts  (KTOPL) = 1006

          use the account determination field 054832 in ANLA =  KTOGR  in T095B

        

              T095B-KTNAFB  should be moved to Asset GL Acc ( my custom field zzassetgl)

         The values does not populate for the code written by me.

 

      

0asset_afab_attr has the base tables t095/t095P/ANLB. I assume that T095B data cannot be

pulled here. Do i need to go for a custom data source for only these two fields. Please advise.

 

The code used for the below requirement.

 

TABLES: anla, t095, t095b.

 

   WHEN '0FI_AFAB_ATTR'.

 

 

     DATABEGIN OF it_t095b,

            ktopl TYPE t095b-ktopl,

            ktogr TYPE t095b-ktogr,

            afabe TYPE t095b-afabe,

            ktnafb TYPE t095b-ktnafb,

            ktnafg TYPE t095b-ktnafg,

            END OF it_t095b.

 

     DATAip_t095b LIKE it_t095b OCCURS 0 WITH HEADER LINE.

 


     DATABEGIN OF lv_anla,

            bukrs TYPE anla-bukrs,

            anln1 TYPE anla-anln1,

            anln2 TYPE anla-anln2,

            END OF lv_anla.

 

     DATAip_anla LIKE lv_anla OCCURS 0 WITH HEADER LINE.

 

* declaration of the extract structure

 

     DATAzbwfiaa LIKE biw_***_af.

 

     DATA : lv_ktogr TYPE anla-ktogr.

 

 

     LOOP AT i_t_data INTO zbwfiaa.

       l_tabix = sy-tabix.

 

       REFRESH ip_t095b.

       SELECT ktogr FROM anla INTO lv_ktogr

         WHERE anln1 zbwfiaa-anln1 AND

               anln2 zbwfiaa-anln2.

      

         SELECT   ktopl  ktogr afabe ktnafb

                     INTO TABLE  ip_t095b FROM  t095b

                       WHERE  ktopl = '1006'      AND

                              ktogr  lv_ktogr .

 

IF sy-subrc = 0.

           MOVE  it_t095b-ktnafb  TO  zbwfiaa-zzktnafb.

           MODIFY    i_t_data   FROM   zbwfiaa INDEX   l_tabix.

         ENDIF.

       ENDSELECT.

     ENDLOOP.


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>