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: 

Segment in idoc

Former Member
0 Kudos

dear friends,

Iam trying with Idoc in that what is the neeed of creating Segment (we31)

Regards

reddy

1 ACCEPTED SOLUTION

GauthamV
Active Contributor
0 Kudos

hi,

idoc is a container and the data u need to send is sent through segments which consists of fields.

8 REPLIES 8

Former Member
0 Kudos

Hi,

Idoc is a container which contains the data

in the form of segments.

So we need to created segments in idoc.

The physical format of the IDocs records is always the same. Therefore, the application data must be converted into a 1000 character string.

Fill the data segments which make up the IDoc :

An IDoc is a file with a rigid formal structure. This allows the correspondents to

correctly interpret the IDoc information. Were it for data exchange between SAPsystems

only, the IDoc segments could be simply structured like the correspondent DDIC structure of the tables whose data is sent.

However, IDocs are usually transported to a variety of legacy systems which do not run SAP. Both correspondents therefore would agree on an IDoc structure which is known to the sending and the receiving processes.

Transfer the whole IDoc to an internal table, having the structure of EDIDD :

All data needs to be compiled in an internal table with the structure of the standard

SAP table EDIDD. The records for EDIDD are principally made up of a header

string describing the segment and a variable length character field (called SDATA)

which will contain the actual segment data.

Regards,

Jagadish

GauthamV
Active Contributor
0 Kudos

hi,

idoc is a container and the data u need to send is sent through segments which consists of fields.

Former Member
0 Kudos

These segments hold data in the Idoc

Former Member
0 Kudos

hiiii

read following link

http://www.erpgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc

this will clear your problem.

regards

twinkal

Former Member
0 Kudos

Hi,

Look into the following link.

http://saptechnical.com/Tutorials/ALE/CustomIDOC/Create.htm

it is very usefull ....

Jaya Vani

Former Member
0 Kudos

Segment contains different fields. The IDOC can store data for the fields which are there in the different segments. Basic Type Consists of Different Segments and Basic Type is related with Message Type.

Former Member
0 Kudos

Hi,

For the IDOC to carry the data , segments need to be created as the data is in this form. Without creation of segments, IDOC cannot hold the data to be carried.

Regards..

kiran

Former Member
0 Kudos

a special form of segment might be helpfull - it allow generic transfer of own data (Z-Tables):

Field 1: STRUCTURE_NAME (containing the name of a DDIC Structure)

Field 2: DATA (Containing data to be filled into this structure)

ATTENTION: ALE / IDOCS all works with character fields only - so before moving data into the structure (outbound) and after getting the data from the structure (inbound) conversions must be done for numeric fields, dates and time. This requires that both users for outbound and inbound processing have the same settings for that conversions.

Kind regards,

HP