cancel
Showing results for 
Search instead for 
Did you mean: 

How to put data in MESCOD field of in IDOC Control Record ?

0 Kudos

We have a File->XI->IDOC scenario.

Two different types of files have to been mapped to the same IDOC (WMMBXY).

We want to use the field MESCOD in order to differ idocs from one type file or the other.

In the Message Mapping, I have the EDI_DC40 record dissabled, to permit that it is fulfilled by XI.

How can I put information in MESCOD field?. Is the only solution to enable EDI_DC40 record ? (I don't like this solution because automatic fulfilled is lost ).

I've seen that a Header Mapping exists in Receiver Agreement, but this is only available to Sender&Receiver.

Thank you.

Francisco.

Accepted Solutions (0)

Answers (2)

Answers (2)

MichalKrawczyk
Active Contributor
0 Kudos

hi Francisco,

take a look at this:

http://help.sap.com/saphelp_nw04/helpdata/en/13/95244269625633e10000000a155106/content.htm

section:

The following table provides information about

how the fields of the control record are filled by the

receiver IDoc adapter.

now you see which fileds are supplied by receiver idoc adapter

then:

If you have not set the Apply Control Record Values from

Payload indicator in the receiver IDoc adapter, the

fields are filled as follows:

now you see which fields are taken from ID

so enable EDI_DC40 and just fill MESCOD

this will be much easier than any other routing

(if such exists if you disable it)

Regards,

michal

Regards,

michal

Former Member
0 Kudos

Hi Francesco,

Check this "How to Guide"

How To Sample IDoc Scenarios within XI3.0

https://websmp101.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=011000358700000002...

Regards

Vishnu