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

XML Files from Idoc

Former Member
0 Likes
562

Hi All,

pls can you help me

i need how will i get xml file from idoc

can you give me the steps to get it

thanks

mars

Hi All,

pls can you help me

i need how will i get xml file from idoc

can you give me the steps to get it

thanks

mars

3 REPLIES 3
Read only

Former Member
0 Likes
540

report zexternalfile .

tables : zzpublisher,

sscrfields.

data: it_publisher like standard table of zzpublisher,

wa_publisher like zzpublisher.

select * from zzpublisher into table it_publisher.

call function 'GUI_DOWNLOAD'

exporting

BIN_FILESIZE =

filename = 'C:externalfileskamal.XLS'

FILETYPE = 'ASC'

APPEND = ' '

write_field_separator = 'X'

HEADER = '00'

TRUNC_TRAILING_BLANKS = ' '

WRITE_LF = 'X'

COL_SELECT = ' '

COL_SELECT_MASK = ' '

DAT_MODE = ' '

IMPORTING

FILELENGTH =

tables

data_tab = it_publisher

EXCEPTIONS

FILE_WRITE_ERROR = 1

NO_BATCH = 2

GUI_REFUSE_FILETRANSFER = 3

INVALID_TYPE = 4

NO_AUTHORITY = 5

UNKNOWN_ERROR = 6

HEADER_NOT_ALLOWED = 7

SEPARATOR_NOT_ALLOWED = 8

FILESIZE_NOT_ALLOWED = 9

HEADER_TOO_LONG = 10

DP_ERROR_CREATE = 11

DP_ERROR_SEND = 12

DP_ERROR_WRITE = 13

UNKNOWN_DP_ERROR = 14

ACCESS_DENIED = 15

DP_OUT_OF_MEMORY = 16

DISK_FULL = 17

DP_TIMEOUT = 18

FILE_NOT_FOUND = 19

DATAPROVIDER_EXCEPTION = 20

CONTROL_FLUSH_ERROR = 21

OTHERS = 22

.

if sy-subrc 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

Pls go thru the following websites :

A Step-by-Step Guide on IDoc-to-File Using Business Service in the XI Integration Directory

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd...

How to convert an IDoc-XML structure to a flat file and vice-versa in XI 3.0

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1...

Introduction to IDoc-XI-File scenario and complete walk through for starters.

/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters

Reward points if found helpful....

Read only

0 Likes
540

Reward points..

Read only

Former Member
0 Likes
540

Hi Marreddy,

you need to use the XML port for converting IDOCs to XML format and all other steps remain as usual.

For more details, Please look at below URL: http://www.saptechnical.com/Tutorials/ALE/IDOCToXML/IDOCToXML.htm

Please let me know if u have any Queries .I hope so it will resolve ur probelm .

Rgds

Sree M