09-07-2007 10:34 AM
Hi Experts!
My problem is this: I am currently using the fm 'DOWNLOAD' to save the my smartform output into PDF. However, I need to issue a message that the file was saved in the folder path that the user selected. This can be different from what I defaulted. Is there a way to retrieve this information?
Thanks in advance.
09-07-2007 10:39 AM
Whatever file path you are passing to this FM FILENAME parameter just extract the path from it by passing it to FM SO_SPLIT_FILE_AND_PATH and give that path to message.
Regards,
Amit
Reward all helpful replies.
09-07-2007 10:44 AM
Hi,
Try This:
Declare a variable of type LOCALFILE. and Get the the value of ACT_FILENAME parameter from the 'DOWNLOAD' func module.
Use the following code in after the 'DOWNLOAD' function module.
DATA: path type LOCALFILE.
Path = v_ACT_FILENAME.
If sy-subrc = 0.
Message path type 'I'.
endif.
Reward points if helpful answer.
Ashvender
09-07-2007 10:56 AM
Hi,
FM 'DOWNLOAD' has an exporting parameter called ACT_FILENAME.
Catch the parameter value as this might contain the file path along with the file name.
09-07-2007 11:04 AM
FM "DOWNLOAD" had FILENAME has import parameter.
Check the variable which you have passed to the Field "FILENAME".
Assuming that the variable is L_filename.
After DOWNLOAD FM, use following command:
MESSAGE l_filename type 'I'.