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 statement for MD03 not working (module pool)

Former Member
0 Likes
1,556

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,188

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

Read only

Former Member
0 Likes
1,188

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

Read only

0 Likes
1,188

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

Read only

0 Likes
1,188

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

Read only

0 Likes
1,188

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.

Read only

0 Likes
1,188

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.

Read only

Former Member
0 Likes
1,188

Is there no BAPI for this?