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: 

f4 help in abap

0 Kudos

how to get f4 search help and multiple selection for a field on selection screen without calling a function module?

Suppose there is a field on input screen for which we want multiple selection option and f4 search help both without calling the function module then how do we proceed with it

1 ACCEPTED SOLUTION

GK817
Active Contributor
0 Kudos

Hi,

You can use a data element in SELECT-OPTIONS which has search help/value table assigned to it.

GK

4 REPLIES 4

GK817
Active Contributor
0 Kudos

Hi,

You can use a data element in SELECT-OPTIONS which has search help/value table assigned to it.

GK

0 Kudos

Have done it. But there is no search help associated with the data element .

still want to go for it

below is the code

SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001.
PARAMETERS : p_bukrs TYPE bukrs OBLIGATORY,
p_rbusa TYPE gsber OBLIGATORY.
SELECTION-SCREEN: COMMENT 40(30) t_rbusa.
PARAMETERS : p_racct TYPE saknr OBLIGATORY.
SELECTION-SCREEN: COMMENT 45(30) t_racct.
PARAMETERS : p_keydt TYPE datum OBLIGATORY,
p_budat TYPE budat OBLIGATORY.
*Begin of Nidhi Raj 23012020
SELECT-OPTIONS: s_blart FOR gw_acdoca-blart NO INTERVALS.
*End of Nidhi Raj 23012020
* p_opnbal TYPE zopen_bal OBLIGATORY,
PARAMETERS: p_clsbal TYPE zclose_bal OBLIGATORY,
p_bas TYPE zopen_bal,
p_diff TYPE zopen_bal,
p_mode TYPE rfpdo-allgazmd DEFAULT 'N'.
SELECTION-SCREEN : END OF BLOCK b1.
FIELD-SYMBOLS : <fs_acdoca> TYPE ty_acdoca.

GK817
Active Contributor
0 Kudos

Hi,

You can assign explicit search help using MATCHCODE OBJECT..

SELECT-OPTIONS: S_XXXX FOR YYYY MATCHCODE OBJECT search_help.

GK

former_member1716
Active Contributor

Hello nidhi1994,

Different Ways of assigning Search help without using FM.

1) Using a Data Element which is assigned with Search help Value.

2) Assigning the Search help directly in the screen design if you are designing the screen.

3) Explicit declaration using MATCH CODE.

4) If there is no Search help defined then F4 values will be picked from Check table/Value table (If any) which are assigned to the field/data element

Regards!