How to restore back the migrated Query from 7.x to BW3.x Version.
I had came across a situation where i need to restore the back up version of the migrated BEx query. In my blog I’m trying to provide steps for Migration of a BEx query and restoring the back up version procedure as well.
Brief:
- – If a BEx Query in BW 7.x is using only the features which are also available in BW3.x, then it is in general possible that the Query definition can be opened with Query designer of BW3.x as well.
- – The case is different if the query is designed with BW 7.x features, BW7.x offer additional features which are not available in BW3.x version of query designer.
- – If a query definition of 3.x version is opened and saved using BW 7.x version query designer, it means the 7.x version query is not editable or compatible with the version BW 3.x.
- – If an attempt made to open a BEx query of version BW7.x in BW3.x query designer we will get the below error message.
This component was edited with a more recent version of the Editor. You also have to use the more recent version to edit further. Further processing not possible. Update your front end’.
In order to overcome the potential problems in case of undesired or occasional migration of queries or reusable query components from version 3.x to version 7.x, SAP has come up with an automatic procedure to revert back the migrated change.
First we will check the migration steps to migrate the BEx query which is build on 3.x.
- Before migration of a BEx query check the table RSZCOMPDIR ( ) to verify the” version of reporting component”.
Pass the Query Technical name as input field in COMPID – Execute.
Check the output attached below.
Here you can see 3 version of a BEX query A- active, M-modified and B – back up versions.
If the version of the reporting component is less than 100, it means the query is not migrated. If version of the reporting component is greater than 100, then the query is migrated.
- If you see the screen shot the query is not migrated as the versions of reporting component is 13.
Migration:
If a BEx query is opened in a new tool NW04s BEx query designer and saved the query will be automatically gets migrated to BW 7.x version query.
— Open the 3.x query in 7.x query designer. We will get the below message:
— Save the query. Query is migrated to new version.
You can check if the query is migrated from 3.x to 7.x in the RSZCOMPDIR table. The “version of reporting component” will be changed to greater than 100.
Check the screen shot attached below
If you see the above screen shot A-active and M-Modified versions are changed from 13 to 110.B-Backup version will be there as it is.
Note: Queries or query components that are freshly created using the NW04s BEx tool (ie., BW7.x query designer) will not have Backup version. Such queries can’t be reverted back to 3.x version.
Procedure to revert back the migrated query:
Inorder to revert back the migrated change back to 3.x we need back up version of the query or query component.
SAP has provided a standard program COMPONENT_RESTORE to migrate the changes back to original 3.x version.
The report COMPONENT_RESTORE overwrites the existing active version using backup version as a source and allows editing the query with BW 3.x Query Designer.
Steps to be performed:
- TX Se38 – Enter the program “COMPONENT_RESTORE”.
- Enter the Info provider and Component type
Here in our case we are trying to restore the backup version of the report, so I’m considering the component type as REP.
Other component Types:
3) Execute
4) This will display all the underlying queries which are build on that particular info provider. Select the Query which you want to restore and click on “transfer Selection”
5) Click “Yes”
Now the query or query components are restored back to 3.x version.
Check the table RSZCOMPDIR entry for active and Modified versions will be restored back to 13.
KP
Hi Prashanth,
Another good one from you. Nicely explained. Thanks for sharing.
Regards,
Krishna Chaitanya
Thanks KC for the comments...
As usual good piece of doc. Keep it up and looking forward next.
Arshiyan
Thanks Arshiyan ...
Good presentation with useful info. The program - COMPONENT_RESTORE Already shared by another author with piece info here. But you came with nice explanation. its worth to have it.
Thanks
Raman
Thanks RK:
I'm not aware of this document you had posted... but i had a requirement. I found a Note posted by SAP on this and i thought of sharing the info with detailed information..
FYI : There are lots of presentation with same content with different explanations on SCN ...
Regards
KP
Hi Prashanth,
Helpful document , But Sorry to say you that some one already posted in SCN .
http://scn.sap.com/community/data-warehousing/netweaver-bw/blog/2013/08/06/how-to-restore-the-query-from-7x-version-to-older-version
But here in this document you mentioned detail steps, including how to find bex version is it 3.x /7.0 ? from table RSZCOMPDIR.
Regards,
Seshu.P
Thanks for the link ...
I'm not aware of this document you had posted... but i had a requirement. I found a Note posted by SAP on this and i thought of sharing the info with detailed information..
FYI : There are lots of presentation with same content with different explanations on SCN ...
Regards
KP
Hi Prashanth,
Nice explanation, Thanks for sharing 🙂
Regards,
Gopinath B
Thanks Gopi 🙂
thanks for sharing
Martin
Hi KP,
I understand that same information has been posted earlier as well but i must say the way you've presented is what makes your document unique.
Step by step approach with proper information and scenario with detailed navigation thats the area where your experience counts.
Appreciate the efforts.
Regards,
AL
Thanks Anshu for your comments ... 🙂
Hi Prashanth,
I have seen people asking How to restore to older version of their queries. This is a perfect blog which addresses with a step by step approach. Simple one and smart program 🙂
Regards,
Suman
Thanks Suman for your wonderful comments... and for rating the blog.
Regards
KP
Nice presented prashanth.... Very nice document... 🙂
Regards,
SM
Thanks for the comments Satendra...
Hi Prashanth,
Good information..some times projects need this.
thanks for sharing.
Thanks Ganesh ..
Good info...Thanks for sharing.. 🙂
Thanks Naveen ...
Hi Prashanth,
Very useful document. Thanks for the useful information.
Regards,
Chandra Sekhar
Thanks Chandra For your comments ....
If you like my blog - rate the blog and LIKE it.
Cheers
KP 🙂
Very useful document Prashanth.
Thank you for sharing it.
Thanks Ravi ...
Hi Prashanth,
Very useful document. Thanks for the useful information.
Thanks Shaik for the comments...
Hi Prashanth,
Nice document and very useful.
Thanks,
Phani.