Hilfsprogramme (SAP BW): Unterschied zwischen den Versionen
Matt (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Matt (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 40: | Zeile 40: | ||
== Copy Query == | == Copy Query == | ||
=== Copy all Queries from | === Copy all Queries from One InfoProvider to Another === | ||
Function Module '''RSZ_I_COPY_QRY_TO_CUBE''' | Function Module '''RSZ_I_COPY_QRY_TO_CUBE''' | ||
Source: https://wiki.scn.sap.com/wiki/display/BI/Copying+Queries+from+One+InfoProvider+to+Another | Source: https://wiki.scn.sap.com/wiki/display/BI/Copying+Queries+from+One+InfoProvider+to+Another | ||
=== Copy one Query from | === Copy one Query from One InfoProvider to Another === | ||
Function Module '''RSZ_I_COPY_QRY_TO_CUBE_SINGLE''' | Function Module '''RSZ_I_COPY_QRY_TO_CUBE_SINGLE''' | ||
{| class="wikitable" | |||
!Parameter | |||
!Content | |||
!Value | |||
! | |||
|- | |||
|I_SOURCE_COMPUID | |||
|Query ID | |||
| | |||
| | |||
|- | |||
|I_SOURCE_INFOCUBE | |||
|Source Cube or Composite Provider | |||
| | |||
| | |||
|- | |||
|I_TARGET_INFOCUBE | |||
|Target Cube or Composite Provider | |||
| | |||
| | |||
|- | |||
|I_DEFTP | |||
|Definition Type | |||
|REP | |||
| | |||
|} | |||
== Queries | == How to Find Queries of a Given InfoProvider == | ||
=== Via Data Warehouse Workbench Metadata Repository === | |||
Transaction: '''RSA1''' | |||
Metadata Repository | Open Metadata Repository as follows: | ||
Option 1: Find InfoProvider → Right Click → Show Metadaten | |||
Option 2: Click on Metadata Repostitory → Select Type of InfoProvider → Select InfoProvider | |||
In any case: | |||
In lower window section select tab "Used by" → You will find all queries and query elements | |||
=== Via Data Warehouse Workbench Transport Connection === | |||
Go to section queries, navigate down to select queries | |||
=== Via System Tables === | |||
{| class="wikitable" | |||
!Table | |||
!Name | |||
!Description of Content | |||
|- | |||
|RSZELTDIR | |||
|List of Reporting Component Elements | |||
|Queries, Variables, etc. | |||
Filter on DEFTP=REP | |||
|- | |||
|RSRREPDIR | |||
|List of Queries per InfoProvider | |||
|Filter on Field INFOCUBE and optionally on COMPTYPE=REP | |||
|} | |||
Further reading [[Tabellen_(SAP_BW)]] | |||
Version vom 2. April 2025, 12:47 Uhr
Programs for activating and re-activating
ABAP-Program (Use T-Code SE38):
RSDG_TRFN_ACTIVATE # Activate transformation (also activates DTPs) RSBKDTPREPAIR # Activate DTP RSDG_ADSO_ACTIVATE # Activate / repair ADSO RSDG_ADSO_ACTIVATE_ALL # Activate / repair ADSO RSDG_ODSO_ACTIVATE # Activate classic DSO RSDG_HCPR_ACTIVATE # Activate CompositeProvider RSPLS_ALVL_ACTIVATE # Activate Aggregation Level RSDG_TRCS_ACTIVATE # Activate InfoSource
HANA Views für Composite Provider neu anlegen
Manchmal kommen folgende Fehler beim Import von Transporten vor:
- Warnung im Transport (RC = 4): Views auf HANA Server konnten nicht angelegt werden
- Fehler im Transport (RC = 8): Views für Composite Provider oder InfoObjekte konnten nicht angelegt werden
RSDDB_LOGINDEX_CREATE # Spaltensicht für InfoProvider anlegen RSDDB_INDEX_CREATE_MASS # Views für Vielzahl von Objekten anlegen
Vorsicht bei RSDDB_INDEX_CREATE_MASS
Wenn man damit Views oder Indizes löscht, und man gibt keinen Filter an, dann kann es sein, dass man es für die gesamte Datenbank macht
==> Immer Filter angeben
Ursache für RC = 8 ist manchmal, dass Composite Provider aufeinander aufbauen, aber im gleichen Transport enthalten sind. Dadurch können die zugehörigen Views unter Umständen nicht technisch angelegt werden.
Lösungsansatz dafür ist:
- Manuelles Löschen der nicht richtig angelegten Views auf dem HANA mit RSDDB_INDEX_CREATE_MASS
- Manuelles neu Anlegen der Views auf dem HANA mit RSDDB_LOGINDEX_CREATE
Prozessketten starten
Prozessketten können mit den folgenden SAP BW Standard-Funktionsbausteinen (Transaktion SE37) gestartet werden:
RSPC_CHAIN_START # Bevorzugte Variante
oder
RSPC_API_CHAIN_START
Copy Query
Copy all Queries from One InfoProvider to Another
Function Module RSZ_I_COPY_QRY_TO_CUBE
Source: https://wiki.scn.sap.com/wiki/display/BI/Copying+Queries+from+One+InfoProvider+to+Another
Copy one Query from One InfoProvider to Another
Function Module RSZ_I_COPY_QRY_TO_CUBE_SINGLE
Parameter | Content | Value | |
---|---|---|---|
I_SOURCE_COMPUID | Query ID | ||
I_SOURCE_INFOCUBE | Source Cube or Composite Provider | ||
I_TARGET_INFOCUBE | Target Cube or Composite Provider | ||
I_DEFTP | Definition Type | REP |
How to Find Queries of a Given InfoProvider
Via Data Warehouse Workbench Metadata Repository
Transaction: RSA1
Open Metadata Repository as follows:
Option 1: Find InfoProvider → Right Click → Show Metadaten
Option 2: Click on Metadata Repostitory → Select Type of InfoProvider → Select InfoProvider
In any case:
In lower window section select tab "Used by" → You will find all queries and query elements
Via Data Warehouse Workbench Transport Connection
Go to section queries, navigate down to select queries
Via System Tables
Table | Name | Description of Content |
---|---|---|
RSZELTDIR | List of Reporting Component Elements | Queries, Variables, etc.
Filter on DEFTP=REP |
RSRREPDIR | List of Queries per InfoProvider | Filter on Field INFOCUBE and optionally on COMPTYPE=REP |
Further reading Tabellen_(SAP_BW)
Miscellaneous Checks
ABAP-Program (Use T-Code SE38):
RSDMD_CHECKPRG_ALL # Rebuild InfoObject SIDs RSO_TLOGO_CHECK_REQUEST # Check Transport Request