Quantcast
Channel: SCN : Popular Discussions - SAP Cloud Applications Studio
Viewing all articles
Browse latest Browse all 1333

PDF creation in ABSL coding

$
0
0

Hi,

 

I would like to generate a PDF from ABSL coding as it is described in the Solution Library. However, instead if using a temlate that is part of my solution I would like to create the PDF from a standard template (e.g., Purchase Order). The challenge here is to find out the template code to use. So far I was only able to identify the data type OutputRequestFormTemplateCode (see Repository explorer) that seems to fit. But using this result in an "empty" output.

 

This is the code how I use it in my solution. According to the Repository Explorer the code "S1001" is the code for the purchase order template. The code is called within PurchaseOrder-Root-AfterModify, so this refers to purchase order root.

var FormTemplateLanguage = "E";

var PDF : BinaryObject;

var FormTemplateCode : OutputRequestFormTemplateCode;

FormTemplateCode.content = "S1001"; //OutputRequestFormTemplateCode

PDF = OutputManagementUtilities.GetPDF(this,FormTemplateCode,FormTemplateLanguage);

 

In the example the variable PDF never contains any content.

 

Any help is appreciated!

 

Cheers,

Daniel


Viewing all articles
Browse latest Browse all 1333

Trending Articles



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