Skip to Content
avatar image
Former Member

Two parameters in one line

Hi

Is this possible to declare two parameters in the same line but not in the screen painter?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Oct 20, 2008 at 09:54 AM

    Hi ,

    try like this

    SELECTION-SCREEN begin of line.
      SELECTION-SCREEN COMMENT 1(15) text-p1.
      parameters: P1(10) type c.
      SELECTION-SCREEN COMMENT 25(15) text-p2.
      PARAMETERS: P2(10) type c.
    SELECTION-SCREEN end of LINE.
    
    
    

    Thanks & Regards

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 09:53 AM

    Hi Kosmo,

    You can declare 2 parameters in 1 line. You just have to declare the parameters in beteween "selection-screen begin of line" and "selection-screen end of line".

    Try it out...

    Cheers,

    Vishnu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 09:54 AM

    hi Kosmo,

    try this.

    SELECTION-SCREEN BEGIN OF LINE.

    PARAMETERS:

    p_param1 TYPE datum DEFAULT sy-datum,

    p_param2 TYPE uzeit DEFAULT sy-uzeit.

    SELECTION-SCREEN END OF LINE.

    regards,

    Peter

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 10:01 AM

    Hello Kosmo ,

    When ever u want to display in same line we have to use

    select-screen begin of line with positions and comments.

    In the below example dont change the Positions 30 and Comment 1 or Position 40 and comment 4(20).

    SELECTION-SCREEN : BEGIN OF BLOCK b4 WITH FRAME TITLE text-t04.

    SELECTION-SCREEN: BEGIN OF LINE.

    SELECTION-SCREEN: POSITION 30,

    COMMENT 1(20) text-m01

    FOR FIELD s_matnr.

    PARAMETER: s_matnr TYPE mara-matnr.

    SELECTION-SCREEN: POSITION 40,

    COMMENT 40(20) text-m03.

    PARAMETER: r_matnr TYPE mara-matnr.

    SELECTION-SCREEN : END OF LINE.

    SELECTION-SCREEN : END OF BLOCK b4.

    Add comment
    10|10000 characters needed characters exceeded