cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP on HANA: AMDP HANA Query where condition 'colon' clarification

Dear Team,

In AMDP HANA Query, kindly help to understand the difference between the following query.

it_output = select ebeln from ekko as A inner join ekpo as b where a.ebeln = b.ebeln and a.mandt = :im_mandt;

it_output = select ebeln from ekko as A inner join ekpo as b where a.ebeln = b.ebeln and a.mandt = im_mandt;

What difference the above query will make if i miss the colon for the importing parameter [im_mandt]. Please give a clarification. [Question might be simple. Pl help to understand]

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member302041
Contributor

If you miss the colon then the statement won't compile.

Colon means that you addressing local variable.

0 Kudos

Thanks for the reply andrey.uryukin.zim. The Statement complies even if I miss out the colon. That is where my doubt raised.