Application Development 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: 

How to make Label in selection screen?

arun_kumar72
Explorer
0 Kudos
7,598

Hi friends.. can anybody explain how to make labels in selection screens and how to split the selection screen vertically? plz.. Thanks in advance

3 REPLIES 3

former_member188685
Active Contributor
0 Kudos
793
PROGRAM ztest.

SELECTION-SCREEN BEGIN OF BLOCK b1.


SELECTION-SCREEN COMMENT /1(50) comm.
.
SELECTION-SCREEN ULINE.
SELECTION-SCREEN SKIP.

parameters: p_matnr type matnr.
SELECTION-SCREEN END OF BLOCK b1.

initialization.
comm ='Selection Screen'.

Check the above sample code. we can create lables using comment option.

Former Member
0 Kudos
793

hi,

try this:

selection-screen begin of block b1 with frame title text-000.

selection-screen begin of line.

selection-screen comment 2(10) text-001 .

selection-screen comment 15(10) text-002 .

selection-screen comment 40(10) text-003 .

parameters:checkbox as checkbox.

selection-screen end of line.

thanks

raji

venkat_o
Active Contributor
0 Kudos
793

Arun kumar, Check this program. you can put labels like this.

REPORT  ZVENKAT_TEST1.
SELECTION-SCREEN BEGIN OF BLOCK block.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(15) text1.
SELECTION-SCREEN POSITION 17.
PARAMETERS :p_pernr type pa0001-pernr.
SELECTION-SCREEN POSITION 26.
SELECTION-SCREEN COMMENT 27(30) text2.
SELECTION-SCREEN end OF LINE.
SELECTION-SCREEN end OF BLOCK block .

at SELECTION-SCREEN OUTPUT.
  text1 = 'Personal number'.
  SELECT SINGLE ename FROM pa0001 INTO text2 WHERE pernr = p_pernr.
Regards, Venkat.O