Quantcast
Channel: SCN : All Content - ABAP for SAP HANA
Viewing all 831 articles
Browse latest View live

CDS View - consuming HANA artifact (calculation view generated by BW)

$
0
0

Hi,

 

Can I consume a calculation view in a CDS view like below? If not, how should I then do it?

 

@AbapCatalog.sqlViewName: 'Z_Cds_Test_12345'

@EndUserText.label: 'CDS View on generated view for NCTT2000'

define view Z_Cds_Test_Nctt2000_Gen_View as select from "_SYS_BIC"."system-local.bw.bw2hana/NCTT2000" {

    CALMONTH,

    AMOUNT   

}

 

At least when I try I get an error:

Description Resource Path Location Type

Table _SYS_BIC does not exist or is not active Z_CDS_TEST_NCTT2000_GEN_VIEW (ABAP DDL Source) [D32] Z_CDS_TEST_NCTT2000_GEN_VIEW Unknown ABAP Syntax Check Problem

 

 

Thanks in advance, kr

Torben


ABAP Basic Tutorials for sap HANA

$
0
0

Hi,

 

Can anyone provide me the Basic  link or documents for ABAP ON SAP HANA.

 

Regards,

ujjwal kumar

debugging AMDP authorization

$
0
0

Hello,

 

I've read some topic on SDN to figure out how to debug, what privileges should I have,
Based on authorization team I have proper roles. also following action were done:

 

grant debug on schema <SCHEMA> to <USER>

grant select on schema <SCHEMA> to <USER>

grant attach debugger to <USER>


Still I have:

"You are not authorized to attach to a connection that belongs to this HANA user"


Thank You

Regards,

Tomek

ABAP CDS View: odata service with no annotations

$
0
0

Hello All,

 

ABAP System 7.50.

 

I have an ABAP CDS view like here:

 

@AbapCatalog.sqlViewName: 'z_cds_test_1'  
@AbapCatalog.compiler.compareFilter: true  
@AccessControl.authorizationCheck: #CHECK  
@EndUserText.label: 'Test 2 CDS'  
@OData.publish: true  
@Search.searchable: true  
define view ZMYFLIGHTS      as select from spfli      association [1..1] to scarr as spfli_scarr      on spfli.carrid = spfli_scarr.carrid      {         @UI.selectionField: [ { position: 10 } ]         @UI.lineItem: [ { position: 10 } ]         key spfli.carrid as id,         @UI.lineItem: [ { position: 20 } ]         @Search.defaultSearchElement: true         key spfli_scarr.carrname as carrier,          @UI.lineItem: [ { position: 40 } ]         key spfli.connid as flight,         @EndUserText:{ quickInfo:'Some info22' }          @UI.lineItem: [ { position: 50 } ]         spfli.cityfrom as departure,          @UI.lineItem: [ { position: 60 } ]         spfli.cityto as destination      }  

 

The odata service is created because of the annotation @OData.publish: true.

My service (metadata ) is showing no annotation-related data however.

 

My smart table (Fiori control) is not working and raising the error "Select at least one column to perform the search".

I set the @UI.lineItem annotation though so I would expect this would be enough for the smart table.

There is not a single column in the table.

 

Any one encountered this problem?

Any help will be appreciated.

 

Regards,

Bert

Required Documents for Sap Abap with HANA

$
0
0

Hi Guys,

 

I have 5 Years of experience in Sap Abap,I want to learn Sap Abap with HANA, can anyone help me where I can start to learn or Share pdf/documents to start working on it.

 

Thanks,

K V Kishore

HANA secondary database connections are exhausted.

$
0
0

Hi All,

 

 

 

We are running BW application on HANA 85.02.

 

 

 

Some background job failed with  DBIF_RSQL_INVALID_RSQL dump. It showing The rescources for further secondary database connections are exhausted.

 

 

 

Please help us where to check secondary database connections details.

 

 

 

 

 

Regards,

MK

Comparison of application server file against custom table

$
0
0

Hello All,

 

I have a file in application server and I read it line by line. There are predefined fields in the record which should be compared against values maintained in a custom table and if matches then should be updated in a z table. The file is huge and the logic already in place is consuming time and hence we are eying the possibility to do it through amdp. Can someone guide as to how to start with the same?

 

Example:

 

The file data is seperated by ;If the second value in the current record is either a,b,c,d(to be checked against the custom table) and if fourth data in the current record is either 1,2(check the table) then a custom table is to be updated.

 

Thanks,

Prem

Mandatory Steps to Adapt ABAP Code for SAP HANA

$
0
0

In order for your ABAP code to work with SAP NetWeaver using SAP HANA as the database, you will need to validate if the code is truly database independent and is not reliant on unique behavior of a specific database.

 

Adapting for SAP HANA means make your ABAP code database independent


What does it mean for ABAP code to be database independent? Let me illustrate this with an example. With some databases the use of SELECT statement without ORDER BY will result in the records returned in the order of the index used to retrieve them from the database. This result is neither a feature of standard SQL nor of the specific database. It seems it is just luck the order used by the database is also the order you needed for retrieving the records. If someone then creates a different index or deletes the index used, then the database will return the records in a different order. If you move to a different database such as SAP HANA, the records returned may be in a different order then the order returned in the previous database. Standard SQL code without ORDER BY does not specify the order in which records are returned.

 

This is but one example of the many items which need to be reviewed and possibly changed when adapting ABAP code for SAP HANA. Based on SAP’s current knowledge of what is needed to make ABAP/OpenSQL compliant with standard SQL, SAP has developed tools to find these coding mistakes and help automate this process. These tools are: Code Inspector and Runtime Check Monitor are available with SAP NetWeaver. The "Mandatory Steps to Adapt ABAP Code for SAP HANA" is detailed presentation providing more information about how to use these tools, including which code is identified and why this code needs to be changed. Over 100 SAP Partners have used this presentation as a guide when using these tools to adapt their software written in ABAP/OpenSQL to be ready for SAP HANA.

 

Adapt your ABAP code before you have SAP HANA


Following the method outlined in the presentation "Mandatory Steps to Adapt ABAP Code for SAP HANA and using tools delivered by SAP, you can ready your ABAP code for SAP HANA without having SAP HANA. The tools work the same way with or without SAP HANA. By adapting the ABAP code for SAP HANA will result in the code becoming database independent. It will work on any database supported by SAP NetWeaver. This will also give you a head start when you move to SAP HANA.

 

FYI: Link to the presentation will follow soon, in the mean time just write me an email to michael.goedecke@sap.com and I'll email it. Sorry for the inconvenience. Working on a link for the presentation!


How to improve this CDS view performance

$
0
0

Hi Experts,

 

I am using a CDS view with following join conditions.

cds.png

And the where condition is " where  a.kdauf = :p_vbeln  or ( b.kdauf = :p_vbeln and b.werks = :p_werks ) or c.vbeln = :p_vbeln ".

 

Its taking at around 30 secs to execute. Is there any other way to make the cds view to work fast without hampering the functional requirement.

 

Thanks and regards

- Sabarna.

How to convert Customized HANA view to CDS View?

$
0
0

Hi,

 

I have created a customized HANA View as per the requirement and fetched in Fiori. Now SAP says all the Calculation views to be converted to CDS Views.

 

  • I got to know the procedure, First we need to convert Customized HANA View to External View and consume external view in CDS. I am very new to CDS  so please someone elaborate how to convert HANA View to external view and how to consume in CDS?

 

 

Thanks in Advance

Nagarjuna


Other then ABAP, can CDS consumed by others reporting tools? e.g Bobj, Lumira

$
0
0

Dear Expert,

 

Other then ABAP, can CDS (core data services) consumed by other reporting tools? e.g Bobj, Lumira or HANA modeling join with other hana view. I googled but can't find any.

 

Thank you.

Selecting multiple columns and summing based on two columns in SQL Script using HANA

$
0
0

Hi All,

 

I hava a scenario i need to sum based on 2 columns and need to select few more columns further processing in SQL Script using hana.

 

But unfortunately i need to specify all the columns in group by if i use sum.is there any way sum based on 2 fields and select multiple columns.Please help.thanks

Open SQL join using cast function

$
0
0

Hi All,

 

I have to join CDHDR and CDPOS using cast function OBJECTID and kostl field which has different length.Is it possible to cast using join function in New abap open SQL.Please help.Thanks.

ABAP CDS View: OData service CRUD enabled?

$
0
0

Hello All,

 

Is it possible to make an odata service generated by the abap cds view CRUD enabled?

So can I do an UPDATE, DELETE, CREATE on the odata service?

 

I am reading stuff about BOPF ? Is this the way to go forward?

 

Regards,

Bert

Consumption of ABAP CDS view.

$
0
0

Hi All,

 

Is it possible to consume the ABAP CDS view to other reporting tool i.e. analysis for office, lumira, Dashboard etc.

If yes, Can you please guide how to achieve it.

 

Many thanks in advance.

 

Gaurav


upgrade Hana Project and Custom Abap program

$
0
0

Hello Gurus,

 

In the next future  I'll probably work in a project where it will been installed the DB  Hana .

I shall have to test all custom FI transactions , do you know what could be the error encountered ?

for example error in select statement and so no .

 

thanks in advance

CDS CURRENCY CONVERSION (ABAP on HANA)

$
0
0

Hi All,

 

I'v tested CDS with currency conversion versus the classical approach with the function module for currency converion on application layer (CONVERT_AMOUNT_TO_CURRENCY). The classical approach seemed to be much faster, so I started testing.

 

Please find attached the objects used for testin:

  • y_cds_test_currconv.txt -> Simple ABAP report with both options
  • Y_CDS_TEST_CURRCONV.txt -> The CDS view

 

I test on a system with AS ABAP 7.4 SP8 + HANA SP 8 and also AS ABAP 7.4 SP8 + HANA SP 9.

 

There's actually an OSS, but the it's refering to Oracle DB and not HANA DB (2067294).

 

Native SQL statment (tracing done with ST05)

 

SETSCHEMA"SAPMDE";

SELECT

   "CARRID",

   "CONNID",

   "FLDATE",

   "SOURCE_PRICE",

   "SOURCE_CURRENCY",

   "TARGET_AMOUNT",

   "TARGET_CURRENCY"

  FROM

    "YTESTCUR" ( "TO_CURRENCY" => 'EUR' ,

                              "EXC_DATE" => '20150427' ) "YTESTCUR"

  WHERE

    "MANDT" = '100'


Result

native_sql.gif

 

Change the CDS and replace the CURRENCY_CONVERSOIN by table field PRICE. (to check if the slow performance is cause by the currency conversion function)
cds_change.jpg

Result run native SQL statement:

cds_change_result.jpg

 

I have also run the SAP HANA Plan Visualizer, refer the next screenshots.

 

visualizer1.jpg

 

visualizer2.jpg

visualizer3.jpg

 

It seems to me that the currency conversion has some performance issue. Has anybody experienced the same and maybe found a solution?

 

One final remark: for testing you need to have data in FLIGHT model. (Go to SE38 and run SAPBC_DATA_GENERATOR to generate data)

 

Thanks in advance.

 

Best Regards,

 

Bart

CDS view currency conversion performance

$
0
0

Hi All,

Currency_conversion function in CDS view  terribly decrease performance of the cds  view,  view running in few seconds run for minutes after adding currency_conversion function. I am working on 7.40 SP10 system.

- I could not find any note for the issue for my system's support pack level ( I will open one )

- I tried to select  conversion ratio from tcurr table but it is necessary to subtract gdatu date from 9999999 to get actual date and could not cast gdatu to numeric field to  be able to perform necessary arithmetic operation in cds view. 

- Last solution I have in mind but  trying to avoid  is creating ZCURR table with proper date field instead of gdatu and filling it for the past and recent currency values using a simple program and daily job.


Do you have any other solution for above problem ? I searched the forum but find only one post for the issue which does not suggest any solution 

Mandatory Steps to Adapt Your ABAP Code for SAP HANA

$
0
0

The document contains all necessary steps to make ABAP Code run correctly under SAP HANA and any other DB.

View this Document

SAP HANA - waste of time to learn or not?

$
0
0

Hello,

 

I have downloaded and installed Netweaver ABAP trial 7.3 some time ago and Im learning ABAP with book ABAP learning course by Karl-Heinz Kuhnhauser.

 

And during my learning Im thinking about my future career path in SAP. I find fastinating SAP HANA platform. Do you think this platform will be really huge in the future and more customers will want this alternative to SAP ERP etc. ?

 

And since ABAP knowledge is not a requirement for learning SAP HANA, what is? I researched it should be other languages such as SQL, SQLScript or javaScript, are there any others?Do you think I should continuing with learning ABAP and concurrently start to learn also other language for SAP HANA?

 

I would be truly grateful for your opinions and advices.

 

Thank you, Tereza

Viewing all 831 articles
Browse latest View live


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