Skip to Content
Former Member
Jun 13, 2009 at 05:39 PM

for all entries


hi gurus, plz solve my query

we do for all entries when selecting from an item table based on the header table entries.

now if we have a single entry like that in a 'parameter'. eg:

parameters: p_vbeln type vbak-vbeln.
select vbeln erdat  from vbak into table it_vbak where vbeln = p_vbeln.
if not it_vbak is initial.
select vbeln posnr matnr arktx kwmeng from vbap into table it_vbap
for all entries in it_vbak where vbeln = it_vbak-vbeln.

will we use for all entries here? bcoz it_vbak has only 1 record.

but if we use select-options

Is for all entries used only for select-options?bcoz we get multiple entries in select-options.