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: 

How to get the segment detials of IDoc message type.

Former Member
0 Kudos
4,488

Dear Friends,

I want to write function module , which takes the IDOC message type as an input and returns all the segment fields in response.

Basically I want to get the XML schema of a IDOC message type and need to expose these details toa 3rd party application to use.

Dear experts ,Please do give me some ideas how to achieve this .

like tables from where i can get these details or u feel any other goos way of doing the same.

thx,

jeevan

6 REPLIES 6

Former Member
0 Kudos
683

Hello Jeeven

Firstly check the Basic type associated with your message type in Transaction WE82

Then check the segments corresponding to the basic type in WE30 which u will get in WE82

Then double click on the Segment and there is a button called Segment Editor there you can get all the details which u want related to fields

Regards

Hitesh

0 Kudos
683

Hai..Hitesh,

thx for the reply.

Yes i am going through that .I think even we 60 can also help me..

but i am not getting a clear idea on how could i get the data and even i get that could I be able to expose that in a RFC function module.

Because every time the structure will be different.

Please let me know abt this.

Regards,

jeevan

0 Kudos
683

Hello experts,

Please participate .........

To redefine my objective I will say:--

I am trying to do some thing very similar that is there in XI .

You might have seen the way IDOCs are shown while mapping an idoc structure.

Its like you select a message type and u get all the list of Idoc Structure shown .

I am really relying on you people.

thx ,

jeevan

Former Member
0 Kudos
683

Kumar,

Initially get the Idoc type associated with the Message type EDIMSG by passing the Message type.

Now refer the subroutine 'start_schema_docu' of the standard include MSEDIDOCUF01 to know the logic to create the XML schema.

Regards,

Kiran Bobbala

0 Kudos
683

Hi kiran,

Thx a lot or the reply.

Exactly i too i was think the same way .

Have you even came across segment_read function module .

Even that does a lot of work ,but if u pass the segment name.

So i am trying to know how to get th elist of all the segments of a particular message type.

thx,

jeevan

Former Member
0 Kudos
683

Thanks to all the participants for there valuable inputs.

I am planning to get the Idoc type from the EDIMSG table and the Segment from the message type.and then will use segment_read function module.

I am still in search of "how to find Segment list from the message type .

thx,

jeevan