AMDP Part 4: Parameters, Internal Tables and Client Handling
Preview · a free account unlocks the full lesson
Pass data correctly between ABAP and SQLScript: allowed parameter types, internal tables as input, table variables, NULL and type differences, and safe client handling for tables and CDS views.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Parts 1 through 3 covered the different AMDP method types. This part is about the boundary between ABAP and the database — the parameters that cross it.
A few rules govern parameters. They're always passed "VALUE( … )", with no reference passing allowed. Only elementary types and internal tables with flat, non-nested line types are allowed — no references, no nested structures, and on some releases no strings inside structures, so it's worth checking the keyword documentation for the specific release in use. Types also need to be compatible with database types, which means using DDIC-based or clearly typed fields — dates as d or dats, amounts as p or dec.
Internal tables as input come up often, for example passing a list of customers already selected in ABAP: the ABAP side declares IMPORTING VALUE(it_customers) TYPE tt_customers, and in SQLScript it arrives as a table variable, usable directly in a join such as SELECT … FROM zsales_item AS i INNER JOIN :it_customers AS c ON c.customer = i.customer — a much better approach than dynamically building an IN list.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.