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: 

Problem with Idoc segment maximum length

Former Member
0 Kudos

Hi friends,

We are now creating a new Idoc type. We have started to create the first segment but we encountered a major problem.

The problem is that we have a field of 4000 characters but the limit of all segment fields together is 1000 characters.

Is there any way to change this limitation or another way to define Idoc?

Thanks in advanced,

Udi Dekel.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

When you create a segment that exceeds the max length, SAP automatically creates a child segment for the exceeded length. For your problem though, you can create 4 segments of length 1000 each and split the data in these 4 segments and then concatenate the data later in the idoc processing function module. On the other hand if it is an outbound idoc, you can ask the receiving system to do the same.

Best regards,

Advait

3 REPLIES 3

Former Member
0 Kudos

Tolal length of all fields in a segment should not exceed 1000 char otherwise u cannot move it EDIDS-SDATA as length of this field is only 1000 char . As in ur case lotal length is more than 1000 char so it is better to create 2 separate segments rather than 1 segment.

Former Member
0 Kudos

need to do coding in user exit of process code..

let me now order type and process codeand segment ..i ll tell you exact user exit..

madan

Former Member
0 Kudos

Hi,

When you create a segment that exceeds the max length, SAP automatically creates a child segment for the exceeded length. For your problem though, you can create 4 segments of length 1000 each and split the data in these 4 segments and then concatenate the data later in the idoc processing function module. On the other hand if it is an outbound idoc, you can ask the receiving system to do the same.

Best regards,

Advait