Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem in Entries..

HI all,

data: i_vbap like vbap occurs 0 with header line,

i_vbfa like vbfa occurs 0 with header line.

parameters: p_vbeln like vbap-vbeln.

select vbeln

posnr

matnr

uepos

prodh

meins

from vbap

into corresponding fields of table i_vbap

where vbeln = p_vbeln.

select vbelv

posnv

rfmng

plmin

from vbfa

into corresponding fields of table i_vbfa

for all entries in i_vbap where vbelv = i_vbap-vbeln

and posnv = i_vbap-posnr.

write: 'VBELV',25 'RFMNG',31 'POSNV',40 'PLMIN'.

loop at i_vbfa.

write:/ i_vbfa-vbelv, i_vbfa-rfmng, i_vbfa-posnv, i_vbfa-plmin.

endloop.

If i run this program wilh any sales document.iam getting less than the entries which i have in VBFA table.

Example: for one sales order In VBFA iam having 20 entries. but when i run the above pgm iam getting only 7 records.

Can any body give me clear explanation..PLZ

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question