2009 Feb 06 4:34 PM
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
2009 Feb 06 4:39 PM
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
2009 Feb 06 4:39 PM
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.
2009 Feb 06 4:54 PM
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?
2009 Feb 07 1:11 PM
yes. you can insert your custom segment, and delete the standard segments in a ssuitable user exit,
2009 Mar 11 9:19 PM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |