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

How can we execute the module pool program in background

Former Member
0 Likes
1,950

I need to process the dialog program in background. Normally for any executable report programs by default we will have that functionality. But i need the same functionality for my module pool program. User needs 2 execute buttons - one is for direct excute (foreground execute) and the other one is for back ground processing.

I tried with the 3 function modules job_open, job_submit & job_close. But i am keep on getting some issues and i am not sure how those will work because i wrote all the validations in direct exucte user command, now if user clicks on Background how that logic will be called and how it will be processed.

Can any one give your valuable suggestions.

regards

Jaya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,079

Well, online transactions are just that - online, not meant to be processed in the background. Depending on just what you need, you should be able to submit a report program in the background with similar logic.

Rob

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,079

You will need to wrap that module pool program using a BDC, and execute this BDC coding in a report program.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,080

Well, online transactions are just that - online, not meant to be processed in the background. Depending on just what you need, you should be able to submit a report program in the background with similar logic.

Rob

Read only

Former Member
0 Likes
1,079

Can you clarify why it needs to be in background at all - and why it needs to go through the module pool again? WHen does the user make the decision to use background. In terms of code re-use and validations, I would suggest you look to putting logic that you want common to both processes into function modules or class methods so that they can be invoked from either the module pool or a batch report program.

Jonathan

Read only

Former Member
0 Likes
1,079

Hi

Create a Transaction code for this Program.

Then implement the BDC Code to Process the SCreens with the Required input Values.

Schedule this BDC Session in Backgound using RSBDCSUB.

<b>Reward if usefull</b>

Read only

Former Member
0 Likes
1,079

solved my own