on 03-15-2009 10:00 AM
Hi all,
we are using Interactive ALV report using OOPS.
on double clicking of a field we need to display the internal table in another alv grid ,
issue is that we need to display the new grid in a "popup".
we are able to display the values in another screen but how to make the display in a popup
on the same screen.
Regards,
Anil.
A suggestion can make a difference.
Hi Anil,
Complete following steps:
- create screen say 0200 choosing modal dialog box type in screen atributes tab
- place custom control on it
- in event hanlder method for double_click call this screen.
- in PBO of this screen create custom container placing ALV inside it.
- display your ALV with your detail table
- in PAI leave the screen if OK button or CANCEL was pressed (function codes for them are the same: OK , CANCEL so just check ok_code of the modal screen)
Regards
Marcin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use Function Module :REUSE_ALV_GRID_DISPLAY_LVC it internally uses class(CL_GUI_ALV_GEID)
Just set the coridnates it will come as popup.
* I_SCREEN_START_COLUMN = 10
* I_SCREEN_START_LINE = 5
* I_SCREEN_END_COLUMN = 5
* I_SCREEN_END_LINE = 10
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE =
i_callback_program = sy-cprog
* I_CALLBACK_PF_STATUS_SET = ' '
* i_callback_user_command = 'USER_COMMAND'
* I_CALLBACK_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
* I_GRID_TITLE =
* I_GRID_SETTINGS =
is_layout_lvc = fs_layo
it_fieldcat_lvc = t_fcat
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS_LVC =
it_sort_lvc = t_sort
* IT_FILTER_LVC =
* IT_HYPERLINK =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
it_events = t_event
* IT_EVENT_EXIT =
* IS_PRINT_LVC =
* IS_REPREP_ID_LVC =
* I_SCREEN_START_COLUMN = 10
* I_SCREEN_START_LINE = 5
* I_SCREEN_END_COLUMN = 5
* I_SCREEN_END_LINE = 10
* IT_EXCEPT_QINFO_LVC =
* I_HTML_HEIGHT_TOP =
* I_HTML_HEIGHT_END =
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = t_cross
EXCEPTIONS
program_error = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " alv_third_screen
Just call it in the PAI no extra screen is required
Regards,
Gurpreet
Hi Anil,
I don't thing you need Screen Painter for that. When you create a screen you can set a bunch of attributes (like its type, coordinates, next screen etc). There are four radiobuttons in frame screen type . The third option is the one you need. Screen Painter is fired up only when you press Layout pushbutton on application toolbar. [See the example|http://img10.imageshack.us/img10/5021/screenieu.jpg]
If you want to install screen painter, all you need is to update your SAP Gui. Google the case or search the SCN and I am sure you will find its latest download version. Then you can easily work with graphical editor.
Regards
Marcin
Step 1:
Create Dynamic Sub sroutine:
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN '&IC1'.
ENDCASE.
ENDFORM. "USER_COMMAND
Note: slis_selfield will give you the selected Row number
Step 2:
Pass it to the function Module.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE =
I_CALLBACK_PROGRAM = SY-CPROG
* I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
Regards,
Gurpreet
Hi,
Try this.
When u r calling the 2nd screen, try the below code.
for ex: if your second screen no is 9000, then
call screen 9000 starting at '<X>' '<Y>' ending at '<X>' '<Y>'
<X> -
x coordinate of the screen.
<Y> -
y coordinate of the screen.
The above displays the second screen as a pop up on the first screen and u can also code for double click in the second screen as u did in the first screen.
Hope this helps you.
Regards,
Sharin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.