Application Development and Automation 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: 
Read only

F4 popup values

raja_ksravankumarreddy
Product and Topic Expert
Product and Topic Expert
0 Likes
1,995

Hi ,

In a Table certain field is associated with a Check Table.

A transaction displays / modifies values of the table. When I click on the

F4 help values for the field, system showing a F4 help with certain default values and fetching the values

based on the default values.

My doubts:

1. How the default values in F4 help are populated.

2. Can I control the search criteria through programming

Example :

Table Name : Table_1

Field_1

Check Table Name : Table_check

Check_Table key Fields

Check-1

Check-2

Field_1

From_Date

In the transaction, F4 on Field_1 showing the fields ChecK-1 CHeck-2 Field_1 and From_Date and also

populating these values based on the Table_1 record's values.

I want to know how the values are populated in the F4 Help.

Please help.

4 REPLIES 4
Read only

Former Member
0 Likes
1,150

Hi Raja,

You can control the F4 values by using F4IF_INT_TABLE_VALUE_REQUEST and pass the data from any required int table and use screen field name in import parameter.

use this method in: AT SELECTION-SRENN ON VALUE-REQUEST event.

Hope it will work.

Regards

Krishnendu

Read only

Former Member
0 Likes
1,150

Raja,

there is hierarchy followed by the system depending on which the values in the F4 help are displayed, check this link

http://help.sap.com/saphelp_47x200/helpdata/en/0b/32e9b798da11d295b800a0c929b3c3/content.htm

Read only

Former Member
0 Likes
1,150

Hi Raja,

with the following function module you can call, dependant from your parameters

different search helps.

*&...Suchhilfe für zulässige Prozessketten

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_chain.

*

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'

EXPORTING

tabname = 'ZKSRSPCMAIL'

fieldname = 'CHAIN_ID'

searchhelp = 'ZK_RSPC_ZV_ZKSRSPCMAIL'

    • SHLPPARAM = ' '

dynpprog = 'ZKRSPCMAIL'

dynpnr = '1000'

dynprofield = 'P_CHAIN'

    • STEPL = 0

    • VALUE = ' '

    • MULTIPLE_CHOICE = ' '

    • DISPLAY = ' '

    • SUPPRESS_RECORDLIST = ' '

    • CALLBACK_PROGRAM = ' '

    • CALLBACK_FORM = ' '

    • SELECTION_SCREEN = ' '

    • IMPORTING

    • USER_RESET =

TABLES

return_tab = it_return_tab

EXCEPTIONS

field_not_found = 1

no_help_for_field = 2

inconsistent_help = 3

no_values_found = 4

OTHERS = 5

.

IF sy-subrc <> 0.

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

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

ENDIF.

You can call existing search helps or define your own by calling transaction SE80 -> Edit Object -> Dictionary -> Search help -> your_name -> F5 create.

Within the search help you can call an exit function module, that you have to

prorgamm yourself. Within the exit you can manipulate the F4 values the way you need it. There' an example for search help exits F4IF_SHLP_EXIT_EXAMPLE.

The search help exits provide different timepoints to take influence on the population of the search help.

This is from the documentation of Search help exit:

During the input help process, a number of timepoints are defined that each define the beginning of an important operation of the input help process.

If the input help process is defined with a search help having a search help exit, this search help exit is called at each of these timepoints. If required, the search help exit can also influence the process and even determine that the process should be continued at a different timepoint.

The following timepoints are defined:

1. SELONE

Call before selecting an elementary search help. The possible elementary search helps are already in SHLP_TAB. This timepoint can be used in a search help exit of a collective search help to restrict the selection possibilities for the elementary search helps.

Entries that are deleted from SHLP_TAB in this step are not offered in the elementary search help selection. If there is only one entry remaining in SHLP_TAB, the dialog box for selecting elementary search helps is skipped. You may not change the next timepoint.

The timepoint is not accessed again if another elementary search help is to be selected during the dialog.

2. PRESEL1

After selecting an elementary search help. Table INTERFACE has not yet been copied to table SELOPT at this timepoint in the definition of the search help (type SHLP_DESCR_T). This means that you can still influence the attachment of the search help to the screen here. (Table INTERFACE contains the information about how the search help parameters are related to the screen fields).

3. PRESEL

Before sending the dialog box for restricting values. This timepoint is suitable for predefining the value restriction or for completely suppressing or copying the dialog.

4. SELECT

Before selecting the values. If you do not want the default selection, you should copy this timepoint with a search help exit. DISP should be set as the next timepoint.

5. DISP

Before displaying the hit list. This timepoint is suitable for restricting the values to be displayed, e.g. depending on authorizations.

6. RETURN (usually as return value for the next timepoint)

The RETURN timepoint should be returned as the next step if a single hit was selected in a search help exit.

It can make sense to change the F4 flow at this timepoint if control of the process sequence of the Transaction should depend on the selected value (typical example: setting SET/GET parameters). However, you should note that the process will then depend on whether a value was entered manually or with an input help.

7. RETTOP

You only go to this timepoint if the input help is controlled by a collective search help. It directly follows the timepoint RETURN. The search help exit of the collective search help, however, is called at timepoint RETTOP.

8. EXIT (only for return as next timepoint)

The EXIT timepoint should be returned as the next step if the user had the opportunity to terminate the dialog within the search help exit.

9. CREATE

The CREATE timepoint is only accessed if the user selects the function "Create new values". This function is only available if field CUSTTAB of the control string CALLCONTROL was given a value not equal to SPACE earlier on.

The name of the (customizing) table to be maintained is normally entered there. The next step returned after CREATE should be SELECT so that the newly entered value can be selected and then displayed.

10. APP1, APP2, APP3

If further pushbuttons are introduced in the hit list with function module F4UT_LIST_EXIT, these timepoints are introduced. They are accessed when the user presses the corresponding pushbutton.

Note: If the F4 help is controlled by a collective search help, the search help exit of the collective search help is called at timepoints SELONE and RETTOP. (RETTOP only if the user selects a value.) At all other timepoints the search help exit of the selected elementary search help is called.

If the F4 help is controlled by an elementary search help, timepoint RETTOP is not executed. The search help exit of the elementary search help is called at timepoint SELONE (at the moment). This search help exit should not do anything at this timepoint. Any preparatory work should be carried out at timepoint PRESEL1.

Kind regards Henner

Read only

Former Member
0 Likes
1,150

Hi,

For ur reqirement u have to creat a search help.....

se11->search help-> creat-> u give field name -> exit name -> user_exit_field_name-> in bottom give ur field name -> then u give ur manadatory values.....

then u declare ur search help name then u will get possible values for ur field.

reward me a points if it use full answer................

regards,

praveen