SAP / SAP/code-pal-for-abap

Check target field of select

Open
#56 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

new check
Dominant language
ABAP
Stars
435
Forks
77
PR merge metrics
No merged PRs in 30d

Description

Hey SAP experts,

there is a quite common issue from our developers that target fields (structure/table type) do not match SELECT field list.
Can you provide a check for that, please? 🙏

Example:

FORM cut.

  DATA: ls_mara TYPE mara.
  
  SELECT SINGLE mtart FROM mara
    INTO ls_mara " MTART is not moved to ls_mara-mtart but into
	         " the first fields MANDT (3 characters) and MATNR (1 character)
		 " -> How to track this with SCI/ATC/SLIN, etc? 
    WHERE matnr = '...'.
	
ENDFORM.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating existing SELECT-related checks in the code-inspection or ATC integration; done should mean the example's mismatched target and SELECT field list are detected reliably.

Written by the indexing model from the issue text.

Assessment

Domain
testing-qa, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.