‎2006 Nov 30 8:45 AM
hi,
I am using function FILE_GET_NAME to return me the physical path for the supplied Logical Path.
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
IMPORTING
FILE_NAME = FILE
Now the function returns a path /tmp/XXXXXXX in FILE,
But when i go and check in AL11 there is no such directory XXXXXXX in /tmp .
DO i need to do something else ??
‎2006 Nov 30 8:48 AM
hi
in AL11 check <b>dir_temp</b> directory.. u will get it
regards
aswin
mark if helpfull
‎2006 Nov 30 8:50 AM
‎2006 Nov 30 8:50 AM
Hi Anuj, Just check the physical file path that was defined in FILE Transaction for the logical file name " Monthly_sales_File'.I guess the path which u are getting after the FM should be changed there..
Regards,
Swaroop
‎2006 Nov 30 8:50 AM
HI Anuj,
Check for your file in the temporary directory ... i.e, where your file resides if you have not specified the path fully ..
Regards,
Santosh
‎2006 Nov 30 8:51 AM
Check the documentation of that function module , you can get something from there if ur missing something
‎2006 Nov 30 8:54 AM
please use t-code FILE to determine the logic path for that Logical file name 'MONTHLY_SALES_FILE'.
.
May be it will help you to draw some conclusion .
‎2006 Nov 30 8:54 AM
Hi,
once you or another has defined tho logical path with transaction FILE and has
set the physical path to /tmp/XXXXXXX. But you or the other person forgot to
make the directory XXXXXXX in tmp.
This will not done by FILE in default.
Regards
Bernd
‎2006 Nov 30 8:59 AM
@bernd
in FILE,
the physical path mentioned is /tmp/<FILENAME>
but FILE_GET_NAME is returning
the physical path as /tmp/XXXXXXXXX
‎2006 Nov 30 9:21 AM
Please use the FM
CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
EXPORTING
logical_path = 'MONTHLY_SALES_FILE'
file_name = l_file
IMPORTING
file_name_with_path = l_file.
Initialise your filename in the variable l_file.