2008 Aug 06 6:47 AM
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
2008 Aug 06 6:55 AM
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
2008 Aug 06 7:06 AM
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
2008 Aug 06 9:54 AM
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
2008 Aug 06 10:14 AM
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
2008 Aug 06 10:48 AM
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
2008 Aug 07 5:29 AM
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