Skip to Content
author's profile photo Former Member
Former Member

SAP HANA default value variable

Dear all.

I am using SAP HANA Studio Version: 2.2.14. I need to set a default value in a variable for a calculation view. For example, variable Z_DATE to have the last day of the current month as default value when the selection screen pops-up.

In BW it can be done using customer exit variables but no idea how to implement it in HANA.

Has anyone faced the same situation?

Thanks for the support,

Fran.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2016 at 08:28 AM

    Hi Fran,

    You can have a 'Default Value' with Expression where you can write your expression using different type of functions based on your requirement.

    Best Regards,
    Shireesha


    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Francisco Diaz,

      I don't know about how to do this in variables.

      As per my knowledge you can achieve this kind of scenario using input parameters, by making that parameter type as Derive From Procedure, and you can write your complex logic inside that procedure.

      If anyone knows how to do this in variables, please share here.

      Regards,

      HarikrishnanS

  • Posted on Jun 29, 2016 at 08:52 AM

    This message was moderated.


    1.PNG (18.3 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.