Using Include Text (SO10) in adobe forms
Requirement is to display ‘n’ number of Include texts continuosly one after the other in Adobe forms.
Objective is to avoid usage of ‘READ_TEXT’ function module in Print Program/Driver Program and performing some loop endloop on the text recieved and collecting into a final internal table as this will lead to Formatting issues in the layout.
Have a table type with line type created as below.
In the Print Program, we have to collect the Include text details like TDOBJECT, TDNAME, TDID and TDSPRAS into the internal table which needs to be displayed in the layout. (i.e. this table type has to be included in the interface of the Adobe forms and dragged into the Context of Adobe form).
Now, to display a Include text in the layout we have create a ‘TEXT’ in the Context tab.
Step1: Right click on ‘DATA’ and create ‘TEXT’ from the context menu.
We will find a new ‘TEXT’ under ‘DATA’ node. Double click the ‘TEXT’ node and change the ‘Text Type’ from ‘Text Module’ to ‘Include Text’ and press ‘Enter’ on keyboard.
(Note: if we collect all the Text modules, then the table type and line type has to be of the type of the Text module type i.e. TDTXTNAME)
now, drag and drop the corresponding fields in the ‘DATA’ structure to ‘TEXT’ fields.
After all the fields are dragged, finally
Select the check box for ‘No error if the text not available’ if required and also mention the style details based on the requirement.
Now, on the layout tab, drag and drop the table IT_TEXT from ‘DATA VIEW’ from ‘Palette’ menu.
Once we drag the table onto the layout, we recieve a popup mentioning of the insufficient space. click on OK and continue.
As we have to display only the include text, Move to ‘Hierarchy’ tab from Palette menu and remove the OverflowLeader by selecting the row and hit ‘Delete’ button from keyboard.
Now, drag the field ‘TEXT’ which is at bottom in the ‘DATA’ of HIERARCHY tab to top position as below.
Now, select all the cells in the DATA structure and select ‘Merge’ from context menu.
All the cells will be merged in the name of ‘TEXT’. based on the requirement, adjust the width of the include text which needs to be filled.
Save, Activate and Test.
Any idea on how to substitute variables within SO10 text ?
It can be done through definition of a global variable (with the same name) in the interface, but this doesn't do the trick when the same text is needed several times with different values for the variable, like in a loop.