Application Development 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: 

SUBMIT REPORT AND PASS TABLE

Former Member
0 Kudos

i want to submit trans MB5B and move the data of table

BESTand (is this itab?) to my ITAB in my program

3 REPLIES 3

former_member181962
Active Contributor
0 Kudos

Hi rani use the submit statement with this addition:

"exporting list to memory"

submit RM07MLBD with

WITH <range1> IN <selectoption1>

WITH <range2> IN <selectoption2>

WITH <range3> IN <selectoption3>

.

..

..

exporting list to memory and return.

use the fm:

LIST_FROM_MEMORY

Then you can get the itab into your program.

Regards,

Ravi

former_member188685
Active Contributor
0 Kudos

Hi,

copy the standard program RM07MLBD to some zprogram and add some code to export the itab to memory and then use submit as suggested by RAVI and then after submit import the data from memory.

Regards

vijay

Former Member
0 Kudos

Hello Rani,

U can use the following sample code to call the report. U can modify the code as per ur req. however thesecond requirement of urs is not possible as the internal table is defeined only till the program executes and as soon as the control returns back to ur program the internal table is lost.

data: begin of selpr occurs 0.

include structure RSPARAMS.

data: end of selpr.

clear selpr.

refresh selpr.

*selpr-selname = 'KD_LIFNR'.

*selpr-kind = 'S'.

*selpr-sign = 'I'.

*selpr-option = 'EQ'.

*selpr-low = '10000151'.

*append selpr.

clear selpr.

selpr-selname = 'MATNR'.

selpr-kind = 'S'.

selpr-sign = 'I'.

selpr-option = 'EQ'.

selpr-low = '000000000000000967'.

append selpr.

clear selpr.

selpr-selname = 'WERKS'.

selpr-kind = 'S'.

selpr-sign = 'I'.

selpr-option = 'EQ'.

selpr-low = 'MZ01'.

submit RM07MLBD with selection-table selpr and return.

U will have to copy this porgram and play, however u need to be careful as it may server the purpose at this point in tie but during upgrade u may face problems.