09-29-2008 8:54 AM
Hi,
I have to upload data in a flat file from the internal table to the application server.I am trying to use the FM 'FILE_GET_NAME_USING_PATH' to get the phiysical file path for upload into the application server.The FM is giving an error that 'definition of path is missing'. I checked in FILE transaction, the logical path exists there.I don't know where I am going wrong.
Please help me understand the functionality of the FM nad how it works.
Thanks,
Sandeep.
09-29-2008 9:01 AM
Hi Sandeep Ram,
If you didn't have given values in 'PATH' table, then this error will occur.
Regards,
R.Nagarajan.
09-29-2008 9:11 AM
HI,
give the logical file path, file name,you will get physical file path in the importing pareameter.FILE_NAME_WITH_PATH
CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
EXPORTING
logical_path = logical_path
file_name = file_name
IMPORTING
FILE_NAME_WITH_PATH = FILE_NAME_WITH_PATH
EXCEPTIONS
PATH_NOT_FOUND = 1
MISSING_PARAMETER = 2
OPERATING_SYSTEM_NOT_FOUND = 3
FILE_SYSTEM_NOT_FOUND = 4
OTHERS = 5
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Edited by: venu gopal on Sep 29, 2008 10:12 AM
07-14-2009 11:10 AM