Application Development and Automation 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: 
Read only

IDOC

Former Member
0 Likes
367

Hai Every one....

I created a idoc structure with one header segment and 2 item segments. but when i created ale message type interface for it , it showing only header segment in interface defenition

How to link header and item segment correctly so that it creates proper interface defenition..?

The steps i did is:

i had created a bapi ( ZBAPI_SCNDATA_3 ) which will insert records in to the table.

and added it in bussiness object ZZZTEST.

i have to pass three fields through idocs

i created 2 segments in we31.

first segment has only one field ( header segment)

second field have two fields(chield segments)

then i created idoc type in we30

added the first segment at level 1 with max and min as 1

added second segment at level 2 with min as 1 and max as 50

then created the message type in we81

linked the message type with idoc type in we82

linked with function module in we 57

then in object i created ale message type by double clicking on it .

the interface is genarated for the object

But in the interface the segment is only one with three fields

ie not showing header and chield segments seperatly

when i checked standard interfaces its showing parent and child segments in interface.

Please help me...

2 REPLIES 2
Read only

Former Member
0 Likes
345

check in the Basic Type in WE30, Header is Parent and Item is at Child level.

Debug your Process code ZBAPI_SCNDATA_3, while filling data in the IDOC structure.

Sandeep

Read only

0 Likes
345

Hai sandeep,

in we30 , header segment is at level 1 and item segments are at level 2 itself.

regards

sarath p