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: 

Pop up to capture User input

abhishek37373
Participant
0 Kudos

Hi Folks,

I need a help with a Pop up to capture about 10 variable from USER i.e. after the selection screen,a resultant ALV is displayed and then user selects some line of ALV and on a click of a button in Toolbar (USER COMMAND) a pop up if shown to capture values from user.

I have tried using some FM for pop ups "'POPUP_GET_VALUES_USER_CHECKED'" but they need TABNAME of the field,whereas here i have is just variables not linked to any table.

Thanks in Advance

-Abhishek Agarwal

1 ACCEPTED SOLUTION

franco_klemm
Explorer
0 Kudos

hi,

just make a abap dictionary structure with the needed fields and use it in the fm instead of a tabname.

good luck

franco

9 REPLIES 9

former_member186077
Active Participant
0 Kudos

Hi,

Please refer the following programs :

BALV_POPUP_TO_SELECT

BALV_POPUP_TO_SELECT_2

BCALV_GRID_AND_POPUP

BCALV_TEST_GRID_ONPOPUP

SALV_DEMO_HIERSEQ_POPUP

SALV_DEMO_TABLE_POPUP

SALV_DEMO_TABLE_POPUP_CALL

SALV_TEST_HIERSEQ_POPUP

SALV_TEST_TABLE_POPUP

Thanks and Regards,

Sriranjani.

0 Kudos

,

Thanks for the reply but these FM seems a pop up to display data.I want to capture user input from the pop up.

0 Kudos

This message was moderated.

pavanm592
Contributor
0 Kudos

Hi Abhishek,

Try like this create a module pool screen with table control and call as per your requirement .

Ex: CALL SCREEN 100 STARTING AT 10 5 ENDING AT 50 12



Regards,

Pavan



.

anupam_anand
Participant
0 Kudos

Hi Abhishek,

After checking the user command, call a screen with attribute as Modal dialog box using STARTING AT keyword. Create a container in this screen and use it to your requirement.

Thanks,

Anupam

pranab_kumarjha
Explorer
0 Kudos

Hi Abhishek,

For your requirement, one option could be to call a screen in the User Command Subroutine.

You can very design your own screen based on the input fields required and call the same.

From there on you can proceed with the values and further processing.

I hope this helps. Do let us know the outcome.

franco_klemm
Explorer
0 Kudos

hi,

just make a abap dictionary structure with the needed fields and use it in the fm instead of a tabname.

good luck

franco

0 Kudos

Thanks Franco,

I have used this method,as it was the simplest among all the suggestions.

Thanks everyone for their opinions.

0 Kudos

Hi Abhishek,

If your issue is still there use this FM -

    CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'

      EXPORTING

        i_title               = text-t06

        i_zebra               = 'X'

        i_screen_start_column = 5

        i_screen_start_line   = 5

        i_screen_end_column   = 50

        i_screen_end_line     = 20

        i_tabname             = 'I_LIST'

        it_fieldcat           = i_fieldcat

        i_callback_program    = sy-repid

      IMPORTING

        es_selfield           = i_selfield

*       E_EXIT                =

      TABLES

        t_outtab              = i_list

      EXCEPTIONS

        program_error         = 1

        OTHERS                = 2.

You will get i_selfield-tabindex value after user selection.

BR,

Praveen