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

Re-generating deleted object through Co/Data Files

Former Member
0 Likes
1,576

Hi Folks

I have created a BAPI, say ZBAPI_TEST, in ECC6 System and its associated TR got released.

I have copied the Co/Data files to a local folder and deleted the original Co/Data files from \usr\sap\trans. Later I have removed ZBAPI_TEST and its associated structures.

Then I re-imported the Co/Data friles to \usr\sap\trans\ from my local folder and attached to a new TR (using Include Objects).

But, the object ZBAPI_TEST is not existing now. What could be the problem?

My Q is: since the Co/Data Files must contain the object and its associated structures, ZBAPI_TEST was supposed to exist after re-import.. right?

Please comment....

Cheers

Rajvat

17 REPLIES 17
Read only

Former Member
0 Likes
1,531

>

>

> Then I re-imported the Co/Data friles to \usr\sap\trans\ from my local folder and attached to a new TR (using Include Objects).

>

> But, the object ZBAPI_TEST is not existing now. What could be the problem?

> Rajvat

Hi ,

I think here by re-importing, you only copied the TR files back to the respective directories.

Have you imported that request in tcode STMS_IMPORT ?

Regards

Karthik D

Read only

0 Likes
1,531

Hi Karthick

As you have said, I have copied the TR files back to the respective directories. And I have imported that request using tcode STMS_IMPORT successfully.

Even afetr that, the object does not exist. Any guess?

Rajvat

Read only

0 Likes
1,531

The only reason for me is that you have your bapi splitted over several transports, not only this one, i.e. you are missing entire Function Group for that. If the definition is full, after import all objetcs should appear correctly.

As a proof of that refer [How to copy Repository Objects between non-connected SAP systems |http://wiki.sdn.sap.com/wiki/x/ggJqBg]

Regards

Marcin

Read only

0 Likes
1,531

Hi Marcin

I already have referred the link you have provided.

Moreover, the object and its associated structures are not on different TRs.

The Package, Function Group, BAPI as well as its Structures are attached to the same TR.

Rajvat

Read only

0 Likes
1,531

When you were removing these objects did you create transport for them? Maybe this deletion is stored in some TRQ and you can't get those objects imported correctly (as they may be locked). Try searching in TRQs ( SE03 -> Search for objects in Requests/Tasks ) for your ZBAPI and associated objets and remove all occurences of them from any transport, then reimport new one with STMS.

Try it out

Regards

Marcin

Read only

0 Likes
1,531

Marcin

When I deleted ZBAPI_TEST and its associated structures, I have created a new TR since the object's TR was released. So, the deletion is assigned on a new TR.

But, the Lock/Import status of that new TR shows no object is being locked.

Above this, If I have to do something with this TR, please let me know what should be done?

Rajvat

Read only

0 Likes
1,531

Rajvat,

I would try removing these deletion references from the trasnports they are included in.

Maybe the issue arise due to fact that there are still some "poniters" to these non existing objects in those TRQs.

I think trying that nothing costs you. You already don't have them in you DEV system so you definetely don't need any reference to them.

As you don't have to many choices, I think you should go for that one. I don't know if that will assure your reimport will work but here trial & error method may help.

Regards

Marcin

Read only

0 Likes
1,531

Marcin

You say to remove the object references from TR. Its possible iff the TR is not released yet.

What if the TR is released already?

Rajvat

Read only

0 Likes
1,531

Unless you don't what this deletion go to subsequent systems ( QUA->PROD ) you can ask basis guy to remove this released trq from queue. Then you will be able to handle that.

Regards

Marcin

One more thing, if the trq is released, included objects are most likely locked. That could be the issue, though STMS doesn't notify that during import. Maybe trq system only yells when you are trying to change objects directly.

Edited by: Marcin Pciak on Oct 8, 2009 11:11 AM

Read only

0 Likes
1,531

Marcin

Let me give a try. Thanks lot for your suggestions....

ALSO WELCOME OTHER EXPERTS' OPINIONS

Rajvat

Read only

0 Likes
1,531

Hi,

If you want to unrelease a request use the sample code. But i strictly resist doing this,

Used to change the status of a request from released to unrelease the request.


DATA it_rel type STANDARD TABLE OF E070.
DATA wa_rel TYPE E070.

SELECT * FROM E070 INTO TABLE it_rel WHERE TRKORR = 'RCDK976508'.

Loop AT it_rel INTO wa_rel.
   wa_rel-TRSTATUS = 'D'.
ENDLOOP.

MODIFY E070 FROM wa_rel.

Then you remove the objects from the TR

Regards,

Aditya

Read only

0 Likes
1,531

Aditya

Thanks for your suggestions. Still I have a query related to this. Consider the below scenario......

I have developed a BAPI object in ECC6 System. Released the TR and saved the Co/Data files in my Local system folder.

Then, I

* removed the Co/Data File from Application Server

* deleted the object and its associated structures from the ECC6 system

* un-released the TR

* removed all the references of object

* deleted the TR itself

All that we remain with is the Co/Data Files of the TR. We just know the TR number also.

NOW,

I want to reproduce my deleted object using the Co/Data Files in my hand.

Is it possible? Is there any technical difficulties in accomplishing this?

Please comment,

Rajvat

Read only

0 Likes
1,531

I really don't understand what can be the cause of the problem you have.

But what says the import log : are table entries inserted? what says the activation step?

Read only

0 Likes
1,531

Hi Folks

I tried to import the TR back to ECC6 system. It throws a warning saying that the DevClass (of the table structure used in the BAPI) already exixts..

I checked in SE24 for this class.

If I click 'Display', it says the class does not exist!

If I click on 'Create', it says the class already exists!

I do not understand this contradiction. Any guess?

Regards

Rajvat

Read only

0 Likes
1,531

Raj,

Not a reply but a query which is a bit related to the subject and yet to get an answer.

Thanks

K.Kiran.

Read only

0 Likes
1,531

Maybe there is a confusion with "DevClass" : a development class is a package -> transaction SE21

Read only

Former Member
0 Likes
1,531

Closing this Query since the posts became fussy. Will open a new specific Query when needed. Thx