12-28-2007 5:05 AM
Hi Gurus,
help me with select statement.
Ship to code--- Get vbpa-kunnr where
vbrp-vbeln = vbpa-vbeln
and PARVW = "WE"
AND vbrp-posnr = vbpa-posnr.
i have a structure called zooos1 i defined these fields .
i want this kunnr into <wa_report>-kunnr.
plz help me gurus,
THANKS®ARDS
SUNITA.
12-28-2007 5:56 AM
chek
SELECT kunnr FROM VBPA INTO TABLE WA_REPORT FOR ALL ENTRIES IN ZS001
where vbrp-vbeln = vbpa-vbeln and
PARVW = "WE" AND
vbrp-posnr = vbpa-posnr .
12-28-2007 5:21 AM
select a~vbeln
a~posnr
a~parvw
a~kunnr
b~vbeln
b~posnr into corresponding fields of table itab
from vbpa as a inner join vbrp as b
on avbeln = bvbeln and aposnr = bposnr
where a~parvw = 'WE'.
regards,
pavan
REward points if useful
12-28-2007 5:31 AM
12-28-2007 5:56 AM
chek
SELECT kunnr FROM VBPA INTO TABLE WA_REPORT FOR ALL ENTRIES IN ZS001
where vbrp-vbeln = vbpa-vbeln and
PARVW = "WE" AND
vbrp-posnr = vbpa-posnr .
12-28-2007 7:21 AM
HI EXPERTS,
THANKS A LOT GUYS .PROBLEM SOLVED.
GIVEN FULL POINTS TO ALL
CHEERS!
SUNITA.
12-28-2007 7:31 AM
hi,
it is nice to hear that u r problem is solved, but points u allotted for varma only, kindly allocate points to all useful answers here onwards.
regards,
pavan