‎2009 Oct 08 6:19 AM
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
‎2009 Oct 08 7:23 AM
>
>
> 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
‎2009 Oct 08 8:35 AM
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
‎2009 Oct 08 8:41 AM
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
‎2009 Oct 08 9:07 AM
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
‎2009 Oct 08 9:13 AM
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
‎2009 Oct 08 9:50 AM
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
‎2009 Oct 08 9:58 AM
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
‎2009 Oct 08 10:02 AM
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
‎2009 Oct 08 10:11 AM
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
‎2009 Oct 08 10:30 AM
Marcin
Let me give a try. Thanks lot for your suggestions....
ALSO WELCOME OTHER EXPERTS' OPINIONS
Rajvat
‎2009 Oct 09 6:52 AM
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
‎2009 Oct 09 11:23 AM
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
‎2009 Oct 11 1:42 PM
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?
‎2009 Oct 13 11:59 AM
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
‎2009 Oct 13 12:59 PM
‎2009 Oct 13 1:23 PM
Maybe there is a confusion with "DevClass" : a development class is a package -> transaction SE21
‎2009 Oct 16 7:41 AM
Closing this Query since the posts became fussy. Will open a new specific Query when needed. Thx