Recipes by Topic | Recipes by Author | Request Enhancement | Report a bug | Fix documentation
Bhalchandra Wadekar |
---|
This recipe lets you try out Event Message pattern using an example of:
- Sending Product Update
Download the integration flow Sample for Sending Product Update
Step | Code | Why? |
---|---|---|
IDoc Sender | ||
Log | messageLog.addAttachmentAsString('Product', message.getBody(String), 'application/xml') |
<MATMAS05>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1">
<TABNAM>EDI_DC40</TABNAM>
<MANDT>100</MANDT>
<DOCNUM>0000000000009022</DOCNUM>
<DOCREL>751</DOCREL>
<STATUS>30</STATUS>
<DIRECT>1</DIRECT>
<OUTMOD>2</OUTMOD>
<IDOCTYP>MATMAS05</IDOCTYP>
<MESTYP>MATMAS</MESTYP>
<STDMES>MATMAS</STDMES>
<SNDPOR>SAPECC</SNDPOR>
<SNDPRT>LS</SNDPRT>
<SNDPRN>ECCCLNT100</SNDPRN>
<RCVPOR>CPIPORT</RCVPOR>
<RCVPRT>LS</RCVPRT>
<RCVPRN>CPI</RCVPRN>
<CREDAT>20200105</CREDAT>
<CRETIM>140115</CRETIM>
</EDI_DC40>
<E1MARAM SEGMENT="1">
<E1MARA1 SEGMENT="1"/>
<E1MAKTM SEGMENT="1">
<MAKTX>EIPINCPI</MAKTX>
</E1MAKTM>
<E1MARCM SEGMENT="1">
<E1MARC1 SEGMENT="1"/>
<E1MARDM SEGMENT="1"/>
<E1MFHMM SEGMENT="1"/>
<E1MPGDM SEGMENT="1"/>
<E1MPOPM SEGMENT="1"/>
<E1MPRWM SEGMENT="1"/>
<E1MVEGM SEGMENT="1"/>
<E1MVEUM SEGMENT="1"/>
<E1MKALM SEGMENT="1"/>
</E1MARCM>
<E1MARMM SEGMENT="1">
<E1MEANM SEGMENT="1"/>
</E1MARMM>
<E1MBEWM SEGMENT="1"/>
<E1MLGNM SEGMENT="1">
<E1MLGTM SEGMENT="1"/>
</E1MLGNM>
<E1MVKEM SEGMENT="1"/>
<E1MLANM SEGMENT="1"/>
<E1MTXHM SEGMENT="1">
<E1MTXLM SEGMENT="1"/>
</E1MTXHM>
<E1CUCFG SEGMENT="1">
<E1CUINS SEGMENT="1"/>
<E1CUVAL SEGMENT="1"/>
<E1CUCOM SEGMENT="1"/>
</E1CUCFG>
</E1MARAM>
<E1UPSLINK SEGMENT="1"/>
</IDOC>
</MATMAS05>