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

Problem in deleting the Table.

ankur_sharma16
Active Participant
0 Likes
1,364

Hello experts,

i have a table zdbtab1 created in SE11, and a class zclass1 created in SE24. Now i am using this zdbtab1 ONLY in zclass1's attributes. Programatically i am changing the zdbtab1 in zclass1 by creating a copy of zdbtab1, eg. zdbtab2, and updating the zclass1's attributes to zdbtab2.

No problem in doing the above steps, other than while deleting the old table zdbtab1 am getting error that its in quantity mode (i.e. its still being used in zclass1 or its still present in buffer, i guess).   ( Message E2071 )

So how to remove this error ? i have tried commit work and clearing the It and structures also.

i am doing the following steps:

1. create copy of zdbtab1, activate it

2. change the zclass1,

3. delete the old table zdbtab1.

Regards,

Ankur Sharma.

Hello experts,

i have a table zdbtab1 created in SE11, and a class zclass1 created in SE24. Now i am using this zdbtab1 ONLY in zclass1's attributes. Programatically i am changing the zdbtab1 in zclass1 by creating a copy of zdbtab1, eg. zdbtab2, and updating the zclass1's attributes to zdbtab2.

No problem in doing the above steps, other than while deleting the old table zdbtab1 am getting error that its in quantity mode (i.e. its still being used in zclass1 or its still present in buffer, i guess).   ( Message E2071 )

So how to remove this error ? i have tried commit work and clearing the It and structures also.

i am doing the following steps:

1. create copy of zdbtab1, activate it

2. change the zclass1,

3. delete the old table zdbtab1.

Regards,

Ankur Sharma.

9 REPLIES 9
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,327

Let me rephrase your question.

Created table A and used it as an attribute in CLASS C

Now copied table A to B and change the attribute to B in CLASS C.

Deleting table A.

If this the scenario, then did you activate the class C after step 2 ?

Read only

0 Likes
1,327

Hi Kesavadas Thekkillath,

The FM to update class itself activates it, i mean after this if i see zclass1 in se24 it is activated.  Should i save and activate this again ?

Read only

0 Likes
1,327

Actually after updation am saving the class using fm 'SEO_CLIF_SAVE_ALL'.

Read only

0 Likes
1,327

Which fm you are using to update the class ?

For activation you can use SEO_CLASS_ACTIVATE.

Read only

0 Likes
1,327

But this FM is not activating the class, in se37 i test run it.

Read only

0 Likes
1,327

So far you are only guessing that it is a where-used problem. E2 071 is about the mass mode that does not allow to display messages for single objects.

What if you let your program do only steps 1 and 2 and then you do step 3 manually for a table via SE11, what messages are issued?

It could also be an issue with asynchronous updates: step 2 is still updating while you are starting step 3 already. Find out by inserting a WAIT statement inbetween.


Thomas

Read only

0 Likes
1,327

Hi Thomas,

1. After changing the table name in class, manually am able to dele the tab name in se11.

2. And one more prob is that if i do where used on the new tab name, it won't show the class where it is used. But if i again save and activate the class then where used list will show that its being used in the class.

Read only

ankur_sharma16
Active Participant
0 Likes
1,327

Is there any FM or method to activate the classes ?

Read only

ankur_sharma16
Active Participant
0 Likes
1,327

Please suggest.