2012 Jul 12 5:35 AM
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
2012 Jul 12 7:40 AM
2012 Jul 12 7:46 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |