cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe form as attachment to user decision step

former_member201532
Participant
0 Kudos

Hi,

i need to add adobe form as attachement to user decision step in workflow.

1. i created activity step which call business object method with parameters workitem id

     i am using FM  SAP_WAPI_ATTACHMENT_ADD’  which will return attribute id

     i am passing that attribute with document id to 'ZSOFM'

        ZSOFM <-----------------------------------ZSOFM (Method to task)

      Bindings 'Attach_objects'  <------------- ZSOFM(Task to Workflow).


2. i created user decision step

    Bindings  'Attach_objects' --------------------> 'Attach_Objects'( Workflow to user decision task).

but when we execute first activity step in background i am not getting any PDF output .but when we  execute same method from class i can see pdf data is coming is it due to user name WF-Batch.


when i execute activity step in back ground which will have sy-uname as WF-Batch i am not getting any PDF output data.

please help how to solve .

Thanks,

Phani

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member185167
Active Contributor
0 Kudos

Hello,

Does WF-BATCH have SAP_NEW and SAP_ALL authorizations?

regards

Rick Bakker

former_member201532
Participant
0 Kudos

Hi Rick,

How to check Authorizations.

Thanks,

Phani

anjan_paul
Active Contributor
0 Kudos

Hi,

Contact basis or try SU01d

ronen_weisz
Active Contributor
0 Kudos

Let me give you an alternative option, instead of attaching the created PDF document, attach a link to which will call the PDF document, I usually create a z-object and in it's default method place the call to the display of the PDF.

This has 2 advantages: no space is needed on the server to store the document, and if changes where made in the document template the updated version is displayed.  

former_member201532
Participant
0 Kudos

Hi Ronen,

Can you please explain how to call dispaly method of PDF.

Thanks,

Phani

ronen_weisz
Active Contributor
0 Kudos
  • In transaction SWO1 create a z-object lets say zmyobjpdf (you might want to use it as a sub object of your standard object without delegation since they will probably have the same key).
  • create a method in that object calling the adobe form.
  • set it as the default method in the object header.
  • now create an instance of the zmyobjpdf in the workflow for example as an attribute of the original object) and transfer it to the decision task.
  • It will be displayed as an attached object pressing it will call the default method - your adobe form.

If your question was about how to create a function module to display the form see SAP Library - PDF-Based Forms

former_member201532
Participant
0 Kudos

Hi Ronen,

Can we display Adobe form as PDF form by following Above Process.

Because i need to display non interactive form as Attachment for user decsion.

Thanks,

phani

ronen_weisz
Active Contributor
0 Kudos

Here is an example for how to use the method I wrote:

You can use the same way do display a from (in the document there is a link to SAP help explaining how to call Adobe forms)