Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

what does @ work area mean in ABAP select, How is it different?

vardhan_naik3
Explorer
0 Kudos
926

Hi ,

I came across the below statement in one of the sample ABAP codes. I could not understand the bind variable @

how is this bind variable @ different to traditional work area target?

DATA ls_bupa_reminder TYPE ty_bupa_figure.

SELECT bp_id,

          company_name

     FROM snwd_bpa

     INTO (@ls_bupa_reminder-bupa_id, @ls_bupa_reminder-company_name)

        .                                                "#EC CI_NOWHERE


Thanks

Vardhan

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos
504

It activates the "strict mode", as of 7.40, it's all explained here: ABAP Keyword Documentation - Open SQL - Release-Dependent Syntax Check Modes. New powerful constructs are allowed, and it allows distinguishing between table field names and data object names, and the Open SQL is required to be a little bit more SQL-like. In your case, it is only required because of the comma between bp_id and company_name, but we could still write it the old way (without @ and without the comma).

2 REPLIES 2

Sandra_Rossi
Active Contributor
0 Kudos
505

It activates the "strict mode", as of 7.40, it's all explained here: ABAP Keyword Documentation - Open SQL - Release-Dependent Syntax Check Modes. New powerful constructs are allowed, and it allows distinguishing between table field names and data object names, and the Open SQL is required to be a little bit more SQL-like. In your case, it is only required because of the comma between bp_id and company_name, but we could still write it the old way (without @ and without the comma).

vardhan_naik3
Explorer
0 Kudos
504

Thanks Sandra.

As I understood we may need it to access CDS views, DDL views created in ABAP Core Data Services.

Vardhan