What Is AMDP - ? - ABAP Managed Database Procedure-4
What Is AMDP - ? - ABAP Managed Database Procedure-4
PROCEDURE)?
✓ Framework used to manage and call database procedure and database functions (User
defined function ) in abap.
✓ Only support for Hana database, Can only create or change using ADT tool(eclipse).
✓ Client handling is necessary while using AMDP.
✓ Types of AMDP,
1. AMDP Procedures.
2. AMDP User Defined Function (UDF).
i. Table Functions,
ii. Scalar Functions,
iii. CDS Functions.
AMDP
↓
↓ ↓
Database procedures AMDP Functions
↓
↓ ↓
Table Function Scalar Function.
1.It can have import, Export and 1.UDF'S accept multiple input parameter and return
changing parameters but cannot have exactly one result which is mandatory,Every
return parameter,Every parameter is parameter is pass by value.
pass by value.
2.we can call this using CALL 2.it can be directly use in select read position.
STATEMENT . Eg.: Call proc (...)
✓ Here I updated the username of sales order by passing sales order number as import parameter,
And taken before and after data as export parameter.
✓ Output
i. Table function -> Here we are getting sales order by passing document type, But we can’t call
this function directly in Report, but we can call this in database procedure as shown in next pic.
---------------------------------------------------------------------------------------------------------------------------------------
ii. Scalar functions -> Scalar Function is an interesting topic, We can call this function directly in
report while reading data through select query in where condition.It will return scalar value.
✓ Here we will get customer having highest net value in single order.