cancel
Showing results for 
Search instead for 
Did you mean: 

How to enhance 2LIS_02_ITM

Former Member
0 Kudos

Hi All,

I want to Enhance 2LIS_02_ITM, to get cost center and G/L counts, pleae give me some advise how to do that , and that are the tables for Cost center and G/L accounts.

Regards.

Power.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

We appended cost center and cost element to this extractor using FUNCTION EXIT_SAPLEINS_001. Here is the code:

LOOP AT xmcekpo.

READ TABLE xmcekkn

WITH KEY supkz = '2'

ebeln = xmcekpo-ebeln

ebelp = xmcekpo-ebelp.

IF sy-subrc = 0.

xmcekpo-zzkostl = xmcekkn-kostl.

xmcekpo-zzsakto = xmcekkn-sakto.

xmcekpo-zzaufnr = xmcekkn-aufnr.

xmcekpo-zzafnam = xmcekkn-wempf.

MODIFY xmcekpo.

IF sy-subrc <> 0.

MESSAGE ID 'ZZ04' TYPE 'E' NUMBER '011'

WITH xmcekpo-ebeln 'EXIT_SAPLEINS_001'.

ENDIF.

ENDIF.

ENDLOOP.

Former Member
0 Kudos
Former Member
0 Kudos

Try to look into these tables for GL data:

GLT0 (G/L account master record transaction figures)

SKA1 G/L Account Master (Chart of Accounts)

SKAT G/L Account Master Record (Chart of Accounts- Description)

SKB1 G/L account master (company code)

AGKO Cleared Accounts

ANAR Asset Types

ANAT Asset type text

ANEK Document Header Asset Posting

ANEP Asset Line Items

ANEV Asset downpymt settlement

ANKT Asset classes- Description

ANLA Asset Master Record Segment

ANLB Depreciation terms

ANLC Asset Value Fields

ANLH Main asset number

AT02T Transaction Activity Category- Description

AT02A Transaction Code for Menu TIMN

AT10 Transaction type

AT10T Name of Transaction Type