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

Search Help

Former Member
0 Likes
610

Hi Team,

Without creating a search help to a field . How could i get f4 help

Regards

sankar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
581

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

8 REPLIES 8
Read only

Former Member
0 Likes
582

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

Read only

0 Likes
581

hi i mean i need f4 help with the help of a domain

Read only

0 Likes
581

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

Read only

Former Member
0 Likes
581

hi,

r u talking about a database field or report field

thanks

shivraj

Read only

0 Likes
581

Hi shivraj

Talking about report field / custom field from database

regards

sankar

Read only

0 Likes
581

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

Read only

0 Likes
581

hi i mean i need f4 help with the help of a domain

Read only

Former Member
0 Likes
581

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