Application Development and Automation 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: 
Read only

Deactivate Single row in table control

Former Member
0 Likes
491

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
360

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

1 REPLY 1
Read only

Former Member
0 Likes
361

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