Skip to Content
author's profile photo Former Member
Former Member

How to display the checkbox horizontally

Hi,

I am a newbie, could anyone tell me how to arrange the checkbox horizontally, in selection screen.

Advance Thanks,

Regards

Guhapriyan(A)Dinesh

*----


.

*EMPLOYEE DETAILS.

*----


.

REPORT ygp_ex01 NO STANDARD PAGE HEADING .

*SELECTION-SCREEN BEGIN OF SCREEN 2000 AS WINDOW.

*----


.

SELECTION-SCREEN BEGIN OF BLOCK RAD1 WITH FRAME TITLE FstScrn.

PARAMETERS name(30) TYPE c .

PARAMETERS dob LIKE sy-datum.

  • START-OF-SELECTION.

PARAMETERS : male RADIOBUTTON GROUP g1 , female RADIOBUTTON GROUP g1 DEFAULT 'X'.

SELECTION-SCREEN END OF BLOCK RAD1.

*----


.

SELECTION-SCREEN BEGIN OF BLOCK RAD2 WITH FRAME TITLE SCRN.

PARAMETERS email(40) TYPE c.

PARAMETERS phone TYPE i.

PARAMETERS age type i .

parameter : single radiobutton group ms ,

married radiobutton group ms,

divorced radiobutton group ms.

parameter : Nation(20) type c.

parameter : motrtng(30) type c.

parameter : language(30) type c.

SELECTION-SCREEN END OF BLOCK RAD2.

*----


.

SELECTION-SCREEN BEGIN OF BLOCK RAD3 WITH FRAME TITLE SCRN1.

parameter : cricket as checkbox, Hockey as checkbox,FootBall as checkbox,Other as checkbox,others(20) type c.

parameter: strength(20) type c.

parameter: weekness(30) type c.

SELECTION-SCREEN END OF BLOCK RAD3.

*----


.

  • SELECTION-SCREEN END OF SCREEN 2000.

WRITE: 1'Employee Name '.

write: 20 name.

WRITE: 40'Date of Birth '.

write: 60 dob.

if female = 'X' .

write : /1 'Gender '.

write : 20 'Female'.

else.

write : /1 'Gender '.

write : 20 'Male'.

endif.

data:dt like sy-datum,ag type i.

write :40 'Age'.

write :60 ag.

WRITE :/1 'Email ID '.

write : 20 email.

WRITE :40 'Phone # '.

write : 60 phone.

uline.

WRITE :/1 'PERSONAL DETAILS' .

uline.

WRITE :/1 'Marital Status'.

if single = 'X'.

WRITE : 20 'Single'.

elseif married = 'X'.

WRITE : 20 'Married'.

else.

WRITE : 20 'Separated'.

endif.

write : 40 'Nationality'.

write : 60 nation.

write : /1 'Mother Tongue'.

write : 20 motrtng.

write : 40 'Language Known'.

write : 60 language.

uline.

skip.

write : /1 'Other Details'.

uline.

skip.

write: /1 'Hobbies'.

if cricket = 'X'.

write: 1

'Cricket(20)'.

endif.

if Hockey = 'X'.

write: 20 'Hockey(30)'.

endif.

if Football = 'X'.

write: 40 'FootBall(20)'.

endif.

if other = 'X'.

write: 60 'Other(20)'.

endif.

if other = ''.

write: ' '.

else.

write: 80 'OTHER'.

write: 100 other.

endif.

write : /1 'Strengths'.

write : 20 strength.

write : 40 'Weekness'.

write : 60 weekness.

if email cs '@' .

write : /10 ''.

else.

skip.

skip.

skip.

skip.

write /30 'Not a Email id'.

endif.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR AGE.

dt = dob.

ag = sy-datum - dt.

ag = ag div 365.

age = ag.

AT SELECTION-SCREEN OUTPUT.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jan 28, 2005 at 01:18 PM

    Hello,

    Check out the SAP help for

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN END OF LINE.

    and

    SELECTION-SCREEN POSITION pos.

    SELECTION-SCREEN COMMENT fmt name.

    Hope this helps you.

    Murugesh AS

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2005 at 02:54 PM

    Hi ,

    Could you please close out this thread as well ?

    Thanks and Regards,

    Anand Mandalika.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.