You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WITH PRIVILEGED ACCESS seems to be misinterpreted by ABAP Cleaner as a WITH common table expression, the addition gets split up.
Input:
SELECTSINGLEFROM I_BillingDocumentPartner WITHPRIVILEGEDACCESSFIELDS ReferenceBusinessPartner
WHERE PartnerFunction = @contact_person
AND BillingDocument = @billing_document
INTO @DATA(contact_person_bp).
Output:
SELECTSINGLEFROM I_BillingDocumentPartner WITHPRIVILEGEDACCESSFIELDS ReferenceBusinessPartner
WHERE PartnerFunction = @contact_person
AND BillingDocument = @billing_document
INTO @DATA(contact_person_bp).
Output 2, if WITH starts on the next line:
SELECTSINGLEFROM I_BillingDocumentPartner
WITHPRIVILEGEDACCESSFIELDS ReferenceBusinessPartner
WHERE PartnerFunction = @contact_person
AND BillingDocument = @billing_document
INTO @DATA(contact_person_bp).
Expected output:
SELECTSINGLEFROM I_BillingDocumentPartner WITHPRIVILEGEDACCESSFIELDS ReferenceBusinessPartner
WHERE PartnerFunction = @contact_person
AND BillingDocument = @billing_document
INTO @DATA(contact_person_bp).
Therefore, a line break was introduced. This should be fixed with the next release (which will simply keep WITH PRIVILEGED ACCESS where it is, rather than tearing it apart).
Activity
jmgrassau commentedon Jul 6, 2026
Hi Fabian,
thanks a lot, nice finding! ABAP cleaner indeed mistook
... PRIVILEGED ACCESSto be the start of the options block:Therefore, a line break was introduced. This should be fixed with the next release (which will simply keep
WITH PRIVILEGED ACCESSwhere it is, rather than tearing it apart).Kind regards,
Jörg-Michael
fix AlignSelectClausesRule for WITH PRIVILEGED ACCESS (#541)
jmgrassau commentedon Jul 9, 2026
Hi Fabian,
thanks again for opening this issue! This bug should now be fixed with version 1.28.5, which was just released!
Kind regards,
Jörg-Michael