Before calling an external program, check if the program is allready open
I need to call an external program to print some labels, so i will use function WS_EXECUTE or the new one DSVAS_DOC_WS_EXECUTE_50 to call my program, but the problem that i have is:
when I call this function, the program open a small window, and if i have to call it again, it will open another window, and so on... obviously this is not a good solution.
Is there any one how knows how can i close the program, of perhaps it is enough if there is some way to know if the program is already open.
Many thanks in advance,
Miriam
Hi
you can use the ABAP Coverage Analyzer.
OR
This is a function module we use to limit the execution of a program to one instance at a time.
DATA: PRG LIKE INDX-SRTFD. PRG = SY-CPROG.
CALL FUNCTION 'ENQUEUE_ESINDX'
EXPORTING RELID = 'ZZ'
SRTFD = PRG
SRTF2 = 0
EXCEPTIONS FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2.
IF SY-SUBRC NE 0.
FORMAT COLOR COL_NEGATIVE INVERSE ON.
WRITE: / 'ERROR: Program Is Already Running'.
WRITE: / 'Program', PRG, 'has been stopped. Rerun in 1 minute.'.
STOP.
ELSE.
WRITE: / 'OK ',PRG.
ENDIF.
Regards,
Raj
Similar Messages
-
Calling a transaction code in between the program and use the output
Hi frnds,
i want to call a transaction code in between the program and pass the input .After getting the output, use that output in the programHi Navin,
Why don't you sit with ABAPer he can explain better.
Regards,
HAri. -
How to check in the program that whether it is running in background?
Hi,
Can i check in the program itself that whether it is executing in the foreground mode or background mode?Check the value of system variable sy-batch. if value of it is 'X' that means program is running in background and if value is ' '(blank) that means prog. is executing in foreground mode.
Regards,
Joy. -
I have received several emails and when I check them the program quits?
I have received several emails and when I check them the program quits?
There must be corruption on them.
If you can't get rid of them any other way, delete the email account and recreate it. -
Hi. I recently got a new computer and transferred all my files across using TimeMachine. Whenever I try to sign into any CC program (including CC) the program instantly shuts down and an Apple error message comes up. I have uninstalled and reinstalled CC twice with no avail and deleted every Adobe product on my computer and nothing is working.
I have seen similar discussions before... transferring does not work, you must install
Discussions of RE-installing
-http://forums.adobe.com/thread/1408331?tstart=0
-http://forums.adobe.com/thread/1398961?tstart=0
-and http://helpx.adobe.com/creative-cloud/help/install-apps.html
-using the cleaner after uninstalling and before reinstalling will usually help
-http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html -
I am trying to install Adobe premiere elements 8 on my new computer (Windows 7). The program ansvers with "the program is not installed or can be damaged". Then aborts the installation.
It`s right, the program is not istalld, it is what i`m trying to do. And there is no problem whit the DVD. Any suggestions?"Error 1303: Installer has insufficient privileges" or "Error 1304: Error writing to file" | Install | CS3, CS4, CS5 pro…
this link FIXED MY PROBLEM! i did the steps to the programdata\adobe folder and it installed FINE! -
Is there any indicator to check if the PURCHASE OEDER is OPEN?
Hello,
Is there any indicator to check if the PURCHASE OEDER is OPEN?
if not how do we find out if the PO is open?
Regards
AshishHello,
Undeleted (EKPO-LOEKZ = space) and Delivery completion Indicator not set (EKPO-ELIKZ = space).
Thanks,
Venu -
I'm running IE 9 & windows 7. I'm unable to download iTunes. I receive this error each time: There is a problem with this windows installer package. A program required for the program to complete could not be found. Contact your support personnel or package vendor.
There is a problem with this windows installer package. A program required for the program to complete could not be found. Contact your support personnel or package vendor.
Let's try the following user tip with that one:
"There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows -
"ORA-28578: protocol error..." before calling an external procedure
Hello,
Oracle reports this error
Error report:
SQL Error: ORA-29856: error occurred in the execution of ODCIINDEXCREATE routine
ORA-28578: protocol error during callback from an external procedure
29856. 00000 - "error occurred in the execution of ODCIINDEXCREATE routine"
*Cause: Failed to successfully execute the ODCIIndexCreate routine.
*Action: Check to see if the routine has been coded correctly.
when it tries to call an external procedure in order to create a domain index. If I implement ODCIIndexCreate in PL/SQL, it is executed successfully. If I specify that ODCIIndexCreate is implement it an external library, then I get the above error even if the library does not exist on the file system. Does anyone have an idea what might be wrong?
Regards,
Angel TsankovThis forum is about using the Studio C/C++/Fortran compilers, and programming in those languages. You seem to have a question about using SQL for access to an Oracle database, which is none of the above.
I suggest you try an Oracle database forum. Start here:
https://forums.oracle.com/forums/category.jspa?categoryID=18
Look for a forum that applies to your problem area.
Edited by: Steve_Clamage on Jun 13, 2012 8:42 AM
(Correcting the URL I posted earlier.) -
Need to Check whether the program is Active or not
Is there any statement where i can check whether the report program is Active or not.
Using below statement i am copying the entire Code in internal table it_source.Before copying in the source code in the internal table it_source.I need to check that program is Active or not if it is not active and i need to give a pop message and forceliy i need to Active it.
read report wa_trdir-name into it_source.Hi Srini,
i just checked the table REPOSRC for a program which was not activated, i got two entries for the program one as active and one as inactive ,as soon as i activated the program there was a single entry.
so is it that we should check if we have any inactive entry in the table for the program?.
Regards,
gunjan -
Hello Guyz.
i am working on Macromedia Flash 8 and i just want to call a external SWF when i press the button within another SWF file.......but the second SWF file play Externely............can any one knows the code.... AS2try this
http://www.actionscript.org/forums/showthread.php3?s=&threadid=28123 -
Help me move my photos from Aperture to external hard drive without the program
I'm having problems with Aperature. I need/want to get rid of it. I need to move my photos out of it ASAP using Finder. I can't locate the photos in Finder. The instructions i see online don't work.
Help!The first step is wrong "1 I click on Aperture.app"
Don't click the Aperture application - that is the program. You need to click the Aperture library, the database with your photos.
By default your Aperture library will be in the folder "Pictures" and named "Aperture Library.aplibrary". It will show an icon like a fan of pictures. The color of the icon will depend on the version. -
Code Inspector and Extended program check in one program
Hello SAP gurus,
We have a requirement where we need to create one tool which will have both code inspector and extended program check functionality and report should display all error, warning messages which are found from these checks.
Can anyone provide some suggestions on this?
Thanks,
Khushboo DandHi,
Go to Se38 and check how code inpsector and extended syntax check. I dont remember the exact function module name but just debug a little u will be able to find it.
Nabheet -
Extended Program check for multipl programes in single run
Hello All,
I wan to do the syntax check for multiple programs at single execution run.
SAP has provided SLIN transaction for single program, Is there any SAP standard transaction similar as SLIN for multiple program check at single execution run?
Thanks,
Feroz.>
s feroz wrote:
> I need it in R/34.6b version.
I don't think you have much option there -
Find the program which retrive the program name for 2 years.
Hi Team,
i have requirement like , i am working on BRITVIC Client , they want to me write a program which has retrive the all development Z program name for last 2 years.
could you please suggest me the standard program which has retrived all program name for last 2 years.
Thanks in Advance.
puneet.Hi,
go to table EUDB - Development Environment Objects
see the program name NAME as putting Z*
where DATUM is the creation date
ZEIT is the creation time
also you can go for table REPOSRC - Report Source Code
Arunima
Edited by: Arunima Rudra on Nov 18, 2008 3:44 PM
Maybe you are looking for
-
Reappears Missing Server Side Dependencies in Sharepoint Foundation 2013 Health Analyzer
Hi all, I am a little bit confused why I am getting missing server side dependencies again and again. The missing server side dependencies shows the errors of "MissingSetupFiles". When I click on "Reanalyze Now" button, the error vanishes from the He
-
I want to copy my iphoto library to an external hard drive but when i drag and drop it there i get an error message that says there is already a file with that name - i am not sure what to do next?! i have tried changing the name of the file - and s
-
I am currently trying to set up a connection between my MacBook and my Windows XP PC. I have Leopard 10.5.3 and Windows XP. I want to set up the connection to my PC so I can use my Remote Desktop to control/observe/receive files from my PC to my MacB
-
How to print fax call log on hp laserjet pro mfp m375
There should be a way to print fax call log on hp laserjet pro mfp m375. Not sure whether to go in "tools", "fax", "settings" or what! Can somebody please give me instructions ASAP. Does anybody else find HP's tech support - if your warranty runs
-
When i look at snapins thru consoleone i can see that Zenwork 7.0.1 snapin is installaed. I have Novell Client 4.91 SP5 and Zenwork Client 7.0.173.91015 installed on the clients running WinXP Pro SP3. There is different of failures that happens.. Sen