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

Selection screen Button positioning

Hi gurus,

i have a push button in an selection screen.. But i need to place that button in one particular area of that selection screen block... how do i do that... Plsss help...

Answrs will be appreciated

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 09:12 AM

    TABLES sscrfields.

    TYPE-POOLS icon.

    SELECTION-SCREEN:

    BEGIN OF SCREEN 500 AS WINDOW TITLE title,

    PUSHBUTTON 2(10) but1 USER-COMMAND cli1,

    PUSHBUTTON 12(30) but2 USER-COMMAND cli2

    VISIBLE LENGTH 10,

    END OF SCREEN 500.

    AT SELECTION-SCREEN.

    CASE sscrfields.

    WHEN 'CLI1'.

    ...

    WHEN 'CLI2'.

    ...

    ENDCASE.

    START-OF-SELECTION.

    title = 'Push button'.

    but1 = 'Button 1'.

    CALL FUNCTION 'ICON_CREATE'

    EXPORTING

    name = icon_information

    text = 'Button 2'

    info = 'My Quickinfo'

    IMPORTING

    RESULT = but2

    EXCEPTIONS

    OTHERS = 0.

    CALL SELECTION-SCREEN '0500' STARTING AT 10 10.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 09:12 AM

    HI,

    Look into the standard program DEMO_SEL_SCREEN_PUSHBUTTON

    It may help you.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 09:12 AM

    Hiiii....

    One option is create a selection screen in SE51 screen painter ...and place the button where ever u want ...

    regards

    chandu reddy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 10:17 AM

    Hi,

    This piece of code will surely help you.

    SELECTION-SCREEN:BEGIN OF BLOCK b2 WITH FRAME TITLE text-011.
    
    SELECTION-SCREEN BEGIN OF LINE.
    
    PARAMETER: p_mpmva1 TYPE przb-variant .
    
    SELECTION-SCREEN PUSHBUTTON 70(4) but1 USER-COMMAND create.
    SELECTION-SCREEN PUSHBUTTON 74(4) but2 USER-COMMAND change.
    SELECTION-SCREEN PUSHBUTTON 78(4) but3 USER-COMMAND display.
    SELECTION-SCREEN END OF LINE.
    
    SELECTION-SCREEN END OF BLOCK b2.

    Plz reward if useful.

    Thanks,

    Dhanashri.

    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.