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

Error...

Former Member
0 Likes
829

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>

1 ACCEPTED SOLUTION
Read only

Manohar2u
Active Contributor
0 Likes
790

select single vbfavbelv vbfaposnv vbap~posex into

<b>(LINE-VBELV, LINE-POSNV, LINE-POSEX)</b>

Keep space after variables.

Regds

Manohar

6 REPLIES 6
Read only

Manohar2u
Active Contributor
0 Likes
791

select single vbfavbelv vbfaposnv vbap~posex into

<b>(LINE-VBELV, LINE-POSNV, LINE-POSEX)</b>

Keep space after variables.

Regds

Manohar

Read only

0 Likes
790

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 vbfa

Regards,

Rich Heilman

Read only

Former Member
0 Likes
790

Give space between each variable

Read only

Laxmana_Appana_
Active Contributor
0 Likes
790

Hi,

Remove space between the brackets :

( LINE-VBELV,LINE-POSNV,LINE-POSEX )

(LINE-VBELV,LINE-POSNV,LINE-POSEX)

Laxman

Read only

Former Member
0 Likes
790

select single vbfavbelv vbfaposnv vbap~posex <b>into

CORRESPONDING FIELDS OF LINE</b>from vbfa

Read only

Former Member
0 Likes
790

hi

u do not gave period after line APPENd LINE TO PO_LINE

, so plz do it and check it.

chetan.