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

Batch processing in HANA using Odata Service

$
0
0

Hi All,

 

I am working in a scenario where I need to do batch processing in HANA tables using Odata services . (Note: not using UI5)

 

 

I have got the below link for batch insert, however being new to Odata and XSJS stuff, had few questions on the same.

 

OData Batch Requests - SAP HANA Developer Guide for SAP HANA Studio - SAP Library

 

 

Whats the request header and the request body. Where I put the code in the example given. In services?

 

What is multipart/mixed and a boundary ID boundary=batch_#?. Need to add this in services?


Can anyone me help on this and if possible with a example.


Re: Getting ServerName in a View

$
0
0

Would this statement help?

 

select value from M_HOST_INFORMATION where key = 'net_hostnames'

Re: Getting ServerName in a View

$
0
0

Thanks for the try Paul, but unfortunately not.

That just brings me 5 different [net_hostnames]  values.

 

After some reading of Documentation/Forums, I have come to believe that M_HOST_NAMES is part of a much more complex system, of internal network mapping. Not something that I as a mere application/report developer really understands (or if I am honest, wants to !)

 

I think some people might have a less complex infrastructure than I seem to ... and so the above does work for them though.

SAP HANA SPS 10 & RED HAT 6.6

$
0
0

Hi.

 

I am trying to install SAP HANA SPS 10 under RED HAT 6.6 but i get this message error and the installation is canceled...

I am following the note :

 

"SAP HANA Platform SPS 10 Document Version: 1.1 – 2015-08-21

Red Hat Enterprise Linux (RHEL) 6.x Configuration Guide for SAP HANA"

 

 

Someone  could help me.. Please..

 

 

 

17:27:03.337 - INFO: -----------------------------------------------------------

17:27:03.337 - INFO: Deploying SAP Host Agent configurations...

17:27:03.337 - INFO: -----------------------------------------------------------

17:27:03.337 - INFO:   Deploying SAP Host Agent configurations on host 'hanamt'...

17:27:03.867 - INFO:     Calling SAP Host Control web service operation 'DetectManagedObjects' (host: 'hanamt', user: 'h10adm', url: 'https://hanamt:1129', arguments: 'manifest' - '/hana/shared/H10/hdblcm/SIGNATURE.SMF')

17:27:03.878 - ERR :     500 Can't connect to hanamt:1129 (Connection refused)

17:27:03.879 - WRN :   Deployment of SAP Host Agent configurations failed on host 'hanamt'

17:27:03.879 - INFO: -----------------------------------------------------------

17:27:03.879 - INFO: END: Deploying SAP Host Agent configurations (start: 17:27:03.337 duration: 00:00:00.541)

17:27:03.879 - INFO: -----------------------------------------------------------

17:27:03.985 - ERR : Installation of SAP HANA system failed.

17:27:04.018 - INFO: Summary of critical errors

17:27:03.985 - ERR :   Installation of SAP HANA system failed.

17:26:48.395 - ERR :     Installation of SAP HANA Database failed

17:26:48.394 - INFO:       Installation failed

17:26:48.394 - INFO:         error installing

17:26:48.395 - INFO:           Cannot create Instance

17:26:48.395 - INFO:             Cannot create instance

17:26:48.395 - INFO:               Cannot create SecureStore

17:26:48.395 - INFO:                 Switching to user id 1000 and group id 79.

17:26:48.395 - INFO:                 Starting external program /usr/sap/H10/HDB00/exe/hdbnsutil

17:26:48.395 - INFO:                   Command line is: /usr/sap/H10/HDB00/exe/hdbnsutil -createSecureStore

17:26:48.395 - INFO:                 Program /usr/sap/H10/HDB00/exe/hdbnsutil terminated with error: signal  6

17:26:48.395 - INFO:                 Switching back to root user.

17:26:48.395 - INFO:                 /usr/sap/H10/HDB00/exe/hdbnsutil call failed

17:26:48.395 - INFO:                   Program /usr/sap/H10/HDB00/exe/hdbnsutil terminated with error: signal  6

 

Thank's

GerardoTriana

Selecting data from an Attribute View using ADBC

$
0
0

Hi All, Can anyone help me with the fixing the below code excerpt: I have just created an attribute view in the HANA Studio and using the public synonym to access the view from my ABAP program. I have defined a calculated attribute called 'Route' within the attribute view that calculates the route of the flight. The problem I am facing is whenever I use route within my SQL query I encounter a syntax generation error. Do you know why is that happening and how do I resolve the issue? REPORT zdemo_adbc. TYPES:   BEGIN OF ty_data,     carrid TYPE s_carr_id,     connid TYPE s_conn_id,     fldate TYPE s_date,     route  TYPE string,   END OF ty_data. CONSTANTS: c_view TYPE string VALUE 'ZDEMO_HANA_ABAP::ZAT_FLIGHT_BASIC'. DATA: lt_data TYPE STANDARD TABLE OF ty_data. * - Access to the Attribute View DATA(lv_statement) =     | SELECT CARRID, CONNID, FLDATE, Route | &&  | FROM "{ c_view }" | &&  | WHERE mandt = '{ sy-mandt }' ORDER BY FLDATE, Route |. TRY . * - Preparing Native SQL connection & statement     DATA(lo_result_set) =     cl_sql_connection=>get_connection(     )->create_statement( tab_name_for_trace = CONV #( c_view )     )->execute_query( statement = lv_statement ). * - Get Statement     lo_result_set->set_param_table(       EXPORTING         itab_ref  = REF #( lt_data ) ).     lo_result_set->next_package( ).     lo_result_set->close( ).   CATCH cx_sql_exception INTO DATA(lo_exec).     WRITE: |{ lo_exec->get_text( ) }|. ENDTRY. Many Thanks, Tanmoy

beginner XSJS

$
0
0

Can any one please share document for beginner  for XSJS and ODATA ??

Re: SAP HANA - Inner Join Performance Optimization

$
0
0

Hi Lars & Sergio,

 

first of all thanks for your input - secondly, sorry about my late response.

 

Requirements has developer a bit since the sql statement i pasted above - as well have an implementation been done - I'm however not satisfied by the performance.

 

The raw SQL is as follows:

SELECT b."BILL_NUM", b."BILL_ITEM", b."BILL_DATE", b."DOC_CURRCY", b."MATERIAL", t."/BIC/TRADE_ID", c."/BIC/CUSHIER6", c."CUST_SALES", b."NETVAL_INV", b."BILL_QTY", c."DATEFROM", c."DATETO"


FROM"/BIC/ANSD300000"AS b


INNERJOIN"/BI0/MCUST_SALES"AS c ON b."SOLD_TO" = c."CUST_SALES"

INNERJOIN"/BIC/MTRADE_ID"AS t ON c."/BIC/CUSHIER6" = t."/BIC/CUSHIER6"


INNERJOIN"/BIC/ANSD260000"as o on b."DOC_NUMBER" = o."DOC_NUMBER"

WHERE b."BILL_TYPE" = 'ZF2'AND 0."DOC_TYPE" = 'ZOR';

 

However it is implented and used in ABAP - in a for all entries statement:

 

 

  IF gi_material IS NOT INITIAL.
    SELECT b~bill_num b~bill_item b~bill_date b~doc_currcy
           b~material
           t~/bic/trade_id c~/bic/cushier6 c~cust_sales
           b~netval_inv b~bill_qty c~datefrom c~dateto
      INTO CORRESPONDING FIELDS OF TABLE lt_temp_table
            FROM /bic/ansd300000 AS b
      INNER JOIN /bi0/mcust_sales AS c
      ON b~sold_to EQ c~cust_sales
      INNER JOIN /bic/mtrade_id AS t
      ON c~/bic/cushier6 = t~/bic/cushier6
      INNER JOIN /bic/ansd260000 as o
      on b~doc_number EQ o~doc_number
      FOR ALL ENTRIES IN gi_material
      WHERE t~/bic/trade_id EQ gi_material-tradeid AND
            b~bill_type EQ 'ZF2' AND
            o~doc_type EQ 'ZOR' AND
            b~material EQ gi_material-material AND
            c~dateto GE gi_material-date1 AND
            b~bill_date LE gi_material-date1.
  ENDIF.

 

for 25000 records in gi_material the execution time for the for all entries statement is 3-4 min. Over time that will increase if nothing is done as we get more and more data into those tables.

 

I would like to minimize the execution time as the program is running every 5 min.

 

The HANA revision in use is 85.02. It is on a scale-out platform running BW on HANA, hence the big DSO tables (/BIC/A*00) are partitioned using HASH partitioning (hence standard partitioning in BW on HANA).

 

The explain plan for the raw SQL is as follows:

sql_explain_plan.JPG

 

The virtualized plan (prepared) looks as follows:

virtualized_prepared_plan_high_level.JPG

Details for the high cost part:

virtualized_prepared_plan.png

 

Any idea on how I can optimize? (create the stuff in views instead and consume that given view as a DDIC object in ABAP? utilize CDS views? etc)

 

 

Thanks in advance. KR

Torben

Re: Create Attribute View of "OSRQ"

$
0
0

Hello friends,


Useandjoinedother tablesthat bringthe same information, actually had tojoin severaltables (OINM, OSRI, OSRN) to find what he wanted.


Besides that,my purposewas to knowif I cantakea table asOSRQand "convert" in attribute view, butcan not.


I haveto be creative tofind a solution tothis type of problem.


Thank you all forthe helpand support.


How to Prepare for HANA Certification (C_HANAIMP151) ?

$
0
0

I am preparing for SAP HANA Application associate certification - C_HANAIMP151 using:


-HA100

-HA300

-HA200 (for further content).


However i am finding the material in these manuals in less to understand HANA and prepare for certification according the subtopics for e.g


- Modelling Function

- SAP HANA Architecture

- Data provisioning

 

Hence I need guidance on which material sources to prepare for HANA ??


I am planning to take SAP HANA E-academy - HAIMPE, I have 3 months time to prepare.

 

Re: COUNT method in oData aggregation?

$
0
0

Ok I figured out a work around from this post: XSODATA IS NOT WORKING  WITH 'COUNT' AGGRE... | SCN

 

Now to get the number of users I query URL  ....xsodata/users?$select=USER_ID&$inlinecount=allpages&$top=1&$format=json, then get the __count value from d.results

To get number of subscribers, I use regular oData URL ..xsodata/users?$select=CNT_SUBSCRIBERS

 

I expect one query to get both number, now I have to use two....

Re: How to replace table in SAP HANA views

$
0
0

Hi,

 

Just try to open XML file and replace name in Datasource. I think, it will help you.

 

Regards,

Vikram

Re: How to replace table in SAP HANA views

$
0
0

Well, in our modern days, just right-clicking on the table in the modeller and choosing "replace with data source" would be doing the trick, too.

Re: How to Prepare for HANA Certification (C_HANAIMP151) ?

$
0
0

As you seem to have access to the course material, you surely have taken the courses with a SAP training institution. Typically the folks there can also help you with understanding the requirements for the certifications.

 

Generally the Associate Certifications are designed in a way that all questions can be answered by the material mentioned in the prerequisites of the certification. So, given the courses you've taken, you should be able to pass the test.

Re: SAP HANA - Inner Join Performance Optimization

$
0
0

The prepared plan doesn't tell us where the time actually is spent. It's really just the graphical version of the explain plan.

Based on the numbers we see there, the result set that gets created is in the 700 millions, which clearly leads to the question: what do you want to do with the data?

Running this query every 5 minutes... what for?

 

The assumption that the more records you join the longer it might take is not wrong, but assuming a linear or worse growth of runtime with the growth of data is not appropriate.

 

Another important piece of the total query performance is that you are running in a scale-out scenario. Here table distribution can be critical as intra-node data transfer can take a long time.

The executed planviz will also shed light on this.

 

Finally, your SAP HANA version is ancient. SPS 11 is the current one and with SPS 8 you're missing out on a lot of optimizations that have been implemented since then.

Re: How to replace table in SAP HANA views

$
0
0

Hi Lars,

 

which version has this feature?

I am on SP8.I don't see that option.

 

Regards,

Kumar


Re: How to replace table in SAP HANA views

$
0
0

Well, SPS8 is outdated. Get SPS9, 10 or 11 and you have that.

As this is a feature of the SAP HANA Studio, you should be able to just use the current SPS11 HANA studio with your SPS 8 instance.

Re: HANA Studio - Check out and import projects gives error "No projects are found to import"

Re: How to replace table in SAP HANA views

Re: SAP B1 CLOUD ON HANA QUESTIONS

$
0
0

Hello Parvesh,

 

I tried it again. Uninstalled everything and installed everything again with server name. Still the xApps is failing in post install.

 

Is there a way to install it first than register it manually. What would be the commands to do that.

 

Rahul

Re: SAP B1 CLOUD ON HANA QUESTIONS

$
0
0

Wish you good day Rahul,

 

I would recommend registering the things in CCC first with Hostname (If followed) and then reinstall the only XApp, it should be registered in this way to SLD.

 

If this is already been followed then just let me know the error you receive in file, does it say like could not unpack package or something?

 

BR,
Parv

Viewing all 9165 articles
Browse latest View live


Latest Images

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