Application Development and Automation 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: 
Read only

parameters and select options

Former Member
0 Likes
742

can we have parameters and select options in our own screens and instead of selections screens?

can we have parameters and select options in our own screens and instead of selections screens?

6 REPLIES 6
Read only

Former Member
0 Likes
716

Hi,

WE can have parameters and select-options in our screens.

Reward points if it is helpful

Regards,

Sangeetha.a

Read only

Former Member
0 Likes
716

Hi

What do you mean by own screens?

Regards

Raj

Read only

Former Member
0 Likes
716

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

Read only

Former Member
0 Likes
716

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

Read only

Former Member
Read only

Former Member
0 Likes
716

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^