Skip to Content

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

Need a idea to change a report!

hi

i need add a field(IN MAKT TABLE OF MAKTX FIELD) for output for a report!

i know i just get the filed (MATNR) so get MAKT-MAKTX.

and this report as follow:

report AQZZZMM_WH======ZIV===========.

include /1BCDWB/IQG000000000063DAT.

data %dtab type standard table of /1BCDWB/IQG000000000063 with header line.

data %subrc type sy-subrc.

include /1BCDWB/IQG000000000063SSCR.

include /1BCDWB/IQG000000000063SSCRAT.

start-of-selection.

if %runmode-extr_on <> space.

call function '/1BCDWB/IQG000000000063EXTR'

tables %selopt = %seloptions

%dtab = %dtab

changing %rtmode = %runmode

exceptions no_data = 1

others = 2.

%subrc = sy-subrc.

call function 'RSAQRT_CHECK_EXTR'

exporting extr_subrc = %subrc

tables dtab = %dtab

changing rtmode = %runmode.

endif.

end-of-selection.

if %runmode-show_on <> space.

call function '/1BCDWB/IQG000000000063SHOW'

tables %dtab = %dtab

changing %rtmode = %runmode.

endif.

*----


  • special code for old API and BW extractor calls

*----


form %set_data changing p_lines type i.

import ldata to %dtab from memory id 'AQLISTDATA'.

describe table %dtab lines p_lines.

free memory id 'AQLISTDATA'.

endform.

form %get_data tables p_dtab structure %dtab

using p_first type i

p_last type i.

append lines of %dtab from p_first to p_last to p_dtab.

endform.

form %get_ref_to_table using p_lid type aql_lid

p_ref type ref to data

p_subrc type i.

if p_lid = %iqid-lid.

create data p_ref like %dtab[].

p_subrc = 0.

else.

p_subrc = 4.

endif.

endform.

please give a idea to change it ! help !!!thank you!

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question