← all guides $ cat guide.md
Data Analytics

SAP Business One HANA Query & Power BI Guide

SQL optimization techniques for SAP HANA databases, custom view design, and seamless Power BI dashboard integration.

SAP Business One HANA & Power BI Optimization Guide

Leveraging SAP Business One on HANA requires understanding SAP's underlying DB schemas (OINV, INV1, ORDR, RDR1).

Best Practices for Custom Views

SELECT 
    T0."DocNum", 
    T0."DocDate", 
    T0."CardName", 
    T1."ItemCode", 
    T1."LineTotal"
FROM OINV T0
INNER JOIN INV1 T1 ON T0."DocEntry" = T1."DocEntry"
WHERE T0."DocDate" >= ADD_YEARS(CURRENT_DATE, -1);

Written by Jaime Escoto · Analytics Architect.