Skip to Content

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

SQL Syntax Problem - Filling Internal Table

This code passes syntax check but short-dumps. Any help would be appreciated.

REPORT ZGS_JOINTST2.

DATA it_kickouts TYPE rssm_t_seldone.

DATA wa_kickouts TYPE zbw_kickouts.

SELECT rsseldone~rnr

rsseldone~source

rsseldone~seldate

rsseldone~seltime

rsseldone~oltpsource

rserrorlog~msgv1

rserrorlog~msgv3

INTO TABLE it_kickouts

FROM rsseldone INNER JOIN rserrorlog

ON rsseldonernr = rserrorlogrequest

WHERE rsseldone~source = 'ZCC_0001'.

I'm simply trying to read the joined of the two RS tables and populate the custom table it_kickouts.

Geoff Stuart

Tags:
replied

DATA it_kickouts TYPE rssm_t_seldone.

DATA wa_kickouts TYPE zbw_kickouts.

With these statements it_kickouts and wa_kickouts are created as the field strings(structure but not as table).

So the problem is .

So what you have to do is declare the statement as ,

DATA it_kickouts like table of rssm_t_seldone.

or

DATA it_kickouts TYPE rssm_t_seldone occurs 0 with header line.

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