Skip to content

Check target field of select #56

@abap-weasel

Description

@abap-weasel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions