Skip to Content

Overview

During testing of PO outbound interface, a defect has been raised which says “PO Conditions are not appearing in IDoc”, which leads me to write a blog on Idoc View and use of IDoc view for sending PO condition data.

IDoc types can be used for more than one message, that is, for more than one business process. As a result, the IDoc types usually contain more segments than necessary for the individual application cases. To improve performance when generating IDocs, we can use views to ensure that only the segments relevant to the current business process are filled with data. Views are therefore only important for IDoc outbound processing.

This document explains how to use IDoc view to send PO conditions data.

Background

Check below snapshot from function module IDOC_OUTPUT_ORDERS/IDOC_OUTPUT_ORDCHG

/wp-content/uploads/2014/07/1_498286.jpg

As we can see highlighted comment which says “Do not Send Conditions without View”, we have to create a view for IDoc type/IDoc extension to send PO condition data.

In this document, we are going to create IDoc view for Idoc extension.

Configuration & Design in SAP

Create Idoc View:

For some of IDoc type/message type, views are already available.

Go to WE32 and press F4

/wp-content/uploads/2014/07/2_498311.jpg

As we can see from above IDoc view is already there for PO create/change.

Select any one of them and click display

/wp-content/uploads/2014/07/3_498312.jpg

As we can see above it is available for Basic type ORDERS05. Look at Color Legend in  below screen shot, the Greens are included in Idoc view.


/wp-content/uploads/2014/07/4_498313.jpg

Here we have created an Idoc extension so we have to create view for IDoc extension.

Go to WE32 and enter a name for View and click on Create icon.

Check below snapshot for view created for Idoc extension

/wp-content/uploads/2014/07/5_498314.jpg

As we can condition data are included in extension.



Assign IDoc View to Partner Profile


           Go to WE20 and assign Idoc view in partner profile.

/wp-content/uploads/2014/07/6_498315.jpg

Comparison with Idoc Reduction

As we know SAP has also provided Idoc Reduction tool (BD53) to remove segments which are not required.

Key differences between Idoc Reduction and Idoc View are:

  • Idoc Reduction works at segment field level. It means we can remove fields from segments which are not required instead of removing entire segment.In case of IDoc view, entire segment is rejected. No control at field level.


  • In case of Idoc reduction a new message has to be created and assigned in Partner Profile while in Idoc view no need to create new message type just maintain an Idoc View using WE32 for Idoc type/Message Type/Extension combination and assign the View in Partner Profile.

Scenario Execution

Without IDoc View:

First test without Idoc view assigned in partner profile

Go to ME21N and create PO.

/wp-content/uploads/2014/07/7_498316.jpg

Check generated Idoc in WE02.

/wp-content/uploads/2014/07/8_498317.jpg

As we can see above there are no condition segments appearing in Idoc.

With IDoc View:

Now test with Idoc view assigned in partner profile

Go to ME21N and create PO.

/wp-content/uploads/2014/07/9_498318.jpg

Check generated Idoc in WE02.

/wp-content/uploads/2014/07/10_498319.jpg

As we can see above there are condition segments appearing in Idoc.

References

     http://help.sap.com

     http://scn.sap.com

       SAP Note: 185445

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply