on 01-25-2007 6:55 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.