PT Sterling Tulus Cemerlang
www.sterling-team.com

Whatsapp
+62-877-8655-5055

Email
sales-enquiry@sterling-team.com

Address
Sampoerna Strategic Square
South Tower Level 30
Jl Jend. Sudirman No. 45-46
Jakarta 12930 – Indonesia

500+ FREE Tips SAP Business One for you to Become SAP B1 Super User from Sterling Tulus Cemerlang (STEM)

How to Use Custom Parameter on Query Manager in HANA

SAP Business One Tips Indonesia Custom Parameter on Query Manager on HANA

In the previous tips, we have shown how to add custom parameters in Query Manager in SQL.

This time we will show you how to add custom parameter criteria to the Query Manager on HANA. Here is an example of a simple query that will be changed into an element of its selection criteria.

With [Date From] – [Date To] in the OINV Table

Declare FromDate timestamp;
Declare ToDate timestamp;

FromDate := ‘20200101’;
ToDate := ‘20200131’;

SELECT * FROM “OINV”
WHERE “DocDate” BETWEEN FromDate AND ToDate

Then, you can change the query into a query with selection criteria as enhancements as below:

/*SELECT * FROM “OINV” T0*/

Declare FromDate timestamp;
Declare ToDate timestamp;

FromDate := /* T0.”DocDate” */ ‘[%0]’;
ToDate := /* T0.”DocDate” */ ‘[%1]’;

SELECT * FROM “OINV”
WHERE “DocDate” BETWEEN FromDate AND ToDate;

You can use the basic composition to declare variables and increase the use of selection criteria for custom queries in the Query Manager feature earlier on the HANA database.

Also read:

Run Your Business With The Piece of Mind Using SAP Business One

This article was written by PT. Sterling Tulus Cemerlang
More details about SAP Business One,
email to: sales-enquiry@sterling-team.com or call +6221-5806336 or wa +6287786555055

, , ,