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-query going in infinite loop

sachin_yadav3
Active Participant
0 Likes
1,265

Hello all,

I have one on abap-query in which i am displaying data for delivery details that is table LIKP and LIPS.

In this query i also have some code to get the sale order details from the the delivery details.

I have also used one FM module in this query as well as select endselet stamt.

When i run my quey it i going in infinite loop. I am not getting any thing . Each time i have to exit the screen.

Can anyone please tell me wat is the problem, why it is going in infinite loop.

Thanks and regards

Sachin yadav

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,046

HI,

don't use the select endselect.

first u pick the value from the table likp and write a for all enteries query on the lips table.

Before using for all entries follow all pre-requisites to it.

Regrads,

Naresh

Hello all,

I have one on abap-query in which i am displaying data for delivery details that is table LIKP and LIPS.

In this query i also have some code to get the sale order details from the the delivery details.

I have also used one FM module in this query as well as select endselet stamt.

When i run my quey it i going in infinite loop. I am not getting any thing . Each time i have to exit the screen.

Can anyone please tell me wat is the problem, why it is going in infinite loop.

Thanks and regards

Sachin yadav

6 REPLIES 6
Read only

Former Member
0 Likes
1,047

HI,

don't use the select endselect.

first u pick the value from the table likp and write a for all enteries query on the lips table.

Before using for all entries follow all pre-requisites to it.

Regrads,

Naresh

Read only

0 Likes
1,046

can youplz tell me how to use for all entries.

As entry in table LIKP is filled from query.

So how to get the entry of table LIKP into my internal table.

Please suggest

Read only

0 Likes
1,046

Hi:

By using function module SPP02_READ_LIKP - find the data for LIKP

do like this

Select * from lips appending table int_lipks

For all entries in int_likp

Where VBELNy = int_likp-VBELN.

Regards

Shashi

Read only

0 Likes
1,046

thanks for your help,

But may i know how to display my internal table data to out put screen.

As i am new to the query i do not know how to display internal table data to report along with my data coming from ABAp-query.

for eg i have three field to display suppose A , B and C.

Field A and B are coming from query and i have to display field C from internal table.

How to do that

thanks in advance

Read only

0 Likes
1,046

Hi ,

For displaying data you can put a loop on the internal table.

Loop at Itab.

Write : 10 itab-field1,

20 itab-field2,

30 itab-field3.

Endloop.

Regards,

Anuj

Read only

sarbajitm
Contributor
0 Likes
1,046

Hello Sachin,

If you don't have problem,then put your code in this thread along with explanation of the problem facing.

Regards.

Sarbajit.