How to execute a program from another
Hi, expert
Sorry for this question, but how can I do to execute a program from another with no parameter.
I will thanks an answer, it's urgent...
Regardss,
mgg
P.D. Points rewarded.
Simple, use the SUBMIT statement.
SUBMIT zreport and return.
Regards,
RIch HEilman
Similar Messages
-
How to call one program from another program
Hai,
How to call one program through another program.
Example.
I have two programs 1.ZPROG1 2. ZPROG2.
When i execute ZPROG1 at that time it should call ZPROG2.Hi ,
u can use submit statement to call a program .
DATA: text TYPE c LENGTH 10,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
regards,
Santosh thorat -
How to execute command(program) from external file in Oracle SQL developer
Hi,
Does anyone know, Oracle SQL developer version 1.0.0.14.67 got any function that can execute command from an external file?
Example, i have 100 insert SQL inside a text file,
and i want to use Oracle SQL developer to execute it. How do i read from my text file? Thanks a lots.If you're new to Oracle, do yourself and us a favour: read some tutorials and manuals. What sqldev's worth, better download the latest version (1.1.2), lots of fixes and enhancements...
Now for the big popper: to run an external file: @file
Best of luck,
K. -
Not able to execute one Java program from another one via. exec()
Hi,
I am new to this forum, so I might be asking a very trivial quetion.
My program Ap1 is :
class Ap1
public static void main(String a[]) throws Exception
Runtime rt=Runtime.getRuntime();
Process p=null;
p=rt.exec("javac,Pr.java");
Runtime.getRuntime().exec("javac,Pr.java");
When I run the above program, I get below error at the line 7(bold one):
D:\batchwe>javac Ap1.java
D:\batchwe>java Ap1
Exception in thread "main" java.io.IOException: CreateProcess: javac,Pr.java err
or=2
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at java.lang.Runtime.exec(Runtime.java:591)
at java.lang.Runtime.exec(Runtime.java:429)
at java.lang.Runtime.exec(Runtime.java:326)
at Ap1.main(Ap1.java:7)
Path is set as below(which seems correct):
D:\batchwe>path
PATH=C:\Program Files\Java\jdk1.5.0_05\bin
I am just wondering how to call one Java program from another one?!
Please help.
thanks
RashmiHi diptaPB,
Thanks for your suggestion.
Here is how I tried it again, but not getting the desired output:
Class Pr looks like below -->
class Pr
public static void main(String a[])
System.out.println("hi from process");
When I run 'Pr' from command prompt, i get the desired output:
D:\batchwe>java Pr
hi from process
However, when I call 'Pr' from another program Ap2.java, it seems that it does not call 'Pr':
class Ap2
public static void main(String a[]) throws Exception
Runtime rt=Runtime.getRuntime();
Process p=null;
String[] cmd=new String[2];
cmd[0]="javac";
cmd[1]="Pr.java";
p=rt.exec("cmd");
D:\batchwe>javac Ap2.java
D:\batchwe>java Ap2
************* no output appears here***********************
Looking forward for your help.
regards
Rashmi -
Problem regarding calling a program from another program
Hi,
I have a requirement that i need to call a program from another program and in that case the called program should be executed with a value in the selection screen coming from the first program..i.e.
a standard report to view the user Notes for annual leave is RPTARQDBVIEW. Can we create a report to display all the users under a manager as a hyperlink and run the report(RPTARQDBVIEW), with the pernr of the employee selected
Regards,
saumikSubmitting a report using ranges for select-options
* Define range for ltak-tanum
RANGES: r_tanum FOR ltak-tanum.
* Read values from database tabel into the range
* These values are later used for select-options in the report
SELECT * FROM ltak
WHERE lgnum = w_lgnum AND "Warehouse number/complex
vbeln = w_screen1000-io_vbeln. "Transfer order number
MOVE ltak-tanum TO r_tanum-low.
MOVE 'I' TO r_tanum-sign.
MOVE 'EQ' TO r_tanum-option.
APPEND r_tanum.
ENDSELECT.
* Submit report with range
SUBMIT zmm00100 WITH p_tanum IN r_tanum.
or
Submitting a report from ABAP with selection criterias
TYPES: tt_selection TYPE STANDARD TABLE OF rsparams.
DATA: l_iblnr TYPE st_iblnr,
* Define internal table and work area for select-options
l_selection TYPE rsparams,
li_selection TYPE tt_selection.
* Create selectIon table
LOOP AT gi_iblnr INTO l_iblnr.
CLEAR l_selection.
l_selection-selname = 'IM_IBLNR'. "Option name
l_selection-kind = 'S'. "S= select options P=Parameters
l_selection-sign = 'I'. "Sign
l_selection-option = 'EQ'. "Option
l_selection-low = l_iblnr-iblnr. "Value
APPEND l_selection TO li_selection.
ENDLOOP.
* Submit report
SUBMIT rm07idif WITH SELECTION-TABLE li_selection AND RETURN.
Regards,
Prabhudas -
How to call java program from ABAP
Hi Experts,
My requirement is to call java programs from ABAP. For that i have set up SAP JCO connection by using this link http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/739. [original link is broken] [original link is broken] [original link is broken] Connection gets sucessfully. After this how to call java program from ABAP as per our requirement. Please help me out.
Also i tried this way also.. but while executing the DOS Command line appear & disappear in few seconds. So couldnt see the JAVA output. Please help me out to call java programs in ABAP..
DATA:command TYPE string VALUE 'D:Javajdk1.6.0_20 injavac',
parameter TYPE string VALUE 'D:java MyFirstProgram'.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = command
parameter = parameter
OPERATION = 'OPEN'
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
bad_parameter = 3
file_not_found = 4
path_not_found = 5
file_extension_unknown = 6
error_execute_failed = 7
OTHERS = 8.
Thanks.This depends on the version of your Netweaver Java AS. If you are running 7.0, you will have to use the Jco framework. The Jco framework is deprecated since 7.1 though. If you want to build a RFC server in 7.1 or higher, it is adviced that you set it up through JRA.
Implement an RFC server in 7.0:
http://help.sap.com/saphelp_nw04/helpdata/en/6a/82343ecc7f892ee10000000a114084/frameset.htm
Implement an RFC server in 7.1 or higher:
http://help.sap.com/saphelp_nwce72/helpdata/en/43/fd063b1f497063e10000000a1553f6/frameset.htm -
Issue in executing an application from another remote server
Hi Experts,
I have an application on one of the remote server which is running on Windows Server 2003.
I would like to execute this application from another remote server (also running on Windows Server 2003). I am able to browse the application path using "\\", but when double clicking on the application
gives "you may not have appropriate permission to access the item"
How do I set the permission & what permission is required?
Please anybody can explain?
Thanks in advance.
Regards,
Naveen J VIs this a single exe file, or is it part of an installed application with exe, dlls, registery settings, etc?
If this is an installed application, you cannot run it like this. That would be like trying to start microsoft office which is installed on a different computer. -
How to execute the job from script ??
How to execute the job from script ?? i have 2 jobs A AND B . I want to execute job B from job A'S Script ?? how can i ??
Hi Kishore,
Please refer the below link for BODS Job execution using Script
Executing a job by another job in BODS 4.1 using simple script
http://scn.sap.com/community/data-services/blog/2013/12/04/executing-a-job-by-another-job-in-bods-41-using-simple-script
Steps for executing BODS job from Unix Script with user defined global parameters
http://scn.sap.com/community/data-services/blog/2013/09/02/steps-for-executing-bods-job-from-unix-script-with-user-defined-global-parameters
Executing a job using batch file
http://scn.sap.com/thread/3503338
How to add a schedule for job2 with a condition after job 1 is finished
http://scn.sap.com/message/14523514#14523514
Scheduling BODS Jobs Sequentially and Conditionally
http://scn.sap.com/docs/DOC-34648
Thanks,
Daya -
How can i import contacts from another AIM account to this new one
If you reference my last ichat question, you will see that I have had serious problems and had to create a new account.
How can I import contacts from another AIM account to this new one??Hi,
Use AIM for Mac and use the Export and Import features.
Other than that it is a question on making sure every Single Buddy has more than just their Screen name in the IChat Address Card so it is added to the Address Book and dragging them back from there
9:08 PM Thursday; February 7, 2008 -
How to refer one view from another view?
Hi,
I have 2 views in my Adobe Flash Builder mobile app. I need to refer the first view in my second view.
How to refer one view from another view? Or how to create a reference to a view wherever needed?I don't need any data from my first view. In a certain flow, I need to make my first view to be invisible.
for eg., My First view is in portrait mode. I change the device to Landscape. In the landscape mode, I want to show a completely different view (second view).
In this case, what happens is, I see my first view in Landscape mode for a second. Then the second view appears. When I change to Landscape mode, only the second view should be seen. I need to make my first view to be completely invisible in the OnOrientationChanging event of
StageOrientationEvent
As stage object and StageOrientationEvent works at application level, I need to know how to refer my first view object in the application level.
private function onOrientationChanging(soe:StageOrientationEvent):void
MyFirstView.Visible = False; ====> don't know how to refer MyFirstView here
Is my question clear now? -
How to access icloud account from another iphone
My iphone fell in the water. I am on vacation and need to access info from my calendar. How can i do it from another iphone device?
Just enter your account details under:
Settings > Mail, Contacts, Calendar
and add your account.
Finished. -
How can i get data from another database SQL Server use database link from
I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?
hi,
u should see following documentation:
Oracle9i Heterogeneous Connectivity Administrator's Guide
Release 1 (9.0.1)
Part Number A88789_01
in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
regards
umar -
How can i transfer songs from another itunes other than mine
how can i transfer songs from another itunes other than mine
Purchases made under 1 Apple ID are permanently associated with that Apple ID and CANNOT be transferred to another Apple ID. So if you want to keep those songs, you'll need to always have access to your dad's account.
B-rock -
How do I uninstall programs from my MacBook Pro?
I am new to Mac and don't fully understand how to uninstall a program from my Macbook Pro. I've been having some problems with the Sims 3 (Probably some custom content that was bad) and I want to completely uninstall The Sims 3 from my laptop. How do I do this? I have heard that some people say to just delete the folder from my Applications, but being that I come from PC that doesn't seem like it gets rid of everything to me. Anything would be helpful. Thanks.
Sarah
Here are the steps:
Manually Uninstalling The Sims 3 from a Mac
Delete the /Applications/The Sims 3 folder (or any for a Stuff of Expansion pack).
Delete the /Users/"User"/Library/Preferences/The Sims 3 Preferences folder.
Delete the /Users/"User"/Documents/Electronic Arts/The Sims 3 folder.
Note: This file can be saved as a backup to retain save games, simply rename it. -
How do i delete programs from my MacBook Pro
how do i delete programs from my MacBook Pro?
Most apps may be simply deleted to the trash; all have a small file in ~/library/preferences associated to it, e.g. company.com.name-of-app.plist, may or may not be deleted. Some apps have their uninstaller, if their creator is scrupulous (some are not), if they spread files all over the system.
There are apps targeted at deleting other apps, I have been using AppZapper, but there are some other free solutions, see other comments. Do NOT delete Apple apps, they belong to the system, even if installed later.
Maybe you are looking for
-
Data migration of open production order
Hello SAP gurus, Please advise me about the steps that should be followed for data migration of open production order from legacy to SAP. Regards, Anand
-
I've reproduced this issue from FF 3.6.13 on windows XP and mac osx 10.6.8. On FF 3.6.13 the number of pixels limit seems lower with exactly 8,388,607.
-
How to disable message in HRTIM_ABS_REQ
Whenever an employee books a vacation in ESS, the warning message "Absence cannot be partial-day, so clock times have been removed". I know this is stored in HRTIM_ABS_REQ but how can this be disabled? Thanks in advance
-
Where is data of containers saved in Workflow?
Hi all, Please help me about a table/place where the container data is saved, especially in workflow. As we know, when a workflow (eg, leave request) run and need an apporval from the chief, then the chief will click the request in his inbox.. sudden
-
Mail not receiving pushed emails
Been having some problems receiving mail from my mobile me account via Mail. I have "check for new mail" set to "Manual". I will only receive email if Mail is not hidden or if i click on the inbox. In other words emails aren't being pushed to Mail. H