10-09-2007 10:09 AM
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!
10-09-2007 10:30 AM
I guess this is an ABAP query... You need to identify the query and modify it.
10-09-2007 10:16 AM
there is no write statement at all in ur report, what o/p u r getting with the current reoport and what additional o/p u needed. pls explain clearly
10-09-2007 10:24 AM
Hi,
it seems to be a query and not a self developed report.
To change this you should use transaction sq02 to change the infoset.
There you can check, if table MAKT is already in use or not.
When possible add this table in the join or added as additional table.
Hope this will help you.
10-09-2007 10:24 AM
Hi.
If I am not wrong, this is not an ABAP list report but a Query. So, you possibly have to change the Infoset (SQ02) and then adapt the Query (SQ01) accordingly to display the material text column.
Reward if helpful.
cheers,
George
10-09-2007 10:25 AM
the function i think is to output.
call function '/1BCDWB/IQG000000000063SHOW'
tables %dtab = %dtab
changing %rtmode = %runmode.
no wirte ,output use ALV funciton!
10-09-2007 10:30 AM
I guess this is an ABAP query... You need to identify the query and modify it.