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: 

conversion of idoc into xml without XI

Former Member
0 Kudos

Hi everyone

i am working on EDI i want to know procedure to convert our idoc into XML without using XI. is it possible, if yes then plz reply me with procedure.

Thanks & Regards

Vimarsh

1 ACCEPTED SOLUTION

mnicolai_77
Active Participant
0 Kudos

hi,

try to change the parameter FILETYPE from ASC to BIN

bye

4 REPLIES 4

mnicolai_77
Active Participant
0 Kudos

hi,

yes it's possible.

in transaction we21 you can define 2 different type of port who generate an xml from a IDoc.

The exchange of IDocs using XML files at the operating system level. The names of XML tags refer to the IDoc record types or IDoc segments

check this link and go to xml - e commerce

[http://help.sap.com/saphelp_nw2004s/helpdata/EN/dc/6b7f5643d711d1893e0000e8323c4f/frameset.htm]

0 Kudos

Hi Nicolai

Thanks for ur suggestion, i have one more doubt regarding this, i got this program to convert my records in XML but whatever output i m getting that comes in form of excell sheet, i am sending you that program which not working,

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:\externalfiles\kamal.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.

IF YOU HAVE ANY OTHER OPTION THEN PLEASE SEND ME, I WILL BE VERY THANKFUL FOR YOU.

PLEASE SEND ME WHOLE PROCEDURE IF YOU CAN.

THANKS & REGARDS

VIMARSH

mnicolai_77
Active Participant
0 Kudos

hi,

try to change the parameter FILETYPE from ASC to BIN

bye

Former Member