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

Former Member
0 Kudos
91

can we pass the value from the selection screen to search help.

let say we have two selection criterias on selection screen and the first selection criteria value is to be pass to the search help of the second selection criteria when F4 is pressed on the second selection option.

plz someone tel me how can i do that it's realy needed.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
49

Hi Sohail,

Your scenario

2 sel screen params

both have 2 search helps

You can use this FM

F4 help also returning the value to be displayed in internal table

F4IF_INT_TABLE_VALUE_REQUEST .

What you do is as soon as the user gives value in the 1st sel screen params,fetch it in an internal table,suppose int_tab_selscreen1 use this internal table in the I_tab field of the above FM.

What happens now,

as soon the user enters value in the 1st sel screen params, it is stored in an internal table,

now the user enters values for the 2nd sel parameter,

since we are using the above function module, it will have an internal table field (in our case its the int table having values entered in the 1st sel screen param)

hence your issue is solved.

Hope you have understood the solution

Revert for further clarification.

Thanks and Regards

Srikanth.P

2 REPLIES 2

Former Member
0 Kudos
50

Hi Sohail,

Your scenario

2 sel screen params

both have 2 search helps

You can use this FM

F4 help also returning the value to be displayed in internal table

F4IF_INT_TABLE_VALUE_REQUEST .

What you do is as soon as the user gives value in the 1st sel screen params,fetch it in an internal table,suppose int_tab_selscreen1 use this internal table in the I_tab field of the above FM.

What happens now,

as soon the user enters value in the 1st sel screen params, it is stored in an internal table,

now the user enters values for the 2nd sel parameter,

since we are using the above function module, it will have an internal table field (in our case its the int table having values entered in the 1st sel screen param)

hence your issue is solved.

Hope you have understood the solution

Revert for further clarification.

Thanks and Regards

Srikanth.P

0 Kudos
49

I HAVE USED MY OWN SEARCH HELP WITH THE FTEST PARAMETER BUT WHEN I GIVE THE COMMAND AT SELECTION-SCREEN ON VALUE-REQUEST FOR FTEST-LOW SYSTEM GIVES ME AN ERROR.

THE ADDITION "ON VALUE REQUEST FOR" IS NOT ALLOWED WITH PARAMETERS OR SELECT -OPTIONS IF MATCHCODE OBJE IS PRESENT.

BELLOW IS THE PROGRAM.

PARAMETERS:lotnum TYPE qplos.

SELECT-OPTIONS: startdat FOR qals-pastrterm,

ftest FOR qamv-verwmerkm MATCHCODE OBJECT zlot_help.

DATA: BEGIN OF ITAB OCCURS 0,

TESTF LIKE QAMV-VERWMERKM,

END OF ITAB.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR FTEST-LOW.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

retfield =

  • PVALKEY = ' '

  • DYNPPROG = ' '

  • DYNPNR = ' '

  • DYNPROFIELD = ' '

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

  • VALUE_ORG = 'C'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

tables

value_tab =

  • FIELD_TAB =

  • RETURN_TAB =

  • DYNPFLD_MAPPING =

  • EXCEPTIONS

  • PARAMETER_ERROR = 1

  • NO_VALUES_FOUND = 2

  • OTHERS = 3

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.