cancel
Showing results for 
Search instead for 
Did you mean: 

Type Specification error in Dynamic Text

Former Member
0 Kudos

Hi Experts,

For displaying standard texts in Smartforms, I am using text type :Dynamic Include.

when i am giving the field name as &gvar1& and language as &gvar2& of specific types (TDOBNAME & TDSPRAS) it is throwing an error as :

"Type Specification TDSPRAS not allowed"

"Type Specification TDOBNAME not allowed".

I have my standard texts created in So10. Even if i use field name of type C also its throwing such kind of errors.

Could someone tell me what are the type specification that i use.

thanks

Dany

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi All,

DYNAMIC TEXTS in smart forms.

The title is slightly confusing, One will be under the assumption that the text name is passed dynamically at runtime so the smart form starts processing the text in the text name passed.

It is not so . USAGE: You can use this function to compile the text lines dynamically and pass it to the NODE Text you define on the smart form.

Settings:

Definition of TEXT variable anywhere in Interface or Global definitions.

Variable name : TEXT

Type assignment : TYPE

Associated tyep : TSFTEXT

In text node you need to have the following settings:

Text type : Dynamic Text

Field Name : &TEXT&

Language : EN

Program lines anywhere before the node is processed:

DATA : LS_LINE TYPE TLINE.

LS_LINE-TDFORMAT = '*'.

LS_LINE-TDLINE = 'LINE1'.

APPEND LS_LINE TO TEXT.

LS_LINE-TDFORMAT = '*'.

LS_LINE-TDLINE = 'LINE2'.

APPEND LS_LINE TO TEXT.

LS_LINE-TDFORMAT = '*'.

LS_LINE-TDLINE = 'LINE3'.

APPEND LS_LINE TO TEXT.

You will see the output generated:

LINE1

LINE2

LINE3

Hope the concept is clear.

Suresh Bapanapalli.

Former Member
0 Kudos

hi dan,

have pressed the button looks like<b> ">"</b> at the right side of the box which u have entered the &gvar1& and &gvar2& ..

if you do like this u r problem will be solved.

Please Close this thread.. when u r problem is solved

Reward if Helpful

Regards

Naresh Reddy K