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

parameters with comments

Hi,

I want to create a check box with some long text and also need to do validations

based on the one of the input fld.

for example

there is a fld in the selection screen,

paramaeters: xyz type c (will accept y or n) only.

here the checkbox should come with soem long text.

this check box need to take the value if the above xyz value if 'n' only.

Please provide me the code if possible.

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 09:01 AM

    Hi Sri,

    parameters: <check_box> as checkbox default 'X',

    and for the long tect for the check box...

    you can go to text-elements option from tyeh menu and enter the long text.

    and validation you can do using the event

    at selection-screen output on field.

    Thanks & Regards,

    Basha

    *award points if found useful

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 09:06 AM

    Hi,

    Is the following code helpful

    PARAMETERS xyz TYPE JBOYESNO AS LISTBOX VISIBLE LENGTH 20.

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 1(50) text-i01.

    PARAMETERS lcheck AS CHECKBOX.

    SELECTION-SCREEN END OF LINE.

    AT SELECTION-SCREEN ON xyz.

    IF xyz = 'N'.

    .......

    ELSE.

    .......

    ENDIF.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 09:14 AM

    Hi,

    take your program in se38.

    go to->text elements->selection texts

    there you can specify the long text as your requirement.

    Pls reward points if useful.

    Regards,

    Renjith Michael.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 09:35 AM

    Hi,

    i hope this can u help u.

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 1(10) LB1.

    PARAMETERS A AS CHECKBOX,

    AA(10).

    SELECTION-SCREEN COMMENT 30(10) LB2.

    PARAMETERS B AS CHECKBOX.

    SELECTION-SCREEN END OF LINE.

    SELECTION-SCREEN ULINE.

    WRITE: A, NAME.

    INITIALIZATION.

    LB1 = ‘ENTER NUM’.

    LB2 = ‘ENTER NAME’.

    IF AA = 'Y'.

    WRITE:/ 'CORRECT'.

    ENDIF.

    reward points,if it is useful.

    Otherwise tl me ur full requirement,so that i can help u.

    Thank you,

    chandu.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 10:03 AM
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS pick AS CHECKBOX.
    SELECTION-SCREEN COMMENT 4(40) text MODIF ID md.
    SELECTION-SCREEN END OF LINE.
    
    PARAMETERS xyz USER-COMMAND cmd.
    
    
    AT SELECTION-SCREEN OUTPUT.
    
      text ='Short text'.
    
      LOOP AT SCREEN.
        IF screen-group1 = 'MD' AND xyz = 'X'.
          text ='This is long text'.
        ENDIF.
      ENDLOOP.
    
    
    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.