‎2009 Jul 23 5:20 PM
I am trying to use SUBMIT stament for transaction MD03.
SUBMIT SAPMM61X USING SELECTION-SETS OF PROGRAM '200'
WITH matnr = matnr
WITH werks = werks
WITH versl = versl
WITH baner = baner
WITH lifkz = lifkz
WITH diser = diser
WITH plmod = plmod
WITH trmpl = trmpl
WITH dispd = dispd
WITH ANZDL = ANZDL
EXPORTING LIST TO MEMORY
AND RETURN.
But getting RUNTIME error
Error analysis
You attempted to start the ABAP/4 program "SAPMM61X" with SUBMIT, but the
attributes specify this program as type "M" instead of "1". You can
only start programs of type 1 with SUBMIT.
I want to run MD03 thru a wrapper program and get back the values.
Thanks,
AP
Edited by: Julius Bussche on Jul 23, 2009 9:35 PM
Subject title improved...
‎2009 Jul 23 5:34 PM
Hi,
Program SAPMM61X is a module pool (i.e. it's made up of screens) so can't be called using SUBMIT. To run MD03 you will need to use the ABAP command CALL TRANSACTION.
Regards,
Nick
‎2009 Jul 23 5:36 PM
Hi,
You cannot use the SUBMIT statement on Module Pool Program. SAPMM61X is dailog program you can check from the attributes.
You can check the CALL DIALOG statement instead of SUBMIT.
Or you can go ahead with CALL TRANSACTION
‎2009 Jul 23 5:56 PM
I have to do same for Tcode MD03 and it displayes multiple values in the t-code output. How can I capture all those values using call transaction.
Thanks,
AP
‎2009 Jul 23 7:05 PM
MD03 is working fine with call trasaction as we work with one item and one layer. Only one matarial i can capture that.
But for MD03 we have single-tem and multiple layer. After the tranaction is excute there is Button on the output screen When clicked on it, it displays list of materials (layer). I need to capture the list how do i caapture it in a internal table.
Thanks
AP
‎2009 Jul 23 7:46 PM
Thers is correction to what I posted above
MD03 is working fine with call trasaction as we work with one item and one layer. Only one matarial i can capture that.
But for MD02 we have single-tem and multiple layer. After the tranaction is excute there is Button on the output screen When clicked on it, it displays list of materials (layer). I need to capture the list how do i caapture it in a internal table.
‎2009 Jul 23 8:19 PM
You must "reverse engineer" the program to know how it fills the lines (You may use SQL trace = ST05 to know which tables are accessed, then try to find in which tables are the data). Then you reproduce the same algorithm to determine which data should appear at what line in screen. I don't know another method.
‎2009 Jul 23 8:35 PM