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 fetching F4 help settings

Former Member
0 Kudos

Hello All ,

I need to fetch the F4 help settings done using the menu option : Help -> Settings -> F4 help.

I need to check whether the checkbox for the following option is set.

"Appears directly on the screen

This option changes the behavior of the F4 help if there is only one hit for a search.

If you choose this option, the values found are immediately returned to the screen if exactly one hit is found for the search criteria. The single hit is not displayed in a hit list."

Regards,

Parveen

2 REPLIES 2

Former Member
0 Kudos

Hai parveen

check the following code

DATA: T_FIELD LIKE DFIES OCCURS 0 WITH HEADER LINE,

T_RETURN LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE,

L_RETFIELD TYPE DFIES-FIELDNAME.

CLEAR CABNT.

SELECT ATINN INTO CABNT-ATINN UP TO 1 ROWS FROM CABNT

WHERE ATBEZ = CHARACTERISTIC_IN.

ENDSELECT.

CHECK SY-SUBRC = 0.

REFRESH: T_FIELD,

T_VALUETAB.

MOVE: 'AUSP' TO T_FIELD-TABNAME,

'ATWRT' TO T_FIELD-FIELDNAME.

APPEND T_FIELD.

CLEAR T_FIELD.

CLEAR CAWN.

SELECT ATWRT INTO T_VALUETAB-VAL FROM CAWN

WHERE ATINN = CABNT-ATINN.

APPEND T_VALUETAB.

ENDSELECT.

L_RETFIELD = 'ATWRT'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = L_RETFIELD

TABLES

VALUE_TAB = T_VALUETAB

FIELD_TAB = T_FIELD

RETURN_TAB = T_RETURN

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3

.

READ TABLE T_RETURN INDEX 1.

IF SY-SUBRC = 0.

D_VALUE = T_RETURN-FIELDNAME.

ELSE.

CLEAR D_VALUE.

ENDIF.

0 Kudos

Thanks a lot for the code.

But my requirement is to know whether the flag to suppress the single results in any F4 search hit is set or not ?

Can i have something like get parameter or import to fetch the value of that flag.