Application Development 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: 

how to disable fields in tcode co11n

santosh_kumar94
Participant
0 Kudos

dear experts,

         i have a requirement on badi or userexit in tcode co11n(enter time ticket for production order)

in co11n we have 6 activity fields. when we enter order. some activity field should be in disable mode.

for example : -

suppose , we have 6 activity field. when we enter order. 3 activity field should be in active mode other 3

activity shuold be in  disable mode how to achieve it.

is there any badi or userexit to do this ?

1 ACCEPTED SOLUTION

nabheetscn
Active Contributor
0 Kudos

You can go for implicit enhancement in this case. In include LCORU_SO10 and subroutine

set_cursor you can disable the fields

Nabheet

14 REPLIES 14

nabheetscn
Active Contributor
0 Kudos

You can go for implicit enhancement in this case. In include LCORU_SO10 and subroutine

set_cursor you can disable the fields

Nabheet

0 Kudos

dear nabheet,

      how can use impicit enhancement here. can you plz help me in this. how to do that.

0 Kudos

Go inside the subroutine.Click on spiral button in toool bar or SHIFT+F4. then right click-enahncement operations-->show implicit enhancement.  The you will see a line in beginning and end of subourinte. Place cursore their do a right click-->Enhancement->create enhancement

0 Kudos

Hello,

To do Implicit Extension, you need to:

1. Go to the Include and click the icon as shown:

2. Then Show Implicit..

3. Then you'll see the """"""", this is where you can right-click and Create Enhancement

You can then add codes in this area of enhancement.

0 Kudos

dear Feenaz Bhaukaurally,

         if i am going to that screen pbo. there are two modukes :;

MODULE SET_ACTIVITY_SETTINGS.   "Layout der Leistungen einstellen

   module set_cursor.

why we are doing in set_cursor. can we do it in

MODULE SET_ACTIVITY_SETTINGS.

i am asking for my knowledge. can u plz tell me.

0 Kudos

Hi Santosh

Yes you can do it in both place...in both the subroutine..I told you the last one just to make sure that SAP standard code does not overwrites our in case we implement it in first one

0 Kudos

Hi Santosh

Yes you can do it in both place...in both the subroutine..I told you the last one just to make sure that SAP standard code does not overwrites our in case we implement it in first one

0 Kudos

thnks nabheet. thnks for reply. i was confused in it. now i am clear.

thnks a lot.

0 Kudos

dear nabheet, i created one implicit enhancement for it. my code was not working. so i deleted it from my package. when again i am trying to create it. it's not allowing to create enhancement.

0 Kudos

i got it. i was not clicking on the spiral button. sorry .

but if i am trying to create implementation. it's showing one box in which there are so many

enhancement implementaion. i have to choose from that or create new one. if have to choose from that which one i should choose?

0 Kudos

If you find any one created by you use that else..use create new button

0 Kudos

ok nabheet . thnks for reply.

0 Kudos

Hello,

1. Enhancement Implementation > Create

2. Choose the type of enhancement > Code

3. Create a new enhancement implementation

4. Then Select the line to add the code

5. Add the code

santosh_kumar94
Participant
0 Kudos

thnks everyone for your answer. i did this using ur help. it's working fine now.

thnks a lot.