2012 Dec 27 8:59 AM
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.
2012 Dec 27 11:56 AM
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
2012 Dec 27 12:09 PM
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
2012 Dec 27 1:13 PM
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
2012 Dec 27 1:27 PM
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
2012 Dec 28 4:22 AM
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
2012 Dec 28 8:06 AM
Hi Soma,
Ok, than encapsulate the CALL Transaction within a report and start the report with open job and submit.
KR
Robert
2012 Dec 28 9:04 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |