Skip to Content
0
Former Member
Jul 02, 2009 at 10:45 AM

How to read data from an Idoc manually?

296 Views

Hi Friends,

Data are getting transferred from source system to my system via XI using proxy. That means, proxy will be generated in my system such as ECC. I want to write some code in the proxy so that i get the data into a custom table which will have the structure of an Idoc structure.

The basic idoc we are using is CLFMAS02.

<E1OCLFM>

<DOCNUM></DOCNUM> <----


IDOC#

<MSGFN></MSGFN> <----


Message function for EIOCLFM (Operation)

<OBJEK></OBJEK> <----


Material#

<E1AUSPM> <---Repeating structure

<MSGFN></MSGFN> <----


Message function (Operation)

<ATNAM></ATNAM> <----


Attribute name

<ATWRT></ATWRT> <----


Attribute Value

</E1AUSPM>

</E1OCLFM>

</IDOC_DATA>

Can any one let me know how can i get the data from an idoc into my a custom table??

Each material (OBJEK) will have many characteristic names, so why, the segment E1AUSPM we are considering as a repeating structure.

Please provide me the complete steps to read data from an idoc into a custom table.

Thanks,

Shamim