2012 Jul 14 10:22 AM
Dear all,
I have a list of files which are stored on the Application Server in a particular directory .
I was able to get the all the files using the function Module SUBST_GET_FILE_LIST but
is there any possibility to get the names of the report which were used to write the data.
with rgds
Ranjith Singh
2012 Jul 14 11:00 AM
How would you possibly expect this to work?
How should an OS - which is agnostic of ABAP, independent of ABAP at all (and can only be called from ABAP) - should be aware of which ABAP report generated its files?
You should inspect the program which writes the files and add the maintenance of a history there.
2012 Jul 14 12:03 PM
Hi Rudiger,
Thanx for the update. what u say right.
when i ran the standard report "RPR_ABAP_SOURCE_SCAN" and got a huge list which is impossible to get into each and find out the path.
Or is there any where we can a list of report (ofcourse with the Path) ,where in the data is being read ,Written into the directory.
2012 Jul 14 4:53 PM
Hi Ranjith Singh,
the file properties will give you owner's (creator's) name, date and time written. This may help you to find out details.
We used
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = 'LIST_DB2DUMP'
additional_parameters = l_path
operatingsystem = 'UNIX'
* TARGETSYSTEM = SY-HOST
* DESTINATION =
* STDOUT = 'X'
* STDERR = 'X'
* TERMINATIONWAIT = 'X'
* TRACE =
* IMPORTING
* STATUS =
* EXITCODE =
TABLES
exec_protocol = lt_btcxpm
which seems to work on all kind of operating systems.
Regards
Clemens
2012 Jul 14 5:52 PM
The creator of the file will be the single collective OS user used by the SAP installation (e.g. 'devadm'), if the file is created by SAP.