cancel
Showing results for 
Search instead for 
Did you mean: 

IDX1 vs WE21

Former Member
0 Kudos

hi,

Both tcodes IDX1 and WE21 are used for port maintainance. What exactly is the difference between them and which is best suited for what purpose??

regards,

Manpreet

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hey Manpreet,

It's really nice that my reply helped you.

keep posting in for further doubts, and hey do give points also

Thanks & Regards,

Varun Joshi

Former Member
0 Kudos

Hi Manpreet,

IDX1 is used for Port Maintenance at the Integration Server in the idoc adapter.

WE21 is used for opening an rfc port for the logical system.

Here the RFC destination and the content type of the XML messages are specified.Content type can be text/xml or application/x-sap.idoc.the latter is used for idoc to SAPBC communication.For idocs tRFC ports are created.For receiving idocs xmlmessages using http protocol XMLHTTP option is chosen.CPI-C ports are maintained for linking r3 to r2 for sending or recievind idocs.

Former Member
0 Kudos

Varun/Priyanka,

Thanks for the clarifications.

regards,

Manpreet

Former Member
0 Kudos

Hi Manpreet,

As i Understand, <b>WE21</b> is used for <b><i>port definition</i></b>, you can also go through this piece of text:

a) Use ALE customizing transaction WE21 to create a new port (for example RCV_089) of type transactional RFC.

b) To enable your system to send IDOCS you must have a TCP/IP destination (type registration), a configured partner profile (WE20) and a configured TRFC Port (WE21)

Also please go through this link:

Maintaing Port Definition,

http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7fd843d711d1893e0000e8323c4f/frameset.htm

And <b>IDX1</b>is used for <b><i>port maintenence</i></b>, further definition:

Use transaction IDX1 to assign a port (RFC destination) to the system that contains the metadata of the IDoc types. This system is defined by the sender port, for example SAPSND (SAP<SID>), and the client, in the IDoc control record.

An SAP system with system ID XYZ and client 300 sends an IDoc to the Integration Server. The sender port in the IDoc control header is SAPXYZ. You use transaction IDX1 on the Integration Server to maintain which RFC destination to use for IDocs with port SAPXYZ and client 300 in order to retrieve the IDoc metadata.

There is a mechanism on the Integration Server that uses this RFC destination to retrieve and cache the metadata at runtime if it is not yet available on the Integration Server.

For more information about IDX1, see http://help.sap.com/saphelp_nw04/helpdata/en/3b/beb13b00ae793be10000000a11402f/frameset.htm

Since IDoc metadata is cross-client, you should only assign one port for each system. If several ports are assigned, ensure that they are all working.

If you are not able to load the metadata from this system (because of administrative or security-related restrictions, for example), you can also load it from a reference system (for example, a test system) and use transaction IDX2 to assign it to your production system afterwards.

For non-SAP systems, either the ports in transaction IDX1 have to point to a reference SAP system, or you copy the metadata with transaction IDX2.

When an IDoc type is sent to the Integration Server for the first time, the corresponding metadata is loaded from the source system. If metadata for an IDoc type changes, it must be deleted by executing the program IDX_RESET_METADATA (or by using transaction IDX2). The automatic mechanism described above will then ensure that metadata is reloaded as soon as an IDoc of this type is sent.

For more information about IDX2, http://help.sap.com/saphelp_nw04/helpdata/en/8a/b8b13bb3ace769e10000000a11402f/frameset.htm

I hope this helps,

Thanks & Regards,

Varun Joshi