Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IDoc ORDERS05 - Configuring IDoc Segments

Former Member
0 Likes
1,918

Hi All,

Needed some help on understanding how to configure a new idoc using an extended SAP standard idoc type.

I'm using the ORDERS05 idoc type and extending it to add a single segment (example extended idoc type: ZORDEXT). We're creating a new condition type to trigger the idoc after sales order create/change. I'm planning to use the standard FM IDOC_OUTPUT_ORDRSP to create the idoc.

I noticed that only 1 segment in the ORDERS05 is set to mandatory (E1EDK01). We have identified at least 10 other required segments in the standard idoc which we need to populate with data. How do I configure the idoc to populate those segments? Do I need to set them as mandatory in a customer exit?

Thanks in advance.

Cal

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,378

IDOC_OUTPUT_ORDRSP will create all the segments needed as per the source data automatically. You need to populate your segment in a user exit.

Hi All,

Needed some help on understanding how to configure a new idoc using an extended SAP standard idoc type.

I'm using the ORDERS05 idoc type and extending it to add a single segment (example extended idoc type: ZORDEXT). We're creating a new condition type to trigger the idoc after sales order create/change. I'm planning to use the standard FM IDOC_OUTPUT_ORDRSP to create the idoc.

I noticed that only 1 segment in the ORDERS05 is set to mandatory (E1EDK01). We have identified at least 10 other required segments in the standard idoc which we need to populate with data. How do I configure the idoc to populate those segments? Do I need to set them as mandatory in a customer exit?

Thanks in advance.

Cal

4 REPLIES 4
Read only

Former Member
0 Likes
1,379

IDOC_OUTPUT_ORDRSP will create all the segments needed as per the source data automatically. You need to populate your segment in a user exit.

Read only

0 Likes
1,378

Thanks for the reply.

So, if I only needed half of the standard idoc's (ORDERS05) segments populated, I would need to write code in a customer exit (FM IODC_OUTPUT_ORDRSP) to filter out the unnecessary data/segments?

Read only

0 Likes
1,378

yes. you can insert your custom segment, and delete the standard segments in a ssuitable user exit,

Read only

0 Likes
1,378

I would have thought that the easiest place to strip out all the unwanted segments would be in your Middleware. Otherwise, you should be able to strip the segments out by creating an include in one of the Customer Functions in IDOC_OUTPUT_ORDRSP, i.e.

CALL CUSTOMER-FUNCTION '004'

CALL CUSTOMER-FUNCTION '001'

CALL CUSTOMER-FUNCTION '003'

Cheers, Paul.