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: 

Making a referenced field a range?

Former Member
0 Kudos

Hi there

I'm currently doing a dialog programming

lets say I have a custom table Z_ABC with MATNR field.

When i get this field from dictionary at layout, it shows as a normal single input field.

Can I make this field a range?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

good

i dont think you can create a field range using a single field.

go through this link

http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa0331493111d182b70000e829fbfe/content.htm

thanks

mrutyun^

6 REPLIES 6

0 Kudos

Hi,

You need to use a Report Program with Selection SCreen to get the range options

You need to use SELECT-OPTIONS: opt for Z-abc-matnr.

Regards,

Sesh

Message was edited by:

Seshatalpasai Madala

Former Member
0 Kudos

hi

good

i dont think you can create a field range using a single field.

go through this link

http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa0331493111d182b70000e829fbfe/content.htm

thanks

mrutyun^

0 Kudos

but can I display an ALV grid even if I use select option? any suggestions?

my layout is like this

Four buttons for functionaliy at Application Toolbar

<button1 to button 4>

Input Plant < FIELD >

Input Material <FIELD >

___________________________

ALV GRID DISPLAY HERE

___________________________

0 Kudos

You can code this yourself - below is a simple example but you can expand the idea to have the "low" and "high" values on the screen (or even just the low value) and place a button on the screen with (say) ICON_ENTER_MORE which triggers the complex selection logic for the user.

report zlocal_jc_complex_search.  
                                                                        
start-of-selection.                                                     
  perform complex_selections.                                           

*--------------------------------------------------------------------
* FORM complex_selections
*--------------------------------------------------------------------
form complex_selections.                                                
*
* Invoke complex search criteria popup
*
  ranges:                                                               
    lr_datum        for sy-datum.                                                                                
call function 'COMPLEX_SELECTIONS_DIALOG'                             
       exporting                                                        
            text      = 'Some text'                                     
       tables                                                           
            range     = lr_datum                                        
       exceptions                                                       
            cancelled = 0                                               
            others    = 1.                                                                                
if not sy-subrc is initial.                                           
    clear: lr_datum, lr_datum[].                                        
  endif.                                                                

endform.

0 Kudos

thanks guys

I've manage to solved this.

Created 2 custom text field and appended them into a range table.

its working now.

points awarded to all. thanks for helping.

Former Member
0 Kudos

Posted