cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Forms: How to display Standard Text dynamically?

Former Member
0 Kudos

Hello All,

Im new to Adobe Forms.

I have a requirement wherein depending on the condition either I have to display the corresponding Standard Text or no text!

Condtion A: Display all lines from Standard text Z100

Condition B: Display all lines from Standard text Z200

Condition C: nothing to be displayed

Standard Text Z100 and Z200 have 3 lines of address.

I tried it with creating a Text in the Context Area of the Form and changing the text type to "Include Text"

Then specifying the following:

Text Name: gs_thead-tdname

Text Object: gs_thead-tdobject

Text Id: gs_thead-tdid

Text Language: gs_thead-tdspras

wherein gs_thead is defined as a global data and in the Interface->Code Initialization I have my logic which checks for the condition and accordingly sets the value in gs_thead

During execution, if it is Condition C, then I get an error "Text object  not found"

I really dont want to create another standard text - Z100_200_BLANK - which will be just blank!

Is the above design correct?

If not, How should I go about designing the layout - how should I handle the 2 different address?

How should I handle the Standard Text dynamically?

Thanks

Rajeev

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Instead of using a text element in Context,

Just create a string Variable in Global data of your Interface.

Use READ_TEXT Function Module and get the text.

then loop the Text table and concatenate the text to the global variable.

Drag the Global variable to context put the condition on it as not INITIAL.

then place it on your form .

that's it.

Thanks.

Uma

Former Member
0 Kudos

Hi Uma,

Thanks for your reply

Instead of creating a global variable, I did this by creating a table on gt_lines in the layout

(Gt_lines is the itab used in FM READ_TEXT)

Thanks

Rajeev

Answers (0)