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 and return regarding

Former Member
0 Likes
956

hi all,

i have the following pice of code in my z report i have to get the list from the standard t-code ca80 but when i execute the program im getting a error that i cannot submit some 'M' type but i can submit '1' type can anyone please help me on this.

SUBMIT 'sap******'

EXPORTING LIST TO MEMORY

WITH SELECTION-TABLE lt_rtparams

WITH dy_selm = 'D'

AND RETURN.

data: i_list type table of abaplist.

Use the function module to get the data from memory.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

LISTOBJECT = I_LIST.

thanks in advance

anupama

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
696

Hello

If the called report is a module pool you cannot call it using SUBMIT but you have call it via the corresponding transaction (CALL TRANSACTION).

Regards

Uwe

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
697

Hello

If the called report is a module pool you cannot call it using SUBMIT but you have call it via the corresponding transaction (CALL TRANSACTION).

Regards

Uwe

Read only

Former Member
0 Likes
696

Hi,

Type M

The most important technical attribute of a type M program is that it can only be controlled using screen flow logic. You must start them using a transaction code, whcih is linked to the program and one of its screens (initial screen). Another feature of these programs is that you must define your own screens in the Screen Painter (although the intial screen can be a selection screen).

When you start a program using a transaction code, the runtime environment starts a processor that calls the initial screen. This then calls a dialog module in the corresponding ABAP program.

The remainder of the program flow can take any form. For example, the dialog module can:

return control to the screen, after which, the processing passes to a subsequent screen.

Each screen has a following screen, set either statically or dynamically.

call other sequences of screens, selection screens or lists, from which further processing blocks in the ABAP program are started.

call other processing blocks itself, either internally or externally.

call other application programs using CALL TRANSACTION (type M program) or SUBMIT (type 1 program).

ABAP programs with type M contain the dialog modules belonging to the various screens. They are therefore known as module pools. It is appropriate to use module pools when you write dialog-oriented programs using a large number of screens whose flow logic largely determines the program flow.

Regards,

Bhaskar

Read only

0 Likes
696

hi bhaskar,

the information is relevent but do u have a solution for me that i have to get the material list from stadard t-code ca80 i have debugged the program and the whole material list is in tmapl internal table so if u can find me a solution thats ll be very helpful.

thanks in advance.

anupama