Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SUBMIT REPORT

Former Member
0 Likes
538

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'.

2 REPLIES 2
Read only

athavanraja
Active Contributor
0 Likes
447

assign points to useful answers and close your previous threads

now to your question.

within the report program, you have to export it to memory and outside withing your FM you have to import it. make sure the id is same and the variable type is same.

Regards

Raja

Read only

Former Member
0 Likes
447

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