2007 Mar 26 11:21 AM
hi i am trying to upload a file from application server to internal table and then use that internal tables for bdc. i have already done the coding for uploading a file from presentation server into an internal table. i just need to take the directory and file path as one parameter for which i have used the function:
F4_DXFILENAME_TOPRECURSION
and RFC_SYSTEM_INFO
can u guys plss tell me how to do this and how to test whether the file has been successfully uploaded from the application server.
POINTS PROMISED.
hi
http://www.howforge.com/how-to-read-data-from-application-server-to-internal-table-in-abap-4
if useful, reward
Sathish. R
2007 Mar 26 11:29 AM
hi,
u have to open the application server file for reading, and then read the file into an internal table
OPEN DATASET W_FILENAME FOR INPUT IN TEXT MODE ENCODING DEFAULT.
DO.
READ DATASET W_FILENAME INTO W_CSV.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
SPLIT W_CSV AT ',' INTO TABLE T_CSV.
ENDDO.
CLOSE DATASET W_FILENAME.
2007 Mar 26 11:35 AM
2007 Mar 26 11:37 AM
For uploading the file use GUI_UPLOAD in 4.6c WS_UPLOAD.
Regards,
Kumar.
2007 Mar 26 11:36 AM
Hi sushant,
Yes, as per sankar solution, we can do it throguh data set statements.
Hope this helps you, reply for queries, Shall post you the updates.
Regards.
Kumar. .
2007 Mar 26 11:47 AM
hi
http://www.howforge.com/how-to-read-data-from-application-server-to-internal-table-in-abap-4
if useful, reward
Sathish. R
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |