2009 Jun 09 10:08 AM
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
2009 Jun 09 10:22 AM
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.
2009 Jun 09 10:22 AM
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.
2009 Jun 09 11:11 AM
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.
2009 Jun 09 10:29 AM
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