‎2008 Dec 12 4:51 PM
'Hi,
My requirement is,
I have a push button SAVE in table control for each line, when user press the push button that single line should come in display mode and it shuold be saved in databse.
Regards,
B V Rao
‎2008 Dec 14 7:28 AM
Hai Bala,
1. Find the table index, when you select the particular row in table control
2. Move the selected index record to workarea from the internal table of the table control, when you press the save button
3. Disable the selected row using Loop At Screen, Screen-input = 0 and Modify Screen
I hope the above tips will help you to solve your problem.
Regards,
Harish
‎2008 Dec 14 8:12 AM
hi try this..
refer to this link..
Here wa_itab is a work area which I have used for the table control.
PICK is the Mark field of type C which we generally use for selecting a particular Row.
&----
*& Module DEACTIVATE OUTPUT
&----
text
-
module DEACTIVATE output.
IF WA_ITAB-PICK = 'X'.
LOOP AT SCREEN.
if flg is initial.
IF SCREEN-NAME = 'WA_ITAB-PICK'.
screen-input = 1.
ELSE.
screen-input = 0.
ENDIF.
elseif flg = 'Y'.
if SCREEN-NAME = 'WA_ITAB-VBELN'
or screen-name = 'WA_ITAB-ERDAT'.
.
.
screen-INPUT = 1.
endif.
endif.
modify screen.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
if flg is initial.
IF SCREEN-NAME = 'WA_ITAB-PICK'.
screen-input = 1.
ELSE.
screen-input = 0.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
endmodule. " DEACTIVATE OUTPUT
‎2008 Dec 15 5:05 AM
Hi,
Try use this way:
IF ok_code = 'CB_SAV'.
LOOP AT SCREEN.
IF screen-name EQ 'IT_ZMARA-MATNR'.
screen-input = 0.
ENDIF.
ENDLOOP.
MODIFY zmara FROM TABLE it_zmara.
ENDIF.
Thanks & Regards,
Krishna..
‎2008 Dec 15 5:37 AM
hi bala,
CASE sy-ucomm.
WHEN 'SAVE'.
MOVE-CORRESPONDING itab TO zvbaK.
MODIFY zvbak.
MOVE-CORRESPONDING itab1 TO zvbaP.
MODIFY zvbap.
ITAB is internal table that u will give in table control columns
thanks
Sachin