04-26-2006 10:43 AM
i want to submit trans MB5B and move the data of table
BESTand (is this itab?) to my ITAB in my program
04-26-2006 10:49 AM
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
04-26-2006 10:55 AM
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
04-26-2006 11:37 AM
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.