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: 

Search help for date field in Editable ALV

Former Member
0 Kudos

Hello Friends,

I am using editable alv using 'reuse_* '.

I have used date as input field. While creating fieldcatlog also i have declared dat as a mkpf-budat.

But i am not getting serach help for date in output.

Is it possible with reuse or i have to go by object oriented ?

2 REPLIES 2

p291102
Active Contributor
0 Kudos

Hi,

Just pass the Edit option of the fieldcatalog for those specific fields...

fcat-edit = 'X'.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program       = sy-cprog
      i_callback_pf_status_set = 'PF_STATUS_SET'
      i_callback_user_command  = 'USER_COMMAND'    "<----  pass this
      i_callback_top_of_page   = 'TOP'
      is_layout                = it_layout
      it_fieldcat              = it_fcat
      i_default                = 'X'
      i_save                   = 'A'
      it_events                = it_event
    TABLES
      t_outtab                 = it_final
    EXCEPTIONS
      program_error            = 1
      OTHERS                   = 2.
 
*&---------------------------------------------------------------------*
*&      Form  USER_COMMAND
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      -->R_UCOMM      text
*      -->RS_SELFIELD  text
*----------------------------------------------------------------------*
FORM user_command USING r_ucomm LIKE sy-ucomm
                        rs_selfield TYPE slis_selfield.
  CASE r_ucomm.
 
    WHEN '&DATA_SAVE'.                "<-------check this
      PERFORM save_data.
 
  ENDCASE.
ENDFORM.                    "USER_COMMAND

Former Member
0 Kudos

HI,

as per your requirement i can suggest you to better use OO ALV there you can provide the F4 help.

If you need more info on how to use OO in this case then do let me know.

Regards,

Neha