Quantcast
Channel: SCN: Message List - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 2110

Re: Variable in SQL ABAP Managed Database Procedure

$
0
0

Hello Thomas,

 

using a constant defined in the ABAP code of the AMDP class is not possible within an AMDP method. The only way to be able to use it is to pass it to the AMDP method as parameter.

The reason is that in the generated database procedure the constant defined in the ABAP code cannot be accessed.

 

But of course you can define the constant in the AMDP method itself using the SQLScript syntax:

DECLARE lc_yes CONSTANT nvarchar(3) := 'YES';

This has to be done unfortunately in each method you need it, cause there is not enclosing scope for several procedures.

 

Regards,

Florian


Viewing all articles
Browse latest Browse all 2110

Trending Articles



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