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

Accessing tables from different schema through AMDP.

$
0
0

Dear All,

 

 

Recently we have started working with ABAP on HANA and day by day we are getting more challenges, so one of my best part I am sharing here....

 

I got a business requirement which was very interesting, the data has to be taken from  different schema's table which is SLT replicated.

We are executing report from BW on HANA system.

 

Below I am presenting summarized code, hope that might be useful for ABAP lovers.....

Report Parts :

1. Selection On Date and Division Number from VBRK & VBRP (Data to be pulled from cross Schema).

2. F4 help for Division Number(Data to be pulled from cross Schema)

3. Display Output


Before that introduction of  AMDP ABAP Managed Database Procedures - Introduction

 

Class :

Definition -

Defination.PNG

Implementation -

1.We can point schema tables like "RD2.VBRP" or RD2.VBRP.

2.If you want to access current schema tables then you can add tables in 'USING' clause.

Implimentation.PNG

 

 

 

 

Program :

 

Program.PNG

      Output :

 

Output.PNG

 

 

 

 

 

Regards,

Amol


Concatenate in CDS

$
0
0

Hi,

 

I am creating CDS view and i have requirement like below.

 

I have one field suppose 1200 and other field is TEXT

The output should be 1200-TEXT

I am using concat(1200, '-', TEXT) but its not accepting.

 

 

Thanks,

Charu

 

Message was edited by: Jasmin Gruschke

Where does SRTCM fit into preparing ABAP for Hana?

$
0
0


I've seen and heard mention of transaction SRTCM (Runtime Check Monitor), to run in Production for one or two weeks to go alongside static code checks. I'm a little confused on how this fits into preparing our code for Hana though.

 

If we use ATC/Code Inspector with the 'FUNCTIONAL_DB' and 'PERFORMANCE_DB' variants and then the SQL Monitor in Production, these are then plugged into transaction SWLT to provide a focused list on what we need to work on. SRTCM, however, does not seem to fit into this picture. There doesn't seem to be a way of plugging it into SWLT (unless I'm missing something?). Or is it meant as a stand alone tool?

 

We're on SAP_BASIS 740, SP8, in case that makes the difference.

 

thanks,

Malcolm.

CTS+ for SAP HANA Sp09

$
0
0

Hello,

 

 

I am trying to Configure CTS+ for HANA on our ERP (on HANA) system and have followed the Guide-How To Configure SAP HANA for CTS SP09 for the same.

 

 

The CTS system is a SolMan 7.1 Sp11 and the HANA system is a ERP 6.0 EHP7 on HANA DB 1.0 Rev 90

 

 

Now, all steps of the CTS+ were followed but towards the end when I get to the Step to "Configuring the SAP HANA Source Systems" When I try to Maintain the HTTP Destination in the Configure CTS system step. Though all details have been entered correctly i get a Error message (below)-

 

 

"Error:The CTS system is not reachable"

 

 

I have cross checked and also selected different authentication options like :

Basic Authentication (username/password)

SAP Assertion Ticket

 

But all of them fail with the same error

 

 

Also we are not using SSL to connect the HANA system and the SOlMan.

 

 

Can anyone help?

 

 

Thanks in advance!

 

 

Regards,

Paul

Default value for Date Field in .hdbtable while inserting records

$
0
0

Hi All,

 

I am trying to convert one table into .hdbtable.

 

Below is the SQL code for my table.

CREATE COLUMN TABLE "SCHEMA"."TABLE" (                                                 

                 'FIELD1' VARCHAR(128),                                            

                 "FIELD2" VARCHAR(64),                                            

                 "FIELD3" VARCHAR(128)) UNLOAD PRIORITY 5 AUTO MERGE      ;     

                                                    

ALTER TABLE "SCHEMA"."TABLE"                                                           

WITH PARAMETERS ('CONCAT_ATTRIBUTE'=('EXPRESSION=FIELD4_DATE( now() )',                                                      

 

Now I want to convert the above into .hdbtable


table.schemaName = "SCHEMA";

table.tableType = COLUMNSTORE;       

table.columns =             

[           

{name = "FIELD1";                sqlType = VARCHAR; length = 128;} ,

{name = "FIELD2";                sqlType = VARCHAR; length = 64;} ,

{name = "FIELD3";                sqlType = VARCHAR; length = 128;} ,

{name = "FIELD4_DATE";     sqlType = TIMESTAMP; nullable = true; }

];          

 

Now I want to provide default date to field "FIELD4_DATE".

In SQL we can achieve this by 'ALTER'.

 

Can you please suggest me how to do in the .hdbtable?

is there any other way to convert the table into .hdbtable? rather than righting code..."table.schemaName = "SCHEMA";  .......]


PS: I have googled and searched in SCN portal. Not able to get any answers. Hence, I have posted.

 

Thanks in advance.

Want To learn SAP HANA

$
0
0

Hi All ,

              I am basically a SAP ABAP consultant . Want to know how to get started for learning SAP Hana . And what are the prerequisites for it to get started . Also i want to know which certification course do i need to appear for getting certified in SAP Hana . Please guide me .

 

Regards

S.B.Shankar


Featured Content for ABAP for SAP HANA

$
0
0

DEV201@SAP TechEd && d-code 2014 Las Vegas and Berlin

This blog series compiles the demo-rich session DEV201 (Overview of ABAP 7.4 Development for SAP HANA) that was held at SAP TechEd && d-code 2014 in Las Vegas and Berlin. Start with Part 1.

 

openSAP course "ABAP Development for SAP HANA" now in self-paced mode

Enroll yourself to the self-paced openSAP course ABAP Development for SAP HANA and learn what it means to develop ABAP-based applications optimized for SAP HANA. Read this blog by Jasmin. November 27, 2014

 

ABAP@SAP TechEd && d-code 2014

This blog provides a selection of ABAP-related sessions at the upcoming SAP TechEd && d-code 2014 in Las Vegas and Berlin. August 28, 2014

 

Want to try ABAP for SAP HANA yourself ? Check out the brand new E2E Development Guide

This document guides you through an end-to-end development example for SAP NetWeaver 7.4 SP5 on SAP HANA. You'll learn to leverage the power of SAP HANA via the code-pushdown capabilities provided by AS ABAP 7.4. Have a look in it here. April 24, 2014

 

See more recently featured content.

SAP hana influence on ABAP.

$
0
0

Hi Gurus,

 

Thanks to everyone for putting all the hard work for compiling the OPEN SAP courses and other Documents.. Hats off..

 

There is one query which has put me in a certain kind of retrospective. In large number of projects which we have worked we have written so much ABAP code ( Without SQL statements being optimized since Database Procedure statements were not much in use as it is now after introduction of HANA ) . So does it mean that SAP will ask all customers to upgrade using SAP Hana Approach or the Only the newly created programs and Database tables etc will use HANA approach..!

 

Also i wish to know how much influence will HANA have going further from an Abaper's Prospective.

 

Thanking You,

Best Regards,

Navin.


Reading SAP HANA tables/views from ECC

$
0
0

Hello All,

            My client is looking for reporting from SAP ECC using SAP HANA as a side car. Basically they want a report in SAP ECC and read the tables from SAP HANA and save them in a flat file. We are at SAP BASIS 7.1 version, support pack 8. I see there is an entry in DBCON table for HANA system. My question is, is there a seperate syntax to read the data from HANA tables in ECC?? If yes is there any link or document that i can use for my version of SAP (7.1 NW). Thank you very much you help.

Call AMDP(ABAP Managed Database Procedure) Inside AMDP Method

$
0
0


Dear All,

 

Yet another very interesting topic in AMDP, which is how to call AMDP method inside AMDP method.

 

Well, before moving forward let's see an overview of AMDP is

here

ABAP Managed Database Procedures - Introduction

Accessing tables from different schema through AMDP.

 

 

Scenario :-

                    1. Create  AMDP method which will get flight id(airline code) and aggregated price from currency and later will be called in another AMDP.

                    2. Create  AMDP method which will get flight name from airline code which is derived from AMDP in step1.

 

 

Steps :-

 

AMDP Definition

 

Defination.PNG

 

AMDP Implementation

 

Implimentation.PNG

 

 

Calling AMDP in program

 

Program.PNG

 

Desire Output

 

Output.PNG

 

I hope during realization that might be useful.

 

-Cheers

Amol

How to Use OData Analytics in SADL-Based Services

$
0
0

In SAP NetWeaver 7.40 SP07 and higher, you can configure a Gateway Service to return aggregated values, for example, a sum, a minimum value, or a maximum value. This How To guide provides a detailed guide on how to annotate SADL-based Gateway Services in order to use analytical features. You will learn how to: 1. Add a property for the generated key 2. Map properties to elements 3. Generate runtime artifacts 4. Provide analytical annotations 5. Provide aggregation behavior information

View this SAP How-to Guide

Enforce Authorizations for SADL-Based Applications

$
0
0

SADL (Service Adaptation Definition Language) enables fast read access to data for scenarios on mobile and desktop applications based on HANA by means of a query push-down. As part of the query push-down, all users' input is collected through consumer APIs and used to configure the request for the database. Specifically, the authorization enforcement in this process is interposed between query specification by application or end user and data retrieval from the database. This document provides a detailed guide on how to use the SAP authorizations in your SADL-based applications.

View this SAP How-to Guide

Fine-Tune the Execution of SADL-Based Gateway Services

$
0
0

SADL (Service Adaptation Definition Language) enables fast read access to data for scenarios on mobile and desktop applications based on HANA, by means of a query push-down. As part of the query push-down, the user's input and the application parameters are collected through consumer APIs and used to configure the request for the database. The SADL engine adds the resulting restriction to the condition for the database select (WHERE-clause). This document provides a detailed guide on how to use the query options in order to parameterize and fine-tune the execution of your SADL-based SAP Gateway Services.

View this SAP How-to Guide

Generic Types in AMDP / PAK

$
0
0

Dear experts, Dear Jasmin,

 

recently we are working in great planning project with IP and PAK. We are examining the possibilities of PAK and opposing them to 'traditional' IP functionality.

 

Since in classic IP context we are working with generic types by design, we wondered how to achieve this with PAK.

OK, so far PAK forced us to create types corresponding to our aggregation levels (C_TH_DATA) as paramteres i_view and i_ref_data.

 

In IP we are widely working with generic types or even references to generic field-symbols to modularize our coding. Sometimes we need to create types during run-time depending on planned values within c_th_data, create variables of this types, pass them to other methods or function modules and populate them.

 

In IP this is no problem, as the wohle of its abap oo framework is a ripe product ;-)

 

Regarding PAK we can see no option, how to achieve this.

 

We read in Rich Heilman's Blog the planned functionality of table type definitions for parameters.

http://scn.sap.com/community/developer-center/hana/blog/2014/12/01/new-sqlscript-features-in-sap-hana-10-sps9

 

This looks like a step into this direction.

 

1) Are there any plans to provide something like the passing of untyped, generic paramteres? Or do we really have to renounce this beautiful functionality of ABAP?

2) In the context of PAK we cannot jump back to the abap stack and proceed our logic with the result passed from the result image of the SQLScript.    Does this really mean, that if we have to do this, we cannot use PAK but IP instead (and also cannot activate deep HANA integration for this InfoProviders)? For right now, we are playing aoround with ADBC and AMDPs to achieve this, but this really would mean not to use PAK.

 

Any helpful discussion is very welcomed!

 

THX,

 

Jonas

Where does SRTCM fit into preparing ABAP for Hana?

$
0
0


I've seen and heard mention of transaction SRTCM (Runtime Check Monitor), to run in Production for one or two weeks to go alongside static code checks. I'm a little confused on how this fits into preparing our code for Hana though.

 

If we use ATC/Code Inspector with the 'FUNCTIONAL_DB' and 'PERFORMANCE_DB' variants and then the SQL Monitor in Production, these are then plugged into transaction SWLT to provide a focused list on what we need to work on. SRTCM, however, does not seem to fit into this picture. There doesn't seem to be a way of plugging it into SWLT (unless I'm missing something?). Or is it meant as a stand alone tool?

 

We're on SAP_BASIS 740, SP8, in case that makes the difference.

 

thanks,

Malcolm.


CTS+ for SAP HANA Sp09

$
0
0

Hello,

 

 

I am trying to Configure CTS+ for HANA on our ERP (on HANA) system and have followed the Guide-How To Configure SAP HANA for CTS SP09 for the same.

 

 

The CTS system is a SolMan 7.1 Sp11 and the HANA system is a ERP 6.0 EHP7 on HANA DB 1.0 Rev 90

 

 

Now, all steps of the CTS+ were followed but towards the end when I get to the Step to "Configuring the SAP HANA Source Systems" When I try to Maintain the HTTP Destination in the Configure CTS system step. Though all details have been entered correctly i get a Error message (below)-

 

 

"Error:The CTS system is not reachable"

 

 

I have cross checked and also selected different authentication options like :

Basic Authentication (username/password)

SAP Assertion Ticket

 

But all of them fail with the same error

 

 

Also we are not using SSL to connect the HANA system and the SOlMan.

 

 

Can anyone help?

 

 

Thanks in advance!

 

 

Regards,

Paul

Data Modelling in SAP HANA

$
0
0

Hi all,

 

I have a query.

What is the need of Data modelling in SAP HANA?

Please explain in detail.

Consuming HANA views in ABAP

$
0
0

Hi,

 

I have created one attribute view and activated successfully but while I am creating database proxy and importing it in ABAP , its giving me below error.

 

Issue_ABAP_HANA.png

 

BR

Sumeet

Consuming Procedure in HANA

$
0
0

Hi,

 

From one of the SCN documents I tried calling procedure in HANA.

 

But I am getting dump.Insufficient privileges. I followed link http://scn.sap.com/thread/3584310 steps but i am not able to perform the same and got below error. Will this be done by security people only means admin rights are required?

 

dump.png

 

BR

Sumeet

Usha International: Driving Business in Real Time with SAP HANA®

$
0
0

Usha International Limited has been providing everyday household products to consumers in India since 1935. SAP HANA was the choice for satisfying needs like supporting big data and high performance at the same time. However, Usha had another critical business need. More than 30% of its day-to-day business processes, spanning all functional areas, are supported by 1,800 reports generated by custom code, implemented in the ABAP programming language. It was essential that all of this code be fully used by SAP Business Suite powered by SAP HANA and that all key business processes that use this code be accelerated by SAP HANA. Read how Usha utilized ABAP for SAP HANA to achieve this.

View this Document

Viewing all 831 articles
Browse latest View live


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