‎2008 Jul 19 5:54 PM
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.
‎2008 Jul 21 6:54 AM
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
‎2008 Jul 21 6:54 AM
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