cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the standard texts available in a smartforms

Former Member
0 Kudos

Hi Experts,

How can we find out the standard texts that are exist in a particular smartform . is there any table/function module available to get those standard texts? I am finding the table STXFTXT, from that I am getting only textline. But I need the standard text names that are used in a smartform.

Thanks & Regards,

Suresh

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Suresh

You can find the text names of text in table STXFOBJT .

Provide the below input :

Formname : z******

objtyp : TI

langu : E.

please try this and let me know.

Thanks

Hariharan

Former Member
0 Kudos

You will get all these details from XML file. But If you want to get these details at runtime, I dont think that any table exists with these details. One option is that you can read XML file using FM.

Former Member
0 Kudos

Hi Suresh,

Save your smartform as XML file and search for the words "READ_TEXT" and "<object>TEXT</OBJECT". It will show all standard texts used in the form through "READ_TEXT" FM as well as "include" option.

Hope this will help you.

Regards,

Shanly

Former Member
0 Kudos

Hi,

When you open a smartform in change mode you will find a button 'Field List on/off'', when you click on that you will see folders

with name System fields under this you can find all the smartforms systems fields like PAGE , FORMPAGES, DATE,TIME, PAGENAME etc. etc.

Regards,

Dep

Former Member
0 Kudos

hi,

1,Use SO10 Tcode to write standard text in Smartform.

2.For long text

method1

Create TEXT node- general attributes change text type to include text

then you can input text name/text object/text id/language

method2

create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table

then use LOOP or TABLE node to display it

For TEXT module(For foreign language)

Tr-code:smartforms -- choose Text module(not choose form)--create a text module object

then enter smartform Create TEXT node- general attributes change text type to text module

input the text module name which created by above

3.

1. take function module name of the smartform.

2. goto se37 and type that fm name.

3. goto attributes tab

4. double click on either program or include .

5. There u can find all the subroutines used inside smartform.

6. search for "perform %move using %textkey-name".

4.Standard Texts are created in SO10 Tcode and stored in STXH table with OBject ,ID and NAME parameters. We can use Read_Text FM to read the text.

check the tables STXH & STXL.

5.

How to CAll Standard Text in Smart Forms

In SFs you can insert the standard tests using the TEXT node. Create a TEXT NODE. Then in the GENERAL ATTRIBUTES of this TEXT node select INCLUDE TEXT in the TYPE option. Then you have to enter the text name, object , ID and language in the provided fields. Then if you dont want any error if there is no text in the corresponding text then CHECK the check box "No errors if no text available.

Former Member
0 Kudos

Hi,

But we need the object, ID and NAME for all the include texts in the smartform.

For that one we need one table which stores the include texts of the smartform

or FM which retrieves the text elements from the smartform.

Former Member
0 Kudos

Thank u Sridhar,

My problem was resolved...

Former Member
0 Kudos

Hi,

Below is an example to get standard text in smartforms:

First concantenate ekpo-ebeln and ekpo-ebelp and move it a variable and then give that variable as Text Name .

Refer Below Sample code:

concatenate wa_itpotab-ebeln wa_itpotab-ebelp
into v_text1.

So Text Name : &v_text1&

and rest same as you mentioned:

Text Object: EKPO

Text ID: F01

No error if no text exists: ticked

And input a text node like:

Type: Include Text

Start: new Line

Regards,

Dep