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 row input in table control

Former Member
0 Likes
496

Hi expert,

i have a internal table on the screen and the user can modify data inside. I want to deactivate input only for someone row. I have to use table control option ??

I tried to use :

*declaration

CONTROLS: tab_rgsubv TYPE TABLEVIEW USING SCREEN '0700'.

DATA: BEGIN OF it_zpsregsubv OCCURS 0,

flag TYPE c,

mandt LIKE zpssbvregsubv-mandt,

zzps_posnr LIKE zpssbvregsubv-zzps_posnr,

zznrg LIKE zpssbvregsubv-zznrg,

zzbegdi LIKE zpssbvregsubv-zzbegdi,

zzdgbi LIKE zpssbvregsubv-zzdgbi,

flag2 TYPE c,

END OF it_zpsregsubv .

etct etc

LOOP AT it_zpsregsubv WITH CONTROL tab_rgsubv .

MODULE deactivate .

ENDLOOP.

but there's a error message: Unable to interpret "WITH".

How can solve my problem ???

Tka a lot,

bye.

1 ACCEPTED SOLUTION
Read only

Firoz_Ashraf
Contributor
0 Likes
475

Hi,

Try by setting the SCREEN attributes.

See the below example code.


LOOP AT SCREEN.
  IF screen-name = 'ZSRSK-ADVNO' .
     screen-input = 0.
     MODIFY SCREEN.
  ENDIF.
ENDLOOP.

3 REPLIES 3
Read only

naveen_inuganti2
Active Contributor
0 Likes
475

Hi....

Loop the screen table...

You can solve your problem with taht.

Thanks,

Naveen.I

Read only

Firoz_Ashraf
Contributor
0 Likes
476

Hi,

Try by setting the SCREEN attributes.

See the below example code.


LOOP AT SCREEN.
  IF screen-name = 'ZSRSK-ADVNO' .
     screen-input = 0.
     MODIFY SCREEN.
  ENDIF.
ENDLOOP.

Read only

0 Likes
475

Tks for help,

but not run... and with this code, if run, i deactive all colomn.... I have deactivate only some row of colomn...

some idea ?

TKS,

BYE