‎2007 Sep 12 5:08 AM
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
‎2007 Sep 12 5:11 AM
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
‎2007 Sep 12 5:11 AM
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
‎2007 Sep 12 5:12 AM
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
‎2007 Sep 12 5:12 AM
‎2007 Sep 12 5:17 AM
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.
‎2007 Sep 12 5:21 AM
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.
‎2007 Sep 12 5:26 AM
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.