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

Attachment in work flow

Former Member
0 Likes
431

Hi Experts,

I have a requirement like where i need to attach an AL11 file in to a workflow user decision. I think file on application server must be in .txt format so i am searching how to convert that Al11 file in to PDF format so that i can attach it in workflow or is there any other way aorund to achieve it ?

Please suggest me the ways to achieve this requirement.

Thanks in advance,

Deepak.

Hi Experts,

I have a requirement like where i need to attach an AL11 file in to a workflow user decision. I think file on application server must be in .txt format so i am searching how to convert that Al11 file in to PDF format so that i can attach it in workflow or is there any other way aorund to achieve it ?

Please suggest me the ways to achieve this requirement.

Thanks in advance,

Deepak.

1 REPLY 1
Read only

alex_campbell
Contributor
0 Likes
367

When you say "Attach it in Workflow" what functionality do you need tied to that attachment? Does the user need to download it at some point? Do they need to display it in SAP? Do they need to print it in SAP?

Assuming it is a .txt file, you could just load the file contents into a container field using READ DATASET, and then do whatever you need to do with it later on. If you need to print it, send the file contents to a spool. If the user needs to download it, use CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD to send the file contents to the presentation server.