‎2009 Oct 26 7:14 AM
Hi,
I am using FM call function 'FILE_GET_NAME'
exporting
logical_filename = logical_filename
parameter_1 = program_name
parameter_2 = file_id_param
importing
file_name = physical_filename
exceptions
file_not_found = 1
others = 2.
for this I am trying to maintain dynamic values(field symbols) in Tcode FILE Logical file name definition , physical path as.
Physical file =<PARAM_1>.<PARAM_2>
But while saving it dumps, saying filed symbol assinment to substring is not allowed.
Physical path for the same is /<V=Z_DIR_MAIN>/<SYSID>/<V=Z_DIR_OUT>/<FILENAME>.<CLIENT>.<DATE><TIME>.
Regards
Mohinder Singh Chauhan
‎2009 Oct 26 2:21 PM
I think you should first concatenate field symbol contents to a filename / foldername before sending them to the function.
‎2009 Oct 26 2:21 PM
I think you should first concatenate field symbol contents to a filename / foldername before sending them to the function.
‎2009 Oct 27 7:14 AM
Hello Mohinder,
the better way to analyse these kind of things is by entering the function module in se37 and providing the required test data.
In your scenarion as you say its throwing a runtime dump related to field symbols better you concatenate the data param1 and param2 into a new variable and then pass that value into the function module.
Thanks,
M.Naveen kumar
‎2009 Nov 02 3:30 AM
Hi,
Thanks for the replies.
I got to know about one of th SAP note to be implemented for the same, Sap note 1297989 . That solved the issue.
Regards
Mohinder Singh Chauhan