Breadcrumbs

Manually Building an SAP IDoc Structure

To work with SAP IDocs in a Designer service, you need to build the IDoc data structure manually in the Implementation folder. The table below explains the needed configurations based on the TXTRAW01 sample IDoc.

⬇️

SAPAdapter_SingleIDoc_Example

Click here to download a simple example model that shows how to build an IDoc structure and parse an IDoc string in Scheer PAS Designer.

Element

Example

Type

Extension

Extension Attributes

Additional Attributes

Description

Main IDoc Package

IDoc_TXTRAW01





Create a main package to store the IDoc definitions. We suggest naming it IDoc_<name of the iDoc>.


Class
(IDoc)

TXTRAW01


SAP IDoc



Create a class to represent the IDOC structure.

This class must derive from Base Components.Add Ons.SAP.EDI_DC40.

XML

Is Ordered = true



Property

BEGIN

String



Default Value = 1

Create IDoc properties.

Property

E2TXTRW

Array of E2TXTRW

XML Element

Order = 1
External Name= E1TXTRW


Class
(IDOC Segment)

E2TXTRW


SAP IDoc Segment



Create needed IDOC segments.

XML

Is Ordered = true



Property

SEGMENT

String

XML Attribute


Default Value = 1

Create properties.

Property

TLINE

String

SAP IDoc Attribute

Offset = 63
External Length= 72
Native Type= CHAR


XML Element

Order = 2


📗

Related Pages: