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: 

ALV-interactive

Former Member
0 Kudos
97

Hi All,

In ALV after selecting one line using checkbox, I will press a button. Then I need some popup screen which should ask for input(which would be some number) and then when I press ok i should capture that number entered in popup in my program. How exactly I do that?

Could some one suggest me with that pls?

Thank You,

Suresh.

4 REPLIES 4

Former Member
0 Kudos
66

hi, just put if condition first.

if sy-ucomm = 'FCT code of that push battan'.

then u call the function module. 1) reuse_alv_popup_display.

and pass the width, hight and some other inforamtion what u want in the popup screen..........

note:if it is usefull plz review the points

Former Member
0 Kudos
66

You can also try the function module POPUP_TO_FILL_COMMAND_LINE for interaction.

Regards, Felipe Cunha.

former_member199581
Active Participant
0 Kudos
66

Hi,

you can simply declare a selection-screen like this:

selection-screen begin of screen 9000.

parameters: your_number TYPE your_type.

selection-screen end of screen 9000.

This screen will not be displayed in the selection-screen of your program, because it needs to be called.

So:

In the callback form for user-command you can simply test your ucomm like this:

CASE p_ucomm.

WHEN 'your_func'.

CALL SELECTION-SCREEN 9000 STARTING at x y.

your_variable = your_number.

WHEN OTHERS.

ENDCASE.

Variable "your_variable" contains the value.

This method is convenient, because you don't need to call a FM neither create an ad-hoc dynpro.

Regards,

Roby.

0 Kudos
66

Thank You Roby, Philipe and srikant.