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: 
Read only

Abap keywords

sumeyye_1634
Participant
1,928

Hi all;

I struggle with reading this code block:

SELECT x, y, z

FROM A

INTO TABLE @DATA(lt_A)

FOR ALL ENTRIES IN @lt_x

WHERE x = @lt_x-x

AND y= @lc_y.

I would like to understand the sense of this coding . @ lt_ and lt_ ...usage etc.

Any help would be appreciated.

Kind Regards.

1 ACCEPTED SOLUTION
Read only

Jeansy
Active Contributor
0 Likes
1,743

Hi,

please check the following links for more details and documentation:

https://archer4sap.com/sap-abap-7-51_v1/comma-and-escaping-variable/
https://blogs.sap.com/2017/02/17/why-the-new-open-sql-syntax-is-better/

I hope this helps you 🙂

Kind regards
Jens

Hi all;

I struggle with reading this code block:

SELECT x, y, z

FROM A

INTO TABLE @DATA(lt_A)

FOR ALL ENTRIES IN @lt_x

WHERE x = @lt_x-x

AND y= @lc_y.

I would like to understand the sense of this coding . @ lt_ and lt_ ...usage etc.

Any help would be appreciated.

Kind Regards.

5 REPLIES 5
Read only

Sandra_Rossi
Active Contributor
1,743

You can find explanations about @ in the ABAP documentation in the chapters "Host Variables" and "Host Expressions" (and also related to ABAP SQL Strict Syntax).

Read only

Jeansy
Active Contributor
0 Likes
1,744

Hi,

please check the following links for more details and documentation:

https://archer4sap.com/sap-abap-7-51_v1/comma-and-escaping-variable/
https://blogs.sap.com/2017/02/17/why-the-new-open-sql-syntax-is-better/

I hope this helps you 🙂

Kind regards
Jens

Read only

1,743

Thank you so much . It looks really helpful.

Have a nice day!jzaehringer

Read only

Jeansy
Active Contributor
0 Likes
1,743

You‘re welcome 🙂

Please mark this topic as solved.

Have a nice day too!

KR Jens

Read only

0 Likes
1,743

Greetings sumeyye_1634.

It basically fetches all the records from table A that match the records from the inner table @lt_x.

Regards.