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: 

About search help

Former Member
0 Kudos
111

Hi Experts

I have a requirment that, when the user clicks input help icon. The popup should come out and list records which are from one data table.In the list, the last record "0000" which is not a record in the database table is also required in the list. Anyone knows is there any standard function to implement this?

Best Regards

Nick

1 ACCEPTED SOLUTION

Former Member
0 Kudos
86

Hi,

Select the records from the table that you are using to display as Input help, and append one more record with "0000" value to that internal table . And then use this internal table for F4 help in AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field name> event . Use F4IF_INT_TABLE_VALUE_REQUEST this function module displays a value list that you created in ABAP program.

Regards,

Rajitha.

3 REPLIES 3

Former Member
0 Kudos
87

Hi,

Select the records from the table that you are using to display as Input help, and append one more record with "0000" value to that internal table . And then use this internal table for F4 help in AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field name> event . Use F4IF_INT_TABLE_VALUE_REQUEST this function module displays a value list that you created in ABAP program.

Regards,

Rajitha.

0 Kudos
86

Hi,

Try this....

gv_repid = sy-repid.

IF gt_f4table[] IS INITIAL.

SELECT ' the field whose value you want to display ' FROM table

INTO TABLE gt_f4table.

ENDIF.

append the value '0000' also to this internal table gt_f4table.

After that call this FM.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'field you want to display'

dynpprog = gv_repid

dynpnr = sy-dynnr

window_title = text-002

value_org = 'S'

TABLES

value_tab = gt_f4table

return_tab = gt_matnr_returned.

MarcinPciak
Active Contributor
0 Kudos
86

Hi,

Do you want another customized column or record?

For standard table use F4IF_FIELD_VALUE_REQUEST

For internal one (i.e with all columns from DB table + your custom one), go for F4IF_INT_TABLE_VALUE_REQUEST

Refer for more details [input help in dialog modules|http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/frameset.htm]

Regards

Marcin