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: 

selection-screen (field from .Include structure)

Former Member
0 Kudos

Hi all,

I have a selection screen with several select-options. One of the select-option is

select-options: s_vornr for afvc-vornr.

Where 'vornr' is a .Include structure field in the table 'afvc'. Now my question is, in selection screen when I click on the box for this particular select-option I dont see the circle(from where we can select the existing input values) at the end of the box.

Why is it so and how can get that circle option at the end of the box by sticking to the same table and field(afvc-vornr).

Waiting for your help.

Thanks

1 ACCEPTED SOLUTION

amit_khare
Active Contributor
0 Kudos

hi,

the field do not have nay value range with it.

you can put the F4 help by using

At Selection-Screen on Value-request <select-option>. event.

e.g.

DATA : rt_values TYPE STANDARD TABLE OF type_values,

rs_values TYPE type_values,

rt_fields TYPE STANDARD TABLE OF type_fields,

rs_fields TYPE type_fields.

CLEAR : rs_values,rs_fields.

REFRESH : rt_values,rt_fields.

  • Creation of selection list

rs_fields-tabname = 'AFVC'.

rs_fields-fieldname = 'VORNR

rs_fields-selectflag = ' '.

APPEND rs_fields TO rt_fields.

SELECT vornr form AFVC

INTO TABLE t_vornr.

SORT t_vornr.

DELETE ADJACENT DUPLICATES FROM t_vornr.

LOOP AT t_vornr INTO s_vornr.

rs_values = s_vornr-vornr.

APPEND rs_values TO rt_values.

CLEAR rs_values.

ENDLOOP.

FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING

fieldname = 'AFVC'

tabname = 'VORNR

titel = 'Counting

IMPORTING

select_value = <select-opion>

TABLES

fields = rt_fields

valuetab = rt_values.

amit

Message was edited by: Amit Khare

6 REPLIES 6

amit_khare
Active Contributor
0 Kudos

hi,

the field do not have nay value range with it.

you can put the F4 help by using

At Selection-Screen on Value-request <select-option>. event.

e.g.

DATA : rt_values TYPE STANDARD TABLE OF type_values,

rs_values TYPE type_values,

rt_fields TYPE STANDARD TABLE OF type_fields,

rs_fields TYPE type_fields.

CLEAR : rs_values,rs_fields.

REFRESH : rt_values,rt_fields.

  • Creation of selection list

rs_fields-tabname = 'AFVC'.

rs_fields-fieldname = 'VORNR

rs_fields-selectflag = ' '.

APPEND rs_fields TO rt_fields.

SELECT vornr form AFVC

INTO TABLE t_vornr.

SORT t_vornr.

DELETE ADJACENT DUPLICATES FROM t_vornr.

LOOP AT t_vornr INTO s_vornr.

rs_values = s_vornr-vornr.

APPEND rs_values TO rt_values.

CLEAR rs_values.

ENDLOOP.

FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING

fieldname = 'AFVC'

tabname = 'VORNR

titel = 'Counting

IMPORTING

select_value = <select-opion>

TABLES

fields = rt_fields

valuetab = rt_values.

amit

Message was edited by: Amit Khare

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

There are not specific help values for operations. This are very dynamic in your system. It can almost be any 4 character value. This is why you don't see help. If you wonld like to provide your own, you can do this.



report zrich_0001 .

data: begin of ivornr occurs 0,
      vornr type afvc-vornr,
      end of  ivornr .

select-options s_vornr for ivornr-vornr.

initialization.

ivornr-vornr = '0010'.  append ivornr.
ivornr-vornr = '0020'.  append ivornr.
ivornr-vornr = '0030'.  append ivornr.
ivornr-vornr = '0040'.  append ivornr.
ivornr-vornr = '0050'.  append ivornr.
ivornr-vornr = '0060'.  append ivornr.

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

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'VORNR'
            dynprofield = 'S_VORNR'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = ivornr.

start-of-selection.

Regards,

Rich Heilman

Former Member
0 Kudos

hi raju,

in the event AT SELECTION-SCREEN ON VALUE-REQUEST FOR psel.

AND USE THE FM 'F4IF_INT_TABLE_VALUE_REQUEST'

CHECK THIS THREAD..

0 Kudos

Thank you very much for all your replies.

There is a small mistake in my post. The field I was taking about is 'afvc-ltxa1'. And I have another select-option for which I want the same functionality. So

select-options: s_ltxa1 for afvc-ltxa1.

select-options: s_vaplz for aufk-vaplz.

Rich and others, will the code you posted be the same if I go for the above two select-options. If not, please tell me where the changes would be.

I appreciate if you can post some sample code for these two select-options.

Waiting for your reply. Thanks

0 Kudos

Hi,

it will be the same code just you need to change the values in the select statement and the table storing the data.

Amit

0 Kudos

It is not advisable to have a search based on text(AFVC-LTXA1).