# Posting IDOCS to SAP from BC

**URL:** <https://techcommunity.softwareag.com/t/posting-idocs-to-sap-from-bc/108682>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [March 29, 2005, 4:56am UTC](https://techcommunity.softwareag.com/t/posting-idocs-to-sap-from-bc/108682 "2005-03-29T04:56:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![roni](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@roni](https://techcommunity.softwareag.com/u/roni)\
**Post date:** [March 29, 2005, 4:56am UTC](https://techcommunity.softwareag.com/t/posting-idocs-to-sap-from-bc/108682/1 "2005-03-29T04:56:06Z")

</div>

I receive an XML Document through a FTP site. I have associated this to a flow service. In my flow service, I am invoking documentToRecord to get my XML document and map it to a record structure.

After documentToRecord step, I am mapping my XML record structure to DELVRY03 structure. This is followed by step OutboundProcess. I got all this information from BIT531. My question is how do I map my DELVRY03 structure to pipeline in of OutboundProcess. Also, where do I get the transactionID. Is this generated automatically? In SAP, I have the inbound SHPCON message type assigned. Please clarify, how I need to proceed in the OuboundProcess step. As you can tell, I am still learning these things.

I have searched in the discussion groups looking for an answer. I have not been successful so far.

I appreciate your help.

Regards,  
Roger

---

<div class="post-metadata">

**Author:** ![kadevee](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@kadevee](https://techcommunity.softwareag.com/u/kadevee)\
**Post date:** [March 29, 2005, 4:53pm UTC](https://techcommunity.softwareag.com/t/posting-idocs-to-sap-from-bc/108682/2 "2005-03-29T16:53:40Z")

</div>

Roger,

The input structures for the OutboundProcess service (IDOC\_CONTROL and IDOC\_DATA or IDOC\_CONTROL\_REC40 and IDOC\_DATA\_REC40) can be created from a document in the pipeline using pub.sap.idoc:transformHierarchyToFlat.

Hope this helps,

Koen

---

<div class="post-metadata">

**Author:** ![roni](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@roni](https://techcommunity.softwareag.com/u/roni)\
**Post date:** [March 29, 2005, 9:42pm UTC](https://techcommunity.softwareag.com/t/posting-idocs-to-sap-from-bc/108682/3 "2005-03-29T21:42:12Z")

</div>

Koen,  
Thanks for the reply. I did not understand the solution.  
These are the steps in my flow service

1. docmentToRecord (pub.web:documentToRecord)  
Here the makeArrays has been set to ‘True’ and the boundnode from the service out is mapped to my record structure for the incoming XML document.
2. I am looping through my XML record structure and mapping to DELVRY03
3. OutboundProcess (pub.sap.transport.ALE ![](http://www.wmusers.com/wmusers/clipart/proud.gif)utboundProcess)  
My question is at the third step. How do I map my DELVRY03 to IDOC\_CONTROL and IDOC\_DATA or IDOC\_CONTROL\_REC40 and IDOC\_DATA\_REC40?

I would sincerely appreciate your help.

Roger

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [March 29, 2005, 9:52pm UTC](https://techcommunity.softwareag.com/t/posting-idocs-to-sap-from-bc/108682/4 "2005-03-29T21:52:03Z")

</div>

Before the 3rd step use the pub.sap.idoc:transformHierarchyToFlat service this will create IDOC\_CONTROL\_REC40 and IDOC\_DATA\_REC40 respectively finally map to the OutboundProcess.

HTH,  
RMG.

---

<div class="post-metadata">

**Author:** ![roni](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@roni](https://techcommunity.softwareag.com/u/roni)\
**Post date:** [March 29, 2005, 11:08pm UTC](https://techcommunity.softwareag.com/t/posting-idocs-to-sap-from-bc/108682/5 "2005-03-29T23:08:52Z")

</div>

RMG,  
Thanks for the reply.

When I invoked sap.idoc:transformHierarchyToFlat, I am not sure about the inputs and the outputs to this service. How do I map DELVRY03 to transformHierarchyToFlat?

Thanks,  
Roger

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [March 30, 2005, 12:00am UTC](https://techcommunity.softwareag.com/t/posting-idocs-to-sap-from-bc/108682/6 "2005-03-30T00:00:37Z")

</div>

Rogger,

Check this link,if it helps.  
[url=“[wmusers.com](http://www.wmusers.com/wmusers/messages/117/893.shtml)”][wmusers.com](http://www.wmusers.com/wmusers/messages/117/893.shtml%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [March 30, 2005, 12:01am UTC](https://techcommunity.softwareag.com/t/posting-idocs-to-sap-from-bc/108682/7 "2005-03-30T00:01:22Z")

</div>

Sorry there is a typo in your name (Roger)

---

<div class="post-metadata">

**Author:** ![roni](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@roni](https://techcommunity.softwareag.com/u/roni)\
**Post date:** [March 31, 2005, 10:30am UTC](https://techcommunity.softwareag.com/t/posting-idocs-to-sap-from-bc/108682/8 "2005-03-31T10:30:58Z")

</div>

RMG,  
Thanks for the information.

Roger.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:05pm UTC](https://techcommunity.softwareag.com/t/posting-idocs-to-sap-from-bc/108682/9 "2021-04-02T15:05:20Z")

</div>


