Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem in declaration

Hi,

TYPES: BEGIN OF TYPE_KNA1,

INCLUDE TYPE KNA1.

TYPES: MESSAGE TYPE C,

END OF TYPE_KNA1.

DATA: WA_KNA1 TYPE TYPE_KNA1.

WA_KNA1-KUNNR = '1000'.

I am getting an Syntax error called "The data object "WA_KNA1" doesn't have a component called "KUNNR".

Regards,

Vijay.

Tags:
Former Member
replied

Check this

TYPES: BEGIN OF type_kna1.
        INCLUDE STRUCTURE kna1.
TYPES: message TYPE c.
TYPES: END OF type_kna1.

DATA: wa_kna1 TYPE type_kna1.

wa_kna1-kunnr = '1000'.

Regards

Gopi

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question