E2STATS - EDI Status Record 

Definition

Status and error information is transferred into segment E2STATS.

Field name

Adjust.

Format

SAP
domain

Req’d
field

Significance

TABNAM

 

CHAR 10

   

Name of the table structure (blank)

MANDT

 

CHAR 03

MANDT

 

Client

DOCNUM

 

CHAR 16

 

X

IDoc number of incorrect document

LOGDAT

 

DATS 08

 

X

Date

LOGTIM

 

TIMS 06

 

X

Time

STATUS

1

CHAR 02

 

X

Status of incorrect IDoc

UNAME

 

CHAR 12

   

User name

REPID

 

CHAR 08

   

Program name

ROUTID

 

CHAR 30

   

Subroutine name

STACOD

3

CHAR 08

 

X

Status code

STATXT

3, 6

CHAR 70

 

X

Status code text

SEGNUM

 

CHAR 06

   

Segment number

SEGFLD

 

CHAR 10

   

Field name

STAPA1

 

CHAR 20

   

Parameter 1

STAPA2

 

CHAR 20

   

Parameter 2

STAPA3

 

CHAR 20

   

Parameter 3

STAPA4

 

CHAR 20

   

Parameter 4

REFINT

 

CHAR 14

   

Reference to file

REFGRP

 

CHAR 14

   

Reference to message

REFMES

 

CHAR 14

   

Reference to message

ARCKEY

 

CHAR 70

   

Document ID in the external system

STATYP

1

CHAR 01

   

System message category

 

Special fields and domain values in segment E2STATS

Please take into account these particular functions and/or permitted value areas in the following fields in segment E2STATS.

E2STATS-STATUS Field : Status of incorrect IDoc Status of incorrect IDoc

Status values for IDoc used within the communication.

Val.

Significance

16

IDoc was successfully processed (possibly with warnings)

17

IDoc could not be processed

 

E2STATS-STACOD Field : Status Code

Status or error message code, as available in the R/3 system. Generally, the code is always ‘SAPV6xxx’, whereby digits ‘xxx’ are predefined as follows:

Area

Significance

000-499

Messages from the transportation planning system to R/3

500-999

Messages from the R/3 system to the transportation planning system

 

You can compare the messages manually between the systems so that if there is a message in the destination system only defined by a status code, its corresponding long text will appear.

E2STATS-ARCKEY Field: Document ID in External System

An identification predefined by the subsystem is created in the ARCKEY field. If you cannot process a document sent by the subsystem to the R/3 system, the contents of the ARCKEY field from the incorrect IDoc will be sent back in the ARCKEY field in the error message. This will allow you to recreate the reference to the process that generated the document.

E2STATS-STATYP Field: System Message Category

Category of the system message

Val.

Significance

S

Status message after successful transaction

I

Information message (note)

W

Warning

E

Error message

A

Termination message (serious error)