2009 Nov 19 11:27 AM
hi ,
i am having 2 screen when we press enter in first screen we will go to second screen in second screen i want to call a standard ALV program but second screen is already having some fields i want tthis report in down part of the screen
please help me for that
Edited by: ankita12345 on Nov 19, 2009 12:27 PM
hi ,
i am having 2 screen when we press enter in first screen we will go to second screen in second screen i want to call a standard ALV program but second screen is already having some fields i want tthis report in down part of the screen
please help me for that
Edited by: ankita12345 on Nov 19, 2009 12:27 PM
2009 Nov 19 11:33 AM
Hi,
The you have to create acustom container on the Layout of your second screen below your other screen fields.
Use the cl_gui_alv_grid and the method set_table_for_first_display to display your ALV
2009 Nov 19 11:42 AM
hi ,
thanks for rply
can you explain me how can i use it .
and one more thing in can use other then alv also like Table control
2009 Nov 19 11:45 AM
Hi,
If you want to display table control then you can design in the second screen layout directly .
Regards,
Swarna Munukoti.
2009 Nov 19 11:46 AM
Hi,
Its your choice. If you want a ALV display, then create a custom container and display data like this
DATA: custom_container1 TYPE REF TO cl_gui_custom_container.
IF custom_container1 IS INITIAL.
CREATE OBJECT custom_container1
EXPORTING
container_name = 'CUST_CONT1'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CREATE OBJECT grid1
EXPORTING
i_parent = custom_container1
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL METHOD grid1->set_table_for_first_display
CHANGING
it_outtab = t_itemdetails[]
it_fieldcatalog = t_itemfc
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
If you want to have a table control, then you can do so. Search the SDN, you will find loads for your reference.
2009 Nov 19 11:51 AM
actully i want ot call standard program -RHRESA00 in the container please tell me how is this possible.
2009 Nov 19 12:24 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |