I am working on dynamic development of cusomter tables mainenance. The program provides selection screen dynamically based on the key fields of each table and generates ALV list with table contents. When user double click on any of row, I would like to open up non-key fields in edit mode for editing. Somehow I am stuck when I tried to update work area of internal table with deep structure - handle style - lvc_s_styl. Can anybody help me on it?
any ideas?
your help will be very appreciated.
thanks,
Kelly
FIELD-SYMBOLS: <tab> TYPE standard TABLE,
<wa_tab> type any,
<ls_edit> type lvc_s_styl,
<col> TYPE ANY.
ls_edit-fieldname = e_column-fieldname.
ls_edit-style = cl_gui_alv_grid=>mc_style_enabled.
ls_edit-style2 = space.
ls_edit-style3 = space.
ls_edit-style4 = space.
ls_edit-maxlen = 8.
INSERT ls_edit INTO TABLE lt_edit.
LOOP AT <tab> ASSIGNING <wa_tab>.
IF e_row = sy-tabix .
ASSIGN COMPONENT l_colname OF STRUCTURE <wa_tab> TO <col>.
ASSIGN ls_edit TO <col>.
I want to update <wa_tab>-handle_style with <col>, how do I do it? <Col> contains the same structure with deep structure handle_style.
MANDT 400
WERKS 0002
MATNR 000000000000040066
VERID 0110
SEQUENCE 010
PPRESRC
PAN_SIZE 0000
DOCUMENT
Toriis02\Inetpub\MasterProAndPKGDoc\sappdf\ALL-BPO-300CA.pdf
DIVIDER 0000
HANDLE_STYPE Structure: flat & not charlike
FIELDNAME
STYLE 00000000
STYLE2 00000000
STYLE3 00000000
STYLE4 00000000
MAXLEN 0
MODIFY <tab> FROM <wa_tab>.
endloop.
Edited by: Kelly Gao on Mar 13, 2009 7:22 PM