Skip to Content

SAP COMMUNITY NETWORK scn.sap.com

© 2012 SAP AG 1

To display dynamic header text and footer text in Adobe page breaks

Applies to:

Adobe Print forms designer version 8.0 in ECC6

For more information, visit the ABAP homepage.

Summary

This tutorial explains step-by-step process to display dynamic header text and footer text in page breaks using referenced objects (Overflow header & Overflow trailer).

Author(s): Deepthi Mineni

Company: IBM India Pvt. Ltd.

Created on: 5th Sep 2012

Author Bio

Deepthi Mineni is a Senior Systems Engineer currently working with IBM India Pvt. Ltd. She is having hands on experience in Adobe Forms.

To display dynamic header text and footer text in Adobe page breaks

SAP COMMUNITY NETWORK scn.sap.com

© 2012 SAP AG 2

Table of Contents

Creating Interface ……………………………………………………………………………………………………………………………. 3

Create Form ……………………………………………………………………………………………………………………………………. 4

Process ………………………………………………………………………………………………………………………………………. 6

Related Content …………………………………………………………………………………………………………………………….. 17

Copyright………………………………………………………………………………………………………………………………………. 18

To display dynamic header text and footer text in Adobe page breaks

SAP COMMUNITY NETWORK scn.sap.com

© 2012 SAP AG 3

Creating Interface

Go to transaction SFP and create Adobe Interface ZADOBE_SALES_DETAILS_INT.

Upload1.JPG

Click on create button give description.

Upload2.JPG

Then press enter.

Go to types tab and create type for VBAP.

TYPES: BEGIN OF TY_VBAP,

VBELN TYPE VBELN_VA,

POSNR TYPE POSNR_VA,

ERDAT TYPE ERDAT,

ERNAM TYPE ERNAM,

MATNR TYPE MATNR,

PSTYV TYPE PSTYV,

KWMENG TYPE KWMENG,

END OF TY_VBAP.

upload3.JPG

upload4.JPG

In Code Initialization write the following code to populate sales order details

upload4.JPG

Save and activate Interface.

Create Form

Go to transaction code SFP and Create Form ZADOBE_SALES_DETAILS_FORM

upload6.JPG

Click on Create

upload7.JPG

Press Save.

Go to context tab and drag table from Interface to Context.

upload8.JPG

Process

Go to layout tab -> Drag table from data view palette to layout.

1.JPG

Add subform „Head‟ above to Data subform and drag text field enter text “Item Continued”

2.JPG

Place cursor in middle of text “Item Continued” and go to insert -> floating field

3.JPG

In hierarchy palette order of subforms should be Head->data->Textfield

4.JPG

Now drag subform „Head‟ from table IT_VBAP to referenced objects as below.

1.JPG

Now „Head‟ is dragged to „Referenced objects‟.

2.JPG

Go to palettes -> object -> binding tab for „Head‟ subform and bind IT_VBAP

3.JPG

For DATA subform in „Head‟ bind DATA[*]

4.JPG

For field POSNR in „Head‟ bind POSNR

5.JPG

Sameway create one more sub form „Footer‟ after DATA subform in table IT_VBAP and drag text field enter text “Order Continued”

6.JPG

Place cursor in middle of text after “Order” and go to insert -> floating field

7.JPG

In hierarchy palette order of subforms should be footer->data->Textfield.

Now drag subform Footer from table to referenced objects. After „Footer‟ drag, hierarchy order will be as below.

8.JPG

Go to palette ->object-> binding tab for „Footer‟ subform bind IT_VBAP

9.JPG

For DATA subform in „Footer‟ bind DATA[*]

10.JPG

For field VBELN in „Footer‟ bind VBELN

11.JPG

Change Design view properties to flow content and direction should be “Top to Bottom” for design view..

12.JPG

Change IT_VBAP subform content to “Flowed” Flow direction should be “Top to Bottom”. Same way change DATA subform in IT_VBAP content to “flowed” and direction to “Western Text”

13.JPG

For DATA subform in IT_VBAP, on Object palette pagination tab give overflow leader as “Head” and overflow trailer as “Footer” as below

14.JPG

Now activate and execute form.

1.JPG

Below is the output. Middle of order number 7 break occurred. So before page break it is showing “Order 7 Continued” (Footer text), in next page it is showing “Item 000010 Continued” (Head Text)

Sample page in output:

2.JPG

Sample page in output:

3.JPG

Related Content

For more information, visit the ABAP homepage.

PDF-Based Print Forms (SAP Help)

Copyright

© Copyright 2012 SAP AG. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.

Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.

Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.

IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.

Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.

Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries.

Oracle is a registered trademark of Oracle Corporation.

UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.

Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc.

HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology.

Java is a registered trademark of Oracle Corporation.

JavaScript is a registered trademark of Oracle Corporation, used under license for technology invented and implemented by Netscape.

SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.

Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company.

All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (“SAP Group”) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

  1. Raghavendra Prabhu Mithal

    Hi Deepthi..very informational blog especially for people working on adobe forms. Can you please let me know what is the use of dropping the field in referenced objects and what does this referenced objects mean, cant this not be achieved without dropping them in referenced objects.

    Thanks

    (0) 

Leave a Reply