2008 Jul 18 5:05 PM
Hey guys,
While writing the call function UPLOAD in BDC program if the text file has fields separated by a tab delimeter...
how should that be coded in the program?
Regards
2008 Jul 18 5:10 PM
If you are talking about GUI_UPLOAD function module, this has importing parameter HAS_FIELD_SEPARATOR, which you need pass as 'X' for tab delimited file.
HAS_FIELD_SEPARATOR = 'X'Thanks
Romit
Hey guys,
While writing the call function UPLOAD in BDC program if the text file has fields separated by a tab delimeter...
how should that be coded in the program?
Regards
2008 Jul 18 5:10 PM
If you are talking about GUI_UPLOAD function module, this has importing parameter HAS_FIELD_SEPARATOR, which you need pass as 'X' for tab delimited file.
HAS_FIELD_SEPARATOR = 'X'Thanks
Romit
2008 Jul 18 5:14 PM
You can define the tab as follows:
constants: c_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
And then after using the Upload,
you can split the contents of every line using
SPLIT int_table AT c_tab INTO
l_var1
l_var2...
cheers,
Sushil Joshi
2008 Jul 18 6:09 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |