04-15-2015 9:09 AM
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
04-15-2015 3:20 PM
hi,
just make a abap dictionary structure with the needed fields and use it in the fm instead of a tabname.
good luck
franco
04-15-2015 9:16 AM
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.
04-15-2015 9:57 AM
04-15-2015 10:14 AM
04-15-2015 10:46 AM
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
.
04-15-2015 11:02 AM
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
04-15-2015 11:23 AM
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.
04-15-2015 3:20 PM
hi,
just make a abap dictionary structure with the needed fields and use it in the fm instead of a tabname.
good luck
franco
04-16-2015 9:38 AM
Thanks Franco,
I have used this method,as it was the simplest among all the suggestions.
Thanks everyone for their opinions.
04-18-2015 5:36 PM
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