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

How to read the contentsof a file?

Former Member
0 Likes
450

I have some attachments uploaded into a transaction code - where in by clicking a button, a pop up will appear and I can attach a pdf or word or excel orany thing - but mostly we use pdf and word docs.

I am able to retrieve these attachments and store them in the local directory or amy mapped folder.

Now the task is to store these on the application server:

To achieve this, I used func mod SO_REPLI_DOCUMENT_READ, which gives the contents of the file in the internal table objcont - as a numbered format with the folder info also included.

Then I used OPEN DATASET to create a PDF file.

when I transfer the contents of the internal table objcont to the file, subrc is 0 but the file is empty.

Please advise how to achive this..

Thanks,

Ven

I have some attachments uploaded into a transaction code - where in by clicking a button, a pop up will appear and I can attach a pdf or word or excel orany thing - but mostly we use pdf and word docs.

I am able to retrieve these attachments and store them in the local directory or amy mapped folder.

Now the task is to store these on the application server:

To achieve this, I used func mod SO_REPLI_DOCUMENT_READ, which gives the contents of the file in the internal table objcont - as a numbered format with the folder info also included.

Then I used OPEN DATASET to create a PDF file.

when I transfer the contents of the internal table objcont to the file, subrc is 0 but the file is empty.

Please advise how to achive this..

Thanks,

Ven

1 REPLY 1
Read only

Former Member
0 Likes
415

solved on my own