Skip to main content

Hi everyone,

I’m trying to convert an ABAP statement into PQL but I’m not sure how to do it.
In ABAP I have:


SELECT SINGLE *
  FROM vbap
  INTO ls_vbap
 WHERE vbeln = ls_vbbe-vbeln
   AND posnr = ls_vbbe-posnr.
 

I think In SQL this would look like:


SELECT *
FROM VBAP
WHERE VBELN = :ls_vbbe_vbeln
  AND POSNR = :ls_vbbe_posnr
LIMIT 1;
 

But I don’t know how to express the same logic in PQL
Does anyone have any idea?

Thanks!

Be the first to reply!

Reply