You are on page 1of 26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

SAP YARD

YOUR BACKYARD FOR SAP TECHNICAL TIPS AND SOLUTIONS


HOME

SEE ALL POSTS

TUTORIALS

CODE SNIPPETS

KNOW THY YARD MEN

HELP FORUM

BOOKS & JOBS

SAP QUIZ
58
Shares

ABAP on SAP HANA. Part IX. AMDP


ABAP Managed Database Procedure
TOPICS: ABAP Managed Database Procedures - Introduction
ABAP-Managed Database Procedures (AMDP)
AMDP - ABAP Managed Database Procedure
IF_AMDP_MARKER_HDB

ABAP Technical

Enteremail

Subscribe

We Respect Your Privacy !

SEARCH

AMDP
BY DATABASE PROCEDURE

SELECT-OPTIONS In AMDP

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

Follow@sapyard

1/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

SAPYard
656likes

Liked

Youand2otherfriendslikethis

58
Shares

POSTED BY: SAP YARD

SEPTEMBER 19, 2016

AMDP ABAP Managed Database Procedure


ABAP Managed Database Procedures or AMDP. Another jargon. Does it
sound bombastic? I was scared when I heard it for the rst time.
. But
when you ponder a little deeper, the concept is in the name itself. AMDP is
Database Procedure which is Managed by ABAP. It is not a database thing.
It is governed and managed by ABAP. So, ABAPers are bound to love and use
it to the fullest.
Like CDS Views, only ABAP transports (ABAP
Class/Method) of AMDP needs to be transported and we need not worry about
the corresponding underlying HANA artifacts. Both CDS and AMDP fall in
Top-Down Approach of HANA, which are recommended by SAP.
We need to be in ABAP system which is on release 7.4 SP05 and higher and
HANA is the primary database. By now you have guessed correctly, AMDP
works only with HANA as the primary database. But AMDP is conceptually
designed to work in any database and any language. This is clear from the way
http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

SAP ABAP LINKS

Abapinho

7MostPopular&FeaturedArticles

SAP HANA from Space


Level
Lazy and Smart ABAPers

DELETING rows of the internal


table within the LOOP. Is it a
2/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

we de ne the AMDP Method. We need to let the Method know the database
and language. For HANA, the database is HDB and language is SQLScript.

58
Shares

Taboo? A big NO NO?

SAP Document says: Currently, AMDP only supports database procedures from
the SAP HANA database. But in principle, however, AMDP is designed so that
stored procedures from other database systems can also be supported.

Fiori App - An

AMDP can detect Database independent syntax errors; HANA speci c syntax
error and SQL Script errors.

SAP HANA at Ground

Introduction from an
ABAPer

Zero

Parameters not passed by value, wrong parameter types etc are database
independent issues. Type mapping checks or wrong default values are
HANA speci c errors.

ABAP on SAP HANA.


Part I. First Program in

Did you Read?SAP HANA for Beginners from a Beginner?

ABAP HANA

Still scared of this AMDP bomb?

Get Latitude and

Let us make it more simple. All children who wear the same school uniform
belong to one school. One of those students has aspecial batch on his/her
shirt. He is identi ed as the Head Boy/Girl. They have access to all
rooms/areas like any other students and also they have special keys with
which they can enter the areas/rooms which are prohibited for other
students.

using Google Map API in

Did I sound crazy?


Let us co-relate the above example with SAP ABAP. All students = CLASS. If
a Class has Marker Interface IF_AMDP_MARKER_HDB (student batch) then
it is an AMDP class (head boy/girl). If one or more METHOD of AMDP class
has the keyword BY DATABASE PROCEDURE (special key for head
boy/girl), then it is AMDP method.
http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

Longitude of any place


SAP

NetworkedBlogs

Blog:
SAPYard
Topics:
Abap,Sap,Hana

Followourblog

3/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

Thats it. You now know that any class which has a marker interface
IF_AMDP_MARKER_HDB and one of its method has the keyword BY
DATABASE PROCEDURE is an AMDP class. Period!!
Let us check how an AMDP Class and Method looks in the real scenario.

CLASS zcl_sapyard_po_amdp DEFINITION


PUBLIC
FINAL
58
Shares CREATE PUBLIC .

PUBLIC SECTION.

INTERFACES if_amdp_marker_hdb.

* TYPEs here
TYPES: BEGIN OF lty_po_data,
* field1,
* field2,
END OF lty_po_data.

* AMDP Method
METHODS get_po_data
IMPORTING VALUE(ip_client) TYPE mandt
VALUE(ip_lifnr) TYPE s_lifnr
EXPORTING VALUE(ex_po_data) TYPE lty_po_data.

* Non AMDP Method


METHODS display_po_data
IMPORTING ex_po_data TYPE type lty_po_data.

PROTECTED SECTION.

PRIVATE SECTION.

ENDCLASS.

WEB DYNPRO ABAP TUTORIALS

DECEMBER 26, 2014

Lets Web Dynpro.


Part V

NOVEMBER 24, 2014

Lets Web Dynpro.


Part IV

NOVEMBER 11, 2014

Lets Web Dynpro.


Part III

NOVEMBER 5, 2014

Lets Web Dynpro.


Part ZZ

NOVEMBER 3, 2014

Lets Web Dynpro.


Part II

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

4/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

CLASS zcl_sapyard_po_amdp IMPLEMENTATION.

* AMDP Method
METHOD get_po_data BY DATABASE PROCEDURE
FOR HDB
LANGUAGE SQLSCRIPT
OPTIONS READ-ONLY
USING ekko ekpo.

* Logic to Select/Join/Loop etc to populate ex_po_data


* ex_po_data = logic here
58

Shares
ENDMETHOD.

* Non-AMDP Method
METHOD display_po_data.

* Logic to display ex_po_data


* ALV Call

ENDMETHOD.

ENDCLASS.

Let us join the dots better.


The class zcl_sapyard_po_amdp depicted in the gure below is a global
class (can view it in SE24) and has the interface marker tag:
if_amdp_marker_hdb. Theoretically, there can be more that one
if_amdp_marker_XXX tag with suf x XXX indicating the database system
for which the AMDPs (Database Procedures) can be implemented in AMDP
methods of the AMDP class.
Looking at the interface marker tag (last three letters), it makes us believe
that AMDP is not HANA database speci c as it has provision to include other
databases. But for now, let us concentrate only for HDB and wait for further
http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

5/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

releases and documentations from SAP where they show AMDP for nonHANA. Why will they do that?

58

In the public section of the class de nition add the mandatory interface
if_amdp_marker_hdb. You can have your own data de nitions (TYPES,
CONSTANTS, DATA etc.) and Methods as well in this space. But we must
have one method which will be an AMDP Method. This so-called AMDP
method can have some importing parameter(s) and exporting table
output(s). But both should be VALUE reference only.

Shares

Looking at the Class DEFINITION, we can guess that the method


get_po_data can be an AMDP method as it meets the pre-requisite of
passing all parameters by VALUE. But, just by looking the de nition, we
cannot say for sure if it really is an AMDP method. However, we can say for

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

6/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

sure that the second method display_po_data is NOT an AMDP method as


it does not meet the basic requirement of passing by VALUE.
To con rm, if the method get_po_data is really an AMDP method, we need
to look at the IMPLEMENTATION. In the implementation, if you nd the
keyword BY DATABASE PROCEDURE, it is AMDP method.
Look the gure below for more clarity on what we spoke above.
58
Shares

What is the motivation behind AMDP?


Answer: Stored Procedures have been supported by all databases and they
can be called and created using ABAP code. Native SQL was the method to
consume Stored Procedures before ABAP 7.4. Now we can use ADBC as it has
better advantage (OOPs, where-used analysis, exception handling etc) than
direct Native SQL call.
Read more about ADBC ABAP DataBase Connectivity.
http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

7/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

ADBC can be Bottom Up and manage the complete lifecycle of the stored
procedure outside the ABAP stack. We need to make sure, the stored
procedure is deployed in all database systems and we need to take care of
different ABAP database schema names and systems like development box,
testing box, quality box, pre-production and production system.
ADBC can also be Top Down. Surprised!!! Yes, it can follow Top Down
Approach. When we concatenate the native SQL statements in our own
program and call the database and execute those SQL statements, it is Top
58
Shares Down. This removes the need for handling the database artifacts in each
system of the landscape and all can be handled by the normal transport. But,
do you think creating the complex stored procedure by concatenation strings in
ABAP that easy? You might build native SQL code for simple selects and
other normal stuff and build your program. But complex/actual project
requirement is more than just DEMO program.
And most developer
(ABAPers like me) are not familiar with native SQL (and database language)
and ADBC still, lacks native SQL check during compile.
So, the motivation is crystal clear. With ADMP, the creation, modi cation,
activation and transport are all handled at ABAP layer, i.e. stored
procedure runtime objects on HDB is created and managed by AMDP in
ABAP AS. Also, SQLScript source code is managed at ABAP AS by AMDP.
SQLScript syntax check also happens in HDB (but not in another
database), unlike ADBC.
What are the restrictions in AMDP Methods?
Answer:
1. RETURNING parameters cannot be used. When you can have
IMPORTING/EXPORTING/CHANGING parameters, who cares for
RETURNING parameters. Right?
2. Parameters have to be passed by VALUE.
3. Parameters can only be either Table or Scalar. That means, only variables,
http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

8/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

structures and simple internal tables can be passed. No deep structures, no


complex tables (tables in a table) i.e. no nested tables.
4. If ABAP Dictionary structures are used for typing, the method cannot be
implemented as an AMDP.
5. Whatever ABAP dictionary tables, views, other procedures etc you want to
use in AMDP Method has to be declared while implementing using keyword
USING (in the above gure, EKKO and EKPO are passed).
58
Shares

How are AMDP Methods called?


Answer: AMDP Method call is not special. They are called like any other
normal class method. But AMDP methods are executed like static methods,
even though they are de ned as instance methods.
When does AMDP execute in underlying database?
Answer: When AMDP is executed, the ABAP Kernel calls the database
procedure in the underlying database (SAP HANA).
AMDP makes the database procedure available at runtime in the database.
Database procedures are created when they are called by AMDP for the rst
time. This is call Lazy Approach. Wiki says: Lazy loading is a design pattern
commonly used in computer programming to defer initialization of an object
until the point at which it is needed. JIT. right? Just In Time.
If we make any change in the source code of database procedure or any
dependent objects, then the new version of the database procedure is
created and old versions are deleted asynchronously (taking its own sweet
time :)).
Before we proceed forward, let us refresh our CDS Concept in SAP HANA.
Where are AMDPs created?
Answer: From SAP NetWeaver 7.4 SPS 05 i.e. ABAP release 740 Service Pack

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

9/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

Level 05, AMDP can be created in ABAP in Eclipse (Eclipse based


environment i.e. ADT : ABAP Development Tool). We need to be in ABAP
Perspective. We can view the class and methods in SE24 in ABAP
workbench (GUI) but we cannot edit them in GUI. Although AMDPs are
created in Eclipse, they are saved at the ABAP layer. So developers are
concerned only with ABAP artifacts. No need to worry about database
artifacts and system handling in different environments in the same
landscape.
58
Shares

AMDPs are de ned at ABAP layer but they are dependent on the underlying
database so that they can optimize the database in use at the fullest. As they
are database dependent, the implementation language differs based on the
database. SQLScript is the implementation language for HDB so playing with
AMDP in HDB is same as implementing SQLScript in our ABAP programs. In
another database, the implementing language may not be SQLScript.
Check error message which we get when we try to edit AMDP Class.

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

10/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

Do you want an example of Standard SAP AMDP?


Answer: Check the standard class CL_CS_BOM_AMDP provided by SAP.
Go to t-code SE24.
Check the Interface tab. You will nd IF_AMDP_MARKER_HDB. Makes the
class AMDP.
58
Shares

Check the source code of methods MAT_REVISION_LEVEL_SELECT,


MAT_BOM_CALC_QUANTITY, MAT_DETERMINE_HEADER etc. Keyword
BY DATABASE PROCEDURE FOR HDB and LANGUAGE SQLSCRIPT is
waiting for you.

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

11/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

58
Shares

Look at the IMPORTING and EXPORTING parameters. Passed by VALUE.


You might like to refer to this AMDP Class/Methods for some SQLScript,
SELECTs, JOINs etc examples and usage.
Custom AMDP Class and Method and its usage in custom ABAP
program
In your Eclipse environment / HANA Studio /ADT, go to ABAP Perspective.
From the Menu, click on ABAP Class.

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

12/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

58
Shares

Provide the package name, Class name you want to create and description.
Provide the Class De nition and Implementation. Do not forget to provide
the Marker interface in the Public section of the Class De nition and the
Keywords in the AMDP Method. The below example shows that both AMDP
Method and non-AMDP Method can co-exist in AMDP Class.

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

13/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

58
Shares

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

14/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

58
Shares

Let us check how we can call the custom AMDP Class in our custom
ABAP Program.

REPORT zmm_tcode_role_report NO STANDARD PAGE HEADING


LINE-COUNT

*--------------------------------------------------------------------*
* DATA DECLARATION
*--------------------------------------------------------------------*
* Inline data declaration for the AMDP Class Instance
DATA(lr_data) = NEW zcl_user_role_amdp( ).

*--------------------------------------------------------------------*
* SELECTION SCREEN
*--------------------------------------------------------------------*
SELECTION-SCREEN: BEGIN OF BLOCK block1 WITH FRAME TITLE text-t01.
PARAMETERS p_tcode TYPE tcode.
SELECTION-SCREEN: END OF BLOCK block1.

*--------------------------------------------------------------------*
* INITIALIZATION.
*--------------------------------------------------------------------*

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

15/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

*--------------------------------------------------------------------*
* START-OF-SELECTION.
*--------------------------------------------------------------------*
START-OF-SELECTION.

* Calling the AMDP method to get the data


CALL METHOD lr_data->get_t_code_role_matrix
EXPORTING
ip_tcode = p_tcode
ip_object = 'S_TCODE'
ip_langu = sy-langu
58
ip_line = '00000'
Shares
IMPORTING
ex_it_tcode_role = DATA(it_tcode_role).

*--------------------------------------------------------------------*
* If you are in ABAP 740 and SP 5 and above but still not in HANA,
* You can connect from Eclipse/HANA Studio and create AMDP but
* cannot execute in database layer. You can try below code for
* normal Class-Method call.
*--------------------------------------------------------------------*
** Normal method call at AS ABAP Layer
* CALL METHOD lr_data->get_t_code_role_matrix_nonamdp
* EXPORTING
* ip_tcode = p_tcode
* ip_object = 'S_TCODE'
* ip_langu = sy-langu
* ip_line = '00000'
* IMPORTING
* ex_it_tcode_role = DATA(it_tcode_role).
*--------------------------------------------------------------------*

*--------------------------------------------------------------------*
* END-OF-SELECTION.
*--------------------------------------------------------------------*
END-OF-SELECTION.

* Publishing the data in an output


cl_demo_output=>display_data(
EXPORTING
value = it_tcode_role
http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

16/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

name = 'AMDP Usage to display the TCode and Role' ).

Let us test our custom program and AMDP usage.


Provide the T-Code as the Input.

58
Shares

The output shows two Roles. The program uses AMDP Method.

Find the above AMDP Class Method Code Snippet here.


Find the above Custom Program which consumes the AMDP here.
The above program and AMDP class use one Parameter as an input in the
selection screen. Handling of Parameters are easy. In the next post, we would
show how we can handle the SELECT-OPTIONS in AMDP.
What happens if we change the existing AMDP Method name?
Answer: The method name is automatically updated in the Class which we
can see in the GUI.

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

17/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

58
Shares

Hope this article is clear enough to demonstrate the concept and usage of
AMDP in ABAP Program. In the next articles, we would show more examples
of AMDP programs for different scenarios and also how to Debug them.
If you want to get such useful articles directly to your inbox, please
SUBSCRIBE. We respect your privacy and take protecting it seriously.
If you liked this post, please hit the share buttons and like us on facebook.

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

18/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

Do you have anything to add to this article? Have you faced any issue using
AMDP? Do you want to share any real project requirement or solutions?
Please do not hold back. Please leave your thoughts in the comment section.
Thank you very much for your time!!
Also, check our complete list of ABAP for SAP HANA Tutorials.
58
Shares

23

Isn't it Fair to Share??


Related Posts:

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

19/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

ABAP on SAP
HANA. Part V

ABAP on SAP
HANA. Part IV

58
Shares

Previous post

Next post

14 COMMENTS

ON "ABAP ON SAP HANA. PART IX. AMDP ABAP MANAGED DATABASE PROCEDURE"

Partha | September 24, 2016 at 11:19 am | Reply

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

20/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

wow..!! you explained AMDP in super simple..absolute.. awless..!!


Thank you for your hard work

SAP Yard | September 24, 2016 at 3:37 pm | Reply


Thanks Partha.. So glad, you found it good.
58
Shares

Regards,
Raju

Srinath Acharya | September 29, 2016 at 4:00 am | Reply


This is one of the best wonderfully and lucidly
presented article I have ever read. Described everything keeping its
reader in mind in simple and friendly terms. Good job.

SAP Yard | September 29, 2016 at 12:52 pm | Reply


Thank you so much Srinath. We are glad you liked
our way of presentation. Our aim is to be as
simple as possible without being too out of context. We make
sure that our articles are understood by the beginners and even
non-technicals.
Thank you again for your feedback. Please keep visiting and
providing your valuable inputs.
http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

21/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

Regards,
Team SAPYard.

Rajesh | September 29, 2016 at 11:31 am | Reply


58

Very systematic and easy to understand. Thank you..!!!

Shares

SAP Yard | September 29, 2016 at 12:53 pm | Reply


Thank you Rajesh for your good feedback. We are
happy you found it easy and systematic.
Regards,
Team SAPYard.

Jiten | September 30, 2016 at 12:15 pm | Reply


Nice..

SAP Yard | September 30, 2016 at 12:38 pm | Reply


Thank you Jiten. Glad you liked it.
http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

22/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

Regards,
Team SAPYard.

prakash | October 5, 2016 at 3:14 am | Reply


58

very nice..

Shares

SAP Yard | October 11, 2016 at 9:40 pm | Reply


Thank you Prakash. Happy you found the article
useful.
Regards,
Team SAPYard.

Rodrigo Giner | October 11, 2016 at 3:12 pm | Reply


First of all congratz on the Site, is the rst blog were
someone can really integrate and get a clear idea of ABAP for HANA.
Regarding SQL Script AMDP. I found this in a SAP slide regarding
SQL Script

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

23/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

SELECT statements are executed in parallel unless:


Local scalar parameters and variables are used in the procedure
Read/Write procedures or DML/DDL operations are executed
Imperative logic is used within the procedure
SQL statements are used that are not assigned to a variable
How are we suppose to accomplish Code Pushdown if we cant use
Imperative Logic. Parallel Processing is the most important feature
58
Shares

regarding speed.
Can we know if parallel processing was used ?

SAP Yard | October 12, 2016 at 8:21 pm | Reply


Dear Rodrigo,
Thank you so much for your encouraging words.
Please check the reply from Amol, an expert in ABAP on HANA:
Hana procedure itself run parallely accordingly to load balancer.
It divides into threads and its call of DB. Same goes with amdp(
AMDP is a code push down technique which creates a procedure
on HDB on a rst run). Again we can take the advantage of
application layer to process in parallel meanwhile same
procedure runs on DB parallely as its load balancers call.
Please feel free to add follow up questions, and we would try our
best to answer it.

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

24/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

Regards,
Team SAPYard.

SAP Yard | October 14, 2016 at 2:12 am | Reply


Dear Rodrigo,

58
Shares

In addition to Amol, our other ABAP HANA expert, Mostafa


added the below points. If you have further questions, please
feel free to write here.
You can achieve parallel processing by using select union
approach, or you can use union inside Calculations view that is
being used for select statement in the AMDP.
Regards,
Team SAPYard.

SAP Yard | October 17, 2016 at 1:46 am | Reply


Dear Rodrigo,
Another ABAP on HANA enthusiast Mohsin has the below
answer for your query:
1.we can use imperative logic in stored procedure/SQL Scripts
http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

25/26

10/30/2016

ABAPonSAPHANA.PartIX.AMDPABAPManagedDatabaseProcedureSAPYard

2. Parallel process is one of the major features of HANA but


there is no command /key word for this mutually exclusive SQL
statements will be automatically be executed in parallel
Regards,
Team SAPYard.

58
Shares

Comment, Criticism, Opinion, Feedback. Please do not


hold back. Share your Thoughts!!
Enteryourcommenthere...

COPYRIGHT 2016 | MH NEWSDESK LITE BY MH THEMES

http://www.sapyard.com/abaponsaphanapartixamdpabapmanageddatabaseprocedure/

26/26