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

Find reports for background processing via program

britta_heimann
Participant
0 Likes
723

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

4 REPLIES 4
Read only

Former Member
0 Likes
652

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

Read only

0 Likes
652

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

Read only

0 Likes
652

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.

Read only

britta_heimann
Participant
0 Likes
652

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