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

Impact of For all entries ( FAE ) in HANA

$
0
0

Hi

 

I tried to post couple of times earlier and somehow it is not showing up and also no notification has been received for approval/rejection. SO, trying to re-post again . Apologies for creating duplicate items ( if any )

 

 

We know that as a part of NW 7.4 SP00/SP02 , a new check in code inspector has been introduced which will all the select queries with for all entries addition and having the possibilities of replacing them with join etc. We are trying to check whether performance of FAE will degrade if do not change anything after upgrading to ECC on HANA. We do not want to optimize for now and we are ok if all the for all entries are giving the same performance result before and after HANA migration. We have found that oss note 1662726 which says "

The performance of a select statement with a FOR ALL ENTRIES (FAE) clause

is poor."

please make a note that we do not want to improve the performance but we want to evaluate whether FAE gives same performance in both hana and non-hana DB if all the other settings (e.g., as per note 48230 ) remain same.

 

 

Any advice will be appreciated

 

 

Regards

Gairik


Gateway to SAP HANA - Guidance needed

$
0
0

Hello people,

 

This isn't a specific question, but I need help in deciding about next step for my career. I am trained in ABAP and worked as a developer for last two years. Purely in the technical side. I will be moving into a new project and wanted guidance in choosing the right area to ultimately get into SAP HANA. 

 

Due to some constraints, I cant be considered as a SAP - HANA resource and there aren't much projects too.. Hence, I thought of SAP-BI for a start in this path.

 

Please let me know about your opinions. Looking forward for your reply.

SAP ABAP

$
0
0

As SAP HANA uses Java , will the role of an ABAP consultant be redundant in the future ?

ADT is throwing error while connecting to NW 7.40 SP02

$
0
0

Hi Experts

 

While connecting ADT to a backend ERP system on HANA ( Netweaver 7.40, SP02 ) it is throwing error message

 

"(Connection to system "XXX" is currently not available) ". Please make a note that I can connect to the system with SAP logon PAD but not from ADT. Also, with the ADT , I can connect to another ECC On HANA system with NW 7.4 SP00 but not able to connect to 7.4 SP02. Can anyone tell me what is missing ?

 

 

Regards

Gairik

Performance of For All Entries in Suites on HANA

$
0
0

Hi Experts

 

I need s suggestion / input from you . I know that as a part of code inspector checks we now have new option to identify the list of FAE ( for all entries ) in the select statement which can be combined using JOIN. My question is that , if I'm not planning for any optimization and keeping the system as it is with those FAE, it it impact the performance. When I'm saying the term "impact" , that means I do not want to improve the performance but if the programs with FAE remain as it is, will it run slower in HANA compare to the older database ? We have found the note 1662726 where it says how to optimize the FAEs.

Our requirement is to keep the FAE as it is if they give same level of performance in HANA and non-HANA( older DB ). Can anyone confirm whether any performance deterioration happens if keep the FAE as it is .

 

Regards

Gairik

Impact of FAE ( For all entries) in Suites on HANA

$
0
0

Hi

 

We know that as a part of NW 7.4 SP00/SP02 , a new check in code inspector has been introduced which will all the select queries with for all entries addition and having the possibilities of replacing them with join etc. We are trying to check whether performance of FAE will degrade if do not change anything after upgrading to ECC on HANA. We do not want to optimize for now and we are ok if all the for all entries are giving the same performance result before and after HANA migration. We have found that oss note 1662726 which says "

The performance of a select statement with a FOR ALL ENTRIES (FAE) clause

is poor."

please make a note that we do not want to improve the performance but we want to evaluate whether FAE gives same performance in both hana and non-hana DB if all the other settings (e.g., as per note 48230 ) remain same.

 

Any advice will be appreciated

 

Regards

Gairik

Execute Procedure with i/o parameters from ABAP

$
0
0

Hello,

 

We are using HANA as secondary database and I need to execute HANA Procedures from ABAP.

 

I have created a procedure in HANA with a parameter as input and table as output.

 

I executed it in HANA as

 

CALL "_SYS_BIC"."xxx/RETREIVE_ZHMARA"('MT02',?)

 

and it worked fine.

 

 

but I'm not able to execute it from ABAP.

 

My need is to pass parameter as input and get the result in a internal table.

 

 

Following is my code:-

 

 

 

DATAstmt_ref    TYPE REF TO cl_sql_statement,

        con_ref     TYPE REF TO cl_sql_connection,

        res_ref     TYPE REF TO cl_sql_result_set,

        d_ref       TYPE REF TO data,

        d_ref1      TYPE REF TO data,

        lv_mtart    TYPE zhmara-mtart,

        output      TYPE i.

 

 

 

lv_mtart = 'MT02'.

 

     con_ref = cl_sql_connection=>get_connection( 'ABC' ).

     stmt_ref = con_ref->create_statement( ).

 

GET REFERENCE OF lv_mtart INTO d_ref.

 

         stmt_ref->set_param( data_ref = d_ref

                              inout    = cl_sql_statement=>c_param_in ).

 

        stmt_ref->execute_procedure( proc_name =

                                '"_SYS_BIC"."xxx/RETREIVE_ZHMARA"' ).


 

 

GET REFERENCE OF lt_zhmara INTO d_ref1.

                                           res_ref->set_param_table( d_ref1 ).


* Get the complete result set in the internal table

         output = res_ref->next_package( ).

 

         LOOP AT lt_zhmara INTO ls_zhmara.

           WRITE : /, ls_zhmara-mandt,

                      ls_zhmara-matnr,

                      ls_zhmara-ersda,

                      ls_zhmara-ernam,

                      ls_zhmara-laeda,

                      ls_zhmara-mtart,

                      ls_zhmara-matkl,

                      ls_zhmara-meins.

         ENDLOOP.


 

This works fine till  stmt_ref->execute_procedure   , sy-subrc = 0.

 

but gives a dump later as  'res_ref' is not initialized hence has ZERO value.

 

How can I set this?

 

** set_param_table for output parameter is only available in class cl_sql_result_set  but what should be the reference for its object res_ref??

 

 

Kindly suggest...

What is SAP HANA basic terms?

$
0
0

Hi,

What is SAP HANA in basic terms. After my lot of search on internet, what I understood is SAP HANA is a Database Technology like Oracle, SQL . Is it correct? Is SAP HANA a replacement for the Database in SAP ERP ? Presently I use Oracle in the back end for database in my SAP ERP ECC 6.0 . So can it be replaced with SAP  HANA. In future, will SAP HANA replace the Oracle in SAP ERP ECC .  Should a person have ABAP knowledge to learn SAP HANA. CAn you please clarify my doubts ??


HANA stored procedure with IN param as table

$
0
0

Hello HANA experts ,

 

We have the following scenario ...

 

We would get the result from Analytic view using ADBC  from HANA database .

 

Now we need to push query to HANA database to get the data based on the above data (ofcourse from Analytic view which is different from above) .

 

Here we are thinking to have procedure and inside procedure firing SQL query to get the data form second analytic view ...

 

In this case please advise how to send INPUT PARAMETER to Procedure as TABLE parameter and inside the procedure how to make use of the input table (like FOR ALL ENTRIES  in ABAP .) to get the data .

Thanks

Execute Procedure with input parameters as table from ABAP

$
0
0

Hello Experts,

 

I need to get the data from HANA stored procedure through ABAP but one of the input parameter is a table.

 

Kindly suggest how can we pass an internal table as input parameter to a procedure.

 

Also, how to execute this procedure on HANA.

 

Thanks.

Using ABAP function calls in HANA

$
0
0

Hi everyone,

 

I am very new to the ABAP workspace. Is it possible to call ABAP function modules from the HANA database? We have a long raw field in a table that we would like to convert to text. Any help would be greatly appreciated!

 

Thanks,

Anu

SQL Monitor Unleashed

$
0
0

Earlier this year our team at SAP has released a next-generation performance analysis tool – the SQL Monitor. This utility can be used – not only but especially – for the purpose of optimizing custom code for SAP HANA and is available starting with Netweaver 7.0.

 

“So what?”, you might think. “We already have enough trace and monitor tools which provide us with all the info needed to optimize our code.” You’re really sure about that? What if you wanted to answer questions like:

 

  1. Which of the business processes (transactions, reports, …) in my productive system consume the most database time?

  2. What is the SQL profile of my main business processes?

  3. What are the most expensive SQL statements in my system and by which business processes are they triggered?

 

None of the standard performance analysis tools you might know is capable of answering any of these questions in a satisfying way. Let’s take a moment to figure out why.

 

Trace tools like ST05 (SQL Trace) or SAT (ABAP Runtime Analysis), on the one hand, are designed to trace a single process but not your entire system. Hence, even if activated only for a short period of time, the trace files would become way too big and the performance overhead would be unacceptable in a productive system.

 

Monitoring tools such as STAD (Business Transaction Analysis) and ST03 (Workload Monitor), on the other hand, run system-wide and provide aggregated performance data on the process level. However, they don’t allow you to drill down in the data so there is no way to get the SQL profile of a process. Other monitoring utilities like ST04 (DB Performance Monitor) supply you with detailed information about every executed SQL statement but cannot provide a link to the driving business processes.

 

So how can you answer the questions stated above? This is where the new SQL Monitor kicks in by providing you with system-wide aggregated runtime data for each and every database access. You may think of it as an aggregated SQL trace that runs permanently and without user restriction. On top of that, the SQL Monitor also establishes a connection between the SQL statement and the driving business process. To be more precise, this tool not only provides you with the source code position of every executed SQL statement but also with the request’s entry point that is, for instance, the transaction code.

 

Background Knowledge: Request Entry Point

In the context of the SQL Monitor the term “request entry point” is used to describe one of two things:

  • A process that is initiated directly by a user such as calling a transaction, requesting a URL or executing a report.
  • A process triggered from the outside of the system such as a remote function call.

 

Moreover, the SQL Monitor offers a number of ways to aggregate the recorded data and also allows you to drill down into the details. For instance, you may group the monitoring records by the request entry point which yields an overview of the – in terms of database performance – most expensive business processes in your system (question 1). For each entry point you can then drill down into the associated SQL profile that means the list of all SQL statements that were triggered by this entry point (question 2). So if, for example, you wanted to optimize the database performance of a specific transaction or report, you could start by inspecting the top SQL statements in the corresponding SQL profile.

 

Similarly, you can also go the other way around by choosing to aggregate the data by the source code position which gives you an overview of the most expensive SQL statements in your system. For each of these statements you may then drill down into the list of request entry points that caused the statement to be executed (question 3). This list embraces transactions, reports and other entry points that would directly benefit from a local optimization of the SQL statement (e.g. elimination of an empty FOR ALL ENTRIES table). Looking at it from another angle, the list can also show you which entry points should be considered for a non-local optimization of the statement (e.g. SELECT statement in an external loop).

 

No matter what aggregation strategy you choose, the SQL Monitor provides you with an extensive set of runtime measures such as the number of executions, the total and mean execution time or the minimum and maximum number of accessed database records. Despite the comprehensive data range the SQL Monitor’s own performance footprint is extremely small and so the tool can easily be activated in a productive system.

 

The very best part, however, is: The new SQL Monitor comes with your Netweaver installation – just like that. Details about the availability on different support package levels can be found in SCN Document 47444 which also includes a very valuable set of generic best practices on how to analyze the monitoring data.

 

I hope by now you’re all fired up to see the new SQL Monitor in action. If so, I’m pleased to announce that this blog post marks the beginning of a series of posts in which I will walk you through a multitude of specific examples which will illustrate how to control the SQL Monitor and how to make the most of the recorded data. So if you’re up for a deep dive into next-generation performance monitoring, make sure to watch out for my next blog post on ABAP for SAP HANA.

Featured Content for ABAP for SAP HANA

$
0
0

SQL Monitor Unleashed

Have you heard about the SQL Monitor already? It can be used to detect custom code which can be optimized (in the context of the migration to SAP HANA, but also independent of that). If you like to learn more, read Johannes Marbach's blog series. You find the first blog here. November 18, 2013

 

SAP ICC: Readiness Assessment for ABAP Add-Ons

As software solution provider you can get help from the SAP Integration and Certification Center (SAP ICC) for making your add-on ready for SAP HANA. If you are interested, you can find more details here. November 18, 2013


Custom ABAP Code and SAP HANA

Do you want to understand the impact of SAP HANA on custom ABAP code? Do you want to learn how to use the new SQL Monitor to tune your ABAP custom code? Then you should read this best practice document by Eric Westenberger as well as this implementation guide by Boris Gebhardt. October 10, 2013


 

 

 

 

Diff B/W ABAP HANA and normal ABAP.

$
0
0

Hello Techies,

 

Hope you all doing well.

 

Recently I attended a session of HANA and got to know little about the same.

 

Its really good in terms of performance and seems to be more for BI people.

 

I have small queries regarding the same.

 

1.) I think HANA is more of for BW people, whats the scope for this for an ABAper in future ( I am an ABAPer... )?

 

2.) How much different is it form normal ABAP in terms of syntax and everything?

 

3.) If one has to select between Dynpro , Workflow or ABAP HANA which one to go for in terms of market value and scope ?

 

Thanks

Sumeet

hi!!

$
0
0

can anyone suggest me....actually me an abaper..i wanna learn abap on hana...but no where i found any documents or pdf..regarding abap on hana...if u guys having any important information regarding it..please do share with me.

 

 

thank you,srinivas.

 

please take a look at this community. there is lot's of information

 

Message was edited by: Thorsten Schneider


ERROR : Idoc document Issue

$
0
0

Hi Consultant,

 

      As i am getting an issue regarding Vendor  & Customer description is not assigned to Sales Area. I had tried to maintained in Customization but still no solution .

 

  So kindly give your feedback on this.

 

Regards,

Sharad

 

this post is very unspecific. please describe your question more in detail, search for possible solutions in SCN and try to post to the correct community. thanks

 

Message was edited by: Thorsten Schneider

create a macro, with attachment in F110

$
0
0

Hello experts, please a really need help

Every day when I am making payments, I have to click in every vendor account to compare documents with information in the proposal. Will be possible to create a macro or something to display in the payment proposal the attachment file?

And how is possible to do it?

 

Thanks in advance

 

Please could somebody answer

ABAP for SAP HANA Reference Scenario

$
0
0
This page is the entry point for the ABAP for SAP HANA Reference Scenario Open Items Analytics. It will provide links to the different ressources (such as guides, articles, blogs, and tutorials) around the reference scenario which is an integral part of the upcoming SAP Netweaver AS ABAP 7.4 Release.

Getting Started

ABAP for SAP HANA Reference Scenario - Overview Presentation  and / or

ABAP for SAP HANA Reference Scenario - Overview Video

This document provides a brief overview of the Open Items Analytics demo application which is intended to provide how-tos about the consumption of SAP HANA features in ABAP as of SAP NetWeaver 7.4. August 23, 2013

Implementation Overviews

 

The documents in this chapter gives you an overview about the development objects available with AS ABAP 7.4 of the Open ItemsAnalytics Implementation

 

General Guides & Tutorials

End to End Development Example with SAP NetWeaver 7.4 and SAP HANA

This Guide provides an end to end example how to accelareate your business coding using SAP HANA and SAP NetWeaver AS ABAP 7.4 based on the reference scenario. May 13, 2013

Tutorial: How to consume SAP HANA Procedures in ABAP

This tutorial demonstrates step-by-step how to create a SAP HANA Database Procedure and easily consume it from an ABAP program as of SAP NetWeaver AS ABAP 7.4. May 16, 2013

Tutorial: How to consume SAP HANA Views in ABAP

This tutorial demonstrates step-by-step how to create a SAP HANA Attribute View and easily access it in ABAP using External View and Open SQL as of SAP NetWeaver AS ABAP 7.4.

How to transport ABAP for SAP HANA applications with HTC

This document provides an overview on the SAP HANA Transport Container (HTC) and demonstrate how to use it.

 

 

Videos

Overview Page of our HowTo Videos for External Views, Stored Procedure Proxies and HANA Transport Container:

Video Tutorials

 

 

How To...

... get the Development Tools & a ABAP for HANA 7.4 Trial

HowTo install trial version of SAP HANA Studio and ABAP Development Tools

Here you will find a short guide where to download the development tools and how to install them.

 

... use Analytics for transactional data
This document provides a brief overview of the Open Items Analytics dashboard showing how to realize Analytics on top of transactional data using SAP NetWeaver BI technology  as well as a BEx Web Application for visualizing the data. May 7, 2013

Open Items Analytics Dashboard Scenario Configuration

This document describes the needed configuration steps for executing Open Items Analytics dashboardMay 7, 2013

 

... consume HANA artifacts in ABAP
An excellent overview how to consume HANA entities with SAP NetWeaver AS ABAP 7.4  May 12, 2013

Related Resources

ABAP for SAP HANA @SAP HANA Academy (Direct access to Video Tutorials)


Additional Information

SCN Spaces

Downloads


Lectures
SAP Documentation

How to adapt ABAP Add-Ons for Suite on HANA

$
0
0

The document describes how to adapt existing ABAP add-ons or customer coding for Suite on HANA.

View Document

SAP HANA : THROUGH THE EYES OF AN ABAP NEWBIE

$
0
0

                So with all these blogs going around I felt out of place and I also decided to write a blog post. But then came the real problem. What would I write about? All the topics seemed taken. So I decided to write about SAP HANA which seems like the new iPhone 5s in apple ecosystem or like Kitkat in case of android. SAP HANA is the coolest topic in SAP right now. Or it seems like to me. So I went through some blogs written by some good people and whatever I understood I am putting everything in one place. Experts please forgive if I am wrong. So let’s start by the basic question.

 

So what is this SAP HANA stuff?

 

Well according to Wikipedia “SAP HANA, short for 'High Performance Analytic Appliance' is an in-memory, column-oriented, relational database management system developed and marketed by SAP AG”.

Good so it’s a database. So what’s so special about it? Well it not just a database it’s an in memory, column oriented and a relational database system. I know what you guys are thinking. So what? It’s just another

Database system. You can put all the jargons in the definition but in the end it’s just a database. Even ORACLE is a relational database system. So why would anyone bother about it. And who is going to use it anyway. We already have proven trustworthy databases.

Well it’s not a normal database system. It’s much more than that. It’s the next step in database technology. Let begin by looking into what this in memory stuff is okay?

In memory basically means that all data in stored in RAM. That means there is no loading of data from disk to RAM.  There is no storing of some data temporarily in disk and reading required data according to requirement and all that mess that comes with it. Everything is there in the memory available to you all the time which means faster access to data by the CPU. All that’s nice to hear but what’s the use of it all? Why do I need all the data in the memory all the time?

Well if you have all the data available all the time then you can do real time analytics. Which means there is no wait time between the data being entered and data being available to you. Still don’t see why it’s good? Let me give you an example. Imagine there are two sellers A and B selling same phone on a site like flipkart or amazon. Company B suddenly offers a free cover with the phone and at that instant you are there to buy the phone. You look for the options and from which vendor are you going to buy the phone from. Unless there is a guy working in company A always looking at the competitors offers and price Company A is at disadvantage. Now imagine this at a larger scale where you are selling large amount of products and there are many competitors competing with you by offering different offers, discounts. So to gain advantage you need the current data at that time not one hour after. By that time your customer would have purchased his product and left. Here is where real time analytics comes into picture and hence SAP HANA. And HANA is designed in such a way that it can process large amount of data. So you or the customer of SAP HANA gets his or her data at the right time which is NOW.

Now what is this Column storage stuff going to affect the database. How does it matter whether I store it in columns or rows? Well for that let’s look at following table.

 

NAME

AGE

HEIGHT(cm)

Amit

24

181

Sachin

23

183

 

In row based technology data will be stored like

Amit-24-181 Sachin-23-183

And column base technology it will look like

Amit-Sachin  24-25  181-183

 

Now imagine if I wanted to calculate the average age of all people present in the database which one would take less time to read. Obviously the column one right? Because it doesn’t need to go through the name and height every time it accesses age. It can just zero in AGE and do the required calculation without bothering about anything else. This is exactly why SAP HANA is fast.

 

But what about writing new data. This exactly was the biggest problem with column based technology. To modify or add new data you need to do a lot of work than in row based database. But SAP HANA overcomes somehow by using delta merge technology (Don’t know what that it is. But apparently it works and that’s all we care about right ?).

 

And regarding the relational part I guess most of you are already aware what a RDBMS not just google it: .

 

All that seem cool. How is going to affect me? I am not the customer

 

                Well SAP HANA has some advantages over the existing data warehouse technologies like SAP BW for instance. In SAP BW it is IT administrator who decides which all information might be needed for analysis and not the end user. The performance will drastically get affected in case the user decide to something new that may not have occurred to the administrator. This problem is not present in HANA. The user can perform any type of aggregation and the performance will not get affected. So I think if it catches on SAP HANA is going to BW in many cases and this is my simple unexperienced opinion.

And now to the favourite part:

Good to know but Database or No Database,I am an ABAPER. Not going to bother. Thank you!

 

Apparently SAP is planning for 3 stages in implementing:

 

Stage 1: ABAP can access SAP HANA

At present ABAP can access SAP HANA like traditional database by means of secondary data connection.

Step 2: ABAP runs on SAP HANA

With the release of SAP Net weaver 7.3 the SAP HANA database can be used as the primary instance.

Step 3: ABAP optimized for SAP HANA

In the next stage SAP will allow other solutions to access SAP HANA as primary instance. In particular the SAP business suite. And during this process SAP is planning to optimize ABAP for the use in SAP HANA.

 

So whether you like it or not SAP HANA is coming and it looks like it’s here to stay. But hopefully it also bring lots of new opportunities to the ABAPER. So to all the newbies like me “The cycle is never going to end”.

 

 

On an interesting note go through the success stories of SAP HANA. Did you know that they used it in FOOTBALL for real time data?  That my friend is amazing

 

Disclaimer: I hear by pledge that I am an ABAP newbie and might say some stupid stuff in this blog. Kindly forgive the mistakes and please provide your valuable insights. Good day to all of you

Viewing all 831 articles
Browse latest View live


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