‎2007 Mar 13 12:13 PM
Hi,
i have to submit report in FM and i need to read Inernal table data from that report into TABLES internal table of FM. how can read that internal table from REPORT.
SUBMIT RM07DOCS VIA SELECTION-SCREEN
with MATNR in R_MATNR
with WERKS in R_WERKS
with BUDAT in R_BUDAT and return.
then i write like this to access export_list internal table..but it is not working for me...exporting statment is already is they in report also
IMPORT export_list FROM MEMORY ID 'MB51_EXPORT_LI'.
‎2007 Mar 13 12:17 PM
‎2007 Mar 13 12:18 PM
Hello,
Since the export statement is available already in the std report
<b>EXPORT export_list TO MEMORY ID 'MB51_EXPORT_LIST'.</b>
It is easy for u.
<b>SUBMIT RM07DOCS
with MATNR in R_MATNR
with WERKS in R_WERKS
with BUDAT in R_BUDAT and return.</b>
DATA: BEGIN OF export_list OCCURS 0,
matnr TYPE mseg-matnr,
maktx TYPE makt-maktx,
werks TYPE mseg-werks,
name1 TYPE t001w-name1,
lgort TYPE mseg-lgort,
charg TYPE mseg-charg, "351455
bwtar TYPE mseg-bwtar, "351455
bwart TYPE mseg-bwart,
sobkz TYPE mseg-sobkz,
btext TYPE t156t-btext,
mblnr TYPE mseg-mblnr,
mjahr TYPE mseg-mjahr,
zeile TYPE mseg-zeile,
budat TYPE mkpf-budat,
erfmg TYPE mseg-erfmg,
erfme TYPE mseg-erfme,
lifnr TYPE mseg-lifnr,
vgart TYPE mkpf-vgart,
END OF export_list.
<b>IMPORT export_list FROM MEMORY ID 'MB51_EXPORT_LIST'.</b>
Now u will get the data inot the table export_list
MOve the data to the table of ur fm.
Regards,
Vasanth