$(function () { pageContext.i18n.modTalk = 'moderation talk'; pageContext.i18n.replyToComment = 'Reply'; pageContext.i18n.modTalkEmpty = 'moderation talk is empty'; pageContext.url.getModTalk = "/comments/%25ID%25/listModTalk.json"; pageContext.url.possibleCommentRecipients = "/comments/%ID%/possibleRecipients.json"; pageContext.url.commentEdit = '/comments/%25ID%25/edit.html'; pageContext.url.commentView = '/comments/%ID%/view.html'; pageContext.i18n.commentVisibility = { 'full': 'Viewable by all users', 'op': 'Viewable by the original poster', 'mod': 'Viewable by moderators', 'opAndMod': 'Viewable by moderators and the original poster', 'other': 'Advanced visibility', 'dialogTitle': 'Comment visibility', 'selectGroups': 'Visible to groups', 'selectOther': 'Other recipients', 'selectOriginalPoster': 'Original poster', 'selectModerators': 'Moderators', 'selectAssignees': 'Asked to answer users' }; pageContext.i18n.commentMenuLabels = { 'comment-edit': 'comments.menu.edit', 'comment-delete': 'comments.menu.delete', 'comment-convert': 'comments.menu.convert' };pageContext.i18n.answer= { bestAnswer: 'Best Answer', controlBar : { accept: 'Accept', unaccept: 'Unaccept', acceptCommand: 'Accept this answer as correct', cancelAcceptedCommand: 'Remove this answers accepted status' } }; window.croles = { u: false, op: false, m: false, og: false, as: false, ag: false, dc: false, doc: false, eo: false, ea: false }; tools.init({ q: { e: false, ew: false, eo: false, r: false, ro: false, d: false, dow: false, fv: false, c: false, co: false, p: false, tm: false , ms: false, mos: false }, n: { f: false, vf: false, vfo: false, vr: false, vro: false, c: false, co: false, vu: false, vd: false, w: false, wo: false, l: false }, c: { e: false, eo: false, d: false, dow: false, ta: false, tao: false, l: false }, a: { e: false, ew: false, eo: false, d: false, dow: false, a: false, aoq: false, ao: false, tc: false, tco: false, p: false, tm: false }, pc: croles }, { tc: true, nsc: true }); commandUtils.initializeLabels(); }); Skip to Content
0

SAP HANA input parameter

May 25, 2017 at 10:57 AM

116

avatar image

Hi All,

In my HANA calculation view, i have an input parameter and it is based on column ""meth_date" of my calculation view and it is a mandatory variable. Now i need to take the date field entered in this input parameter then negate 1 with it to get the "Previous date".

The second input paramter must have a value (Entered date - 1).

Is this possible ?

10 |10000 characters needed characters left characters exceeded
Former Member

Hi Lakshminarasimhan,

It would be nice, if you can tell us what you tried so far to help you better.

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Anindya Bose May 26, 2017 at 03:20 AM
1

Yes, this is possible . Create one Input Parameter based on "Procedure/Scalar Function" . Whatever date your users are entering will go to the procedure and procedure would return you 'Previous Date" . Your data would be filtered with that . Check this blog post, this is written for month but you can use the same approach ( in fact much easier) for date .

Code to get previous date is as below :

END_DATE := TO_DATS (add_days( :INPUT_DATE ,-1)) ;

Cheers

Anindya

Share
10 |10000 characters needed characters left characters exceeded
Gopinath Kolli May 25, 2017 at 05:32 PM
-1

SELECT ADD_DAYS (TO_DATE ('2009-12-05', 'YYYY-MM-DD'), -30) "add days" FROM DUMMY;

Share
10 |10000 characters needed characters left characters exceeded