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

urgent , abap select statement error VBPA ...

Former Member
0 Likes
751

hi gurus,

please tell me what is the wrong in the following select statment:

it returns 4 dispite that the data is there in the table VBPA

like this :

VBPA

****************************************

Cl. : 200

Document : 0010002449

Item :

Funct : PE

Pers.No. : 100820

*********************************************

SELECT SINGLE

pernr

INTO w_pernr

FROM vbpa

WHERE VBELN EQ '0010002449'

and kunnr EQ 'PE'.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
714

.

.

4 REPLIES 4
Read only

Former Member
0 Likes
714

HI,

I think yuo need to change the code as below :

SELECT SINGLE

pernr

INTO w_pernr

FROM vbpa

WHERE VBELN EQ '0010002449'

and kunnr = '100820'.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
715

.

Read only

George_Lioumis
Active Participant
0 Likes
714

Hi, check this:

SELECT SINGLE

pernr

INTO w_pernr

FROM vbpa

WHERE VBELN EQ '0010002449'

and parvw EQ 'PE'

Regards,

George

Read only

Former Member
0 Likes
714

hi

good

wrong one ->

SELECT SINGLE

pernr

INTO w_pernr

FROM vbpa

WHERE VBELN EQ '0010002449'

and kunnr EQ 'PE'.

SELECT SINGLE

pernr

INTO w_pernr

FROM vbpa

WHERE VBELN EQ 0010002449

and kunnr EQ PE.

change like this and check the difference.

thanks

mrutyun^