Application Development 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: 

error "GT_VBAP05" is a table without a header line and does not have a component called "VGBEL".

k_sriram
Explorer
0 Kudos

SELECT vbeln , vgbel FROM vbap INTO TABLE @data(gt_vbap05)
FOR ALL ENTRIES IN @gt_vbrp WHERE vbeln = @gt_vbrp-aubel.

getting error "GT_VBAP05" is a table without a header line and therefore does not have a component called "VGBEL".

hoe to resolve it ?

2 REPLIES 2

shantraj
Explorer
0 Kudos

Please provide more info,

Just assuming you are looping on gt_vbap05.

loop at gt_vbap05.

Endloop.

you should use.

loop at gt_vbap05 into data(lwa_vbap05).

EndLoop.

If reading table.

read gt_vbap05 into data(lwa_vbap05) index 1.<br> or with key vbeln = ? "your comparison field.

FredericGirod
Active Contributor
0 Kudos

Are you sure the error comes from this line of code ?

Your code is working here :

data gt_vbrp type STANDARD TABLE OF vbrp with NON-UNIQUE default key.
SELECT vbeln , vgbel
FROM vbap
INTO TABLE @data(gt_vbap05)
FOR ALL ENTRIES IN @gt_vbrp WHERE vbeln = @gt_vbrp-aubel.