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 XML

Former Member
0 Likes
1,198

hi,

I have this requirement to fetch data from the database table (EKKO, EKPO, etc.)

and download it to an IDOC XML file.

I have already gathered the data into an internal table but i have no idea how to create

an idoc file and download it to XML.

Please give me a site or a step by step procedure.

i would really appreciate your help.

thanks.

-

4 REPLIES 4
Read only

Former Member
0 Likes
670

search for call transformation in scn and google to convert internal tables to xml file

Thanks

Bala Duvvuri

Read only

Former Member
0 Likes
670

i need the XML output to be in IDOC XML format, here is the example

<?xml version="1.0"?>

<ORDERS01>

<IDOC BEGIN="1">

<EDI_DC40 SEGMENT="1">

<TABNAM>EDI_DC40</TABNAM>

<DIRECT>1</DIRECT>

<IDOCTYP>ORDERS01</IDOCTYP>

<MESTYP>ORDERS</MESTYP>

<SNDPOR>SAPEX3</SNDPOR>

<SNDPRT>LS</SNDPRT>

<SNDPRN>0011297603</SNDPRN>

<RCVPOR>SAPP82</RCVPOR>

<RCVPRT>LI</RCVPRT>

<RCVPFC>LF</RCVPFC>

<RCVPRN></RCVPRN>

<CREDAT>2003-09-15</CREDAT>

<CRETIM>12:39:13</CRETIM>

</EDI_DC40>

please help. thanks

Read only

0 Likes
670

check these fms

IDOC_XML_TRANSFORM or IDOC_XML_DISPLAY

Thanks

Bala Duvvuri

Read only

0 Likes
670

Hi,

Please follow below steps to store idocs in form of XML in application server.

TCode: SALE --> IDOC Interface / Application Link Enabling (SALE) --> Modeling and implementing Business Processes --> Master Data Distribution --> Replication of Master Data

ALE Configuration Steps:

1. Creation of logical system for the sender system.

2. Assignment of logical system to the client.

3. Create a logical system for the recipient

4. Creation of RFC destination (Connection type:TCP/IP).IN technical settings select activation type as application server.enter program as RFCEXEC.

5.Create an XML Port from the transaction WE21 (Port type: XML File).Here directory is the path on the application server.In the outbound trigger tab, mention the RFC destination created earlier.

6.Make an entry in the partner profile generated earlier for message type.In receiver port mention the xml port created in step

7.A background job need to be scheduled, for a periodic run (interval as required) for the program RBDMIDOC with the message type MATMAS.

8.Depending on the settings in the partner profiles, it may be necessary to send IDocs directly by executing the program RSEOUT00 (if the setting is to u201CCollect IDocsu201D).

An XML file would be created in the directory specified in the XML port.

Please revert for further Qs.

Thanks and Regards,

P.Bharadwaj

Edited by: Bharadwaj p on Jun 22, 2010 10:23 AM