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

loop at screen

Former Member
0 Likes
407

HI experts,

My requirement is I need to deactivate all the fields in tcode ks02 except User reponsible field.

I found the Userexit "COOMKS02" In that I am trying to write a code like loop at screen

however only few of the fields which is main screen able to deactivate. I coudn't able to deactivate

the fields inside the tab strip (In loop at screen it is not coming) for ex. Basic tabstrip.

how to get control over the fields inside the tab strip or Is there any user exit or badi for to do this .

Please guide me

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
355

Hi,

In the tabstrip you have to do loop at table control as below


 FIELD-SYMBOLS: <cols> LIKE LINE OF <table control name-cols>.
    LOOP AT <table control name-cols> ASSIGNING <cols>.
      CASE <cols>-screen-name.
       WHEN <screen name>.
          <cols>-screen-input = 0.
          <cols>-screen-active = 0.
         MODIFY <table control name-cols>[] FROM <cols>.
     ENDCASE.

   ENDLOOP.

Regards,

JP

2 REPLIES 2
Read only

Former Member
0 Likes
356

Hi,

In the tabstrip you have to do loop at table control as below


 FIELD-SYMBOLS: <cols> LIKE LINE OF <table control name-cols>.
    LOOP AT <table control name-cols> ASSIGNING <cols>.
      CASE <cols>-screen-name.
       WHEN <screen name>.
          <cols>-screen-input = 0.
          <cols>-screen-active = 0.
         MODIFY <table control name-cols>[] FROM <cols>.
     ENDCASE.

   ENDLOOP.

Regards,

JP

Read only

0 Likes
355

Hi yadav,

thanks for reply, How to i loop in a standard screen .it is not allowing me to do this.

Any other way to do this

pls help