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

problem

Former Member
0 Likes
935

Hi abapers

declaration is :

CHANGENR like cdpos-CHANGENR,

CHANGENR1 like cdhdr-CHANGENR,

i have used the following code, it says that

"comma without procedding colon", but i have done it properly.

what could be the problem. pls advise me.

loop at ipos.

select single CHANGENR UDATE

from cdhdr

into ( ipos-CHANGENR1 , ipos-UDATE )

where CHANGENR = ipos-CHANGENR.

modify ipos.

endloop.

Thanks in advance.

Regards

Rajaram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
846

HI,

do like this.

loop at ipos.

select single CHANGENR UDATE

from cdhdr

into (<b>ipos-CHANGENR1,ipos-UDATE</b>) -


> no-gaps

where CHANGENR = ipos-CHANGENR.

modify ipos.

endloop.

<b>reward if helpful</b>

rgds,

bharat.

7 REPLIES 7
Read only

Former Member
0 Likes
846

change your declaration to

DATA :

CHANGENR like cdpos-CHANGENR,

CHANGENR1 like cdhdr-CHANGENR<b>.</b>

Replace comma by '.'

remove space after comma -> <b>into ( var1,var2 )</b> .

Reward points if helpful

Message was edited by:

taranam dhindsa

Message was edited by:

taranam dhindsa

Read only

Former Member
0 Likes
847

HI,

do like this.

loop at ipos.

select single CHANGENR UDATE

from cdhdr

into (<b>ipos-CHANGENR1,ipos-UDATE</b>) -


> no-gaps

where CHANGENR = ipos-CHANGENR.

modify ipos.

endloop.

<b>reward if helpful</b>

rgds,

bharat.

Read only

0 Likes
846

no yar not working

Read only

0 Likes
846

Hi,

see that now.

i have modified a bit

rgds,

bharat.

Read only

Former Member
0 Likes
846

i think that is because of into


into (ipos-CHANGENR1, ipos-UDATE) " check only 1 space after , and no other space

regards

shiba dutta

Read only

0 Likes
846

ya now it working yar thanks

its gap betbween (ipos-CHANGENR1 , ipos-UDATE)

<-->

regards

Rajaram

Read only

Former Member
0 Likes
846

Hi Raja,

Check that your declaration is done this way :

data : CHANGENR like cdpos-CHANGENR,

CHANGENR1 like cdhdr-CHANGENR.

Coz there is no problem with the query , but it will be toooooooooooo slow coz cluster tables with a select in loop and further with select end select.

Performance will be a major issue here .

Reward if helpful.

Best Regards,

Imran