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

GET (logical database)

Former Member
0 Likes
732

Hi experts,

I have a get statement with logical database,

when it is executed, it should go to END-OF-SELECTION. But it goes to GET statement again. Why is it happening? Do anybody have explanation about it?

5 REPLIES 5
Read only

Former Member
0 Likes
691

HI,

Write an EXIT statement after GET which takes it to END-OF-SELECTION statement ...

Regards,

Santosh

Read only

0 Likes
691

Okay, but why GET statement executed more than once??

I have something similar syntax...

How does GET work in this case? Why is it executed 2 times?

START-OF-SELECTION

GET logical_db.

END-OF-SELECTION

Read only

0 Likes
691

hi,

Get statement functions as loop and endloop statement .... and comes out of it only when it sees any exit statement after executing that statement ....For more information check out

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/get_.htm

Regards,

Santosh

Read only

Former Member
0 Likes
691

Hi,

Write EXIT Statement.

Regards

Sandipan

Read only

Former Member
0 Likes
691

Thank you very much for the answer!