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

Run time error while saving values in File (Tcode)

Former Member
0 Likes
585

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
540

I think you should first concatenate field symbol contents to a filename / foldername before sending them to the function.

3 REPLIES 3
Read only

Former Member
0 Likes
541

I think you should first concatenate field symbol contents to a filename / foldername before sending them to the function.

Read only

Former Member
0 Likes
540

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

Read only

Former Member
0 Likes
540

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