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

get data in xstring format while uploading a file from PC to SAP

Dileep_Venugopa
Associate
Associate
0 Likes
2,022

Hi,

I have a requirement to get data in XSTRING format while uploading a file from my PC to SAP. I tried to use cl_gui_frontend_services=>gui_upload but somehow am not getting the data properly in this. I would be uploading multiple file types like excel, word, powerpoint and pdf.

If any of you have used something similar, please share the same.

Thanks in advance.

Regards,

Dileep

Hi,

I have a requirement to get data in XSTRING format while uploading a file from my PC to SAP. I tried to use cl_gui_frontend_services=>gui_upload but somehow am not getting the data properly in this. I would be uploading multiple file types like excel, word, powerpoint and pdf.

If any of you have used something similar, please share the same.

Thanks in advance.

Regards,

Dileep

2 REPLIES 2
Read only

Former Member
0 Likes
914

Hi,

Please refer the thread http://scn.sap.com/thread/1716533

Cheers

~Niranjan

Read only

0 Likes
914

Hi,

I referred to that tread, when I use File type = 'BIN' what type i should use for the "data_tab" .

they have used the following code

CREATE DATA gv_ref TYPE ty_data_tab_bin.

      ASSIGN gv_ref->* TO <gs_upload_wa>.

      CREATE DATA gv_tab TYPE TABLE OF ty_data_tab_bin.

      ASSIGN gv_tab->* TO <gs_upload_table>.

but he has not given the declaration of "ty_data_tab_bin". It should be of what type. I tried using table to type string but it dumps.

Regards,

Dileep