‎2008 May 11 3:08 PM
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
‎2008 May 11 7:55 PM
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
‎2008 May 11 7:55 PM
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
‎2008 May 12 8:32 AM
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
‎2008 May 12 9:31 AM
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