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

# in application server file.

Former Member
0 Likes
489

I have uploaded a tab delimited file from application server to internal table,but '#' is coming in place of tab in internal table.

To remove that I have used this method

CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB

SPLIT record AT CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB

INTO table or fields.

This works but in my int table there are some currency fields,so I am getting a syntax error for this currency fields saying it should be of type c,n,d,t,x.

Can anybody please tell me how to handle it.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
436

Hi,

Use this FM DX_FILE_READ for read the file from application server to ITAB of the program.

FILENAME = Application server file pat name

SERVER = sever name "f More than one application server.

Fm - PC = Y.

Loop the itab.

REPLACE ALL OCCURRENCES OF '#' IN:

itab WITH ' ' .

endloop.

Use this FM to delete file from application server

DX_FILE_DELETE

After Delete Again Create file to application server or Download to presentation server.

Create file to application server ---> Use FM DX_FILE_WRITE

Download to presentation server --> Use FM GUI_DOWNLOAD.

Note :

If PC = 'X' means --> upload the file from presentation server

Else Space or Others Read teh file from application server.

If u want application server name Goto SM51 t-code there u

can find the all application server names.

OR

In any SAP Access click System->Status> Here u can find

the server name( Host Data - Seccion).

Reward if usefull.

Thanks,

Durai.V

1 REPLY 1
Read only

Former Member
0 Likes
437

Hi,

Use this FM DX_FILE_READ for read the file from application server to ITAB of the program.

FILENAME = Application server file pat name

SERVER = sever name "f More than one application server.

Fm - PC = Y.

Loop the itab.

REPLACE ALL OCCURRENCES OF '#' IN:

itab WITH ' ' .

endloop.

Use this FM to delete file from application server

DX_FILE_DELETE

After Delete Again Create file to application server or Download to presentation server.

Create file to application server ---> Use FM DX_FILE_WRITE

Download to presentation server --> Use FM GUI_DOWNLOAD.

Note :

If PC = 'X' means --> upload the file from presentation server

Else Space or Others Read teh file from application server.

If u want application server name Goto SM51 t-code there u

can find the all application server names.

OR

In any SAP Access click System->Status> Here u can find

the server name( Host Data - Seccion).

Reward if usefull.

Thanks,

Durai.V