cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic SAPscript text in SmartForm

Former Member
0 Kudos

Hi

I want to create a SmartForm which has to show several (long) texts. These texts are created via SAVE_TEXT from an application. When I create a text node of type include-text, I have to enter a static text key.

Is it possible, and if so how, to set the text key of an Include-text text node on the form dynamically from an input parameter?

TIA

Guido Weber

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Refer to the sample, its for fetching Tax Detail Header Text ..The following things are to be maintained.

Text Name &XEKKO-EBELN&

Text Object EKKO

Text ID K19

Language EN

When you are saving the text using save text FM one key must be generated... Pass the same key in text Name.

You will get the result.

Award Points If Useful

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks to both of you. That was too simple to figure out on my own

Guido

Former Member
0 Kudos

Hi

U need to create a variable in your smartform where it'll store the name of the standard text to be printed, and then replace the name of the standard text with that variable in the node.

When u insert the variable, it's be written beetween &:

&VAR&

Max