ERPClimb logoERPClimb
Adobe Forms
ABAP Developmentintermediate 7 min read

Adobe Forms Part 6: Tables, Subforms and Repeating Item Data

Preview · a free account unlocks the full lesson

Key takeaway

Print item tables in Adobe Forms: table objects bound to DATA[ ], header rows repeating on each page, flowed parent subforms, page breaks, keeping rows together, group headers and subtotals prepared in ABAP, empty-table handling and common table rendering problems.

In this lessonShow sections

Visual overview

Adobe Forms Part 6: Tables, Subforms and Repeating Item Data — learning sheetFlow: Build the item table with repeating rows and overflow headers → Test with 3 and with 80 items → Add a subtotal row type prepared in ABAP (code example). Key ideas: TABLE OBJECT; FLOW AND PAGE BREAKS; GROUPING AND SUBTOTALS; EMPTY TABLES. Watch out: Subtotals and grouping are easier and safer when prepared in ABAP (extra rows or group tables) than with complex layout scripts.ERPClimb.com / ABAP / LESSON 6/10 / LEARNING SHEETAdobe Forms Part 6: Tables, Subforms and Repeating ItemData1 · HOW IT FLOWS1Build the item table withrepeating rows andoverflow headers2Test with 3 and with 80items3Add a subtotal row typeprepared in ABAP (codeexample)2 · KEY IDEAS EXPLAINEDTable ObjectInsert Table (LiveCycle Designer) or drag thetable node from Data View.Header row: column titles; body row: fields boundto NETWR, ARKTX etc. relative to the row binding.Flow And Page BreaksBody page subform: flowed; table's parentsubforms: flowed.Object → Pagination: "Include header row ininitial and overflow pages".Grouping And SubtotalsOption A (recommended): driver builds a table withrow types (item, subtotal, group header) and afield indicating the type; layout uses presence…Option B: nested tables (groups containing items)— context has a group table with an itemsub-table.Empty TablesCondition in context (table not empty) or a hiddensubform with "no items" text.3 · REMEMBER · WATCH OUTRememberA table row is bound to $.IT_ITEMS.DATA[*] with "Repeat row foreach data item" — one row per internal table line.The table and all its parent subforms must be flowed, and page breaksallowed, for tables to continue on the next page.Header rows can repeat on each page ("Include header row insubsequent pages").!Watch outSubtotals and grouping are easierand safer when prepared in ABAP(extra rows or group tables) thanwith complex layout scripts.4 · IN A REAL PROJECTA 25-page statement form printed column headers only on page 1 and calculated subtotals in JavaScript thatgave wrong results when groups crossed pages. The team enabled overflow header rows and moved subtotalcalculation into ABAP as special row types. Results were correct on every page, and the JavaScript was…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Part 5 covered passing item tables into an Adobe Form. This part covers rendering them correctly, including across several pages.

A table object in LiveCycle Designer is inserted with Insert Table, or by dragging the table node from the Data View. Its header row holds the column titles, while its body row has fields bound to values such as NETWR or ARKTX, relative to the row's own binding. That row binding is set to $.IT_ITEMS.DATA[*], with the option "Repeat row for each data item" turned on. A table row is bound to $.IT_ITEMS.DATA[*] with "Repeat row for each data item" — one row per internal table line.

For a table to continue properly onto a following page, both the body page subform and all the table's parent subforms need to be set to flowed. The table and all its parent subforms must be flowed, and page breaks allowed, for tables to continue on the next page.

Under Object → Pagination, turning on "Include header row in initial and overflow pages" makes the header row repeat on every page — header rows can repeat on each page via this "Include header row in subsequent pages" setting. For rows that must not be split across a page boundary, turn off the row property "Allow page breaks within content".

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.