11-23-2008 10:23 AM
hi everyone,
i need to read local file in background,
wich function do i need to use?
thanks,
dana.
11-23-2008 10:28 AM
hi,
first of all you cannot read files present in presentation server in background.
you can save your files in application server and then read them.
check this.
[https://forums.sdn.sap.com/click.jspa?searchID=19041445&messageID=6426789]
11-24-2008 5:24 AM
if you are reading in background file needs to be on application server.
you can use following function modules.
CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE
MESSAGE MSG_TXT.
IF SY-SUBRC NE 0.
WRITE: 'Err', MSG_TXT.
EXIT.
ENDIF.
LOOP AT INT_TAB
*your code
ENDLOOP.
Closing the File
CLOSE DATASET FILENAME.
11-24-2008 5:54 AM
Hi dana,
Refer the following URL,
Hope this gives some inputs.
Thanks
Lakshman