Dialog Programs

Question:
We need to be able to run CM01 Transaction in background and output the list to a text file instead of showing on the screen.
The approach we took was made copies of CM01,CM0X, SAPMC65A etc and linked them appropriately. But when trying to execute it we are getting Authorization issues. We also tried using BDC but there is no DYNPRO associated with the screens
Is there a different approach to do it???
Answer:
Have you tried submitting program SAPMC65A from another report and exporting the list to memory ? (Check F1 on Submit for this).
You need to submit the program as in this example /forums/viewtopic.php?t=23650
not forgetting the 'AND RETURN' clause.
You then use fountion module 'LIST_FROM_MEMORY' to get the generated report into an itab, 'LIST_TO_ASCI' then turns the list into plain ASCII format.
You can then do what you want with it, including saving the itab to disc using 'GUI_DOWNLOAD', or OPEN DATASET.
_________________
Regards
R
Abap KC

SFMDR

Answer:
maybe you can't submit the modul pool behing CM01 directly because there is no selection-screen where you can export values.
Try to find another Transaction that usually does the same and runs in background like the CM25 and CM40.
an other way is to analyse the modul pool behind CM01 to find, witch report is called using FCODE BATS.
There you find that CM01 fills an index table with selection values and opens a job to call SAPCRP01 ... and so on.
hope this helps a little,
regards
Hans
_________________
hans

More Articles:

How to create a database table?
GENERATE VIEW MAINTENANCE?
Tranaport of customer translations of reports?
SAP Inbox managing?
Error in Smartforms?
SELECT-OPTION - How to validate data?