Starting background task in labview
Let me outline what I am looking to do. I'm not sure if a background task is the best descriptor, but it's the one I'm coming up with. it's tricky to explain, but here goes .....
When we start the program, we want to start the background task/alternate path/server (not sure which one best applies). I do not want the program to wait for the background task to complete. The program is then going to continue and do other processing.
The background task is going to do com port reads, filter them, and make the filtered results available to the original program.
Then when exiting the program the calling program would terminate the process. An alternate process would also be needed for handle aborted cases.
Any ideas?
Mike
Mike
Charles_CLA wrote:
As far as starting the process on another machine, I don't believe that is possible. You could make a small LabVIEW program that is design to run as a service and have it "listen" for a command to start the program. You could then transfer data via TCP, network shared variable, etc. Would it help for me to send you some code demonstrating asynchronous calls?
Hi Charles,
It USED TO BE POSSIBLE to use FTP to transfer VIs to remote machines then afterwards use VI Server to open (with complete file path) and run the VI on the remote machine.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Similar Messages
-
Cannot start JavaFX Task using Thread.start()
Well I am currently studying JavaFX and as a total beginner(but not in Java) I started reading the official tutorials in Java and I'm currently studying Concurrency in JavaFX. and I tried to create my first JavaFx Task Object and start it. This what I have tried so far
package concurrency;
import javafx.concurrent.Task;
public class JavaTaskClass {
* @param args
public static void main(String[] args) {
//create task object
Task<Integer> task = new Task<Integer>(){
@Override
protected Integer call() throws Exception{
System.out.println("Background task started...");
int iterations;
for(iterations = 0; iterations < 10000; iterations++){
if(isCancelled()){
break;
System.out.println("Iteration " + iterations);
Thread.sleep(3000);
return iterations;
//start the background task
Thread th = new Thread(task);
th.setDaemon(true);
System.out.println("Starting background task...");
th.start();
but the task doesn't start. I don't see any messages in my console. Is there something I missed?
Edited by: 979420 on Jan 1, 2013 10:02 PM
Edited by: 979420 on Jan 1, 2013 10:02 PM
Edited by: 979420 on Jan 1, 2013 10:03 PM
Edited by: 979420 on Jan 1, 2013 10:49 PMTasks are meant to be run in the context of a JavaFX application, like in the example below:
import javafx.application.Application;
import javafx.concurrent.Task;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import java.io.IOException;
public class TaskApp extends Application {
public static void main(String[] args) { launch(args); }
@Override public void start(final Stage stage) throws IOException {
//create task object
Task<Integer> task = new Task<Integer>(){
@Override
protected Integer call() throws Exception{
System.out.println("Background task started...");
int iterations;
for(iterations = 0; iterations < 10000; iterations++){
if(isCancelled()){
break;
System.out.println("Iteration " + iterations);
Thread.sleep(3000);
return iterations;
//start the background task
Thread th = new Thread(task);
th.setDaemon(true);
System.out.println("Starting background task...");
th.start();
stage.setScene(new Scene(new StackPane(), 200, 100, Color.BLANCHEDALMOND));
stage.show();
}Also your code was setting the task thread as a daemon thread. The Java Virtual Machine exits when the only threads running are all daemon threads. So once your main routine finished (which would be really quickly), the program would just exit without doing anything much. Note that, in your example, even if you made the Task thread a non-daemon thread, it still doesn't work (likely because the Task class has some reliance on the JavaFX system being initialized). For your simple background process you could skip Task and just use a Runnable or a Callable (which doesn't require JavaFX and hence would work in a non-daemon thread invoked from main), but I guess it's just an experiment. -
COMMUNICATION_FAILURE in CALL FUNCTION STARTING NEW TASK/Background task
Hi friends,
I am trying to use a FM in a Print Program (when user prints a document), using
CALL FUNCTION STARTING NEW TASK 'TASK' DESTINATION 'NONE'.
The program is triggered from VL02N tcode.
But it's giving an exception - COMMUNICATION_FAILURE. Message is Error when opening an RFC connection
I also tried
CALL FUNCTION IN BACKGROUND TASK as Separate Unit
then error message pops up - Database error when recording transactional RFC
We are attaching a PDF file of the print to content server within this function module and because the "attaching" takes a while, this part needs to be detached from the print program so that we can avoid performance issue.
I can't figure out the issue. i gues this is happening because print program is already running in Update task. I also tried with RFC enabled FM. Please help me resolve/understand the issue.
Appreciate your help.
Regards,
Ronjan.Hi Ronjan,
COMMUNICATION_FAILURE. Message is Error when opening an RFC connection
I guess the reason for the above is that every RFC call synchronous/Asynchronous issues a DB COMMIT and we cannot have DB COMMITs in the V1/V2 updates, please go through the link below.
http://help.sap.com/saphelp_nw70ehp2/helpdata/en/23/e9aa61638e404d81575e939b5cd847/frameset.htm
Now, the possible solutions i can think of are,
1) Call the FM in update task delayed start and try.
2) Or create a report program and use SUBMIT (look at the job options as well).
@Mainak
3. Write a statement COMMIT WORK AND WAIT. This will actually invoke the FM
Mainak, this will lead to a Update termination, as the program is running in an update task.
Regards,
Chen -
Starting new task with background
If I execute my program in background and my program is have a CALL FUNCTION func STARTING NEW TASK task
My question is a new task using dialog word process and background work process ?
Thank.SAP says
RFC calls with CALL FUNCTION are processed in work processes of type DIALOG
So for calling it in different work process you need to use addtions
CALL FUNCTION ... IN BACKGROUND TASK
IN UPDATE TASK.
Regards
Marcin -
so i could delete what i didn't want, how do you re start them in background tasks?
First, I'd recommend you contact iAd support as they may be able to help resolve some of your issues.
Regarding Blueprints vs. custom, you could start with a Blueprint, fill in every part you care about, ensure there are no validation errors reported by iAd Producer (Inspector sidebar), File > Convert to Normal Project, then delete any unused pages and banners.
While I haven't used Workbench, in looking at the available ad types documented in the help (http://help.apple.com/iadworkbench/mac/2.0/#slvbb8575343), why not use the "Banner ad that plays a video with iTunes Store or App Store call to action" or "Banner ad that goes to iTunes Store or App Store product page"? -
What is the use of CALL FUNCTION MODULE - AT BACKGROUND TASK?
Hi experts,
I found Call functional module in background task will make the FM run at the next commit work as some people said. So I have some questions:
1 if we use COMMIT WORK commend, the pending FM will be called? If there are several FMs called at background task, what is the sequence of them? How many conditions will trigger the running of these FMs?
2 Where can I find the log of this pending FMs? In SAP library, it says there are 2 tables. But I checked these tables and can only find the FM name and user of it. And I can not understand content of these tables. It seems one is for the main information of FM, and the other is for the data of the FM, maybe the parameters.
3 If I call a FM in this way, Can I canncel it before the next commit work in some way?
Finally, thanks for reading and help.HI,
When the COMMIT WORK statement is executed, the function modules registered for the current SAP-LUW are started in the order in which they were registered. ROLLBACK WORK deletes all previous registrations for the current SAP-LUW.
If the specified destination is not available when COMMIT WORK is executed, an executable program called RSARFCSE is started in background processing. By default, this tries to start the function modules registered for a SAP-LUW in their destination every 15 minutes and up to 30 times. These parameters can be changed in the transaction SM59. If the destination does not become available within the defined time, it is recorded in the database table ARFCSDATA as the entry "CPICERR". The entry in the database table ARFCSSTATE is deleted after a standard period of eight days -
Windows 8.1 background task Javascript - Call angular controller function from task js
Hi,
The Ionic Side menu starter template for windows 8.1 is a very good option to run the ionic apps on Windows 8.1 phones.
I am not sure whether this is related to Ionic/angular or VS2013 CTP 3.1 but if anyone can give some tips ,that would be great. I registered a background task as per the VS tutorial (Run JS task in background) and i tested it with windows toast notifications.However
my requirement is to access webservice in background which I am not able to implement.
The setup for background task is path to the js file but my requirement is to call a function defined within a controller.Is there any way i can access the controller function from an outside js file.I am new to Ionic,Angular and VS 2013.Any help would be great
The structure of background task js file is as below
(function() {
--- I need to call my controller/service function here---
var notifications = Windows.UI.Notifications;
var template = notifications.ToastTemplateType.toastImageAndText01;
var toastXml = notifications.ToastNotificationManager.getTemplateContent(template);
var toast = new notifications.ToastNotification(toastXml);
var toastTextElements = toastXml.getElementsByTagName("text");
toastTextElements[0].appendChild(toastXml.createTextNode("From Background!"));
var toastNotifier = notifications.ToastNotificationManager.createToastNotifier();
toastNotifier.show(toast);
close();
Are there any updates on this issue? I'm currently seeing this on a Lumia 822 with WP8.1, and the app has never been published to the store. I've only ever deployed the app from Visual Studio to my device. It worked when deploying the Debug build, then I
tried a Release build, and it crashed immediately upon launch when trying to register the background task, but then I was able to go back to deploying/debugging the Debug build on the device for awhile. I made more changes, and now neither Debug nor Release
builds work--both fail on the BackgroundTaskBuilder.Register() call with the error described in the original question:
"The drive cannot locate a specific area or track on the disk. (Exception from HRESULT: 0x80070019)"
I've tried changing the Task name during registration, rev-ing the version number of the application, adding the call to BackgroundExecutionManager.RemoveAccess() before BackgroundExecutionManager.RequestAccessAsync(), changing the name of the IBackgroundTask
concrete implementation and changing the corresponding EntryPoint in the package.appxmanifest (as well as in the BackgroundTaskBuilder instance), and changing the package DisplayName to a new reserved name, all to no avail. The only thing I didn't try
was associating with an entirely new app in the app store or paving my phone, as these are both fairly undesirable "workarounds."
Even if this won't affect clients downloading the app from the store, this is a major roadblock during development, as we can essentially only use the emulator to test an app specifically designed to help solve problems involving moving around physically
in the real world.
Any more information would be greatly appreciated. If there's any information I can provide, please let me know. -
We explored using sbRIO for our project, for different reasons we ended up going with a different embedded solution . We are currently evaluating the LabVIEW C Generator to convert some of the core analysis routines from LabVIEW to C so the team that will be creating the embedded solution don't have to re-implement them from scratch.
Before converting our code, I followed the instructions given in the "Getting Started with the NI LabVIEW C Generator" manual to create a static library created inCygwin using GNU Compiler Collection (GCC).
I managed to compile the code, but when I type "run GCD.exe" in the Cygwin console, I just see the window flash with no time to see if the result is correct or not. I modified the main.c cde to add a getchar(), but the window still just flashes and now I am left with the GCD process still running and have to kill it using Windows Task Manager.
Has anyone else got this example to run? I am sure I am missing an obvious setting or step, please help me.
More details below.
Thanks,
Fab
Here is a video showing the steps I followed
If you don't want/can't see the video. Here are some screenshots of what I have done so far:
GratestCommonDivisor.lvproj C Generation build specs Information:
C Function prototype definition:
I copied Makefile located at: C:\Program Files (x86)\National Instruments\LabVIEW 2011\examples\CGenerator\Tutorial\Cygwin
and replaced both Makefile and Makefile.cygwin in the directory where the C code was generated
I also copied main.c from the same location and replaced the one generated
Here is the snapshot of the results after executing "make GCD.exe"
Then to run it I just type
I see a window open and close really quickly and I never see the result. I have tried adding the getchar() line to the main.c file, but still I don't get to see the results.
Certified LabVIEW Architect * Certified Professional Instructor * LabVIEW ChampionHi Kevin,
I hope you had a good Thanksgiving. I am attaching a zip file with the LabVIEW project, my build specification and my version of "Greatest Common Divisor.vi", which should be the same as the one that you have that ships with the LabVIEW C Generator, but just in case. I am also attaching a zip file with the C files generated by the LabVIEW C Generator.
You can also see the video I posted earlier with the steps I followed. I hope you are able to point out where I went wrong.
Thanks,
Fab
Certified LabVIEW Architect * Certified Professional Instructor * LabVIEW Champion
Attachments:
GreatestCommonDivisor.zip 8 KB
CGen Files.zip 71 KB -
'Missing parameter with PERFORM' error with a function IN BACKGROUND TASK
I am getting this error when calling a custom function in MIGO user exit ZXMBCU01. When I remove the 'IN BACKGROUND TASK' the function works fine and there are no error messages. When using 'IN BACK...' you can't debug within it to see where the message comes from. I see the message with SM58. I am working in an sap 4.7 environment. I have not found any solutions from google searches.
Here is the statement within ZXMBCU01:
CALL FUNCTION 'Z_UPDATE_MATERIAL_AVAIL_STATUS' IN BACKGROUND TASK
EXPORTING
work_order = xmseg-aufnr.
Here is the code for the function:
FUNCTION Z_UPDATE_MATERIAL_AVAIL_STATUS.
""Update function module:
""Local interface:
*" IMPORTING
*" VALUE(WORK_ORDER) LIKE AUFK-AUFNR DEFAULT '0000000000'
TABLES: eban, resb, aufk.
-Global Types----
TYPES: BEGIN OF t_data,
rsnum TYPE resb-rsnum,
rspos TYPE resb-rspos,
aufnr TYPE resb-aufnr, "Order Number
bdmng TYPE resb-bdmng, "Requirement Quantity
enmng TYPE resb-enmng, "Quantity withdrawn
bsmng TYPE eban-bsmng, "Quantity ordered against this purchase requisition
END OF t_data.
DATA: gt_data TYPE t_data OCCURS 0,
ga_data TYPE t_data.
-Global Variables----
DATA: gv_refused TYPE BAPIFLAG-BAPIFLAG,
gs_caufvd TYPE caufvd,
g_text TYPE t100-text,
gv_objnr LIKE aufk-objnr,
gv_status LIKE bsvx-sttxt,
gv_trig_stat TYPE c.
TABLES RETURNED FROM BAPI
DATA: BEGIN OF xreturn OCCURS 0.
INCLUDE STRUCTURE bapiret2.
DATA: END OF xreturn.
SELECT SINGLE objnr FROM aufk
INTO gv_objnr
WHERE aufnr = work_order.
CALL FUNCTION 'STATUS_TEXT_EDIT'
EXPORTING
flg_user_stat = 'X'
objnr = gv_objnr
only_active = 'X'
spras = sy-langu
IMPORTING
line = gv_status.
IF ( gv_status CS 'REL' ) AND
( gv_status NS 'NMAT' AND gv_status NS 'CNF' AND gv_status NS 'CLSD' AND
gv_status NS 'TECO' AND gv_status NS 'DLFL' ).
SELECT SINGLE *
FROM AUFK
WHERE aufnr = work_order AND
( auart = 'PM01' OR
auart = 'PM02' OR
auart = 'PM03' OR
auart = 'PM99' ).
IF sy-subrc = 0.
SELECT resbrsnum resbrspos resbaufnr resbbdmng resbenmng ebanbsmng
INTO CORRESPONDING FIELDS OF ga_data
FROM resb LEFT JOIN eban
ON resbrsnum = ebanarsnr AND
resbrspos = ebanarsps
WHERE resb~aufnr = work_order AND
resb~bdmng > 0.
SELECT rsnum rspos aufnr bdmng enmng
INTO CORRESPONDING FIELDS OF ga_data
FROM resb
WHERE aufnr = work_order
AND bdmng > 0.
SELECT SINGLE bsmng
INTO ga_data-bsmng
FROM eban
WHERE arsnr = ga_data-rsnum
AND arsps = ga_data-rspos.
IF sy-subrc <> 0.
CLEAR ga_data-bsmng.
ENDIF.
IF ga_data-bdmng = ga_data-enmng OR
ga_data-bdmng = ga_data-bsmng.
"update status - but all items must pass
ELSE.
gv_trig_stat = 'N'.
EXIT. "status won't change so get out now
ENDIF.
ENDSELECT.
IF ga_data~bdmng > 0.
IF ga_data-bdmng = ga_data-enmng OR
ga_data-bdmng = ga_data-bsmng.
IF gv_trig_stat <> 'N'.
CALL FUNCTION 'CO_IH_USERSTATUS_SET'
EXPORTING
I_AUFNR = ga_data-aufnr "'000005000263'
I_USR_STAT_INT = 'E0002'
I_USR_STAT_EXT =
I_SET_INACTIVE =
I_BUF_READ =
I_SPRAS = sy-langu
IMPORTING
E_CHNG_REFUSED = gv_refused
E_CAUFVD = gs_caufvd
TABLES
RETURN = xreturn.
LOOP AT xreturn
WHERE type = 'E'.
ENDLOOP.
IF sy-subrc <> 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
RETURN.
ELSE.
READ TABLE xreturn INDEX 1.
CALL FUNCTION 'PI_BP_GET_MESSAGE_TEXT'
EXPORTING
iv_message_id = xreturn-id
iv_message_type = xreturn-type
iv_message_number = xreturn-number
iv_message_v1 = xreturn-message_v1
iv_message_v2 = xreturn-message_v2
iv_message_v3 = xreturn-message_v3
iv_message_v4 = xreturn-message_v4
IMPORTING
ev_message_text = g_text.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDSELECT.
ENDIF.
ENDIF.
ENDFUNCTION.
Does anyone have any ideas? Thank you very much in advance.
Glenn Allen
Software Architect (specializing in SAP)I'd be starting a process of elimination... perhaps start with an "exit." right after
SELECT SINGLE objnr
FROM aufk
INTO gv_objnr
WHERE aufnr = work_order.
exit. "leave FM NOW
and if that doesn't crash, work down the code down the code in the function e.g. comment out the BAPI_commit call... and / or build a little test harness report to call the Z function in background task... btw, does the ST22 dump point to anything more specific...? -
Background Task on Adobe Photoshop Elements and Adobe Premiere Elements Organizer "hangs"
I recently upgraded my software from Elements 10 to Elements 12 and had a bit of trouble. Apparently both 10 and 12 have a way of launching an executable in the background which tends to get "stuck" on my system. I believe the problem may be related to the network configuration and software mix I live with, but I need to confirm my suspecions and find a way to control the problem. Here is what I know... I have always experienced a lot of problems using Elements with my NAS device which is a 1TB usb 2.0 connected disk system attached to my Linksys E3000 Router. When I got the router, the BIOS software did not correctly support NTFS file systems, but subsequent updates eventually made this possible if you formatted the removable drive on a system in NTFS, you could then hang it on the router and "see" the contents, serve them via Windows Media Player, or iTunes, etc., etc. from a computer atteched to the network, or via wirless directly off the router. I archived all my photos out on this file system and have successfully indexed it for use with Adobe Photoshop Elements and Adobe Premiere Elements Organizer, but... When I went to install Elements 12 software I tried to install it without first removing Elements 10, and on a system which had run Elements 10 since the last full reoboot. During the install of 12 under "shared services install" the installation process "Hung" on a background task with a name like "AdobeElementsAnalyzer.exe" which only shows up in Windows 7 task manager as a running process, not as a full program, but because the file was locked by the system, the install hung. I eventually figured out that I needed to start the install of Elements 12 software immediately after having rebooted so that this program was not present in the background, and succeeded in completing an install of Elements 12 on my Windows 7 X64 system. This system required a "special" software download for Premiere Elements, but not for Photoshop Elements which is only apparently avaliable under 32bit emulation mode. I finally got the "shared components" portion of the X64 Premiere Elements to complete an install, and then set about verifying the onversion/upgrade of the indexes to my photos and video stored out on the NAS. The same rogue task which prevented me from doing the install showed up agian, taking all the system resources away from my dual processor Intel chip and refusing to let go. I was forced to terminate it from the task manager. I strongly suspect that my "issues" are in part due to the extrordinary network latency imposed by the drive connection I'm using to index my photos and videos, and I'm looking for a better approach to using the editors against my master catalog of files, as well as figruing out just what I need to do to insure that all the files I have stored on the drive are accessible by the organizer when I need to pull a copy to work on.
A complication is that I have two "legacy" Windows XP systems on my network, a reasonably fast Windows Vista Business desktop, and the Windows 7 X64 processor system which is the most powerful system I have. The Windows file security enhancements to NTFS changed from XP, to Vista, to Windows 7, so files which get saved to the NAS disk inherit a variety of different levels of security under windows. I have occasionally gone to one of my old XP boxes and "wiped" the security settings by resetting everything via Windows XP. Because the NAS is so slow, this process can take several hours and must not be interrupted by attempts to do anything affecting the NAS by any of my other networked computers. To avoid problems with my photo archive, it makes sense to me to do all my editing on copies which have been extracted from the NAS archive and stored on the C: drive (boot drive) of my Win X64 system.
What I seriously need to know is this: When/If I define a "watched" portion of my file system, rather than taking the time to manually import every little change to my photo archives, can I expect the Photoshop Elements Organizer to work properly as long as everything stored on the NAS is stored via the same system which runs Elements with the same active "user" in control so that all the windows 7 file security settings putting stuff on the mapped NAS drive remain properly secured under Win 7 X64? Frankly I don't care if the files appear "read only" to every other system and identity on my network, but I do need to be able to "see" them. I have been able to view slide shows and movies stored on the NAS via both my networked iPad, my Apple TV, and using Samsung's funky android and Windows compatible software. Frankly, I doubt that Microsoft or Apple has full understanding and control of the environment where there is no host "server" other than the eprom based stuff my Linksys E3000 loads to emulate early Windows Media Management architecture, but I mange to get it to work as long as I don't try anything sophisticated with the file permissions. As a fall back, can I expect individual "imported" bits out on the NAS to remain stable if indexed and used only by the Elements Organizer running on my Win 7 X64 system?
I am seriously considering converting an old WinXP desktop into a UNIX box which could be configured as a "Server" for everything stored on the NAS and be done with my problems in return for the power required to run the server all the time so stuff is there when I need it. Any recommendations?
Message was edited by: [email protected]Adobe hasn't said whether it officially supports PSE 7 on Windows 7. But reports are starting to trickle in that PSE 7 works fine on Windows 7 for most people, though a couple people have reported crashes. My PSE 7 seems to work fine, though I primarily use PSE 8 now. This is all very preliminary, and we'll learn more as more people post here.
-
Problem in Call function .. starting new task
Hi,
I want to execute a dialog program in background. I am trying to use call function starting new task.
I am facing some syntax issue. Can any one guide me how to use call function starting new task. The function module is RFC FM. Do we need to define task some where before use please guide.
Thanks in advance. A sample program will be gr8.Hi,
Incase you want to call a RFC FM in background you can call ity like this.
call function 'Y_L_TO_CREATE_HUPAST' in background task
exporting
venum = y_v_venum
backg = 'X'
buser = y_lv_uname
langu = sy-langu
objky = y_lv_objky
printer = y_lv_printer.
Here Y_L_TO_CREATE_HUPAST is a RFC FM.
Regards,
Ankur Parab -
Loading a Previously Saved Task into LabView
I have created a digital generation task in LabView and saved it using DAQmx Save Task.vi. I am able to open and run my task in Measurement and Automation Explorer. Now I am wondering if it is possible to load this task back into LabView and run it in a new program. Can I do this with the task saved from DAQmx Save Task.vi or would I need to go about it differently? Where would I start loading the task in terms of vi's?
Thank you for your help.I am actually not asking the same question as before. Previously, I was having problems using a LabView-created task in MAX. Now I am attempting to create a task in LabView and bring it back into LabView on a separate VI. I have found the answer, though.
https://decibel.ni.com/content/docs/DOC-15842
Thank you for your help. -
How do i pass a daqmx task from labview to matlab using the math interface toolkit?
I want to use DAQMX functions from Matlab using the Math Interface Toolkit (MIT). How can I have a labview function output (return) the DAQMX task to matlab via the MIT?
I want to do this so I can start a DAQMX task in Labview from a matlab function and return control to matlab without losing the task.Hi Mark,
(I already posted this answer in your other thread, but let's keep THIS thread alive - it makes more sense here in the LabVIEW forum than in Instrument Control forum.)
Since the DAQmx Task is not a native data type that can be passed directly to MATLAB from LAbVIEW, try flattening the DAQmx Task to a string before passing to MATLAB. However, I doubt that you can access the task from within MATLAB, but feel free to give it a try.
Good luck!
- Philip Courtois, Thinkbot Solutions -
BackGround Task to execute report is 'IN PROCESS'
Hello Experts,
I have developd a workflow where i have added a task which will execute a report in background as code below -
SUBMIT rhakti00
USING SELECTION-SCREEN 1000
WITH SELECTION-TABLE rspar
AND RETURN.
The output of the report is not relevant for my req so i dnt need to display the output of report after thts y i want to run this report in background.
Now,while executing the task ,the report has started executing in background perfectly but tht task remain in 'IN PROCESS' status. When i checked the tRFC for that task so its showing me mesaage that - "Screen output without connection to user."
Plz suggest how to complete my background task.
Regards
Nitinthnks for the reply Kiran,
regarding ur point to send report output to many users....i want to make it clear tht i dont need to send or display the output of the report. I just need to execute the report in background and task shud get complete.
Also,Can u plz explain it further abt writing code in FM and thn get the output in export or table parameter.......i mean which field or which table of which type shud i use in export or table paramenters of FM. if u can tell me somethg in coding also..tht will ne helpful...
Regards
Nitin -
Function called IN BACKGROUND TASK goes to work process DIA, not BGD
I'm calling a function IN BACKGROUND TASK
In SM50, I see it running in a DIA work process.
I want it to run in a BGD work process.
Can this be done? If so, how? If not, why not?Hi...
It looks like, it will always run in DIA process and not Background process...I am not sure that we can change the work process
Check the below link..
http://help.sap.com/saphelp_40b/helpdata/pt/69/c24f864ba111d189750000e8322d00/content.htm
What is written in the link is...
"Background updates (CALL FUNCTION IN BACKGROUND TASK) represent a variant of remote function call that is synchronous with the end of a transaction (COMMIT WORK). In background updating, an update is run in another dialog work process that may be in the same or in another application server and R/3 System. Because such updates run in their own LUWs, they may start only after all critical updates have been completed. Otherwise, it would not be possible to roll back background changes in the event of an error in another update component. "
IF you get the answer of whether we can change the work process then please let us know...
Maybe you are looking for
-
R12: How to consolidate installment invoices in AR
Hello, We currently have a dilemma where we offer 12 month installment terms on invoices for some customers. These customers have multiple orders each month, some may be the 12 installment terms and some invoices may be net30. This can get confusin
-
Number that does not want to be formatted
Hello, I have a problem. If someone can help me, please. JDeveloper 10.1.3 I have a column defined via DB-function in VO: BTW_BEDR_REG_HOOG I need to put it on my page with the format "#,## 0.00" select IFR.ID , DMR_IFL_200.myfunction (IFR.ID) BTW_BE
-
Cannot switch back to built-in output after connecting USB mic
I cannot get playback unless I plug back in my USB mic (Blue Yeti) on Mac OS X. I get this notice: "The selected audio device has no output channels." I select Default Output to be "built in output" then go to Audio Channel Mapping tab and my output
-
Some questions on interrupts, threads etc
Havng gone through some documentation on interrupt, kernel level threads etc in WDF, I got a couple of questions: 1) Can a hardware interrupt be preempted by another interrupt in a single processor system? 2) What exactly is the difference between
-
Hi expert, i am new i want to know how to start business object
Hi all, I am working in sap b1. i want to use business object for my client. how to use and code in that if any one give ans very appreciate. how use excel in that. how to connect database with map and how to use selectors. how to use chart and conne