‎2008 Jun 04 7:59 AM
Hi all,,
Is there a provision to open a file using function modules.
for example.
I must run a program, which will help me to locate the file in the presenation server or pc.
the file may be a text or xls file.
i have to open the file and make changes to it.
is it possible.
please help..
thanks in advance
‎2008 Jun 04 8:07 AM
‎2008 Jun 04 8:09 AM
Hi,
Files can be located using function module for example "WS_FILENAME_GET" in presentation server an there are function modules which can be used to locate files in application server too.
But SAP-environment is not like microsoft-window so it has limitations.
You can read a file(example: *.txt & *.xls) but not in gui environment. for doing the same you have to adhere to a program which will display that data in desire sap output format.
I think this bit of explanation is sufficient for you to understand the sap functionalities.
Regards,
Satya
‎2008 Jun 04 8:24 AM
Hi Naveena David,
try coding like this.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = lw_file.
where lw_file contains ur full file name with path.
‎2008 Jun 04 8:29 AM
Hi,
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = lw_file.
where lw_file contains ur full file name with path. (For Example ings.txt)
Regards
SEK
‎2008 Jul 01 3:46 PM