2007 Jun 01 7:38 AM
can we have parameters and select options in our own screens and instead of selections screens?
2007 Jun 01 7:42 AM
Hi,
WE can have parameters and select-options in our screens.
Reward points if it is helpful
Regards,
Sangeetha.a
2007 Jun 01 7:46 AM
2007 Jun 01 7:47 AM
Hi,
We can not create the select-options and the Parameters in other screen, but you can create the Select-options, and the Parameters in the TOP include then call that to the Screen to include those Selection fields in that screen
http://help.sap.com/saphelp_nw2004s/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/00/deb23789e95378e10000009b38f8cf/content.htm
Regards
Sudheer
2007 Jun 01 7:50 AM
Hi
You can check this prg. See if its useful for you...
Regards
Raj
here is a code for a sample program which has selection screen fields (parameters and select-options) and ALV GRID on the selection screen.
Just copy paste the code in se38 and try it.
REPORT Y_SPLIT_SELSCREEN .
DATA:
docking TYPE REF TO cl_gui_docking_container .
*
*********
include <icon>.
data: ok_code like sy-ucomm,
gt_spfli type table of spfli,
gt_sflight type table of sflight,
g_repid like sy-repid,
g_max type i value 100,
gs_layout type lvc_s_layo,
gs_toolbar type stb_button,
grid1 type ref to cl_gui_alv_grid,
grid2 type ref to cl_gui_alv_grid,
custom_container1 type ref to cl_gui_custom_container,
custom_container2 type ref to cl_gui_custom_container.
PARAMETERS: user like sy-uname .
AT SELECTION-SCREEN OUTPUT.
PERFORM build_gridviewer .
START-OF-SELECTION.
&----
*& Form build_gridviewer
&----
text
----
--> p1 text
<-- p2 text
----
FORM build_gridviewer .
DATA: repid LIKE sy-repid.
IF NOT grid1 IS INITIAL .
CALL METHOD grid1->free .
ENDIF .
repid = sy-repid.
if docking is initial .
CREATE OBJECT docking
EXPORTING
repid = repid
dynnr = sy-dynnr
side = cl_gui_docking_container=>dock_at_right
extension = '300'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
endif .
IF NOT docking IS INITIAL AND
grid1 IS INITIAL .
create object grid1
exporting i_parent = docking.
refresh gt_spfli .
select * from spfli into table gt_spfli.
Set a titlebar for the grid control
*
call method grid1->set_table_for_first_display
exporting i_structure_name = 'SPFLI'
is_layout = gs_layout
changing it_outtab = gt_spfli.
ENDIF .
ENDFORM. " build_htmlviewer
2007 Jun 01 7:50 AM
2007 Jun 01 8:07 AM
hi
good
you can design your own screen using se51 and you can place the parameter and select statement over there and call that screen in your program.
thanks
mrutyun^
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |