Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

hiii

Former Member
0 Likes
1,053

Hi,

Wats the diff. b/w Selection Texts & Text Symbols.

Thanks,

Mohit.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,028

Selection text is used to provide TEXT to parameters and select options in selection screen

Text elements are basically used to show messages and other text in the screen/report

Reward points if useful

9 REPLIES 9
Read only

Former Member
0 Likes
1,029

Selection text is used to provide TEXT to parameters and select options in selection screen

Text elements are basically used to show messages and other text in the screen/report

Reward points if useful

Read only

sharadendu_agrawal
Active Participant
0 Likes
1,028

selection text is the text that appears on the selection screen wen u execute the report.

for examplr u declare SELECT-OPTIONS : s_saknr FOR ska1-saknr.

then u can write account number for s_saknr on the selection screen.

TExt symbols is the test that u generally want to show on messages screen. To prevent the code from hard coding we generally use the text symbols. it picks the corresponding text and displays on the appropriate screen.

for eg: MESSAGE e002 WITH text-e05 p_bukrs text-e06.

The above statemnet will give the error message having 2 texts and the company code p_bukrs.

reward if helpful

cheers

sharadendu

Read only

Former Member
0 Likes
1,028

Hi,

In the selection screen you can change the name of the field, title etc using selection texts. Go to text --> text elemets --> selection texts in the menu bar to set selection texts.

For more information, please check this link.

http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/960a0beb0711d194d100a0c94260a5/content.htm

Text symbols

A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.

/: DEFINE &COMP_NAME& = ‘University of Warwick’

/: DEFINE &WS_RATE& = &TAX_SUMM_C&

<b>Reward points if useful</b>

Regards

Ashu

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,028

Hi,

Selection TEXTS are text that you assign for your PARAMTERS or SELECT-OPTIONS.

WHere as Text symbols are the texts for Selection screen Blocks.

Or for messages you can use Text Symbols.

Also you can use text symbols for any kind of display on the UI which is language dependant.

Regards,

Sesh

Read only

Former Member
0 Likes
1,028

SELECTION-Texts: is used to give the text for selection screen variables.

if u have one parameter as p_vbeln then u can assign the text as SALES oRDER number in selection-text.

text-Symbols: is used to assign the text messages.

SELECTION-SCREEN begin of block b1 with frame title text-002.

if u want to assign the text for TEXT-002 as Enter the Contract number ...then u can do here.

message s000(zles) with text-001.

if u want to assign the text for TEXT-001 as Contract number is not valid...then u can do here.

Read only

Former Member
0 Likes
1,028

Hi Mohit,

Selection Texts are used for defining the paremeters and select-options.

Whatever u define in the selection text against the corresponding parameter

or select-option that will be reflected in your selection -screen

Wheres Text-symbols are used in the program to print any text u want.

Generally we dont use hardcoded comments in a program but use text-symbols..

Hope this clears ur doubt.

Regards,

Sapna

Read only

Former Member
0 Likes
1,028

We declare some fields on selection-screen like Parameters and Select-options

e.g.,

Select-options : s_kunnr for kna1-kunnr.

When you execute on the selection screen the field is as it displayed like S_KUNNR.

but if you wants that fields to be displayed as CUSTOMER Number

go to Attributes and maintain the selection text for that field as CUSTOMER NUMBER which will be displayed on the selection screen

Text symbols are language dependent pre-defined texts.

In SE38, you can create them, on the selection screen choose the text elements radio button and click modify.

Or inside the editor choose menu Goto - Text elements.

Give an alphabetic identifier and give the text, for example A01 - Apple

In the program source code you can address the text like this: TEXT-A01.

e.g.,

SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

SELECT-OPTIONS : s_devcl FOR tdevc-devclass.

SELECT-OPTIONS : s_objna FOR ybstpopt1-objna.

SELECTION-SCREEN : END OF BLOCK b1.

double click on the text-001 and enter the text.

Regards,

Pavan

Read only

Former Member
0 Likes
1,028

Hi,

Text symbols - These are used to display some text.

For e.g.: Error messages, heading for selection screen block.

Selection texts - These are automatically populated when you declare some selection screen variables.

For e.g.: Parameters, selection options.

We provide some user friendly field labels here.

Please check this links perhaps they may help.

http://help.sap.com/saphelp_ehs27b/helpdata/en/1e/401ad6ee3c11d1951d0000e8353423/content.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/960a0beb0711d194d100a0c94260a5/content.htm

Regards

Read only

Former Member
0 Likes
1,028

selection texts are used to give meaning ful names for the fields on selection screen

goto your program in display mode in se38

in menu gototext elementsselection texts

A text symbol is a named data object of the ABAP program. It always has the data type c. Its field length is that of the text in the text pool.

Text symbol belongs to the text elements of a program. Text elements allow you to create language-independent programs.

If u have any 'Hard coded' text in your program, then u need to create these Text Symbols..to make the TRANSLATION for that Hard coded Text, in the desired language,