Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

check box in Grid display

when i check checkbox it is not updated in internal table.

Final Internal Tbale:

Data: BEGIN OF T_FINAL occurs 0,

CHK_BOX,

……………………………..

……………………………..

……………………………….

END OF T_FINAL.

-


LS_FIELDCAT-TABNAME = t_final.

LS_FIELDCAT-COL_POS = 1.

LS_FIELDCAT-FIELDNAME = 'CHK_BOX'.

LS_FIELDCAT-SELTEXT_S = ‘check box’.

LS_FIELDCAT-INPUT = 'X'.

LS_FIELDCAT-OUTPUTLEN = 1.

LS_FIELDCAT-CHECKBOX = 'X'.

LS_FIELDCAT-EDIT = 'X'.

APPEND LS_FIELDCAT TO LT_FIELDCAT.

CLEAR LS_FIELDCAT.

-


DATA: I_CHECK TYPE TABLE OF T_FINAL,

WA_CHECK TYPE T_FINAL.

LOOP AT I_FINAL INTO WA_FINAL.

IF WA_FINAL-CHK_BOX = 'X'.

APPEND WA_FINAL TO I_CHECK.

ENDIF.

ENDLOOP.

-


In layout:

LS_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.

LS_LAYOUT-BOX_FIELDNAME = 'CHK_BOX'.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question