‎2009 Aug 19 10:01 AM
Hello,
I want to write a programm that creates several CO closing jobs in background.
Normally the single transactions are called and filled manually, the jobs are created one by one as pre- and successor. This takes a lot of time and I want to write a program.
I am using the FMs JOB_CREATE, JOB_SUBMIT and JOB_CLOSE.
For the reports I want to use the RS_VARIANT_CONTENTS and the RS_VARIANT_CHANGE to set my parameters.
Unfortunately it seems that the reports behind the transaction codes cannot be used within the program as some of them have not the option to create a variant. I also get error messages regarding the program RSBRUNT and the routine %_INIT-MOVE that might not be implemented in the chosen report.
How can I find other reports that can be used for my purpose?
Or is there something else I am doing wrong?
Thank you for every answer & kind regards
Britta
‎2009 Aug 19 11:15 AM
Hi,
following Methods will help you in your problem
Method 1: in SE38
type your program name
choose Program -> Execute -> Background
Method 2: in SM36
Create a job with your program name
it will run in bg
Check this thread, it will surely help you.
https://forums.sdn.sap.com/click.jspa?searchID=5273985&messageID=3151612
-Thanks
Saurabh Goel
‎2009 Aug 19 1:16 PM
Hello,
thank you for your answer but this is not the problem.
If I try to run the program in background via SE38 there comes the message that it is not executable in background even though the transaction can be run in bg.
?
Transaction: CO43
Program: SAPLKAZB
Kind regards
Britta
‎2009 Aug 19 2:02 PM
CO43 doesnt point to a normal report but to to function group KAZB calling screen 1000. Thats why you cant run this in background. but you can call it with batch input. do a transaction recording from sm35, construct the batch input inside your program and then d call transaction with your batch input parameters.
‎2009 Aug 21 7:55 AM
Hello,
I found the reports that can be used. I searched for reports with the respective transaction code at the end (*CO43) and found the right onen that can be used.
Britta