Application Development 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: 

select-options within a pop-up dialog

Former Member
0 Kudos

Hi!

Is it possible to have a select-options within a pop-up dialog

Regards

Ilhan

1 ACCEPTED SOLUTION

Vijay
Active Contributor
0 Kudos

hi

no its not possible

regards

vijay

<b>plz reward if useful</b>

10 REPLIES 10

Vijay
Active Contributor
0 Kudos

hi

no its not possible

regards

vijay

<b>plz reward if useful</b>

Former Member
0 Kudos

Try with below code :

tables sscrfields. "Fields on selection screens

selection-screen function key 1. "button on the application toolbar

initialization.

  • Populating button text

write icon_display_note as icon to sscrfields-functxt_01.

concatenate sscrfields-functxt_01 'Help' into sscrfields-functxt_01.

at selection-screen.

if sscrfields-ucomm = 'FC01'.

perform f_pgm_help.

endif.

form f_pgm_help.

data: begin of help_infos.

include structure help_info.

data: end of help_infos.

data: begin of dynpselect occurs 0.

include structure dselc.

data: end of dynpselect.

data: begin of dynpvaluetab occurs 0.

include structure dval.

data: end of dynpvaluetab.

clear help_infos.

help_infos-call = 'D'.

help_infos-spras = sy-langu.

help_infos-docuid = 'RE'.

help_infos-report = sy-repid.

help_infos-title = sy-title.

call function 'HELP_START'

exporting

help_infos = help_infos

tables

dynpselect = dynpselect

dynpvaluetab = dynpvaluetab.

endform. " F_PGM_HELP

check the below link and you can find above code

http://www.planetsap.com/howdo_a.htm#svalue

Thanks

Seshu

Former Member
0 Kudos

Hi,

you need to use

<b> CALL SELECTION-SCREEN scr STARTING AT x1 y1</b>

You can use this statement to call a selection screen. You use the SELECTION SCREEN BEGIN OF SCREEN and SELECTION SCREEN END OF SCREEN statements to define a selection screen. in between this you can use the Select-options.

Look at the below link

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba82335c111d1829f0000e829fbfe/content.htm

Former Member
0 Kudos

Hi Ertas,

Its possible using the <b>CALL SELECTION-SCREEN</b> statement.

Check this code.

REPORT demo_call_selection_screen.

SELECTION-SCREEN BEGIN OF BLOCK sel1 WITH FRAME TITLE tit1.

PARAMETERS: cityfr TYPE spfli-cityfrom,

cityto TYPE spfli-cityto.

SELECTION-SCREEN END OF BLOCK sel1.

SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.

SELECTION-SCREEN INCLUDE BLOCKS sel1.

SELECTION-SCREEN BEGIN OF BLOCK sel2

WITH FRAME TITLE tit2.

PARAMETERS: airpfr TYPE spfli-airpfrom,

airpto TYPE spfli-airpto.

SELECTION-SCREEN END OF BLOCK sel2.

SELECTION-SCREEN END OF SCREEN 500.

INITIALIZATION.

tit1 = 'Cities'.

AT SELECTION-SCREEN.

CASE sy-dynnr.

WHEN '0500'.

MESSAGE w159(at) WITH 'Screen 500'.

WHEN '1000'.

MESSAGE w159(at) WITH 'Screen 1000'.

ENDCASE.

START-OF-SELECTION.

tit1 = 'Cities for Airports'.

tit2 = 'Airports'.

CALL SELECTION-SCREEN 500 STARTING AT 10 10.

tit1 = 'Cities again'.

CALL SELECTION-SCREEN 1000 STARTING AT 10 10.

Thanks,

Vinay

Former Member
0 Kudos

Hi,

using screen painter it is not possible(creating select-options is not possible in screen painter).

but using selection-screen we can do as shown below.

tables:lfa1.

SELECTION-SCREEN BEGIN OF SCREEN 500.

SELECT-OPTIONS:lifnr for lfa1-lifnr.

SELECTION-SCREEN END OF SCREEN 500.

call SELECTION-SCREEN 500 STARTING AT 10 5 ENDING AT 80 10.

<b>reward if helpful</b>

rgds,

bharat.

Former Member
0 Kudos

Thanks a lot but the problem ist I have a main window

and there is know a button. On klick of that button must appear

this selection screen. How can I do this. sy-dynnr is always

1000: How can I set it to 0500 e.g.

regards

ilhan

0 Kudos

Hi,

default number for the selection is always 1000.

we can't change that.

if u want to make the screen number as 500.

write code like i have shown in my previous reply to this thread.

rgds,

bharat.

0 Kudos

Hi,

If i understood properly u can do in this way. Define a new screen then set pf-status and title.

at the begining of the program

implement this code:

SELECTION-SCREEN BEGIN OF SCREEN 500.
SELECT-OPTIONS:lifnr for lfa1-lifnr.
SELECTION-SCREEN END OF SCREEN 500.
call SELECTION-SCREEN 500 STARTING AT 10 5 ENDING AT 80 10.

aafter the code call your screen

as

call screen 100. " i assemed here i have created a screen 100 thats i meantion it as 100.

while creating the PF status u create a button. After u press this button

write the code in such a way u call u r selection screen.

If hope this works

Regards,

Lisa.

former_member194669
Active Contributor
0 Kudos

Hi,

Check this


  if sy-ucomm = 'SEL'.
    if v_selid is initial.
*     Init free selection dialog
      call function 'FREE_SELECTIONS_INIT'
        exporting
          expressions  = i_expr
        importing
          selection_id = v_selid
          expressions  = i_expr
        tables
          tables_tab   = i_tables
        exceptions
          others       = 1.
    endif.

*   Display free selection dialog
    call function 'FREE_SELECTIONS_DIALOG'
      exporting
        selection_id            = v_selid
        title                   = 'Selection'
        status                  = 1
        as_window               = 'X'
      importing
        expressions             = i_expr
        field_ranges            = i_ranges
        number_of_active_fields = v_active
      tables
        fields_tab              = i_fields
      exceptions
        others                  = 1.
  endif.

aRs

Former Member
0 Kudos

Hello,

I guess you don't understand it. How can I switch between the

screens. Suppose I have more screen I must have a way

to set and unset them. How do you guide through these

screens 1200, 100 1000 ....?

regards

ilhan