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: 

Idoc segment field - maximum length ?

h_senden2
Active Contributor
0 Kudos

Hi,

what is the maximum of characters in a segment field of an idoc ?

regards,

Hans

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

Hi,

it depends on segment ? what segment you want?

generally it is 1000 chars.

sdata of 1000 chars only, it can't hold more than that.

regards

vijay

6 REPLIES 6

abdul_hakim
Active Contributor
0 Kudos

1000 bytes

Please check the SDATA field of the table EDID4

Cheers,

Abdul Hakim

former_member181966
Active Contributor
0 Kudos

Max length = 1000 characters

Check out

http://help.sap.com/saphelp_nw04/helpdata/en/1c/9fad3a05fdb92de10000000a114084/content.htm

FYI



ALE Interface
The following objects are generated from the application function module:

· Message, IDoc structure and segments: Mapping of the complex data type

· Outbound function module: Each IDoc always contains one application object only

· Inbound function module: IDocs are always transferred to the application individually or in packets of objects.

· Customizing objects required for the run

Assigning names to generated objects

· Default message (maximum 30 characters) proposed from the function module name.

· IDoc (maximum 30 characters) is derived from the message – the last two characters are extended by 01 (message <= 28 characters) or are replaced by 01 (message > 28 characters).

· Generated function module name

Outbound (maximum 30 characters): ALE_function module name (default)

Inbound (maximum 30 characters): IDOC_INPUT_message (default)

· Segments

The default segment name begins with E1 for SAP and Z1 for customers, or namespace /.../. A meaningful and unique segment name is assigned as follows:

- In the application system (maximum 27 characters):

The segment name is derived from the structure name:

· If the structure name is shorter than 24 characters, the segment name is copied directly.

· If the structure name is longer than 23 characters, it is shortened to 23 and the “less important” characters at the front are cut off. The remaining characters are used to form a number that establishes the uniqueness of the shortened name. If numbers 01 to 99 are used, assignment continues with numbers 100 to 999 until the segment name becomes unique. This ensures that new segment names are created for the same structure, when this structure is used many times in a complex data type.


Hope this’ll give you idea!!

P.S award the points.

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"

rahulkavuri
Active Contributor
0 Kudos

The maximum length of all the fields in a segment is 1000 characters.

http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b82e443d711d1893e0000e8323c4f/content.htm

The maximum characters allowed in a segment name is 30

http://download.sybase.com/pdfdocs/r3r0380e/sap38rb.pdf

Please award points if found helpful

former_member188685
Active Contributor
0 Kudos

Hi,

it depends on segment ? what segment you want?

generally it is 1000 chars.

sdata of 1000 chars only, it can't hold more than that.

regards

vijay

0 Kudos

Segment data will not hold more than 1000 Characters.

Former Member
0 Kudos

hi hans,

the maximum length is 1000 characters.