cancel
Showing results for 
Search instead for 
Did you mean: 

Generate PDF Form binary with script in SDK

marionm_evernex
Explorer
0 Kudos
119

Hello SAP Community,

 

In SAP Cloud Applications Studio, I am trying to generate a pdf form with this function:

var formTemplateCode : OutputRequestFormTemplateCode;
formTemplateCode.content = "ME_08";
var formTemplateLanguage = "E";
var binary :BinaryObject;

binary = OutputManagementUtilities.GetPDF(this, formTemplateCode, formTemplateLanguage);

The code is in the Root-AfterModify.absl of an OutboundDelivery business object extension and I am trying to generate a Delivery Note form.

When testing with debug, we are going through those lines but the result of "binary" always is empty.

I have read the documentation of "OutputDocumentUtilities" and it seems to be usable in the SDK for SAP ByDesign.

 

Do someone has any ideas of hat can be the problem here?

 

Thank you for your help,

Marion Marolany

 

View Entire Topic
marionm_evernex
Explorer
0 Kudos

Hello,

It seems to work with a custom form, so it is okay now.

 

This function doesn't work with standard forms or is it fossible that I didn't get the right formTemplateCode ? If so, where can I find it ?

 

Thank you,

Marion