Skip to content

Instantly share code, notes, and snippets.

@benjnw
Created August 6, 2025 14:30
Show Gist options
  • Select an option

  • Save benjnw/e28b45de72d0c14d282534a32b558cc5 to your computer and use it in GitHub Desktop.

Select an option

Save benjnw/e28b45de72d0c14d282534a32b558cc5 to your computer and use it in GitHub Desktop.
renaming_inner_join
BEGIN OF ty_template.
INCLUDE STRUCTURE lfa1 AS lfa1 RENAMING WITH SUFFIX _lf.
INCLUDE STRUCTURE lfb1 AS lfb1 RENAMING WITH SUFFIX _lb.
TYPES:
END OF ty_template.
SELECT *
FROM lfa1 AS lf
INNER JOIN lfb1 AS lb
ON lb~lifnr = lf~lifnr
INTO TABLE gt_template
WHERE lf~lifnr EQ p_lifnr
AND lb~bukrs EQ p_bukrs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment