SAP Select from Internal Table

Now you can use select statement on SAP internal Table.

If you which to use select statement on the Internal able below is the syntax

types : begin of lty_vbrp,
vbeln type vbrk-vbeln,
end of lty_vbrp.

types : begin of lty_vbrK,
vbeln type vbrk-vbeln,
FKART TYPE VBRK-FKART,
end of lty_vbrK.

data : lt_vbrp type table of lty_vbrp,
lt_vbrk type table of lty_vbrk.

select vbeln from vbrp
into table lt_vbrp
where vbeln = ‘XXXXXX’.

SELECT VBELN, FKART
FROM @lt_vbrp AS NO
WHERE VBELN = S_VBELN
INTO TABLE @LT_VBRK.

Leave a Reply

Your email address will not be published. Required fields are marked *