‎2010 Feb 09 8:08 AM
Hi Team,
Without creating a search help to a field . How could i get f4 help
Regards
sankar
‎2010 Feb 09 8:13 AM
hi,
try this.
DATA: BEGIN OF IT_FINAL OCCURS 0,
WERKS TYPE MARC-WERKS,
END OF IT_FINAL.
data: IT_RETURN LIKE DDSHRETVAL OCCURS 0 WITH header line.
parameters: p_werks(10) type c.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_werks.
select werks from marc
into table IT_FINAL.
delete adjacent duplicates from IT_final comparing werks.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
RETFIELD = 'WERKS' "field of internal table
VALUE_ORG = 'S'
TABLES
VALUE_TAB = IT_FINAL
* FIELD_TAB =
RETURN_TAB = IT_RETURN
.
WRITE IT_RETURN-FIELDVAL TO P_WERKS.
REFRESH IT_FINAL.
regards,
sakshi
‎2010 Feb 09 8:13 AM
hi,
try this.
DATA: BEGIN OF IT_FINAL OCCURS 0,
WERKS TYPE MARC-WERKS,
END OF IT_FINAL.
data: IT_RETURN LIKE DDSHRETVAL OCCURS 0 WITH header line.
parameters: p_werks(10) type c.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_werks.
select werks from marc
into table IT_FINAL.
delete adjacent duplicates from IT_final comparing werks.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
RETFIELD = 'WERKS' "field of internal table
VALUE_ORG = 'S'
TABLES
VALUE_TAB = IT_FINAL
* FIELD_TAB =
RETURN_TAB = IT_RETURN
.
WRITE IT_RETURN-FIELDVAL TO P_WERKS.
REFRESH IT_FINAL.
regards,
sakshi
‎2010 Feb 09 9:50 AM
‎2010 Feb 09 10:16 AM
hi
From the table ,select dataelemet-->domain which you want to select f4
go to Domain and mention the fixed value in (Fix val) and activate it.
in program you will get the fix values
‎2010 Feb 09 8:46 AM
hi,
r u talking about a database field or report field
thanks
shivraj
‎2010 Feb 09 8:53 AM
Hi shivraj
Talking about report field / custom field from database
regards
sankar
‎2010 Feb 09 9:06 AM
hi,
if u want the F4 help on custom field of the custom table then u have to go to the table maintainance generator program there u have to create a POV event in which u wl code as per given by sjain to get F4 help and if you want F4 help on report selection screen field then the same code by sjain u have to do it in AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field-name>.
thanks
‎2010 Feb 09 9:49 AM
‎2010 Feb 09 9:03 AM
Hello,
Create an internal table which will hold the values to be displayed in the F4 popup screen.
Based on whatever condition populate that internal table (values could be coming from a standard stable then populate theinternal table by using select statement or if these are a set of fixed vales then simply append the hard coded values to the internal table.
On the event At selection-screen for value-request on <parametername on which F4 is required>.
Call the FM F4IF_INT_TABLE_VALUE_REQUEST and pass the internal table to the value_tab in the tables parameter, name of the internal table field for the values to the RETFIELD parameter and DYNPROFIELD will have the name of the parameter on the selection screen. Also pass sy-repid and sy-dynnr to DYNPPROG and DYNPNR respectively and 'S' to VALUE_ORG.
Hope this helps.
Regards,
Sachin