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

how to move classical view from sereen painter when clicking button

Hi experts i am created 2 buttons by using sereen painter.

My request is when i click the first button it should move to

classical report pgm, at the same time when i click the

second button it should move to alv report progrm.

Send me the coding immediately...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 06:53 AM

    hi,

    case sy-ucomm.

    When 'BUT1'.

    call function 'REUSE_ALV_LIST_DISPLAY'

    when 'BUT2'.

    call function 'REUSE_ALV_GRID_DISPLAY'

    endcase.

    Or instaed of 2 buttons you can use 'REUSE_ALV_GRID_DISPLAY'.See the report.

    Go to Menu bar -> List -> Print Preview.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 06:54 AM

    hi,

    case sy-ucomm.

    when BUT1.

    submit program <program name>.

    when BUT2.

    submit program <alv program name>.

    rgds.,

    subash

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 06:57 AM

    Hi,

    Firstly create the programs for list display and grid display.

    say the programs are ZALV_LIST_DISPLAY and ZALV_GRID_DISPLAY.

    give fn codes to your buttons say for button1 it is 'B1' and for button2 it is 'B2'.

    then in the PAI of your screen write one module.

    say push_button.

    Module PUSH_BUTTON.

    case sy-ucomm.

    when 'B1'.

    submit report 'ZALV_LIST_DISPLAY '.

    when 'B2'.

    submit report 'ZALV_GRID_DISPLAY '.

    endcase.

    clear sy-ucomm.

    endmodule.

    I hope this will help you .

    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.