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

Syntax error

Former Member
0 Likes
1,138

I am trying to compare 2 values like below. When i do syntax check it says "wa_zmipc2-aplfz is not a valid comparison operator".What could be the problem? please help..All the data declarations are done properly.

if wa_zmipc2-aplfz eq wa_final-aplfz.

continue.

endif.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,119

Hi,

Please check if the statement before the if statement ended properly or not,

some times it will give error if before statement not ended properly.

thanks,

sarala.

12 REPLIES 12
Read only

Former Member
0 Likes
1,119

Can you please tell how have you declared variable 'aplfz' in table 'wa_zmipc2'??

Thanks

Read only

0 Likes
1,119

data wa_zmipc2 type zmipc.

Read only

Former Member
0 Likes
1,119

can you send delaration of workarea wa_zmipc2-aplfz and wa_finalaplfz.

Read only

0 Likes
1,119

data wa_final type zmipc.

data wa_zmipc2 type zmipc.

******

select single * from zmipc

into wa_zmipc2

where infnr eq wa_stxh-tdname and "wa_fin-infnr

lifnr eq wa_eina-lifnr and "wa_fin-lifnr

ipcven eq WA_STXH-TDLINE and "wa_f-ipcven.

if wa_zmipc2-aplfz eq wa_final-aplfz.

continue.

endif.

Read only

0 Likes
1,119

hi,

Do you think this stmt is complete.

select single * from zmipc

into wa_zmipc2

where infnr eq wa_stxh-tdname and "wa_fin-infnr

lifnr eq wa_eina-lifnr and "wa_fin-lifnr

ipcven eq WA_STXH-TDLINE and "wa_f-ipcven.

After and the stmt is open.

Regards

Subramanian

Read only

Former Member
0 Likes
1,119

Hi,

check the code whether the worl area has been called in side a loop using internal table

regards

Shiva

Read only

0 Likes
1,119

data wa_final type zmipc.

data wa_zmipc2 type zmipc.

******

loop at i_zmipc into wa_zmipc.

select single * from zmipc

into wa_zmipc2

where infnr eq wa_stxh-tdname and "wa_fin-infnr

lifnr eq wa_eina-lifnr and "wa_fin-lifnr

ipcven eq WA_STXH-TDLINE and "wa_f-ipcven.

if wa_zmipc2-aplfz eq wa_final-aplfz.

continue.

endif.

endloop.

Read only

0 Likes
1,119

How have you defined field 'aplfz' in Table 'zmipc' (SE11) ??

Thanks

Read only

0 Likes
1,119

thanks everybody...problem is resolved.....i dint end the select statement with '.'

Read only

Former Member
0 Likes
1,120

Hi,

Please check if the statement before the if statement ended properly or not,

some times it will give error if before statement not ended properly.

thanks,

sarala.

Read only

0 Likes
1,119

o my goddddd...such a small problem....anyways..thanks sarala

Read only

Former Member
0 Likes
1,119

data wa_final type zmipc.

data wa_zmipc2 type zmipc.

******

loop at i_zmipc into wa_zmipc.

select single * from zmipc

into wa_zmipc2

where infnr eq wa_stxh-tdname and "wa_fin-infnr

lifnr eq wa_eina-lifnr and "wa_fin-lifnr

ipcven eq WA_STXH-TDLINE <b>and</b> "wa_f-ipcven.

<b>if</b> wa_zmipc2-aplfz eq wa_final-aplfz.

continue.

endif.

endloop.

REASON FOR THE ERROR HIGHLIGHTED IN BOLD CHECK OUT