0% found this document useful (0 votes)
81 views13 pages

Variables and IP's in SAP HANA

This document discusses the use of variables in HANA. It explains how non-mandatory input parameters (IPs) do not retrieve data if no value is passed but will retrieve data if a value is passed. It also describes how virtual attributes (VAs) are created and how attributes can be mapped to a single VA or a VA can be mapped to columns in different tables. Examples are provided of queries using VAs with where clauses on attribute names or placeholders for IP names.

Uploaded by

Punith M P
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views13 pages

Variables and IP's in SAP HANA

This document discusses the use of variables in HANA. It explains how non-mandatory input parameters (IPs) do not retrieve data if no value is passed but will retrieve data if a value is passed. It also describes how virtual attributes (VAs) are created and how attributes can be mapped to a single VA or a VA can be mapped to columns in different tables. Examples are provided of queries using VAs with where clauses on attribute names or placeholders for IP names.

Uploaded by

Punith M P
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Use Of Variables in HANA

Prepared By:-
Mehak Arora (738733),
Delhi HANA Team

( Kuljeet Kaur 332422 ,Lead


Aman Verma 885211, TM
Rikendra Singh 1102405, TM
Sofi Muzafarahmed 839148, TM )

1
TCS Internal Use
Non Mandatory IPs do not retrieve any data if no value is passed

2
TCS Internal Use
Same non mandatory IPs retrieving data if value is passed

3
TCS Internal Use
VA Creation and attribute mapping

4
TCS Internal Use
Multiple Attribute mapping to single VA

5
TCS Internal Use
Data retrieval without passing value to VA

6
TCS Internal Use
Data retrieval with passing value to VA

7
TCS Internal Use
Multiple values can be passed to a VA

8
TCS Internal Use
Single VA mapped to two columns of different tables and filtering being
done at base level of both

9
TCS Internal Use
Single VA mapped to two columns, one of AT and another of direct
table and filtering being done at base level of both

10
TCS Internal Use
Query with VA has where clause on Attribute name
SELECT
"CC_APPRV_HIERARCHY","APPROVAL_END_DATE",
"APPROVER_ROLE","APPROVER_EMPLOYEE_NUMBER",
"PENDING_COMMENTS","ASSET_SR_NO_ID",
"REQUESTID", "REQUEST_TYPE",
"REQUEST_STATUS_ID","REQUESTSTATUS",
"REQUEST_DATE", "REQUESTOR_NAME",
"REQUESTOR_NUMBER","REQUESTERLOCATION",
"REQUESTERBRANCH", "REQUESTOR_REMARKS",
"PROJECT_NUMBER", "PROJECT_NAME",
"PROJECT_BRANCHNAME", "PROJECT_DELIVERYCENTERNAME",
"PROJECT_END_DATE","REQUEST_ASSET_ID",
"REQUESTED_ASSET","EFFECTIVE_START_DATE",
"EFFECTIVE_END_DATE","REQUEST_FROM_LOCATIONNAME",
"REQUEST_TO_LOCATIONNAME", "CONTACT_NO",
"PENDING_WITH_ROLE","PENDING_WITH_EMP_NO",
"PENDING_WITH_PERSON", "PENDING_FROM",
"LOCATION_ID","BRANCH_ID",
"COUNTRY_ORG_ID", "COUNTRY_ORG_NAME",
"CATALOGUE_ID","GROUP_DESC",
"ASSET_CATEGORY", "SUBCATEGORY",
"PROMISED_DATE","ACCEPTANCE_STATUS",
"PO_CREATION_STATUS", "MILESTONE_PO",
"CRITICAL_FLAG","ONE_TIME_ADDRESS", "REQUEST_ID"
FROM "_SYS_BIC"."GpsTemp/CV_GPS_ASSET_EXTENSION_V1“
('PLACEHOLDER' = ('$$IP_REQ_FROM_DATE$$', '2011-01-01'),
'PLACEHOLDER' = ('$$IP_REQ_TO_DATE$$',
'2013-12-31'))
WHERE (("ASSET_CATEGORY" IN ('Hardware') ))
AND (("SUBCATEGORY" IN ('Spares') ))
AND (("REQUESTID" IN ('01EX050850') ))
AND (("REQUEST_ID" IN ('01EX050850') ))

11
TCS Internal Use
Query With IP has Placeholder for IP name
SELECT
"CC_APPRV_HIERARCHY", "APPROVAL_END_DATE",
"APPROVER_ROLE", "APPROVER_EMPLOYEE_NUMBER",
"PENDING_COMMENTS","ASSET_SR_NO_ID",
"REQUESTID","REQUEST_TYPE",
"REQUEST_STATUS_ID","REQUESTSTATUS",
"REQUEST_DATE","REQUESTOR_NAME",
"REQUESTOR_NUMBER", "REQUESTERLOCATION",
"REQUESTERBRANCH","REQUESTOR_REMARKS",
"PROJECT_NUMBER","PROJECT_NAME",
"PROJECT_BRANCHNAME","PROJECT_DELIVERYCENTERNAME",
"PROJECT_END_DATE","REQUEST_ASSET_ID",
"REQUESTED_ASSET", "EFFECTIVE_START_DATE",
"EFFECTIVE_END_DATE","REQUEST_FROM_LOCATIONNAME",
"REQUEST_TO_LOCATIONNAME","CONTACT_NO",
"PENDING_WITH_ROLE","PENDING_WITH_EMP_NO",
"PENDING_WITH_PERSON","PENDING_FROM",
"LOCATION_ID","BRANCH_ID",
"COUNTRY_ORG_ID", "COUNTRY_ORG_NAME",
"CATALOGUE_ID","GROUP_DESC",
"ASSET_CATEGORY","SUBCATEGORY",
"PROMISED_DATE", "ACCEPTANCE_STATUS",
"PO_CREATION_STATUS", "MILESTONE_PO",
"CRITICAL_FLAG", "ONE_TIME_ADDRESS", "REQUEST_ID"
FROM "_SYS_BIC"."GpsTemp/CV_GPS_ASSET_EXTENSION_V3" ('PLACEHOLDER' = ('$$IP_SUBCATEGORY$$',
'Spares'),
'PLACEHOLDER' = ('$$IP_REQ_ID$$',
'01EX050850'),
'PLACEHOLDER' = ('$$IP_REQ_FROM_DATE$$',
'2011-01-01'),
'PLACEHOLDER' = ('$$IP_REQ_TO_DATE$$',
'2013-12-31'),
'PLACEHOLDER' = ('$$IP_CATEGORY$$',
'Hardware'))
12
TCS Internal Use
Thank You

13
TCS Internal Use

You might also like