Monday, December 10, 2007

How do I use 'Apply Control Record Values from Payload' parameter with the IDOC adapter?

See notes:
a) 728792 - how the fields in the control record get set.
b) 792333 for an overview of how to convert partners in the IDoc adapter.

Also check:

Fields of the IDoc Control Record


The following table provides information about how the fields of the control record are filled by the receiver IDoc adapter.

Field Name

Value

TABNAM

Constant EDI_DC40, if version = 3

Constant EDI_DC, if version = 2

SNDPOR

Constant SAP+SYSID of the Integration Server

MANDT

Integration Server client

DOCNUM

Consecutive number from the IDoc number range EDIDOC/01. For reasons of uniqueness, it cannot be taken from the payload.

DOCREL

Integration Server release

This is not the release from the communication channel or the receiver system release.

RCVPOR

Determined from port in the receiver IDoc adapter.

ARCKEY

Message GUID for revision

SERIAL

Determined from the control record of the IDOC XML payload.

MESTYP

From the XI interface

IDOCTYP

From the XI interface

CIMTYP

From the XI interface

Partner conversion takes place in the Integration Directory.

Logical systems for SAP systems can also be specified in the System Landscape Directory. B2B partners can be converted by using XI parties.

See also:

· Communication Party Identifiers

· Header Mapping in Receiver Agreement

· Determination of the IDoc partner type in the communication channel, on the Identifiers tab page

The values for the following fields are filled by the configuration in the Integration Directory.

· SNDPRN

· SNDPRT

· SNDPFC

· RCVPRN

· RCVPRT

· RCVPFC

If you have not set the Apply Control Record Values from Payload indicator in the receiver IDoc adapter, the fields are filled as follows:

Field Name

Value

SNDPRN

From XI sender service, configuration in Integration Directory, System Landscape Directory

SNDPRT

Constant LS

SNDPFC

Initial

RCVPRN

From XI receiver service, configuration in Integration Directory, System Landscape Directory

RCVPRT

Constant LS

RCVPRT

Initial

STATUS

Constant 03

DIRECT

Constant 1

OUTMOD

Constant 2

CREDAT

Date created

CRETIM

Time created

The remaining fields that are not shown here are empty. Fields that have the value initial are empty in the control record.

If you have set the Apply Control Record Values from Payload indicator in the receiver IDoc adapter, the following fields are filled from the IDoc-XML payload:

· MESCOD

· MESCFT

· TEST

· EXPRSS

· STD

· STDVRS

· STDMES

· SNDSAD

· SNDLAD

· RCVSAD

· RCVLAD

· REFINT

· REFGRP

· REFMES

· STATUS

· DIRECT

· OUTMOD

· CREDAT

· CRETIM

You can change the contents of the fields by using a mapping.

End of Content Area

No comments:

Blog Archive