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: 

Unable to see a Edit field on function module 'REUSE_ALV_POPUP_TO_SELECT'

Former Member
0 Kudos

Hi ,

i want to set a field as editable on output.

let say i want to set MATNR field a seditable on output.

right now it's showing on display mode ,not able to edit the material no.

please suggest how to edit hte code.

call function 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

I_STRUCTURE_NAME = 'MARA'

changing

ct_fieldcat = gt_fieldcat[].

read table gt_fieldcat with key fieldname = 'MATNR'.

if sy-subrc = 0.

gt_fieldcat-edit = 'X'.

modify gt_fieldcat index sy-tabix.

endif.

CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'

EXPORTING

I_TITLE = P_TITLE

I_SELECTION = 'X'

I_ZEBRA = 'X '

  • I_SCREEN_START_COLUMN = 3

  • I_SCREEN_START_LINE = 2

  • I_SCREEN_END_COLUMN = 120

  • I_SCREEN_END_LINE = 0

  • I_CHECKBOX_FIELDNAME = 'CHECKBOX'

  • I_LINEMARK_FIELDNAME =

I_SCROLL_TO_SEL_LINE = 'X'

i_tabname = '1'

IT_FIELDCAT = gt_fieldcat[]

  • IT_EXCLUDING =

  • I_CALLBACK_PROGRAM =

  • I_CALLBACK_USER_COMMAND =

  • IS_PRIVATE = GS_PRIVATE

  • IMPORTING

  • ES_SELFIELD = GS_SELFIELD

  • E_EXIT = G_EXIT

TABLES

T_OUTTAB = GT_OUTTAB

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

1 REPLY 1

Former Member
0 Kudos

Hi,

In fieldcat definition add following line

gt_fieldcat-input = 'X'.

Regards

Vinod