Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to display records when clicking button in alv

Former Member
0 Kudos

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....

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

former_member181962
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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..

Former Member
0 Kudos