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

how to display records when clicking button in alv

I am using screen painter to create two buttons

'classical' and 'alv'.

When i click the first button control should move to

corresponding classical program.Evan i got the answer

I am not able to display the "select-options button" in the

output as in classical report program.

It displays all records instead of selecting particular records from select-option button.

So how to display the select option button(i.e in the classical view program) while "clicking the classical button " .

plz send me the coding....

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 16, 2008 at 02:56 PM

    hi,

    try this.

    SELECTION-SCREEN BEGIN OF SCREEN 100.

    SELECT-OPTIONS : EBELN FOR V_EBELN MODIF ID G1,

    VBELN FOR V_VBELN MODIF ID G2.

    SELECTION-SCREEN END OF SCREEN 100 .

    PAI.

    module mod_name.

    case sy-ucomm.

    when 'BUTT!'.

    call selection-screen 100.

    when 'BUTT2'.

    """"your ALV logic"""".

    endcase.

    endmodule.

    if...any doubts revert back.

    Regards

    Sandeep Reddy

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 16, 2008 at 02:57 PM

    HOw did you write your coding?

    Did you just use SUBMIT Statement?

    YOu should use the

    submit <report> via selection-screen and return.

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 03:18 PM

    Suggestion:

    keep 2 radio buttons on the selection screen and give the user an option to select classical or ALV.

    you will have a problem when u put 2 buttons.

    to have 2 buttons u need to display basic list.

    when u keep a button on classical list and display AVL grid.

    you cannot handel 'back' function form grid to list even then so time it may work but u will not get the grid again from clasical report..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 03:29 PM

    hi

    go to this link

    http://www.saptechnical.com/Tutorials/ALV/Toolbar/buttons.htm

    Cheers

    Snehi Chouhan

    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.