Application Development and Automation 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: 
Read only

Smartform Include Text

Former Member
0 Likes
1,112

Hi,

In SAPScript, to write the long texts we have the command

INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE &EKKO-SPRAS& PARAGRAPH 'IT'

Similarly in Smartforms we use the INCLUDE Texts. But the problem is when I am using the INCLUDE Text in Smartform I am passing the TextName in Variable. It is not recognizing the variable.

Could anyone tell me how to use the INCLUDE Text in Smartform.

Regards,

Nitin

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
824

Hi

You have to define:

- a text node;

- use INCLUDE TEXT OPTION

- Insert your variables:

Text name &T166P-TXNAM&

Text Object &T166P-TDOBJECT&

Text ID &T166P-TDID&

Language &EKKO-SPRAS&

You have to use & just as in SAPSCRIPT

The structure T166P and EKKO have to be defined as global data in your smartform

Max

5 REPLIES 5
Read only

Former Member
0 Likes
824

Hello,

Check where exactly u are passing the text name to varible, try to check in debugging mode.

Regards

Read only

0 Likes
824

Hi,

I have checked the value is thier in Variable but the smartform is not recognizing the variable in Text Name field in Include text. If I am giving the value directly it is printing the text but when I try to pass the same value in a variablr it is not printing the text.

I hope thier must be some procedure to use the INCLUDE Text in Smartform.

I want to know how do we use the INCLUDE Text in Smartform to print the Text?

Regards,

Nitin

Read only

0 Likes
824

Hello,

Paste the code so that we can anylyze it.

Regards

Read only

Former Member
0 Likes
824

Hello Gupta,

You have to supply the TEXT NAME,TEXT OBJECT,TEXT ID and LANGUAGE and it will get the text on basis of these keys.

Regards,

Shehryar

Read only

Former Member
0 Likes
825

Hi

You have to define:

- a text node;

- use INCLUDE TEXT OPTION

- Insert your variables:

Text name &T166P-TXNAM&

Text Object &T166P-TDOBJECT&

Text ID &T166P-TDID&

Language &EKKO-SPRAS&

You have to use & just as in SAPSCRIPT

The structure T166P and EKKO have to be defined as global data in your smartform

Max