cancel
Showing results for 
Search instead for 
Did you mean: 

GUI_UPLOAD vs WSUPLOAD

Former Member
0 Kudos

Hi all,

I'm trying to upload an xml file with GUI_UPLOAD but the result is that the function upload it in a single line.

I've tryied to do the same thing using WS_UPLOAD and it works fine.

Since that WS_UPLOAD is obsolete I want to know how to make GUI_UPLOAD works the same way.

thanks,

Stefano

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

here you have some pointers

<a href="https://forums.sdn.sap.com/click.jspa?searchID=5767191&messageID=2964324">https://forums.sdn.sap.com/click.jspa?searchID=5767191&messageID=2964324</a>

<a href="https://forums.sdn.sap.com/click.jspa?searchID=5767191&messageID=692144">https://forums.sdn.sap.com/click.jspa?searchID=5767191&messageID=692144</a>

grtz,

Koen

Former Member
0 Kudos

Hi and thanks for the reply.

I understand the need of use GUI_UPLOAD instead of WS_UPLOAD but my problem is that GUI_UPLOAD doesn't recognize the carriage return char in my xml while WS_UPLOAD does.

So the questions are:

- why GUI_UPLOAD doesn't recognize the CR char?

- how can I solve this without using WS_UPLOAD?

Thank you again

Stefano

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

These are the import parameters of the function module ws_upload

FILENAME

FILETYPE

HEADLEN

LINE_EXIT

TRUNCLEN

USER_FORM

USER_PROG

DAT_D_FORMAT

These are the import parameters of the function module gui_upload

FILENAME

FILETYPE

WS-upload is obsolete with respect to 4.7 version.

But if you just look at the import paprametres of ws_upload then you cna notice that except filetype headlen dat_d_format other are used for internal purpaose of the SAP.

Try to use GUI_uplaod all the times it is easy to fo,

Specify your tabs in the flat file correctly,

Regards

Sudheer