cancel
Showing results for 
Search instead for 
Did you mean: 

displaying long text in smartfroms

Former Member
0 Kudos

Hi,

I have a transaction wherein I need to display the longtext or Short text in a window in a smartform. If there is no entry in STXH table, i need to display the short text and if entry exists it should be displayed. Where can I code the sysubrc to check the return code from select on STXH and display the shorttext or longtext accordingly?

To display the longtext, I have created a text element and declared the text type as "Include text" and provided the Text key detials.

Also if short text is to be displayed, where is this to be coded?

Thanks In advance.

Vijay

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You can create the IF else condition in the Smartform, so befiore that one you check that text and make sure whether the text is there or not, if the text is there then if first one will be executed or else the second one will be executed but these both should be in If and Else conditoin

Regards

Sudheer

Former Member
0 Kudos

hi vijay,

u have created the short text as standard text right?

u r storing the STXM data in a varilbe right?

now create 2 text elements in smartform.. then in the 1st one give the short text.. standatrd ext, and --><b>CONDITION tab of this short text..textelement </b>

v_STXH = space

...by this it will print only the V_STXH(i.e. longtext ) is initial.

In the second text element print the long text..

if u have any problem let me know

Former Member
0 Kudos

hi,,

for creating the texts use SO10.

but if u wanna create the normal text use create_text.

ands in case if ur text exceeds 132 length characters then use long text fms

Message was edited by:

Durgaprasad Kare