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 in module pool

Former Member
0 Kudos

Hi! Gurus,

1. Please suggest me a method to input range for a field through select options in module pool selection screen.

2. Also i want to display to paramaters or any two selection screen obejcts on one horizontal line.

3. I want to display one more parameter on 15th line in selection screen.

Regards,

Digvijay

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

In order to provide the select-option u need to use Ranges.

Use PBO with Loop at Screen for the selection option and the parameter with using a check box or Radio Button.

u can display on them horizontal Line.

regards

Naresh

8 REPLIES 8

Former Member
0 Kudos

Hi,

In order to provide the select-option u need to use Ranges.

Use PBO with Loop at Screen for the selection option and the parameter with using a check box or Radio Button.

u can display on them horizontal Line.

regards

Naresh

Former Member
0 Kudos

Hi,

You can design the selection screen using and call this screen in the module pool..

selection-screen begin of screen 0010 as subscreen.
" Design your screen here
selection-screen end of screen 0010.

Check this link..

Former Member
0 Kudos

create a screen with fields which apprears twice on the screen .

field1 -- bkpf-belnr_low

field2 -- bkpf-belnr_high

in PBO

chain.

field bkpf-belnr_low

field bkpf-belnr_high.

module bkpf-belnr.--->do validations on low & high values.

endchain.

adn create range table based on the low & high values.

have a look at FM COMPLEX_SELECTIONS_DIALOG for F4.

regards

Prabhu

0 Kudos

thanks all but is n't thr a way tht i can do it with out calling subscreen.

And for displaying two parameters in horizontal line i m talking about screen design for screen 1000.

regards,

Digvijay

0 Kudos

thanks all but is n't thr a way tht i can do it with out calling subscreen.

And for displaying two parameters in horizontal line i m talking about screen design for screen 1000.

regards,

Digvijay

0 Kudos

Hello DS ,

sample code


screeen elements.

PAYR-CHECT-->text
R_CHECK-LOW-->i/0
%#AUTOTEXT007--->text
R_CHECK-HIGH-->i/o
CHECK_VALU_PUSH--->push button
%#AUTOTEXT006--->push button


PAI.


  chain.
   field r_check-low.
   field r_check-high.
   module r_check.
  endchain.


module r_check input.
  clear ok_code.
  ok_code = sy-ucomm.
* clear value high if it is 00000000
  if ( r_check-high eq 0 ) .
    clear r_check-high.
  endif.
  if ( r_check-low eq 0 ).
    clear r_check-low.
  endif.
  if not r_check-low eq space .
    if not r_check-high eq space .
      if  r_check-low le r_check-high.
        message e339(ehs_oh).
      else.
        if ( r_check-sign is initial ).
          r_check-sign   = 'I'.
        endif.
        r_check-option = 'BT'.
        append r_check.
      endif.
    else.
      if (  r_check-sign is initial ).
        r_check-sign   = 'I'.
        r_check-option = 'EQ'.
      elseif (   r_check-high is initial
             and r_check-option <> 'EQ' ).
        r_check-option = 'EQ'.
      endif.
      append r_check.
    endif.
  else.
    if r_check-high eq space .
      clear r_check.
    else.
      r_check-sign   = 'I'.
      r_check-option = 'BT'.
      append r_check.
    endif.
  endif.
  sort r_check by low high.
  delete adjacent duplicates from r_check comparing all fields.
  case ok_code.
    when 'CHECK'.
      perform complex_hcent_selection
                                tables r_check
                                using  'Select Check No'
                                     'PAYR-CHECT'.
  endcase.
endmodule.

.

regards

Prabhu

0 Kudos

i have to get field from dictionary not from program. when i fetch field from dictionary it gets locked.

unable 2 specify ranges.

and hw can i place parameters in screen 1000 at desired position.

Regards,

Digvijay

0 Kudos

my code will look like standard SAP selections....only diff is i'm putting it in a simple way....

u can also cross check with screen no 1000 of any screen...... u have to maintain ranges for the field.....

regards

Prabhu