Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all 6412 articles
Browse latest View live

couldn't connect to hanatrial.ondemand.com

$
0
0

Hi All,

 

I downloaded SAP HANA studio and installed it and trying to add a system based out of trial instance created on SAP HANA cloud platform.

What should be the instance number and when I give 00 it says couldn't connect to hanatrial.ondemand.com.

 

Any idea on how to solve this issue?

 

Thanks

Bala


Not able to schedule HANA XS based batch job for HANA EIM Flow?

$
0
0

Hello Community Members,

 

I have created a simple hdbflowgraph (task) to replicate data from a HANA table using new Smart Data Integration Capabilities of HANA EIM. The data flow works well and I am able to replicate data in a template by manually executing the job. Now, I want the ability to schedule this job to run every so often (let's say every 59 minutes). In order to accomplish this, I have created a procedure where I start the task.

 

PROCEDURE "XXXXXX"."TEST_SDI.SDQ_SDI::TEST_BATCHSCHEDULE" ( )

  LANGUAGE SQLSCRIPT

  SQL SECURITY INVOKER

  DEFAULT SCHEMA XXXXXX

  AS

BEGIN

/*****************************

  Write your procedure logic

*****************************/

START TASK "XXXXXX"."TEST_SDI.SDQ_SDI::FILTER_SORT";

END;

 

I am able to activate this Procedure without any errors.

 

Now the next step is to create a XS schedule artifact so that I can have this procedure run every 59 minutes. I am using the following code and getting an error on activation "Invalid file content".

 

{

    "description": "Read VBRK table and update HANA",

    "action": "XXXXXX"."TEST_SDI.SDQ_SDI::TEST_BATCHSCHEDULE",

    "schedules": [

       {

          "description": "Read VBRK table and update HANA",

          "xscron": "* * * * * * 59"        

       }

    ]

}

 

I am looking to understand what can I do to fix this error. Any help is highly appreciated.

Struggling with SAP HANA PAL Time series forecasting(ARIMA Predict)

$
0
0

Hi,

I want to make forecast smoothing algorithm (ARIMMA prediction) as explained in this video

SAP HANA Academy - PAL: 57. Time Series - ARIMA Predict [SPS 08] - YouTube

I have the code is like

 

 

 

 

SET SCHEMA PAL;
-- cleanup
DROPTYPE PAL_T_TS_RESULTS;
DROPTABLE PAL_TS_SIGNATURE;
CALL SYSTEM.AFL_WRAPPER_ERASER ('PAL_TSP');
DROPTABLE TS_RESULTS;
DROPVIEW V_TS_RESULTS;
-- PAL setup
CREATETYPEPAL_T_TS_RESULTSAS TABLE(ID INTEGER, PRICE DOUBLE, LOW80 DOUBLE, HI80 DOUBLE, LOW95 DOUBLE, HI95 DOUBLE);
CREATE COLUMN TABLE PAL_TS_SIGNATURE (ID INTEGER, TYPENAME VARCHAR(100), DIRECTION VARCHAR(100));
INSERT INTO PAL_TS_SIGNATURE VALUES (1, 'PAL.PAL_T_TS_MODEL', 'in');
INSERT INTO PAL_TS_SIGNATURE VALUES (2, 'PAL.PAL_T_TS_PARAMS', 'in');
INSERT INTO PAL_TS_SIGNATURE VALUES (3, 'PAL.PAL_T_TS_RESULTS', 'out');
GRANTSELECTON PAL_TS_SIGNATURE TO SYSTEM;
CALL SYSTEM.AFL_WRAPPER_GENERATOR ('PAL_TSP', 'AFLPAL', 'ARIMAFORECAST', PAL_TS_SIGNATURE);
-- app setup
CREATE COLUMN TABLE TS_RESULTS LIKE PAL_T_TS_RESULTS;
CREATEVIEWV_TS_RESULTSAS
SELECT
CASE WHEN a.IDIS NOT NULL THEN a.ID ELSE b.ID END AS ID,
a.PRICE,
ROUND(b.PRICE,2) AS PRICE_PREDICTED,
ROUND(b.LOW80,2) AS LOW80,
ROUND(b.HI80,2) AS HI80,
ROUND(b.LOW95,2) AS LOW95,
ROUND(b.HI95,2) AS HI95
FROM STOCKS a
FULL JOIN TS_RESULTS b ON (a.ID=b.ID)
;
-- app runtime
DROPTABLE#TS_PARAMS;
CREATE LOCAL TEMPORARY COLUMN TABLE #TS_PARAMS LIKE PAL_T_TS_PARAMS;
INSERT INTO#TS_PARAMS VALUES ('THREAD_NUMBER', 2, null, null);
INSERT INTO#TS_PARAMS VALUES ('ForecastLength', 200, null, null);
TRUNCATE TABLE TS_RESULTS;
CALL _SYS_AFL.PAL_TSP (TS_MODEL, #TS_PARAMS, TS_RESULTS) WITH OVERVIEW;
SELECT*FROM V_TS_RESULTS;

but getting error form this code...please help.

 

 

thank you.

SAP HANA - purging table deltas

$
0
0

Hello,

 

I am trying to do a full table reload.  I would also like to delete all the prior deltas associated with the table.

 

I tried using the "truncate table" command, however the deltas seem to persist.

 

What is the syntax I need to use to completely remove all the current rows as well as all the deltas in order to release the space?

 

Thanks,

Victoria

Problem activating scripted calculation view

$
0
0

I'm trying to create a SQL scripted calculation view, but I keep getting an activation error.  Can anyone please help?

 

I'm using the following script:

 

 

/********* Begin Procedure Script ************/

BEGIN

 

 

selectOpen=

SELECT 'OPEN' AS "SALES_STAGE"

,"SAPECP"."VBAK"."VBELN" AS "ORDER_NO" --order no

,'' AS "DELIVERY_NO"

,'' AS "BILLING_NO"

,"SAPECP"."VBAK"."AUART" AS "DOC_TYPE" --doc type

,"SAPECP"."VBAK"."VDATU" AS "SHIP_DATE"--shipping date

,"SAPECP"."VBAK"."KUNNR" AS "CUSTOMER" --cust no

,"SAPECP"."VBAK"."WAERK" --currency

,"SAPECP"."VBAP"."POSNR" --line item no

,"SAPECP"."VBAP"."MATNR" --mat no

,"SAPECP"."VBAP"."ARKTX" --mat desc

,"SAPECP"."VBAP"."MEINS" --ordered qty uom

,CASE WHEN "SAPECP"."VBAK"."AUART" = 'RE' THEN -1 ELSE 1 END * "SAPECP"."VBAP"."KWMENG" AS "ORDER_QTY" --order qty

,CASE WHEN "SAPECP"."VBAK"."AUART" = 'RE' THEN -1 ELSE 1 END * "SAPECP"."VBAP"."BRGEW" AS "BRGEW" --gross weight

,CASE WHEN "SAPECP"."VBAK"."AUART" = 'RE' THEN -1 ELSE 1 END * "SAPECP"."VBAP"."NTGEW" AS "NTGEW" --net weight

,"SAPECP"."VBAP"."GEWEI" -- gross/net weight uom

,CASE WHEN "SAPECP"."VBAK"."WAERK" = 'JPY' THEN 100 ELSE 1 END * "SAPECP"."VBAP"."NETPR" AS "NETPR" --unit price

,"SAPECP"."VBAP"."KPEIN" --unit price per

,"SAPECP"."VBAP"."KMEIN" --price uom

,CASE WHEN "SAPECP"."VBAK"."WAERK" = 'JPY' THEN 100 ELSE 1 END * CASE WHEN "SAPECP"."VBAK"."AUART" = 'RE' THEN -1 ELSE 1 END * "SAPECP"."VBAP"."NETWR" AS "NETWR" --total amount, SAP handles JPY differently

FROM "SAPECP"."VBAK"

JOIN "SAPECP"."VBAP" ON "SAPECP"."VBAK"."VBELN"="SAPECP"."VBAP"."VBELN" AND "SAPECP"."VBAP"."NETWR" <>0

LEFT OUTER JOIN "SAPECP"."VBFA" ON "SAPECP"."VBAK"."VBELN" = "SAPECP"."VBFA"."VBELV" /*AND "SAPECP"."VBAP"."POSNR"="SAPECP"."VBFA"."POSNN" */ AND "SAPECP"."VBFA"."MANDT"=420 AND "SAPECP"."VBFA"."VBTYP_N" IN ('J','T','O','S')--"SAPECP"."VBFA"."VBTYP_N"='J'  --,'O','S'

WHERE "SAPECP"."VBAK"."MANDT" = 420

AND "SAPECP"."VBAP"."MANDT" = 420

AND "SAPECP"."VBFA"."VBELV" IS NULL

AND "SAPECP"."VBAK"."AUART" NOT IN ('ZCQ','KM','B1','G2','L2')

AND "SAPECP"."VBAP"."ABGRU" = ''  --reason for rejection, signifies cancellation at line level versus "SAPECP"."VBAK"."AUBRU"

AND "SAPECP"."VBAK"."KUNNR" NOT LIKE 'IC%'

--AND "SAPECP"."VBAK"."VBELN" = 20

 

 

GROUP BY

"SAPECP"."VBAK"."VBELN"  --order no

,"SAPECP"."VBAK"."VDATU" --shipping date

,"SAPECP"."VBAK"."KUNNR" --cust no

,"SAPECP"."VBAK"."WAERK" --currency

,"SAPECP"."VBAP"."POSNR" --line item no

,"SAPECP"."VBAP"."MATNR" --mat no

,"SAPECP"."VBAP"."ARKTX" --mat desc

,"SAPECP"."VBAP"."MEINS" --ordered qty uom

,"SAPECP"."VBAP"."KWMENG" --order qty

,"SAPECP"."VBAP"."BRGEW" --gross weight

,"SAPECP"."VBAP"."NTGEW" --net weight

,"SAPECP"."VBAP"."GEWEI" -- gross/net weight uom

,"SAPECP"."VBAP"."NETPR" --unit price

,"SAPECP"."VBAP"."KPEIN" --unit price per

,"SAPECP"."VBAP"."KMEIN" --price uom

,"SAPECP"."VBAP"."NETWR" --total amount

,"SAPECP"."VBAK"."AUART" --doc type

 

 

 

 

 

 

END

/********* End Procedure Script ************/

 

 

Here's the error message:

 

Message :

  Repository: Encountered an error in repository runtime extension;Model inconsistency. Deploy Calculation View: SQL: sql syntax error: incorrect syntax near "END": line 58 col 1 (at pos 3004)nSet Schema DDL statement: set schema "SAPECP"nType DDL: create type "_SYS_BIC"."sap.reportviews/Z_SALES_PIPELINE_SCRIPTED_CAV/proc/tabletype/VAR_OUT" as table ("SALES_STAGE" NVARCHAR(10), "ORDER_NO" NVARCHAR(10), "DELIVERY_NO" NVARCHAR(10), "BILLING_NO" NVARCHAR(10), "DOC_TYPE" NVARCHAR(4), "SHIP_DATE" NVARCHAR(8), "CUSTOMER" NVARCHAR(10), "WAERK" NVARCHAR(5), "POSNR" NVARCHAR(6), "MATNR" NVARCHAR(18), "ARKTX" NVARCHAR(40), "MEINS" NVARCHAR(3), "ORDER_QTY" DECIMAL(15,3), "BRGEW" DECIMAL(15,3), "NTGEW" DECIMAL(15,3), "GEWEI" NVARCHAR(3), "NETPR" DECIMAL(11,2), "KPEIN" DECIMAL(5,0), "KMEIN" NVARCHAR(3), "NETWR" DECIMAL(15,2))nProcedure DDL: create procedure "_SYS_BIC"."sap.reportviews/Z_SALES_PIPELINE_SCRIPTED_CAV/proc" ( OUT var_out "_SYS_BIC"."sap.reportviews/Z_SALES_PIPELINE_SCRIPTED_CAV/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as  n /********* Begin Procedure Script ************/ n BEGIN nnselectOpen=nSELECT 'OPEN' AS "SALES_STAGE"n,"SAPECP"."VBAK"."VBELN" AS "ORDER_NO" --order non,'' AS "DELIVERY_NO"n,'' AS "BILLING_NO"n,"SAPECP"."VBAK"."AUART" AS "DOC_TYPE" --doc typen,"SAPECP"."VBAK"."VDATU" AS "SHIP_DATE"--shipping daten,"SAPECP"."VBAK"."KUNNR" AS "CUSTOMER" --cust non,"SAPECP"."VBAK"."WAERK" --currencyn,"SAPECP"."VBAP"."POSNR" --line item non,"SAPECP"."VBAP"."MATNR" --mat non,"SAPECP"."VBAP"."ARKTX" --mat descn,"SAPECP"."VBAP"."MEINS" --ordered qty uomn,CASE WHEN "SAPECP"."VBAK"."AUART" = 'RE' THEN -1 ELSE 1 END * "SAPECP"."VBAP"."KWMENG" AS "ORDER_QTY" --order qtyn,CASE WHEN "SAPECP"."VBAK"."AUART" = 'RE' THEN -1 ELSE 1 END * "SAPECP"."VBAP"."BRGEW" AS "BRGEW" --gross weightn,CASE WHEN "SAPECP"."VBAK"."AUART" = 'RE' THEN -1 ELSE 1 END * "SAPECP"."VBAP"."NTGEW" AS "NTGEW" --net weightn,"SAPECP"."VBAP"."GEWEI" -- gross/net weight uomn,CASE WHEN "SAPECP"."VBAK"."WAERK" = 'JPY' THEN 100 ELSE 1 END * "SAPECP"."VBAP"."NETPR" AS "NETPR" --unit price n,"SAPECP"."VBAP"."KPEIN" --unit price pern,"SAPECP"."VBAP"."KMEIN" --price uomn,CASE WHEN "SAPECP"."VBAK"."WAERK" = 'JPY' THEN 100 ELSE 1 END * CASE WHEN "SAPECP"."VBAK"."AUART" = 'RE' THEN -1 ELSE 1 END * "SAPECP"."VBAP"."NETWR" AS "NETWR" --total amount, SAP handles JPY differently nFROM "SAPECP"."VBAK" nJOIN "SAPECP"."VBAP" ON "SAPECP"."VBAK"."VBELN"="SAPECP"."VBAP"."VBELN" AND "SAPECP"."VBAP"."NETWR" <>0nLEFT OUTER JOIN "SAPECP"."VBFA" ON "SAPECP"."VBAK"."VBELN" = "SAPECP"."VBFA"."VBELV" /*AND "SAPECP"."VBAP"."POSNR"="SAPECP"."VBFA"."POSNN" */ AND "SAPECP"."VBFA"."MANDT"=420 AND "SAPECP"."VBFA"."VBTYP_N" IN ('J','T','O','S')--"SAPECP"."VBFA"."VBTYP_N"='J'  --,'O','S'nWHERE "SAPECP"."VBAK"."MANDT" = 420nAND "SAPECP"."VBAP"."MANDT" = 420nAND "SAPECP"."VBFA"."VBELV" IS NULLnAND "SAPECP"."VBAK"."AUART" NOT IN ('ZCQ','KM','B1','G2','L2')nAND "SAPECP"."VBAP"."ABGRU" = ''  --reason for rejection, signifies cancellation at line level versus "SAPECP"."VBAK"."AUBRU"nAND "SAPECP"."VBAK"."KUNNR" NOT LIKE 'IC%'n--AND "SAPECP"."VBAK"."VBELN" = 20nnGROUP BYn"SAPECP"."VBAK"."VBELN"  --order non,"SAPECP"."VBAK"."VDATU" --shipping daten,"SAPECP"."VBAK"."KUNNR" --cust non,"SAPECP"."VBAK"."WAERK" --currencyn,"SAPECP"."VBAP"."POSNR" --line item non,"SAPECP"."VBAP"."MATNR" --mat non,"SAPECP"."VBAP"."ARKTX" --mat descn,"SAPECP"."VBAP"."MEINS" --ordered qty uomn,"SAPECP"."VBAP"."KWMENG" --order qtyn,"SAPECP"."VBAP"."BRGEW" --gross weightn,"SAPECP"."VBAP"."NTGEW" --net weightn,"SAPECP"."VBAP"."GEWEI" -- gross/net weight uomn,"SAPECP"."VBAP"."NETPR" --unit price n,"SAPECP"."VBAP"."KPEIN" --unit price pern,"SAPECP"."VBAP"."KMEIN" --price uomn,"SAPECP"."VBAP"."NETWR" --total amountn,"SAPECP"."VBAK"."AUART" --doc typennnnENDn/********* End Procedure Script ************/n

HANA Clients (JDBC/ODBC/HDBSQL) can not connect to the proper tenant

$
0
0

Hello,

We recently ran into an issue DB Name parameter for hana clients (ODBC, JDBC and HDBSQL) does not work properly in the multi-tenant setup.

The the parameter seem to do nothing just trying to connect to port 30<synr>15... The first-created tenant works ok as it listens on the port 30<synr>15. However for all additional tenants that listen on different port you need to find out which port it is and specify it explicitly. Finding the right port is a project in its own right - HANA Monitoring Multi-tenancy - you got to do the detective work and find the  process id for the index server-<DB Name>, then for the process get a port and increment it by 1 ... really?! no reeeaaallly???!!!

To add the insult to the injury - if you run hdbsql on the HANA appliance - it works ok with only the -d <DB Name> ...remotely - forget about it - have to use the "secret" port...

Hey SAP - sounds to me like an ugly bug! If you provide the parameter (DBNAME/-d) it has to work.. plus you have to document the tenant port logic....

 

Anxiously waiting for the response!

Thanks,

Jon

HANA Email authentication failure

$
0
0

Hi All,

 

Could you please describe me the step by step procedures for sending an email from HANA Database using python script on Windows environment. I also followed the How to send emails from HANA  I am getting the given below error message while trying to connect the Database using Python script ::

------------------------------------------------------------------------------------------

>>>

Traceback (most recent call last):

  File "C:\Users\Python\xyz.py", line 1, in <module>

   import dbapi

ImportError: No module named 'dbapi'

>>>

---------------------------------------------------------------------------------------------

 

Please help me out to resolve the issue.

Wrong Number of arguments in function invocation: error 316

$
0
0

Hi All,

 

I am new to SAP HANA and facing error in below query,

I have IDT on top of HANA and need to create a derived view in IDT as below:-

 

select dd.*

,  DD.Column A || '-'||Substr(To_Char(DD.COLUMN B),3,2) as MON_YY

, TO_char(DD.COLUMN C, 'DY') AS DAY_OF_WEEK

, CASE

WHEN DD.COLUMN D IS NULL THEN NULL

WHEN DD.COLUMN D IN (1,2,3) THEN 'FQ1'

WHEN DD.COLUMN D IN (4,5,6) THEN 'FQ2'

WHEN DD.COLUMN D IN (7,8,9) THEN 'FQ3'

WHEN DD.COLUMN D IN (10,11,12) THEN 'FQ4'

ELSE NULL

END AS FISCAL

, CASE WHEN next_day(dd.actl_dt-7,'MONDAY') <= add_months(last_day(dd.actl_dt),-1)+1

       THEN add_months(last_day(dd.actl_dt),-1)+1

       ELSE next_day(dd.actl_dt-7,'MONDAY')

        END As TheFirstOfWeek

, CASE WHEN TO_DATE(last_day(dd.actl_dt)) < To_Date(next_day(dd.actl_dt-1,'SUNDAY'))

       THEN last_day(dd.actl_dt)

       ELSE next_day(dd.actl_dt-1,'SUNDAY')

        END As TheEndOfWeek

, CASE WHEN next_day(dd.actl_dt-7,'MONDAY') <= add_months(last_day(dd.actl_dt),-1)+1

       THEN add_months(last_day(dd.actl_dt),-1)+1

       ELSE next_day(dd.actl_dt-7,'MONDAY')

        END

|| '-' ||

  CASE WHEN TO_DATE(last_day(dd.actl_dt)) < To_Date(next_day(dd.actl_dt-1,'SUNDAY'))

       THEN last_day(dd.actl_dt)

       ELSE next_day(dd.actl_dt-1,'SUNDAY')

        END As Week_Mon_Sun

  from  dd

 

But the case statements are working fine in oracle. But throwing wrong number of arguments (Error 316)  at the second case statement,i guess its syntax issue in HANA. Please someone help with the syntax in HANA.

 

Thanks,

Rakshit


Thread in HANA debugger

$
0
0

I have a procedure created in my project explorer in HANA with input parameters. I activated this fine.

 

I am using the Debug Configurations to provide the location where the procedure is located and provide the input parameters as well. When I actually run it in debug mode, I see following message.

 

 

 

<terminated> New Configuration [SAP HANA Stored Procedure]

     <terminated> usp_ofic_ins_pre_prcss.procedure

          <terminated> Thread (Terminated(in usp_ofic_ins_pre_prcss.procedure))

 

 

Can't figure out what the issue is.

 

I have even created the procedure in catalog and debugged. same message. I am struggling with this for a week now.

 

Can somebody help me?

 

Thx
Ravi

Accounts Payable - Invoice Due Date Calculation

$
0
0

I am currently developing HANA views in order to produce an AP Duplicate Invoice Report. One of the fields required is the Invoice Due Date which stems from a function module 'DETERMINE_DUE_DATE.' I am developing my view in HANA DB using ECC tables and I'm trying to find an easier way to replicate this calculation in my HANA view. Has anyone put something like this together? Is it possible to maybe create an abap managed database procedure together which could run this function module and provide me with the field that I need? The calculation basically takes the baseline date in BSIK, adds the ZTERM which is pulled from T052, and then accounts for any discounts percentages given (ZBD1P, ZBD2P). Any ideas would be much appreciated. Thanks for your help!

Eclipse-Mars to SAP HANA (Trial DB)

$
0
0
  • I waited a few weeks and re-install new Eclipse-Mars today,
  • I already have a test BD Account with some DB data (example attached)
  • Tried using the 8 Steps .... directions but cannot get to the SAP HANA Development Screen to link in my Trial
  • Can you please tell me what I need to do

 

Thanks:

 

DJ

Run HANA Stored procedure in parallel

$
0
0

Dear all,

 

I have created a stored procedure in HANA which will select the parameter "Property" into an array, iterate over this array and call a second stored procedure ("pattern_Identification") with the parameter "Property" as input parameter. As I have around 20 different "Property" parameters the procedure "pattern_Identification" is called several times sequential and makes the whole process slowly. That's why I would like to parallelize the process.

 

Please let me know how I can use HANA capability to call this stored procedure parallelly ?

 

Regards,

Matthias

 

PROCEDURE "MY_SYSTEM"."My_Project.procedures::run_Pattern_Identification" (   IN personID ALPHANUM(10)
)   LANGUAGE SQLSCRIPT  SQL SECURITY INVOKER   DEFAULT SCHEMA TEST_SYSTEM  AS
BEGIN  DECLARE property_Array VARCHAR(50) ARRAY;  DECLARE a_Length INT;  DECLARE a_Index INT;  DECLARE property VARCHAR(50);  property_Tab = SELECT DISTINCT "PROPERTY" FROM "ENVIRONMENTAL_DATA";  property_Array := ARRAY_AGG(:property_Tab.PROPERTY);  a_Length := CARDINALITY(:property_Array);  FOR a_Index IN 2 .. a_Length DO  property := :property_Array[:a_Index];  CALL "test_Project.procedures::pattern_Identification"(:property);           -- Call could be parallelly  END FOR;
END;

Get form element value after setting model

$
0
0

Hi experts!

 

  I have a form with a comboBox as follow:

 

new sap.ui.layout.form.FormElement(this.createId('cboImpostos'),{  label : '{i18n>lancamento.crud.cboImposto.title}',  fields : [   new sap.m.ComboBox(this.createId('impostos'), {  value: '{/limp/codigoTipoImposto}',  items : [          new sap.ui.core.Item({            key : 'ICMS',            text : '{i18n>lancamento.crud.cboImposto.ICMS}'          }),          new sap.ui.core.Item({            key : 'IPI',            text : '{i18n>lancamento.crud.cboImposto.IPI}'          }),              new sap.ui.core.Item({            key : 'INSS',            text : '{i18n>lancamento.crud.cboImposto.INSS}'          }),              new sap.ui.core.Item({            key : 'ISS',            text : '{i18n>lancamento.crud.cboImposto.ISS}'          }),          new sap.ui.core.Item({            key : 'OUTROS',            text : '{i18n>lancamento.crud.cboImposto.Outros}'          })      ],  editable: '{= ${page-state>/edit} === true}',  }).attachSelectionChange(function(oEvt) {  oController.handleImpostoValueChange(oEvt)  })  ]  }),

and I'm setting the model on my controller like this:

 

onInit: function() {  this.getRouter().getRoute("lancamentoImpostoCRUD").attachPatternMatched(this._onObjectMatched, this);
}
_onObjectMatched : function (oEvent) {  this._bindView(oEvent.getParameter("arguments").lancamentoID, this.getView().byId('formLancamentoCRUD'))  },
_bindView: function (lancamentoID, form) {  sessionStorage['lancamentoID'] = lancamentoID  if(lancamentoID !== -1) {  var params = {  lancamentoID: lancamentoID  }  var url = Config.getUrlFor('hana:lancamentoImposto.find', params)  var model = new sap.ui.model.json.JSONModel()  model.loadData(url)  form.setModel(model)  }  },

But after that when I try to recover the value of the selected item from the comboBox, it's empty!!!

 

var cboImposto = this.getView().byId('impostos')            var selectedItem = cboImposto.getSelectedKey()                        console.log("Teste: " + selectedItem)

The log is an empty text. What am I doing wrong? Thanks in advance!!

How to execute a dynamic SQL Query from stored procedure

$
0
0

Hi,

I'm trying to execute a dynamic sql query which is an  input parameter to a stored procedure.

I just have to execute the query in the input parameter when the procedure is called.

 

 

I am  currently using exec command.   It is executing the query but not displaying any results.

 

Thanks

Alekhya

Where to find Core Data Service DDL tutorial and the language reference?

$
0
0

Hello,

 

I just started to create my first CDS persistence model.  I find some of the example and tutorial don't really explain the specific of the DDL it self.  Where can I find the tutorial or reference on what DDL where I can get more detail explanation of the syntax of the language itself?

 

Thanks,

Jian


how to load mdb(access databases) files into HANA db

$
0
0

Hi,

 

I have few access databases(*.mdb) . Is there a way to load these files into HANA db?

I have BODS also in my landscape but since each mdb files has lot of tables , it seems very cumbersome for loading each and every table.

Scheduling Options to control multiple .xsjobs

$
0
0

Dear Experts,

 

I would like to know available options in SAP HANA to control the multiple .xsjobs at a time using either or a tool or script.

 

After watching below video from Mr.thomasjung i created few xsjobs to trigger sql procedures successfully but now i want to control them at a time.

SAP HANA SPS 07 Job Scheduling - YouTube

My questions are:

 

1) I saw in the end of the video Thomas mentioned something about api and a xsjs script to start and stop the same two jobs by commands but not clear for me if we can just directly execute them.

 

2) I tried to write an update script to set the status of the jobs to 'Active' so that it should start the jobs but realized it won't work as the password entrance is not possible due to security reasons. So any other system log view tables can do the work to start or stop list of jobs ?

 

3) Is there any GUI in XS admin tool to control multiple jobs at a time instead of java scripts?

 

Thanks

Ranjith

rnandiraju@munichre.com

Merging of SSO and Direct Application Link for SSO with SAML2.0

$
0
0

Hi,
We have configured SSO with SAML2.0 for SAP HANA XS Application.We have configured SSO for dummy application like KPI_SAML.
In case SSO fails we have also given direct application link to user to access the application using their id and password.


SSO Link : https://stlpr701.one.ofc.loc:4304/KPI_SAML/Z_PRJ_KPI_REPORTS_UI/WebContent/DataSanityCheck.html

Direct Application Link : http://stlpr701.one.ofc.loc:8004/KPI_SAML/Z_PRJ_KPI_REPORTS_UI/WebContent/DataSanityCheck.html


My question is now that to make the user’s life easier, instead of saving/having 2 alternative sites as first access page, can’t we create
a single “landing page”, no authentication required, where the users can select if they want to proceed clicking “Regular Single-Sign-On access (preferred)” or “Alternative login page (Username and Password Required)” ?

 

Please let me know if you need any information on this.

 

Thanks & Regards,

Nilesh Shete

How to call HANA store procedure in XS?

$
0
0

Dear all,

 

I am developing a application using HANA XS and UI5.

 

I created a web interface with a table view and connected the JSON model to SAP HANA via OData.

 

I would like to run a stored procedure on HANA which is triggered before Data are loaded.

What would be the best way to call this stored procedure from XS?

 

Thank you in advance.

 

Regards,

Matthias

Passing Parameter to $$.hdb.Connection.executeQuery in a variable

$
0
0

Hello,

 

I would like to pass the parameters as a variable as these are dynamic values. For example,

 

var sQuery = 'SELECT * FROM <TABLE> WHERE <col1>=? AND <col2> = ? and <col3>=?'

 

var aValues = ['value1, value2, value3']

 

var oConnection = $.hdb.getConnection();

oConnection.executeQuery(sQuery , aValues ); 

 

This gives me an error "Parameter 1 is not of type that can be processed!"

 

Best Regards

Srini

Viewing all 6412 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>