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: 

How to assign both low and high options for a field in selection screen using f4 help

Former Member
0 Kudos

Hi friends,

I have to assign mblnr fields with both low and high values using f4 help.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR DOCNO where docno = mblnr

Here i shall give both high and low. Pls help.

1 ACCEPTED SOLUTION

sivaganesh_krishnan
Contributor
0 Kudos

hi swapna,

if you want to select option to hold only one value , then create a range table as below.

BEGIN OF ty_select,

          sign    TYPE char01,

          option  TYPE char02,

          low     TYPE char40,

          high    TYPE char40,

         END OF ty_select.


then pass the value as

lx_vbeln-sign   = 'I'.

     lx_vbeln-option = 'EQ'.

     lx_vbeln-low    = i_vbeln. "value

     APPEND lx_vbeln TO lt_vbeln. " append values to internal table

14 REPLIES 14

sivaganesh_krishnan
Contributor
0 Kudos

hi swapna,

if you want to select option to hold only one value , then create a range table as below.

BEGIN OF ty_select,

          sign    TYPE char01,

          option  TYPE char02,

          low     TYPE char40,

          high    TYPE char40,

         END OF ty_select.


then pass the value as

lx_vbeln-sign   = 'I'.

     lx_vbeln-option = 'EQ'.

     lx_vbeln-low    = i_vbeln. "value

     APPEND lx_vbeln TO lt_vbeln. " append values to internal table

0 Kudos

Hi ganesh

I need to give a range of values in the field mblnr. I have to use select options.

0 Kudos

then for range of values write the option as 'BT' and also pass the high value.. for placing a search help,

try creating search help in se80  and use matchcode object keyword to link it with select options.

krishna_k19
Contributor
0 Kudos

Hi Swapna,

         If you want to keep both the numbers same means

docno-low = docno-high = mblnr.

or if you want to keep more values then also same procedure.

and also we can follow like this also.

at selection-screen on value request for docno-low.

some code...

etc

at selection-screen on value request for docno-high.

some code..

etc.

try this .

Regards,

Krishna

deependra_shekhawat3
Contributor
0 Kudos

Hi Swapna,

Can you describe more clear, what is your requirement ??

Thanks

Deependra

0 Kudos

Hi dependra,

My input screen has initially from date to to date. Using that date value , I shall select the werks. Once the werks is selected , that particular mbln (range of mblnr) is selected. Then the subsequent matnr is selected.

-Regards,

Swapna

0 Kudos

what is ur question exactly .. you want to select values based on previous search help value???

if so Create POV for each field .

and use the FM  F4IF_INT_TABLE_VALUE_REQUEST pass the internal table based on the previous select values.

0 Kudos

hi,

       you just give your low and high values in intialization part and then try.

SELECT-OPTIONS: creat_dt FOR nast-erdat.

INITIALIZATION.
creat_dt
-low = sy-datum
creat_dt
-high = sy-datum.
APPEND creat_dt.


the above is just sample u just try like this



Regards

gopi

0 Kudos

Thanku Ganesh

Former Member
0 Kudos

HI Swapna,

You need to create value range table.

Data : it_werks type table of range_c18,

          w_werks type range_c18.

w_werks-sign = 'I'.

w_werks-option = 'BT'.

w_werks-low = '2100'.

w_werks-high = '3000'.

append w_werks to it_werks. " append to value range table

you can select MBLNR field value from required standard table conditon ( where werks in it_werks ).

Thanks ,

Janardhana

Former Member
0 Kudos

hi,

you just fix your range in at selection screen. you just try this.

AT SELECTION-SCREEN ON docno.

IF  ( docno-low not between '0049000001' and '00490000099' ) AND ( docno-HIGH not between '0049000001' and 00490000099' ).


from this you can filter the mblnr.





Regards,

gopi

Former Member
0 Kudos

Thank you all..

-Regards,

Swapna

Former Member
0 Kudos

hi swapna,

wat happen whether your issue solved????

regards,

gopi

0 Kudos

Hi Gopi,

I am trying with all the inputs given in the forum by other friends. I guess my work will be done. Thanku

-Regards,

Swapna