Skip to Content
0
Former Member
Dec 15, 2011 at 11:50 AM

Dump in SAP query report

97 Views

Dear All,

I have written some development in SAP Query report.

The main aim is to assign to own defined parameter par1 combination of version and object-partner (internal order with defined order type).

The text is following:

DATA: it_aufk like aufk

occurs 10 with header line.

DATA: p-auart like aufk-auart.

select * from AUFK into table it_aufk

where AUFNR = coep-parob1+2(12).

if sy-subrc = 0.

if coep-versn = '000'.

par1 = 1.

elseif coep-versn = 'GR0'.

par1 = 2.

endif.

endif.

if coep-versn = 0 and ( p-auart = 'V112' or p-auart = 'V114' ) .

par1 = 1.

endif.

I have performed check and generated this info-set successfully.

Than I have generated program in queries - other function- generate program.

I execute report and get dump.

What did I miss?

With best regards,

Kamila.