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: 

Assign Search help

Former Member
0 Kudos

I WANT TO SET SEARCH HELP RESTRICTED TO 4 VALUES..

Selection parameters for status – search help restricted to only below parameters

Make it mandatory.

I20 - hold

I30 - sucess

I40 - completed

I50 - discard.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You need to do the following steps.

1). Define a internal table

2). Create 4 entries with the correct data

3). Pass the internal table to the FM given below

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'CONNID'

DYNPPROG = PROGNAME

DYNPNR = DYNNUM

DYNPROFIELD = 'CONNECTION'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = <YOUR INTERNAL TABLE>.

4). Call the FM where you want to display the F4 help.

2 REPLIES 2

Former Member
0 Kudos

Hi,

You need to do the following steps.

1). Define a internal table

2). Create 4 entries with the correct data

3). Pass the internal table to the FM given below

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'CONNID'

DYNPPROG = PROGNAME

DYNPNR = DYNNUM

DYNPROFIELD = 'CONNECTION'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = <YOUR INTERNAL TABLE>.

4). Call the FM where you want to display the F4 help.

Former Member
0 Kudos

Well u may read the domain values in one internal table.

CALL FUNCTION 'RPY_DOMAIN_READ'

EXPORTING

activation_type_i = 'M'

doma_name = <domain>

language = sy-langu

TABLES

doma_values = i_values

EXCEPTIONS

cancelled = 1

not_found = 2

permission_error = 3

illegal_type = 4

OTHERS = 5.

IF sy-subrc <> 0.

Delete the unwanted values from the itab and

then pass the itab in F4IF_INT_TABLE_VALUE_REQUEST as suggested above.

Regards

Alok Pathak