‎2006 Jul 06 9:17 PM
REPORT ZTUSH.
TABLES: VBFA, VBAP.
TYPES: Begin of LINE,
VBELV TYPE VBFA-VBELV,
POSNV TYPE VBFA-POSNV,
POSEX TYPE VBAP-POSEX,
END OF LINE.
DATA: PO_LINE TYPE TABLE OF LINE.
LOOP AT delivery_item.
select single vbfavbelv vbfaposnv vbap~posex into ( LINE-VBELV,LINE-POSNV,LINE-POSEX )
from vbfa
inner join vbap
on vbfavbelv = vbapvbeln
and vbfaposnv = vbapposnr
where vbfa~vbeln = 'delivery_item-vbeln'
and vbfa~posnn = 'delivery_item-posnr'
and vbfa~vbtyp_n = 'J'.
ENDLOOP.
APPENd LINE TO PO_LINE
WRITE:/ PO_LINE-VBELV, PO_LINE, PO_LINE-POSEX.
<b>This gives me an error comma without preceding colon...</b>
‎2006 Jul 06 9:19 PM
select single vbfavbelv vbfaposnv vbap~posex into
<b>(LINE-VBELV, LINE-POSNV, LINE-POSEX)</b>
Keep space after variables.
Regds
Manohar
‎2006 Jul 06 9:19 PM
select single vbfavbelv vbfaposnv vbap~posex into
<b>(LINE-VBELV, LINE-POSNV, LINE-POSEX)</b>
Keep space after variables.
Regds
Manohar
‎2006 Jul 06 9:21 PM
Make sure there is no space between the "(" and the field, also put space between the "," and next field name.
(LINE-VBELV, LINE-POSNV, LINE-POSEX)Since you are using a structure here you can just do this too, assuming that LINE only contains the three fields being selected..
select single vbfa~vbelv vbfa~posnv vbap~posex
<b>into line</b>
from vbfaRegards,
Rich Heilman
‎2006 Jul 06 9:22 PM
‎2006 Jul 06 9:22 PM
Hi,
Remove space between the brackets :
( LINE-VBELV,LINE-POSNV,LINE-POSEX )
(LINE-VBELV,LINE-POSNV,LINE-POSEX)
Laxman
‎2006 Jul 06 9:25 PM
select single vbfavbelv vbfaposnv vbap~posex <b>into
CORRESPONDING FIELDS OF LINE</b>from vbfa
‎2006 Jul 07 12:44 PM
hi
u do not gave period after line APPENd LINE TO PO_LINE
, so plz do it and check it.
chetan.