SAP ACCOUNTING Interface SAPSTEC (as of Release 4.3J, 4.4C and 5.0A) 

Definition

ACCOUNTING data is transferred via the SAP ACCOUNTING interface SAPSTEC. The SAP transfer program writes an ACCOUNTING record before it terminates.

The two topics below cover the following subjects:

In which structure is data passed to the SAPSTEC interface?

What meaning and value ranges do the fields have?

Structure

Data structure

***************************************************************
* *
* S T C D U M M Y *
* *
* THIS DUMMYSECTION DESCRIBES THE LAYOUT OF THE *
* S A P - STATISTIC RECORD IN CICS ENVIRONMENT. *
* *
***************************************************************
SPACE 1
RAPPL OPSYS=BS2
AIF (&APPLOK).$STCD01
DFHEISTG DSECT
.$STCD01 ANOP
STCBEG DS 0A
STCLEN DS H LENGTH OF RECORD
DS XL2 RESERVED (V RECORD)
STCTASK DS CL2 SAP TASK TYPE:
* D1, D2,... DIALOG
* V1, V2,... POSTING TASK
* N1, N2,... ODC TASK
* L1, L2,... BACKGROUND TASK
* X1, X2,... LU6.2 COMMUNICATION
* S1, SS SPOOL TASK
STCFLAG1 DS X FLAG BYTE 1
STC1DIA EQU X'80' RECORD OF DIALOG TASK
STC1VBT EQU X'40' RECORD OF VB-TASK
STC1SPL EQU X'20' RECORD OF SPOOL TASK
STC1SYS EQU X'10' SYSTEM RECORD
STC1BDC EQU X'08' BATCH INPUT
STC1SCD EQU X'04' SCHEDULED TRANSACTION
STCMANDT DS XL1 MANDANT
STCDATE DS PL4 DATE (PACKED), ZCSADATP
STCTIME DS PL4 END TIME OF TRANSACTION (PACKED)
STCTIMTR DS PL4 START TIME OF TRANSACTION(EIB,PACK)
STCRESP DS XL4 RESPONSE TIME OF TRANSACTION(MS)
STCCTIM DS XL4 CPU TIME OF TRANSACT (BS2000 ONLY)
STCATIM DS XL4 TIME, TASK WORK AREA IS USED (MS)
STCTCODE DS CL4 SAP TRANSACTION CODE
STCREPID DS CL8 IF ABAP: REPORT ID
STCLTERM DS CL8 TERMINAL ID
STCACCT DS CL12 ACCOUNT NUMBER
*

*........CALL STATISTICS, NUMBER OF CALLS.....................
*
STCREADU DS F READ FOR UPDATE
STCREAD DS F READ
STCSET DS F SET
STCGET DS F GET
STCWRITE DS F REWRITE
STCINSRT DS F INSERT
STCDELET DS F DELETE
STCLOAD DS F PGM LOAD
STCSYNC DS F SYNCPOINT
STCROLLB DS F ROLLBACK
STCCALL DS F OTHER CALLS
*

*........TIMER, I/O COUNTER...................................
*
STCEXDA DS H DATA EXCP'S * TRACE -
STCEXIN DS H INDEX EXCP'S * STATISTICS

STCEXES DS H ESDS EXCP'S, DLI ONLY * ONLY
STCPLOAD DS H PHYSICAL LOADS
STCEXTI DS F TIME OF EXCP'S (10**-6 S)
STCPLOTI DS F LOAD TIME (10**-6 S)
STCZWAIT DS F ZTTA WAIT TIME (10**-3 S)
STCSWAIT DS F SGOC WAIT TIME (10**-3 S)
STCMILN DS F LENGTH OF INPUT MESSAGE (BYTES)
STCMOLN DS F LENGTH OF OUTPUT MESSAGE (BYTES)
STCPOLN DS F LENGTH PRINTER OUTPUT MESS. (BYTES)
STCROLAL DS F MAX. ALLOCATED ROLL AREA (BYTES)
STCRULEN DS F MAX. USED ROLL AREA (BYTES)
STCRCLEN DS F MAX. USED ROLL AREA AFTER COMPRESS.
STCPRLEN DS F MAX. SIZE OF LOADED PROGRAMS
*
*........DB CALL STATISTICS FOR TRACE.........................
*
STCDB1 DS F APPENDAGE 1:
STCDB1D DS F DIRECT ACCESS
STCDB1S DS F SEQUENTIAL ACCESS
*
STCDB2 DS F APPENDAGE 2:
STCDB2D DS F DIRECT ACCESS
STCDB2S DS F SEQUENTIAL ACCESS
*
STCDB3 DS F APPENDAGE 3:
STCDB3D DS F DIRECT ACCESS
STCDB3S DS F SEQUENTIAL ACCESS
*
STCDB4 DS F APPENDAGE 4:
STCDB4D DS F DIRECT ACCESS
STCDB4S DS F SEQUENTIAL ACCESS
*
STCDB5 DS F APPENDAGE 5:
STCDB5D DS F DIRECT ACCESS
STCDB5S DS F SEQUENTIAL ACCESS
*

*........QUEUE NAME IN DOUT..................................
ORG STCPRLEN
STCDTQNA DS CL64
*
*........TIMER FOR ALL SAP DB CALLS (8*10**-6 S)..............
*
STCRUT DS F READ/UPDATE TIMER
STCROT DS F READ/ONLY TIMER
STCST DS F SET TIMER
STCGT DS F GET TIMER
STCWRT DS F REWRITE TIMER
STCINT DS F INSERT TIMER
STCDET DS F DELETE TIMER
STCCALT DS F OTHER CALLS
*
*........TASK RELATED INFORMATION.............................
*
STCVWAIT DS F WAIT ON SYNCHRONOUS UPDATE (MS)
STCTWAIT DS F CPIC: WAIT ON TERMINAL INPUT (MS)
STCDNR DS F DYNPRO NO. OF DIALOG STEP
STCETIM DS F CREATION TIME OF APLZ RECORD
STCROLL DS F ROLL KEY
STCRTABS DS F RTAB CALLS SEQUENTIAL
STCRTABD DS F RTAB CALLS DIRECT
STCNRTC DS F NO. OF RTC/RTN'S
STCLRTC DS F LONGEST INTERVAL BETWEEN RTC'S (MS)
STCIMOD DS F # CREATED INTERNAL MODI
STCTCPU DS XL8 TIME STAMP CPU MEASUREMENT
STCEND EQU *
STCLENG EQU *-STCBEG

Fields

The fields have the following meaning and value ranges for SAP-ACCOUNTING-EXIT:

STCTASK

‘QM’ identifies the ACCOUNTING records written by the SAP transfer program

STCFLAG1:

not significant

STCMANDT

not significant

STCDATE

Date on which the transfer program was started (packed date format 'DDMMYY')

STCTIME

Time at which the transfer program was ended (packed time format 'HHMMSS')

STCTIMTR

Time at which the transfer program was started (Release 4.3: packed time format 'HHMMSS' Release 5.0: ms after midnight)

STCRESP

Period for which the transfer program was activated (time between the start time and end time of the transfer program in ms)

STCCTIM

not significant

STCATIM

not significant

STCTCODE

not significant

STCREPID

not significant

STCLTERM

Conversation identifier that the transfer program uses for identifying the LU6.2 connection to the target system

STCACCT

not significant

STCREADU

No. of ‘read for update’ operations

STCREAD

No. of ‘read’ operations

STCSET

not significant

STCGET

not significant

STCWRITE

No. of ‘rewrite’ operations

STCINSRT

No. of ‘insert’ operations

STCDELET

No. of ‘delete’ operations

STCLOAD

No. of ‘PGM load’ operations

STCSYNC

No. of ‘syncpoint’ operations

STCROLLB

No. of ‘rollback’ operations

STCCALL

No. of ‘other calls’

STCMOLN

Total no. of bytes transferred by the SAP transfer program (sum of bytes from the transferred SAP protocol information and the user data)

STCDTQNA

Name of the transferred DOUT queue

STCTWAIT

Total wait time of the transfer program in ms (consists of the wait time for the connection set up and the wait time when receiving transfer buffers)