Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

upload file into application server

Hi ,

I created path in application server to upload data.

but path is not creating.

parameters: filename(128) default '/usr/tmp/testfile.dat'

lower case.

open dataset filename for output in text mode encoding default.

if sy-subrc ne 0.

write: 'File cannot be opened. '.

exit.

endif.

loop at gstring into wastr.

transfer wastr-fstring to filename.

endloop.

close dataset filename. " Closing the file

Thanks,

Asha

Tags:
Former Member
Former Member replied

What i understood from your question is...your open dataset returns sy-subrc as 4. If yes, declare parameters as below and try:

PARAMETERS: FILENAME TYPE PATHEXTERN

default '/usr/tmp/testfile.dat'

Thanks,

SKJ

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question