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

File to server with tabulators

Former Member
0 Likes
419

Hi I'm trying to send a file to the server with tabulator between the file fields, but the server not accept hexadecimal values and i don't know how I can send the file with tabulators to the servr, can you help me please?

i'm doing this:

CONSTANTS: c_tab TYPE x VALUE '09'.

*******

types: begin of l_type_1,

nombre(120), "- Nombre / razón social

tab1(8),

nif type BPTAXNUM, "- NIF

tab2(8),

vkont type vkont_kk, "- Cuenta contrato

tab3(8),

cliente type BU_PARTNER, "- Nº de cliente

tab4(8),

provincia like ADRS_TAB-LINE, "- Provincia

end of l_type_1.

******

data: l_wa_fich1 type l_type_1,

l_t_fich1 type standard table of l_type_1.

*******

l_wa_fich1-tab1 = c_tab'.

l_wa_fich1-tab2 = c_tab'.

l_wa_fich1-tab3 = c_tab.

l_wa_fich1-tab4 = c_tab.

******

loop at l_t_fich1 into l_wa_fich1.

TRANSFER l_wa_fich1 TO p_fich1.

if sy-subrc = '0'.

l_mess1 = 'X'.

endif.

endloop.

Hi I'm trying to send a file to the server with tabulator between the file fields, but the server not accept hexadecimal values and i don't know how I can send the file with tabulators to the servr, can you help me please?

i'm doing this:

CONSTANTS: c_tab TYPE x VALUE '09'.

*******

types: begin of l_type_1,

nombre(120), "- Nombre / razón social

tab1(8),

nif type BPTAXNUM, "- NIF

tab2(8),

vkont type vkont_kk, "- Cuenta contrato

tab3(8),

cliente type BU_PARTNER, "- Nº de cliente

tab4(8),

provincia like ADRS_TAB-LINE, "- Provincia

end of l_type_1.

******

data: l_wa_fich1 type l_type_1,

l_t_fich1 type standard table of l_type_1.

*******

l_wa_fich1-tab1 = c_tab'.

l_wa_fich1-tab2 = c_tab'.

l_wa_fich1-tab3 = c_tab.

l_wa_fich1-tab4 = c_tab.

******

loop at l_t_fich1 into l_wa_fich1.

TRANSFER l_wa_fich1 TO p_fich1.

if sy-subrc = '0'.

l_mess1 = 'X'.

endif.

endloop.

1 REPLY 1
Read only

AlessandroSpadoni
Contributor
0 Likes
392

Hi Heliosgl

try to use attribute

CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB

Check the utility class attributes CL_ABAP_CHAR_UTILITIES from SE24

Edited by: alessandro spadoni on Apr 18, 2011 12:28 PM