Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Help in FM 'FILE_GET_NAME_USING_PATH'.

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

Hi Sandeep Ram,

If you didn't have given values in 'PATH' table, then this error will occur.

Regards,

R.Nagarajan.

Former Member
0 Kudos

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

Former Member
0 Kudos

Done