1.
Open transaction RSRT
2. Enter the query, bookmark, etc. to execute the BW query
3. Press the "Execute + Debug" button
4. Select in section "SAP HANA/BWA"
a. The modus which should be used (most likely 3 or 6)
b. Open the subfolder "SAP HANA/BW Default Trace" and select "Python
Trace"
5. Select in section "Data Manager"
a. "No Parallel Processing"
b. "Display SQL/BWA/SAP HANA Query"
6. Select in section "General Execution Options"
a. "Do not use Cache"
7. Navigate with "Back" button until the XML of the calucalation scenario is
displayed which should be exported
8. Copy the XML into a text editor and save it
9. Press the "Back" butten
10.Copy the displayed OLAP query into an text editor and save it
11.Switch to the HANA Studio and export the calculation scenario (name is
mentioned in the first line of step 10: TREX Join Index: 0bw:bia:*)
a. export <sap_bw_schema>."<scenario_name (case sensitive)>" as
binary into '<path>' with replace [catalog only]
12.If in Step 10 hierachie tables are used (0BW:BIA:BI0_08*) switch to the
HANA Studio and activate a "User-Specific Trace"
a. Open the Administration Console
b. Goto tab "Trace Configuration"
c. Press the "New Configuration" Button in section "User-Specific-Trace"
i. Enter a "Context Name" like "Hierachie"
ii. Enter the "Database User" (most likely SAP<sid>)
iii. Enter the "Application User" which will execute the BW query
iv. Activate the Check Box "Show all Components"
v. Enter in the search field the component "basisclient"
vi. Switch it to "DEBUG" for the indexserver
13.In case the BW query dumps please activate in HANA the python servertrace
(SAP note 1935113)
14.Press the "Back" button
15.Now the query is executed. In case the query is dumping
a. yes: deactivate the python servertrace
b. no: save the python trace output which is displayed in RSRT into a text
editor
16.If you have activated the basisclient trace (step 12)
a. delete the listed trace in section "User-Specific-Trace"->"User Traces"
b. Open tab "Diagnosis Files" and search for the name which you have
entered in step 12->c->i.
c. Download the files
d. Open the file(s) and search for the hierachie tables (BI0_08*) files and
export them
i. export <sap_bw_schema>."BI0_08<hiearchie table name>" as
binary into '<path>' with replace [catalog only]
e. In case more than one hierachie table was created for the query you
will find at the end of the section a hash name. Export the table as
well
i. export <sap_bw_schema>."<hash name>" as binary into
'<path>' with replace [catalog only]
17.Logon to the operating system of the HANA server
a. tar the export (step 11)
b. tar the python trace (in case of scale_out from all instances). Default
name of the trace files
"servertrace_$HOST_${PORT}_${COUNT:3}.py".
18.Upload the collected files to the provided SAP container
a. zipped export (step 11)
b. python trace (step 13 or step 15 b)
c. XML (step 8)
d. OLAP query (step 10)
e. Hierachie files (step 16 d,e)