Skip to Content
Author's profile photo Arnab Roy

Advanced Print Work-Bench, one more step towards the complex correspondence


Before I start this blog on the complex data structure and features of print work-bench to achieve the complex requirements of different correspondence, hope you enjoyed my previous blog

on basic features of Print work-bench.

The Requirements

Many a times we come across some requirements which demand to show some manipulated data into a different place (i.e. different text nodes along with some other data) from where they are fetched and manipulated (i.e. the text-exits)

The Solution

In these cases the text nodes are created and marked as inactive (to stop implicit calling for display) and that is called explicitly for display from another text node.

An Example

In the following example it is explained how an inactive (which is suppressed by SAP to be displayed) text node can be explicitly called and displayed.

Along with this, the basic technique of using during loop is explained.

Go To Transaction Code PWB.

Create an application form of form class IS_U_CS_MOVE_IN_WELCOME_LETTER

As displayed below

One installation can have multiple register; here we are displaying those register (logical register number) details.


To access this table from other part of the program we need to pass the values into some custom defined global internal table in ‘During Loop’

DATA: T_EQUIP TYPE TABLE OF V_EGER (Globally Defined, hence can be accessed from any where from the object)


We are creating one text node in the following node hierarchy, and making this text node as inactive (unccheck the check box as described below) and text exit for this node is not created. As the result the implicit calling of this exit during display will be suppressed. To display the output of this text node, we have to call it explicitly.



Create the display of the text node.

Give the following details.



Create a During Loop as explained.

(‘During exit’ is an exit that is created in the loop of standard data fill flow of PWB(generated function module), in the same manner we can create ‘Before Exit’ and ‘After Exit’ that is called before and after the loop of standard data fill flow of print work-bench (generated function module) respectively.





Append the work area into a global internal table, so that can be accessed from other part of object, also create work areas for the internal table GIT_LOGICNUM and T_EQUIP).


Declare the internal table in the PWB top include.



Create another text node with text exit (to call the inactive node) in the following hierarchy as displayed.

Create the Exit to write the code.

Write the following code in it.





Execute with data.

Two rows should come in the output of inactive node calling part, as two entries are there in the table where loop is executed.

Rate type data is not there in the table; hence it is blank in output.


Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Krishna K
      Krishna K

      Hello Arnab Roy,

      Good day !!!

      Thank you very much for this post , it is very help full . If you have time or possibility kindly provide one example on Smart form and Adobe forms too .


      Kind Regards,



      Author's profile photo Arnab Roy
      Arnab Roy
      Blog Post Author

      Sure Krishna.


      Thanks for reading and for the comments.


      Best Regards


      Author's profile photo Saquib Ahmad
      Saquib Ahmad

      Thanks, dear Arnab for sharing this crucial material one request to you dear, please share one smart forms base on PWB if it possible to you.

      Author's profile photo keerthisri chede
      keerthisri chede

      Hi Arnab,


      Thanks Arnab ,it's very useful blog.

      ZAdobe form is configured , Now the adobe form is printing in one language , I need my adobe form to print in 2 diff langues in one print out,ie one language output followed by other. Is there any way to use user exits to call adobe form 2 times and print only one pdf with 2 diff lanuages