2007 Dec 12 5:47 PM
Hi all,
Pls let me know why the below statement is throughing an error saying
'Wrong expression "Inner Join "' in from clause
SELECT AAUART AVBELN
BZZPURREQ BZPURREQFLAG
FROM VBAK AS A
INNERJOIN VBAP AS B
ON AVBELN = BVBELN
INTO TABLE IT_VBAK_VBAP
WHERE A~AUART = 'ZDQT'
AND B~ZPURREQFLAG = 'x'.
WHy is this statement giving an error.
Hi all,
Pls let me know why the below statement is throughing an error saying
'Wrong expression "Inner Join "' in from clause
SELECT AAUART AVBELN
BZZPURREQ BZPURREQFLAG
FROM VBAK AS A
INNERJOIN VBAP AS B
ON AVBELN = BVBELN
INTO TABLE IT_VBAK_VBAP
WHERE A~AUART = 'ZDQT'
AND B~ZPURREQFLAG = 'x'.
WHy is this statement giving an error.
2007 Dec 12 5:57 PM
check the strucuture of IT_VBAK_VBAP are they in the same order as ur writing in select.
2007 Dec 12 5:58 PM
Hi,
They are in the same order.
DATA: BEGIN OF IT_VBAK_VBAP OCCURS 0,
AUART LIKE VBAK-AUART,
VBELN LIKE VBAK-VBELN, " Sales Document
POSNR LIKE VBAP-POSNR,
ZZPURREQ LIKE VBAP-ZZPURREQ,
ZPURREQFLAG LIKE VBAP-ZPURREQFLAG,
END OF IT_VBAK_VBAP.
SELECT AAUART AVBELN
BZZPURREQ BZPURREQFLAG B~POSNR
FROM VBAK AS A
INNERJOIN VBAP AS B
ON AVBELN = BVBELN
INTO TABLE IT_VBAK_VBAP
WHERE A~AUART = 'ZDQT'
AND B~ZPURREQFLAG = 'x'.
2007 Dec 12 6:00 PM
DATA: BEGIN OF IT_VBAK_VBAP OCCURS 0,
AUART LIKE VBAK-AUART,
VBELN LIKE VBAK-VBELN, " Sales Document
ZZPURREQ LIKE VBAP-ZZPURREQ,
ZPURREQFLAG LIKE VBAP-ZPURREQFLAG,
<b>POSNR LIKE VBAP-POSNR,</b>
END OF IT_VBAK_VBAP.
Award points if useful
2007 Dec 12 6:01 PM
Hello Sharath,
Put that tin this way.
DATA: BEGIN OF IT_VBAK_VBAP OCCURS 0,
AUART LIKE VBAK-AUART,
VBELN LIKE VBAK-VBELN, " Sales Document
POSNR LIKE VBAP-POSNR,
ZZPURREQ LIKE VBAP-ZZPURREQ,
ZPURREQFLAG LIKE VBAP-ZPURREQFLAG,
END OF IT_VBAK_VBAP.
SELECT A~AUART A~VBELN
B~POSNR B~ZZPURREQ B~ZPURREQFLAG
FROM VBAK AS A
INNERJOIN VBAP AS B
ON A~VBELN = B~VBELN
INTO TABLE IT_VBAK_VBAP
WHERE A~AUART = 'ZDQT'
AND B~ZPURREQFLAG = 'x'.Message was edited by:
Naren Someneni
2007 Dec 12 6:00 PM
Try this.
SELECT A~AUART A~VBELN
B~ZZPURREQ B~ZPURREQFLAG
INTO TABLE IT_VBAK_VBAP
FROM VBAK AS A
INNER JOIN VBAP AS B
ON
AND A~VBELN = B~VBELN
AND A~AUART = 'ZDQT'
AND B~ZPURREQFLAG = 'X'.Amandeep
2007 Dec 12 6:05 PM
hi here in my system iam getting error like,
No component exists with the name "ZZPURREQ"
2007 Dec 12 6:12 PM
2007 Dec 12 6:12 PM
<b>SOLUTION</b>
DATA: BEGIN OF it_vbak_vbap OCCURS 0,
auart LIKE vbak-auart,
vbeln LIKE vbak-vbeln,
posnr LIKE vbap-posnr,
END OF it_vbak_vbap.
SELECT a~auart a~vbeln B~ZZPURREQ B~ZPURREQFLAG
INTO TABLE it_vbak_vbap
FROM vbak AS a
INNER JOIN vbap AS b
ON a~vbeln = b~vbeln
WHERE a~auart = 'ZDQT'
AND B~ZPURREQFLAG = 'X'.
2007 Dec 12 6:19 PM
2007 Dec 12 8:21 PM
2008 Feb 06 12:26 PM
Hai Every one...
How to link Normal table to Infotypes table ?
PA001PERNR , PA001KOSTL
CSKTKOSTL ,CSKTLTEXT.
BOTH PA001 & CSKT Common field is KOSTL.
I try to join using innerjoin concept , it can't be work. i was try many times.. it is not work. give me ur ideas pls..
2008 Feb 06 12:50 PM
Try This
>SELECT apernr bkostl
>INTO CORRESPONDING FIELDS OF TABLE itab
>FROM PA0001 AS a
>INNER JOIN KOSTL AS b
>ON akostl = bkostl AND
a~pernr = pernr-pernr. " For each personnel number in loop of LDB PNPCE/PNP
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |