Quantcast
Channel: SCN: Message List - SAP S/4HANA
Viewing all articles
Browse latest Browse all 1361

Re: While improting SAP SMART BUSINESS SFIN 1503 ( HANA CONTENT ) in Hana facing error

$
0
0

Hi Janardhan,

 

First run query:

 

SELECT package_id, object_name, SUBSTR_REGEXPR('(.*table =)\ (".*")' IN to_varchar(cdata) GROUP 2) AS target_table_name, delivery_unit

FROM "_SYS_REPO"."ACTIVE_OBJECT"

WHERE object_suffix = 'hdbti' AND object_name NOT IN (

SELECT ti_name

FROM "_SYS_RT"."TI_IMPORT_KEYS" )

AND cdata LIKE '%keys = %'

order by SUBSTR_REGEXPR('(.*table =)\ (".*")' IN to_varchar(cdata) GROUP 2);

 

If it is returned with Fetched 0 row(s) in 0 ms 0 µs (server processing time: 0 ms 0 µs) then you are good. If it returns any result with 1000 rows or something then you have to fix all those errors first.

 

Picture1.png

 

You need to redeploy the objects returned from the query, target table wise.

For example, we take sap.hba.r.sb.core.db::ASSOCIATIONS as the first record returned from the previous query. You need to replace the complete package_id and table name with the string returned in TARGET_TABLE_NAME field.

 

Here, you will get a list of objects, which you need to redeploy within one run.

SELECT * FROM "_SYS_REPO"."ACTIVE_OBJECT"

WHERE OBJECT_SUFFIX = 'hdbti' and

CDATA like '%table = "sap.hba.r.sb.core.db::ASSOCIATIONS%';

 

By default, studio does not display all repository objects. You need to set in the preference window in order to see all objects. See screenshot at the end of the document.

Once you see the objects, you need to select all objects that returned in the previous query. They may be located in different packages as the example here.

Ex: Two objects are under sap.hba.ecc.db, and the other one is under sap.hba.sfin.700.db. You need to select all these three, right click and select redeploy. Below chips showing with red color all needs to be fixed.

 

pic3.png

pic4.png

 

After redeployment, if successful, you should see that for this target table, there is no more invalid objects returned with the 1st query. In the content area, the objects are also displayed as normal status, without the red escalation mark.

 

SELECT package_id, object_name, SUBSTR_REGEXPR('(.*table =)\ (".*")' IN to_varchar(cdata) GROUP 2) AS target_table_name, delivery_unit

FROM "_SYS_REPO"."ACTIVE_OBJECT"

WHERE object_suffix = 'hdbti' AND object_name NOT IN (

SELECT ti_name

FROM "_SYS_RT"."TI_IMPORT_KEYS" )

AND cdata LIKE '%keys = %'

order by SUBSTR_REGEXPR('(.*table =)\ (".*")' IN to_varchar(cdata) GROUP 2);

 

How to display all repository objects in hana studio - Windows - Preference - SAP HANA - Modeler - Content Presentation - Check "Show all objects".

 

 

Hope this helps, All the best.

 

Thanks,

JC


Viewing all articles
Browse latest Browse all 1361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>