Application Development 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: 

custome segment in Sales order

Former Member
0 Kudos

Hi All,

We have a requirement to add Additional tab for header level, also Sales order data coming from legacy system, for that we are extended ORDERS05 Idoc , but i small query regarding adding New custom segment(header level) , where i need to add this custom segment(under which

segment)?

Regards,

Suresh.D

9 REPLIES 9

Former Member
0 Kudos

If that custom tab is in sales order header data then you can create a child segment under the segment E1EDK01 as that is a mandatory segment in ORDER05 basic type.

Earlier in one of the implementation i had a similar custom tab in sales order header which holds vendor number in it. Then i have created a custom segment ZE1EDK01 segment as a child segment to E1EDK01 segment and finished my job.

Thanks,

Mahesh.

0 Kudos

Hi Mahesh,

Thank you for your quick response

I am also added custom segment to E1EDK01, and code applied code in Exit, the data is reading properly from Idoc , but am unable to post the document,

am getting below error.

"

Syntax error in IDoc (segment cannot be identified)

The segment ZSDE1EDP01 does not occur at the current level of the basic type ORDERS05 (extension ).

This error can have several reasons:

The segment ZSDE1EDP01 is assigned to a group whose header segment does not occur.

The segment ZSDE1EDP01 does not exist in the syntax description of the basic type ORDERS05 (extension ).

The sequence of segments in the group in which the segment appears is incorrect.

Previous errors ('mandatory' segment or group missing) may be due to this error.

"

Regards,

Suresh.D

0 Kudos

Hi Suresh,

In the IDOC definition where did you add your custom segment ZSDE1EDP01 and did you maintain the basic type and extension combination in WE82 transaction.

Please check those things and hopefully it should work fine. Is this an inbound or outbound interface.

Thanks,

Mahesh.

0 Kudos

Hi Mahesh,

I have maintained in WE82 transaction basic type and extension, and it is Inbound Idoc,

shall i create new Process code for it OR can i use standard process code?

Regards,

Suresh.D

Edited by: suresh dameruppula on Oct 20, 2009 11:28 AM

Edited by: suresh dameruppula on Oct 20, 2009 11:28 AM

0 Kudos

Hi Suresh,

You need not create a new process code for it, you need to write your custom piece of code in the function exit available in the function module IDOC_INPUT_ORDERS. The process code which you need to use for this ORDE.

Check those things and let me know if you still have any other problems.

Thansk,

Mahesh.

0 Kudos

HI Mahesh,

I used standard process code ORDE and i written code in user exit , the data is populating properly from Idoc and Sales order is generated successfully, i have checked in we0,5 the data getting populated in custom segment properly but this data is not showing in Sales Order,

In status record it's showing status number 60 and message is EDI: Syntax error in IDoc (segment cannot be identified),

Regards,

Suresh.D

0 Kudos

Hi,

Maintain an entry in the transaction WE57 with the function module name, basic type, extension and message type combination.

Also check the idoc structure whether your custom segment has been added at the correct position or not.

Thanks,

Mahesh.

0 Kudos

Shall i use the standard message type to link function module,basic type and extension?

i have used z message type in we57. is it correct?

Regards,

Suresh.D

0 Kudos

You need not create any custom message type for this what you need to do is you need maintain 1 more entry with your extension in both WE82 and WE57 transactions.

Thanks,

Mahesh.