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

BDC tab delimeter

Former Member
0 Likes
632

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
564

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

3 REPLIES 3
Read only

Former Member
0 Likes
565

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

Read only

Former Member
0 Likes
564

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

Read only

Former Member
0 Likes
564

Hi,

*Has_field_separator = 'X'*   " for specifying that in the file field values separated by TAB space

[Sample code|;

Regards

Narin Nandivada