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

Storing XSTRING in ArchiveLink

Former Member
0 Likes
1,072

Hi,

I have a table in which I have a RAWSTRING field that contains uploaded binary files (scanned images).

I want to generate an ArchiveLink using this image to store it against a MIRO incoming invoice.

I know one way of doing this - saving the file to a directory on the application server and then using function module ARCHIVOBJECT_CREATE_SYNCHRON.

However, is there a cleaner way of doing this where I can pass the XSTRING directly to ArchiveLink without first having to create a file (which then requires writing clean up functions etc as well)?

Thanks!

Hi,

I have a table in which I have a RAWSTRING field that contains uploaded binary files (scanned images).

I want to generate an ArchiveLink using this image to store it against a MIRO incoming invoice.

I know one way of doing this - saving the file to a directory on the application server and then using function module ARCHIVOBJECT_CREATE_SYNCHRON.

However, is there a cleaner way of doing this where I can pass the XSTRING directly to ArchiveLink without first having to create a file (which then requires writing clean up functions etc as well)?

Thanks!

1 REPLY 1
Read only

Former Member
0 Likes
697

Hi,

I think there is no other way. You first need to write it to the file system (application server) and from there it will be written to Archive Directory.

You can just schedule a job to clean up the space once you have written it.

Regards,

Atish