Technical Articles
Use of PDF Fragments in Outputs – Part 1
Introduction
With S/4 HANA platform SAP has provided new Output Management Architecture built on BRF+ with Fragmented Adobe Forms. This blog will focus more on how to use the Fragments effectively. Also how the SAP configuration can be used without change in SAP Output Forms (Fragment-based PDFs).
Purpose
New Form Technology does not have print programs like traditional forms but uses OData services to populate the information on the PDF Forms. Information on the end-to-end configuration is divided into multiple parts. Part 1 will cover the PDF-based forms with Fragment form technology (The Architecture).
What are Fragments?
Considering the reusability of templates, Adobe has developed Fragment-based PDF templates. These templates are divided into two parts, Master Form Template and Content Form Template.
Master Form Template |
|
A master form template is a separate form template (XDP file). It includes different layout definitions (fragments) for one or more master pages. The application form can reference only one at a time. These templates contain the placeholders for static texts, logos, and addresses Standard Templates in S/4 HANA: SAP provided two Master Templates based on the paper size · SOMU_FORM_MASTER_A4 – master form template for paper size A4 · SOMU_FORM_MASTER_LETTER – master form template for paper size Letter Each Master Template contains different Fragment designed for Page Layouts (landscape or portrait) and Layout Variant (fact sheet, item list or outbound letter). Fragments: · Landscape_Factsheet · Landscape_ItemList · Portrait_Factsheet · Portrait_ItemList · Portrait_OutboundLetter Each Fragment Layout contains placeholders for below items in Master Page (mst1) and Subsequent Page (mst2). · Header Information § Document Title (E.g. Purchase Order) § Logo § Page Number · Sender Address · Recipient Address · Footer Information
|
![]() |
These placeholders are configurable and the users can dynamically populate the required values based on the organization structure.
Configuration: Transaction Code SPRO
Cross-Application Components -> Output Control -> Define Rule for Determination of Master Form Template
Currently, SAP supports Org Structure like Company as the top level and Purchase Org, Plant or Sales Org as next level. Against each of the entry, users can be maintained the Sender Address or Footer information (SO10 Text) and Logo on the printout.
Content Form Template
This is PDF form which is used to show the data like header information, item information, Terms, and Conditions etc. In each content form, there is a place where Master temple is inserted. So in runtime master form template prints on the content form.
Conclusion
To summarize, with new output management is easy to deploy the change in standard forms. In next part, we will discuss more on how to modify the Master and Content Form templates.
Good introduction. Looking forward for next part(s).
Hi Pawan,
I was going through a blog of yours which you have published with title 'My Experiments with ABAP'.
I have few doubts regarding this FORM building, could you please help in sorting it out.
Am not able to figure out how we would be giving the reference of MASTER FORM when we are building CONTENT FORM. Say suppose I am building a Customized version of ZMM_PUR_PURCHASE_ORDER which would be a CONTENT Form, now in this how will I tell the system that for this CONTENT Form , this particular Master Page of a MASTER FORM should be picked.
And how I will make it sure that contents of MASTER FORM and CONTENT FORM never overlaps with each other, since both are Separate FORMS.
Am pretty new to this and really not able to find much content over internet. Your help would be really appreciable.
Thanks,
Sijin
Hi Mandar,
Is it possible to add mst3(another master page)?
Thanks,
Sireesha
Hi Sireesha,
Even if you add mst3, changing the reference in the Content Form to mst3 would not be that easy. You would need to get it done using XML View as of now.
https://answers.sap.com/questions/13029112/issue-while-referring-the-master-page-from-a-maste.html
Thanks,
Sijin
Hi ,
Can you please tell how we will merge both MASTER FORM and APPLICATION FORM while designing. I mean how we referring while designing APPLICATION FORM that this particular MASTER FORM we are going to use. Am really not able to understand how these two gets linked with each other. Would be very helpful if you could clarify on this.
In short am asking details about the below point you have mentioned in this blog.
If you could explain on this it would be very helpful.
Thanks,
Sijin
Hi Mandar Shete Sijin Chandran ,
Is it possible to add SO10 text in fragmented forms?
I tried with read_text but then I am not able to format it in the right way.
Thanks,
Vishal.
Hi,
If I remember correctly I used READ_TEXT only for such requirements.
Can you try making use of CL_ABAP_CHAR_UTILTIES for Formating purposes.
Thanks,
Sijin
Hi Vishal,
Please check that blog post.