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 to submit a function -pool in backgound

Former Member
0 Likes
1,561

Hi Experts,

Is there any function module or method availble to submit a function -pool in backgound? I have created a transaction to execute function-pool. In my requirement, though a report porgram the function-pool should be submitted as a background job and function-pool screen fields will be populated from the report program selection screen data. Either I have used Job_Open, Job_Submit function module to submit an executable report program in background. But that will not work for function -pool.

Please guide.

Thanks in advance.

Hi Experts,

Is there any function module or method availble to submit a function -pool in backgound? I have created a transaction to execute function-pool. In my requirement, though a report porgram the function-pool should be submitted as a background job and function-pool screen fields will be populated from the report program selection screen data. Either I have used Job_Open, Job_Submit function module to submit an executable report program in background. But that will not work for function -pool.

Please guide.

Thanks in advance.

7 REPLIES 7
Read only

Former Member
0 Likes
1,397

Hi Soma,

just to come on the same track...a function pool itself is not executable, only function modules or programs.

There are two options:

Call function <function> in background task / Unit

or

Open Job

   submit <report>

close job

Kind regards

Robert

Read only

0 Likes
1,397

Hi Robert,

To direct execute of Function pool I have created a transaction Code and I can execute it directly in forground or background.

But in my requirement , there is another report program which will process and pass data to function pool based on report program selection screen input and also submit the function pool for background execution as a job and generate spool later.

Is there any way to submit transaction code in background?

Regards,

Soma

Read only

0 Likes
1,397

Hi Soma,

of course..

CALL TRANSACTION <TA> USING bdctab OPTIONS FROM opt.

Fill the necesary bdc data in bdctab and set the processing mode in the options structre...

KR

Robert

Read only

0 Likes
1,397

Hi soma,

You may try this.

lv_opt-dismode = N.

CALL TRANSACTION lc_tcode USING i_bdcdata 

                   OPTIONS FROM lv_opt

                   MESSAGES INTO i_messtab.

Here the lv_opt-dismode = N will call your Tcode in background mode.

Hope this will help more.

Regards,

Amit

Read only

0 Likes
1,397

Hi Robert/Amit,

Function pool will process a huge amount of data , it will not work in foregound. That is reason we need to submit it it as a background job.

Call Transaction with mode N works in foreground mode only(Dialog Work Process). Call Transaction works in forground and N mode indicates No Display(No screen will be displayed with OkCode).

In my requirement I need to submit it in Backgound Work process.

Background Mode(Dialog Work Process) and Background Job(Backgound Work process) are two different things.

Regards,

Soma

Read only

0 Likes
1,397

Hi Soma,

Ok, than encapsulate the CALL Transaction within a report and start the report with open job and submit.

KR

Robert

Read only

0 Likes
1,397

Hi Soma,

Instead of Calling your TCode Directly,

Can we try writing a DBC on your T Code and then populate the screen fields with your data and then do the call transaction or session method .

Regards,

Amit