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

select statement

Former Member
0 Likes
449

SELECT vbpa~vbeln

vbpa~kunnr

  • vbap~vbeln

vbap~posnr

vbap~yygfkto

FROM vbpa INNER JOIN vbap

ON vbpavbeln = vbapvbeln

INTO TABLE lt_vbpa

WHERE parvw EQ 'RG'

AND vbpa~kunnr EQ lt_knvp-kunn2

AND abgru NE lc_abgru.

this join is giving me error message

that lt_knvp table is without headerline

i dnt want to change it header line

what can be done??

workarea???if yes then how

3 REPLIES 3
Read only

Former Member
0 Likes
426

Hello,

Make this change


if not it_knvp[] is initial.
SELECT vbpa~vbeln
vbpa~kunnr

vbap~vbeln 
vbap~posnr
vbap~yygfkto
FROM vbpa INNER JOIN vbap
ON vbpa~vbeln = vbap~vbeln
INTO TABLE lt_vbpa
For all entries in lt_knvp " Check here
WHERE parvw EQ 'RG'
AND vbpa~kunnr EQ lt_knvp-kunn2
AND abgru NE lc_abgru.
endif.

Cheers,

Vasanth

Read only

former_member156446
Active Contributor
0 Likes
426

if not lt_knvp [ ] is initial.
SELECT vbpa~vbeln
vbpa~kunnr
vbap~posnr
vbap~yygfkto
FROM vbpa INNER JOIN vbap
ON vbpa~vbeln = vbap~vbeln
INTO TABLE lt_vbpa
for all entries in lt_knvp
WHERE parvw EQ 'RG'
AND vbpa~kunnr EQ lt_knvp-kunn2
AND abgru NE lc_abgru.
endif.
Read only

Former Member
0 Likes
426

done