Skip to Content

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

hi all, reading from application server

hi

Could anyone tell me how to read a file from application server.

following is my code,

PARAMETERS : p_server LIKE /sapdmc/lsofis-filename.

note: no FM is used to read file name.

open dataset p_server for input in text MODE.

if sy-subrc <> 0.

          • message e303(z03_sd) with text-013.

message e300 with text-013.

endif.

clear itb_buffer.

DO.

Read dataset p_server into itb_buffer .

if sy-subrc <> 0.

  • Message e302 with text-012.

message e300 with text-012.

else.

Append itb_buffer to itb_temp.

endif.

enddo.

close dataset p_server.

endif.

error is dataset_cant_open.

please can solve this problem as early as possible.

thanx

raj

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question