‎2008 Jul 03 9:30 AM
hi,
how to deactivate a
particular row in a table
control.
for example iam having 10 lines in a table
control,
i want to deactivate a particular line in the table control by selecting the line or by clicking the checkbox.
Is it possible , if so pls give your idea.
‎2008 Jul 03 9:44 AM
Hi,
when 'DELETE'.
delete1 = '1'.
IN PAI.
process after input.
module user_command_0003.
loop at wi_cust1. "Internal Table
module del1.
module disable1.
endloop.
module del1 input. (In PAI)
DATA : ln1 type i.
get cursor line ln1.
if delete1 = '1'.
if tb-current_line = ln1.
if wi_cust1-zstat = 'INACTIVE'.
message e004(zbanks1msg).
else.
clear wi_cust1-zstat.
wi_cust1-zstat = 'INACTIVE'.
SELECT * FROM zacc_master2 WHERE zcustid = wi_cust1-zcustid.
IF zacc_master2-zstat = 'INACTIVE'.
modify wi_cust1 index tb-current_line.
modify zcust_master2 from table wi_cust1.
set1 = 1.
ELSE.
MESSAGE e000(zbanks1msg).
ENDIF.
ENDSELECT.
if sy-subrc = 0.
message s002(zbanks1msg).
else.
message e003(zbanks1msg).
endif.
endif.
endif.
endif.
module disable1 input. (In PAI)
if set1 = 1.
screen-input = 0.
endif.
The above module disables the line selected if the flag "Set1" is set.
Hope this helps u,
Regards,
Arunsri
‎2008 Jul 03 9:44 AM
Hi,
when 'DELETE'.
delete1 = '1'.
IN PAI.
process after input.
module user_command_0003.
loop at wi_cust1. "Internal Table
module del1.
module disable1.
endloop.
module del1 input. (In PAI)
DATA : ln1 type i.
get cursor line ln1.
if delete1 = '1'.
if tb-current_line = ln1.
if wi_cust1-zstat = 'INACTIVE'.
message e004(zbanks1msg).
else.
clear wi_cust1-zstat.
wi_cust1-zstat = 'INACTIVE'.
SELECT * FROM zacc_master2 WHERE zcustid = wi_cust1-zcustid.
IF zacc_master2-zstat = 'INACTIVE'.
modify wi_cust1 index tb-current_line.
modify zcust_master2 from table wi_cust1.
set1 = 1.
ELSE.
MESSAGE e000(zbanks1msg).
ENDIF.
ENDSELECT.
if sy-subrc = 0.
message s002(zbanks1msg).
else.
message e003(zbanks1msg).
endif.
endif.
endif.
endif.
module disable1 input. (In PAI)
if set1 = 1.
screen-input = 0.
endif.
The above module disables the line selected if the flag "Set1" is set.
Hope this helps u,
Regards,
Arunsri