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

text elements

Former Member
0 Likes
794

hai i defined a test elements in attributes option of a program how to use that element in my program san u pls tell with ex psl

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
772

hi pandu,

You might have given some numbers for the text elements while declaring.

You can use "text-textno" to use that in your report.

Regards,

Sheron

6 REPLIES 6
Read only

Former Member
0 Likes
773

hi pandu,

You might have given some numbers for the text elements while declaring.

You can use "text-textno" to use that in your report.

Regards,

Sheron

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
772

HI,

You need to write like this in your program

Suppose your text element ID is<b> 001</b>.

THen use it like this <b>text-001</b>.

You can also use like this 'Default text'(001). This will print default text if text element is not there in the logon language.

Regards,

Sesh

Read only

Former Member
0 Likes
772

wa_itab-text = text-001.

Message text-001 type 'I'.

Read only

Former Member
0 Likes
772

In <b>text-symbols:</b>

give SYM as 001

and TEXT as hello

in the program write the statement:

write text-001.

In case of 'Selection-Texts'

there are used in the select options in the scren.

Read only

Former Member
0 Likes
772

HI,

see this example.

REPORT ZBHTSTR.

TABLES:SSCRFIELDS.

SELECTION-SCREEN BEGIN OF SCREEN 2001 AS SUBSCREEN.

PARAMETERS:NAME(6) TYPE C DEFAULT 'BHARAT'.

SELECTION-SCREEN END OF SCREEN 2001.

SELECTION-SCREEN BEGIN OF SCREEN 2002 AS SUBSCREEN.

PARAMETERS:NUM(2) TYPE N DEFAULT 10.

SELECTION-SCREEN END OF SCREEN 2002.

SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 4 LINES.

SELECTION-SCREEN TAB (6) tabs1 USER-COMMAND ucomm1

DEFAULT SCREEN 2001.

SELECTION-SCREEN TAB (6) tabs2 USER-COMMAND ucomm2

DEFAULT SCREEN 2002.

SELECTION-SCREEN END OF BLOCK tabb1.

WRITE:/ NAME,NUM.

INITIALIZATION.

tabs1 = <b>TEXT-001.</b>

tabs2 = <b>TEXT-002</b>.

AT SELECTION-SCREEN.

CASE SSCRFIELDS-UCOMM.

WHEN 'UCOMM1'.

tabb1-prog = SY-CPROG.

tabb1-dynnr = 2001.

tabb1-activetab = 'TABLE1'.

WHEN 'UCOMM2'.

tabb1-prog = SY-CPROG.

tabb1-dynnr = 2002.

tabb1-activetab = 'TABLE2'.

ENDCASE.

rgds,

bharat.

Read only

Former Member
0 Likes
772

In case of <b>selection texts</b>, consider this example:

SELECTION-SCREEN BEGIN OF BLOCK b_main WITH FRAME TITLE text-001.
PARAMETERS: cb_disp AS CHECKBOX.
SELECTION-SCREEN END OF BLOCK b_main.

in the screen u will se it as cb_disp. but if u want a text to be displayed there, double click on cb_disp, it takes u to selection texts- where u can give a name for cb_disp as ' Display'.

save & activate the same.

In <b>LIST HEADINGS:</b>

GOTO -> TEXT ELEMENTS -> LIST HEADINGS.

Here you can write as many column headings as you want.

These are the various text elements.

Hope it was helpful.