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

on value request

Former Member
0 Likes
2,911

what is meant by on value request and on help request in parameters & select-options

7 REPLIES 7
Read only

Former Member
0 Likes
1,758

On value is - when you press f4 on selection-screen field and it displays Possible values.

on help is - when you press f1 on selection-screen field and it displays documenattion of field.

Reward Points if it is helpful

Thanks

Seshu

Read only

Former Member
0 Likes
1,758

Hi.

You can define actions that are executed when pressing F1 or F4 on a parameter/select-option. But only for database specific parameter in INCLUDE DBldbSEL.

In reports you can achieve same functionality using the event section

AT SELECTION-SCREEN ON VALUE-REQUEST FOR parametername.

AT SELECTION-SCREEN ON HELP-REQUEST FOR parametername.

Regards,

Timo.

Read only

Former Member
0 Likes
1,758

hi,

Value request is nothing but F4 help.

example:

TABLES: mara, makt.

DATA mat LIKE mara-matnr.

DATA: BEGIN OF itab OCCURS 0,

matnr LIKE mara-matnr,

END OF itab.

DATA : BEGIN OF btab OCCURS 0,

maktx LIKE makt-maktx,

END OF btab.

DATA : return LIKE ddshretval OCCURS 0 WITH HEADER LINE.

SELECT-OPTIONS: so_matnr FOR mara-matnr,

so_maktx FOR makt-maktx.

INITIALIZATION.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_matnr-low.

PERFORM matnr.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_matnr-high.

PERFORM matnr.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_maktx-low.

PERFORM maktx.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_maktx-high.

PERFORM maktx.

&----


& Form matnr

*&----


FORM matnr.

REFRESH itab.

SELECT matnr FROM mara INTO TABLE itab.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'MATNR '

dynprofield = 'P_MATNR '

dynpprog = sy-repid

dynpnr = sy-dynnr

value_org = 'S'

TABLES

value_tab = itab

return_tab = return.

mat = return-fieldval.

UNPACK mat TO mat.

so_matnr = return-fieldval.

REFRESH return.

CLEAR return.

ENDFORM. "matnr

*&----


*& Form maktx

*&----


FORM maktx.

REFRESH btab.

SELECT maktx FROM makt INTO TABLE btab WHERE matnr = mat AND spras =

sy-langu.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'MAKTX'

dynprofield = 'SO_MAKTX '

dynpprog = sy-repid

dynpnr = sy-dynnr

value_org = 'S'

TABLES

value_tab = btab

return_tab = return.

so_maktx = return-fieldval.

REFRESH return.

CLEAR return.

ENDFORM. "maktx

Help request is nothing but f1 help-documentation.

Read only

Former Member
0 Likes
1,758

hi

To display help on a particular field, you can use either of following functions in Module defined as normal PAI module:

<b>HELP_OBJECT_SHOW_FOR_FIELD</b>

Displays the data element documentation for components of any structure or DB table from dictionary.

Takes input as Field and Table

<b>HELP_OBJECT_SHOW</b>

display any SAP script document

Takes input as document class (for example, TX for general texts, DE for data element documentation) and the name of the document .

Should also provide Empty internal table as tables parameter.

<b>

PROCESS ON VALUE-REQUEST.</b>

FIELD field name MODULE module name.

For Possible values, within module defined above, you should use the general function module HELP_VALUES_GET_WITH_TABLE to get possible values from ABAP Dictionary.

Some other functions can be used for F4 Help:

<b>F4IF_FIELD_VALUE_REQUEST</b>

Calls the input help of the ABAP Dictionary dynamically

Takes input as component names of a structure or database table of the ABAP Dictionary

<b>F4IF_INT_TABLE_VALUE_REQUEST</b>

Displays a value list that you created in an ABAP program

Takes input as value list is passed to the function module as the table parameter VALUE_TAB

regards

ravish

<b>plz reward points if helpful</b>

Read only

Former Member
0 Likes
1,758

Hi,

SELECT-OPTIONS :

1) HELP-REQUEST [ FOR {LOW|HIGH} ]

Effect

If you specify this addition, the program accesses the subroutine selcrit_HLP when the user chooses the field help F1 for an input field in the selection criterion. The subroutine selcrit_HLP must be defined in the database program on the logical database, where selcrit stands for the name of the selection criterion. You can specify FOR LOW or FOR HIGH to access either the subroutine selcrit-LOW_HLP or the subroutine selcrit-HIGH_HLP, depending on whether the field help is selected for the first or second input field. The addition does not affect the other field. If one of the subroutines does not exist, choosing F1 for the input field has no effect.

If the selection criterion is defined with reference to a data type in the ABAP Dictionary, the field help defined there for the corresponding field is not displayed.

Note:

The subroutines can be used in the same way as in a PARAMETERS statement to program a field help.

2) VALUE-REQUEST [ FOR {LOW|HIGH} ]

Effect

If you specify this addition, the system accesses either the subroutine selcrit-LOW_VAL or selcrit-HIGH_VAL, depending on whether the user chooses the input help F4 on the first or second input field in the selection criterion . The subroutines selcrit-LOW_VAL and selcrit-HIGH_VAL must be defined in the database program for the logical database, where selcrit stands for the name of the selection criterion. If you specify FOR LOW, the addition only affects the first input field, and if you specify FOR HIGH, it only affects the second.

If one of the subroutines does not exist, choosing F4 for the input field has no effect. If the selection criterion is defined with reference to a data type in the ABAP Dictionary, the input help defined there for the field in question is not displayed.

Note:

The subroutines can be used in the same way as for a PARAMETERS statement to program an input help. When the user chooses the input help, this does not trigger any other selection screen events and there is no automatic value transfer between the selection screen and the program.

PARAMETERS:

1) HELP-REQUEST

Effect

This addition has the effect that the para_HLP subroutine ( para is the name of the parameter) of the database program of the logical database is called if the user selects the F1 field help for a screen element of the parameter on the selection screen. The addition is ignored if the subroutine is not available.

If the parameter is defined in the ABAP Dictionary with a reference to a data type, the field help that is defined there is not displayed.

Note :

In the subroutine that is called, the field help display can be programmed or called using suitable function modules, such as HELP_OBJECT_SHOW. If the input help is selected, no other selection screen events can be triggered and there is no automatic pass by value between the selection screen and the program.

2) VALUE-REQUEST

Effect

This addition has the effect that the para_VAL subroutine ( para is the name of the parameter) of the database program of the logical database is called if the user selects the F4 input help on a screen element of the parameter on the selection screen. The input help key is displayed for the input field of the parameter on the selection screen. If the subroutine is not available, the addition is ingored.

If the parameter is defined in the ABAP Dictionary with a reference to a data type, the input help that is defined there is not displayed.

Note :

In the subroutine that is called, the input help display can be programmed or called using suitable function modules such as F4IF_INT_TABLE_VALUE_REQUEST. If the input help is selected, no other selection screen events are called and there is no automatic pass by value between the selection screen and the program. As for general screens, you have to use suitable function modules for this. The parameter that is changed in the subroutine is transported to the selection screen.

Regards,

Shalini

Read only

Former Member
0 Likes
1,758

hi

To display help on a particular field, you can use either of following functions in Module defined as normal PAI module:

<b>HELP_OBJECT_SHOW_FOR_FIELD</b>

Displays the data element documentation for components of any structure or DB table from dictionary.

Takes input as Field and Table

<b>HELP_OBJECT_SHOW</b>

display any SAP script document

Takes input as document class (for example, TX for general texts, DE for data element documentation) and the name of the document .

Should also provide Empty internal table as tables parameter.

<b>

PROCESS ON VALUE-REQUEST.</b>

FIELD field name MODULE module name.

For Possible values, within module defined above, you should use the general function module HELP_VALUES_GET_WITH_TABLE to get possible values from ABAP Dictionary.

Some other functions can be used for F4 Help:

<b>F4IF_FIELD_VALUE_REQUEST</b>

Calls the input help of the ABAP Dictionary dynamically

Takes input as component names of a structure or database table of the ABAP Dictionary

<b>F4IF_INT_TABLE_VALUE_REQUEST</b>

Displays a value list that you created in an ABAP program

Takes input as value list is passed to the function module as the table parameter VALUE_TAB

regards

ravish

<b>plz reward points if helpful</b>

Read only

Former Member
0 Likes
1,758

Hi,

At Selection-screen On value request.

- This event is trigerred for F4 help.

At Selection-screen On help request .

- This event is triggered when the user clicks F1 for help on fields.

Hope this helps.

Reward if helpful.

Regards,

Sipra