on 08-03-2011 1:10 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.