Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform,How to include a variable of a text into a text modul in SAP 4.6c

Former Member
0 Kudos

Hello friends,

i would like to include a text within a smartform into a text modul using a variable. The variable contains the name of a sapscript text (SO10-text).

I have already seen an example:

*INCLUDE &TVKO-TXNAM_ADR& OBJECT TEXT ID ADRS

But i can not edit this command. How can i include such kind of commands? There are a patter function available within transaction smartforms or something like this.

daniel

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

in smartforms Text element - > general attributes - > choose text type (text element / text module / include text )

*INCLUDE &TVKO-TXNAM_ADR& OBJECT TEXT ID ADRS

in your requirement choose include text

textname &TVKO-TXNAM_ADR&

textobject TEXT

text id ADRS

language EN

is this your problem or i understood somthing wrong

cheers,

sasi

4 REPLIES 4

Former Member
0 Kudos

hi,

in smartforms Text element - > general attributes - > choose text type (text element / text module / include text )

*INCLUDE &TVKO-TXNAM_ADR& OBJECT TEXT ID ADRS

in your requirement choose include text

textname &TVKO-TXNAM_ADR&

textobject TEXT

text id ADRS

language EN

is this your problem or i understood somthing wrong

cheers,

sasi

0 Kudos

Daniel,

Sassi hit the nail on the head. Just one point though, when you are passing variables into a Include Text Text Node, you must click on the little arrow button inthe Text Key box.

For example, let's say you want to pass a variable in the Text Name, you will put &TEXTNAME& into the field, but to the right of the field you will see a little "Arrow" button. If this "Arrow" button is pointing to the right, the SmartForm is expecting a hard coded value, if it is pointing to the left, you can pass in a variable. To make the arrow switch click on it. You will notice that the text field now expands up to the "Arrow" button and the drop down function is now gone.

Hope this helps.

Cheers,

Pat.

PS.Kindly assign Reward Points to the posts you find helpful.

Former Member
0 Kudos

Hello Daniel,

No commands can be used in text editor,

you can change the text type as "Include Text" instead

and can give the text name, text object and text id in that node, u no need to create a text module for this,

hope this solves..

have a nice day.

Former Member
0 Kudos

thx very helpful