Anda di halaman 1dari 4

Sending and receiving IDOCs using a single stac...

| SCN

25.05.2015

Getting Started Newsletters Store

Hi, Guest

Log On Join Us

Search the Community

Products

Services & Support

About SCN

Downloads

Industries

Training & Education

Partnership

Developer Center

Activity

Lines of Business

University Alliances

Events & Webinars

Innovation

Browse

More documents in

Communications

Actions

SAP Process Orchestration

Actions

Sending and receiving IDOCs using a single


stack SAP PO system

Version 6

created by Dimitri Sannen on Jul 1, 2013 10:55 AM, last modified by Dimitri Sannen on Sep 17, 2013 12:39 PM

Login to follow, like, comment, share and


bookmark content.

Login

Register

Tweet

Why this document?


On SCN, a lot of questions occur concerning sending and receiving IDOCs on a java-only SAP
PO system. Sometimes people get confused what they need to do, especially when lacking
transactions on the familiar ABAP stack.
This document contains all the configuration details to enable IDOC processing.
On the SAP PO system
Configure destinations to send IDOCs
Define destinations in the SAP NetWeaver Administrator.
Path: Configuration -> Infrastructure -> Destinations
Make sure destination XI_IDOC_DEFAULT_DESTINATION (with this exact name) is defined as the
default one. Next to that, define other destinations in case multiple sending or receiving SAP
systems are involved in your scenario(s).
Configure the resource adapter to receive IDOCs
To avoid error with the connection factory, the resource adapter inboundRA must be configured
properly in the SAP NetWeaver Administrator. Path: Configuration -> Infrastructure ->
Application Resources
Make sure the resource adapter is available and started properly.

Incoming Links
Re: RELATION_NOT_FOUND error
Re: Idoc struck in sm58 and error in Log Viewer
Re: Where ti find gateway host and gateway
service of PO system?
Comment on 'Connect multiple SAP ECC clients
from Java IDOC Sender Adapter by Resource
Adapter Cloning'
Re: IDoc Configuration in SAP PO Netweaver 7.4,
single stack (AEX)
Re: iDoc_AAE Receiver Channel Error

InboundRA configuration details

1. The program ID should be like XI_IDOC_DEFAULT_<SAP PO SID>. Make sure you use this

program ID in the RFC destination on the back end system to send IDOCs to SAP PO.
http://scn.sap.com/docs/DOC-43471

1/4

Sending and receiving IDOCs using a single stac... | SCN

25.05.2015

2. SAP recommends putting the value between 5 and 10, but this could cause a failure of the

resource adapter. Please be careful when setting the value. If not, the resource adapter
will not start.
3. The default destination is mentioned here.
4. In case different SAP back end systems send IDOCs to the SAP PO system, you can
mention different System IDs here. Syntax should be like <SID>=<destination>;
<SID2>=<destination2>;
Make sure all other parameters are adapted accordingly.
On the SAP back end system
Define partner profiles to send/receive IDOCs. Make sure, in case you send IDOCs to SAP PO,
the program ID within the RFC destination correlates with the program ID defined within the
inboundRA resource adapter.

Integration scenario specifics


To send IDOCs
The message mapping sometimes causes confusion and errors when trying to send IDOCs to the
backend system. Keep in mind
To map constant value 1
To field BEGIN
To every SEGMENT field within a specific segment you want to use.

The EDI_DC40 segment takes care of sender and receiver information (ports, partner
numbers, message type, etc.). In case you want to use the same message mapping for
different target systems, leave the following fields blank (by putting constant value 1 in
e.g.): SNDPOR (sender port), SDNPRN (sender partner number), RCVPOR (receiver port),
RCVPRN (receiver partner number).
Instead, use the Header Mapping part within your Integrated Configuration object to
overwrite the empty fields in segment EDI_DC40.

In the example above, the ECC system client 300 is the receiving back end system. Please
note this is a business system, used within the Integration Directory and registered within
the System Landscape Directory (SLD).
On communication channel level, make sure the IDOC adapter (IDoc_AAE) is properly configured
http://scn.sap.com/docs/DOC-43471

2/4

Sending and receiving IDOCs using a single stac... | SCN

25.05.2015

using the default destination, a specific one from the NetWeaver Administrator or refer manually
to the receiving back end system.
To receive IDOCs
The most important object, necessary to receive IDOCs on a single stack system, is the sender
IDOC adapter. In previous releases (SAP XI 3.0, PI 7.1(1)), no explicit sender IDOC adapter,
and thus no sender agreement, was needed to receive IDOCs.
Make sure the sender IDOC adapter (IDoc_AAE) is properly configured using the default
destination, a specific one from the NetWeaver Administrator or refer manually to the receiving
back end system.
Optionally, acknowledgements (ACK) can be used.

7502 Views
Products: sap_netweaver_process_orchestration, sap_netweaver_process_integration Topics: process_orchestration,
process_integration Tags: netweaver, sap_netweaver_platform, pi, sap_pi, sap_process_integration,
process_orchestration_technologies_from_sap, sap_process_orchestration, sap_technologies, sap_b2b, b2b

Average User Rating


(7 ratings)
Tweet

5 Comments
deepak jaiswal Jul 5, 2013 8:10 AM

Thanks for such a nice blog

Dimitri.

Regards
Deepak
Like (2)
Stefan Hilpp Jul 25, 2013 3:23 PM

Nice blog... unfortunately I didnt see it 2 days ago, when I was setting up my latest scenario on PI
7.31 Java-Only.
(must have been looking in the wrong place...)
Regards
Stefan
Like (2)
Christoph Gerber Aug 2, 2013 1:55 PM

Nice blog... Just one question about the header mapping for sending IDocs to the backend system:
Here you have put ECCCLNT300 as "sender communication component". But as this is the receiver
system, shouldn't you set ECCCLNT300 as "receiver communication component?
Thanks.
Like (0)
Rajesh pasupula Nov 26, 2013 3:00 PM

Requires Correction to your statement regarding the mapping of PI To Send IDocs


New IDoc_AAE Adapter does xml validation and it expects the mapping to generate the IDoc as per
IDoc xsd schema and schema says the value of segments (begin,segment,...) with value 1. if you
dont provide those values it fails to post..
one more thing regarding the IDoc Destinations , if we have only one SAP System and configured the
XI_IDOC_DEFAULT_DESTINATION with those system values do we still need to configure the
Destination with SID Name.. I believe not required
Regards
Rajesh
Like (0)
Christoph Ostrop May 5, 2014 5:51 PM

our configuration attribute in multiRepository is always lost after system-restart ?


=> http://scn.sap.com/thread/3529153
any idea ?
Like (0)
http://scn.sap.com/docs/DOC-43471

3/4

Sending and receiving IDOCs using a single stac... | SCN

Site Index
Privacy

Contact Us
Terms of Use

http://scn.sap.com/docs/DOC-43471

SAP Help Portal


Legal Disclosure

25.05.2015

Copyright

Follow SCN

4/4

Anda mungkin juga menyukai