Application Development and Automation 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: 
Read only

PDF Filename

Former Member
0 Likes
341

Hi Gurus!

I have uploaded file through archivelink. It generates an object id automatically.

May i know how can i get filename? like

a.pdf i am uploading , i want to retrieve 'a' (name).

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
309

Hi,

I think you need to run the FTP command FM..

CALL FUNCTION 'FTP_COMMAND'

Pass the command the directiory path for the arcive in command parameter..

you get the result in data table parameter..

Now looping on the result table you search for the '.pdf'

if sy-subrc = 0.

move that offset into an internal table.

now you can get the file name into your work area..

Hope am not wrong with your question..

reward if useful

regards,

nazeer

1 REPLY 1
Read only

Former Member
0 Likes
310

Hi,

I think you need to run the FTP command FM..

CALL FUNCTION 'FTP_COMMAND'

Pass the command the directiory path for the arcive in command parameter..

you get the result in data table parameter..

Now looping on the result table you search for the '.pdf'

if sy-subrc = 0.

move that offset into an internal table.

now you can get the file name into your work area..

Hope am not wrong with your question..

reward if useful

regards,

nazeer