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 in selection

Former Member
0 Kudos
106

Hi all,

i am using the folowing select query.

SELECT VBELN POSNR PS_PSP_PNR FROM VBRP INTO CORRESPONDING FIELDS OF TABLE IT_VBRP

FOR ALL ENTRIES IN IT_ZDN3 WHERE VBELN = IT_ZDN3-INVNO.

vbrp contains diff value of ps_psp_pnr for vbeln but the data that is getting selecting

in it_vbrp has diff value of ps_psp_pnr.

plz reply soon, its urgent

thnx

3 REPLIES 3
Read only

Former Member
0 Kudos
85

Hi,

VBRP has both vbeln and POSNR as key fields use both and retrieve data.

nake sure that u r comparing teh correct fields of IT_ZDN3 against VBELN adn POSNR.

SELECT VBELN POSNR PS_PSP_PNR 
              FROM VBRP
              INTO CORRESPONDING 
              FIELDS OF TABLE IT_VBRP
              FOR ALL ENTRIES IN IT_ZDN3 
             WHERE VBELN = IT_ZDN3-INVNO.
             AND   POSNR = it_zdn3-????

Read only

0 Kudos
85

same prb is occuring even after taking posnr in select statement

Read only

0 Kudos
85

Provide me the code for the structure IT_ZDN3.