‎2006 Jul 12 5:20 AM
i suppose to add ename and parvw to respective i_sales_cust1. here i am able to add itab but for particular means ename to i_sales_cust1-ename, the syntax i have forgotten. can u help me.
select single aPARVW Bename from KNVP AS A INNER JOIN Pa0001 AS B
ON Aprnr = Bprnr into i_SALES_CUST1
where kunnr = i_sales_cust1-pkunag.
‎2006 Jul 12 5:53 AM
hey u can do like this na.
select single aPARVW Bename into (i_sales_cust1-parvw, i_sales_cust1-ename) from KNVP AS A INNER JOIN Pa0001 AS B
ON Aprnr = Bprnr where kunnr = i_sales_cust1-pkunag.
‎2006 Jul 12 5:29 AM
Hi,
select single a~PARVW
B~ename
from KNVP AS A
INNER JOIN Pa0001 AS B
ON APERNR = BPERNR into i_SALES_CUST1
where kunnr = i_sales_cust1-pkunag.
If you know the values of VKORG
VTWEG
SPART
PARVW
PARZA
also include them in the where clause.
Best regards,
Prashant
‎2006 Jul 12 5:30 AM
Hi Kalyan,
Try below code.
select aPARVW Bename into corresponding fields of i_sales_cust1 from KNVP AS A INNER JOIN Pa0001 AS B
ON Aprnr = Bprnr into i_SALES_CUST1
where A~kunnr = i_sales_cust1-pkunag.
if sy-subrc = 0 "means first record selected
exit. "so that only 1 record is moved
endselect.
Cheers,
Vikram
‎2006 Jul 12 5:41 AM
Hi,
Just try this-
select single a~PARVW
B~ename
into corresponding fields of i_sales_cust1
from KNVP AS A INNER JOIN Pa0001 AS B
ON Aprnr = Bprnr into i_SALES_CUST1
where A~kunnr = i_sales_cust1-pkunag.
Hope this helps u.
Regards,
Seema.
‎2006 Jul 12 5:53 AM
hey u can do like this na.
select single aPARVW Bename into (i_sales_cust1-parvw, i_sales_cust1-ename) from KNVP AS A INNER JOIN Pa0001 AS B
ON Aprnr = Bprnr where kunnr = i_sales_cust1-pkunag.