Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Re: Upload image into ztable from web dynpro

$
0
0

Hi,

 

Thanks for the clear explanation of your requirement.

But, you are more thinking on how to convert RAWSTRING data into pdf.

 

I would think the below explanation would give you a way ahead in the solution.

 

Step1: Uploading files

 

Whenever users A,B,C uploads files into Ztable, you are going to save the content into  FILE_DATA and file type into FILE_TYPE fields as below.

table3.PNG

 

Now, you may add user name into table to show user details of who uploaded files to the user D.

 

 

Step2: Downloading files

 

When user D wants to download files, then you need to create a separate report which fetches all the files from Ztable and show in a table in WD.

The table should have the file download ui element and bind the properties DATA and MIME_TYPE as shown in document - part 2.

 

Please change the logic of fetching files in method WDDOINIT( ) as below

 

  SELECT *

    INTO TABLE lt_data

    FROM ytr_attach_files.


    WHERE uname = sy-uname.

 

Now, all the files will be fetched from table and shown to user D.

 

Hope this helps you.

 

Regards,

Rama


Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>