Calling another program with in a program
Hi experts,
i want to call a program (second) from the first program. The problem is that the first program is called during the update task. so i think we cant use the submit statement.
Thnak you in advance.
Arul
Edited by: arul m on May 6, 2009 12:36 PM
Hello,
Try this FM
TH_IN_UPDATE_TASK
check this
http://help.sap.com/saphelp_nw04/helpdata/EN/fa/f23c15330411d5992100508b6b8b11/content.htm
Similar Messages
-
In SQLScript, how to use EXEC to call another procedure with parameters in procedure?
Hi experts,
In SQLScript, How to use EXEC to call another procedure with input and output parameters in procedure?thanks very muchHi Sagar,
thank you! I generate another procedure with an input parameter and an output parameter in a procedure. Then i need to call the generated procedure using EXEC. Here is my code:
create procedure ftest1(out sum_num bigint)
as
begin
declare fa_output bigint;
declare v_sql_drop varchar(200);
declare v_sql varchar(500);
declare cursor c_cursor1 for select num from TABLE1;
--v_sql_drop := 'drop procedure fe';
--exec v_sql_drop;
v_sql := 'create procedure fe(in i_num bigint,out o_num bigint) as begin';
v_sql := :v_sql || ' o_num := :i_num * 2 + :i_num * :i_num;';
v_sql := :v_sql || ' end';
exec v_sql;
open c_cursor1;
for c_item as c_cursor1 do
exec 'call fe(c_item.num,o_num=>fa_output)';
if sum_num is null then
sum_num := fa_output;
else
sum_num := :sum_num + fa_output;
end if;
end for;
close c_cursor1;
end;
The underline code is using exec to call the generated procedure. But this method cannot work. Any suggestion? thanks again! -
Calling another application from a java program
Hi, Java ppl.
I wanted to know how can I call another program say a help application or an exe from a java program. anyone with any advice or a piece of code would help.
Thanks
PradeepI had the same situation and I tried the code that you sugested and it works. I was wondering, what am I expecting in the while loop that appears after the int inp; statement? Is some data going to be displayed on the screen? How essential is to have that while loop after the calling the exec() method?
Sorry for the amount of questions, I never tried this before.
Best regards,
Luis E. -
Calling another class from a java program
I tried to call the Server1.class from the password program, but I failed. The password program source code is as follows:
class PasswordDialog extends java.awt.Dialog implements java.awt.event.ActionListener
* Constructor. Create this visual dialog component.
public PasswordDialog(java.awt.Frame parent, PasswordVerifier verifier)
super(parent);
addWindowListener(new WindowEventHandler());
setLayout(new java.awt.FlowLayout());
setSize(500, 100);
this.verifier = verifier;
add(useridField = new java.awt.TextField(10));
add(passwordField = new java.awt.TextField(10));
add(okButton = new java.awt.Button("Submit"));
add(cancelButton = new java.awt.Button("Cancel"));
okButton.addActionListener(this);
cancelButton.addActionListener(this);
passwordField.setEchoChar('*');
useridField.requestFocus();
public void actionPerformed(java.awt.event.ActionEvent e)
if (e.getSource() == okButton)
// Invoke password verification callback
try
boolean result = verifier.verifyPassword(
useridField.getText(), passwordField.getText());
if (! result) return; // verification failed; don't close this dialog
catch (Exception ex)
ex.printStackTrace();
// Close this dialog
System.out.println("I still can't call the Server1 class");
dispose();
else if (e.getSource() == cancelButton)
dispose();
class WindowEventHandler extends java.awt.event.WindowAdapter
public void windowClosing(java.awt.event.WindowEvent e)
System.exit(0);
// Private objects
private PasswordVerifier verifier;
private java.awt.TextField useridField;
private java.awt.TextField passwordField;
private java.awt.Button okButton;
private java.awt.Button cancelButton;
interface PasswordVerifier
public boolean verifyPassword(String userid, String password) throws Exception;
public class password implements PasswordVerifier
* Main routine for testing only.
public static void main(String[] args)
password verifier = new password();
java.awt.Frame f = new java.awt.Frame("Password Verifier");
f.setSize(100, 100);
f.show();
PasswordDialog d = new PasswordDialog(f, verifier);
d.show();
public boolean verifyPassword(String userid, String password) throws Exception
return (userid.equals("Albert") && password.equals("Einstein"));
and the Server1.java is as follows:
//Server Application
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
public class Server1 extends Frame implements ActionListener,Runnable,KeyListener
ServerSocket s;
Socket s1;
BufferedReader br;
BufferedWriter bw;
TextField text;
TextField name;
Button exit,clear;
Label label;
List list;
Panel p1=null;
Panel p2=null;
Panel sp21=null;
Panel sp22=null;
Panel jp=null;
public void run()
try{s1.setSoTimeout(1);}catch(Exception e){}
while (true)
try{
list.add(br.readLine());
}catch (Exception h){}
if(list.getItemCount()==7)
list.remove(0);
public Server1(String m)
{ super(m);
jp=new Panel();
p1=new Panel();
p2=new Panel();
sp21=new Panel();
sp22=new Panel();
jp.setLayout(new GridLayout(2,1));
p1.setLayout(new GridLayout(1,1));
p2.setLayout(new GridLayout(2,1));
sp21.setLayout(new FlowLayout());
sp22.setLayout(new FlowLayout());
exit = new Button("Exit");
clear = new Button("Clear");
exit.addActionListener(this);
clear.addActionListener(this);
list = new List(50);
text = new TextField(43);
name = new TextField(10);
label = new Label("Enter your name");
name.addKeyListener(this);
text.addKeyListener(this);
p1.add(list);
sp21.add(text);
sp21.add(exit);
sp22.add(label);
sp22.add(name);
sp22.add(clear);
p2.add(sp21);
p2.add(sp22);
jp.add(p1);
jp.add(p2);
this.add(jp);
setBackground(Color.orange);
setSize(380,300);
setLocation(0,0);
setVisible(true);
setResizable(false);
name.requestFocus();
try{
s = new ServerSocket(786);
s1=s.accept();
br = new BufferedReader(new InputStreamReader(
s1.getInputStream()));
bw = new BufferedWriter(new OutputStreamWriter(
s1.getOutputStream()));
bw.write("Welcome");bw.newLine();bw.flush();
Thread th;
th = new Thread(this);
th.start();
}catch(Exception e){}
public static void main(String args[])
new Server1("Server");
public void actionPerformed ( ActionEvent e)
if (e.getSource().equals(exit))
System.exit(0);
else if (e.getSource().equals(clear))
{ name.setText(" ");
name.setEditable(true);
public void keyPressed(KeyEvent ke) {
if(text.equals(ke.getSource()))
if(ke.getKeyCode()==KeyEvent.VK_ENTER)
try{
bw.write(name.getText()+">>"+text.getText());
bw.newLine();bw.flush();
}catch(Exception m){}
list.add(name.getText()+">>"+text.getText());
text.setText("");
else if(name.equals(ke.getSource())) {
if(ke.getKeyCode()==KeyEvent.VK_ENTER)
name.setEditable(false);
text.requestFocus();
public void keyReleased(KeyEvent ke)
//something
public void keyTyped(KeyEvent ke)
//something
I tried to create a new object by typing:
Server1 s = new Server1();
then call the main function
new Server1("Server");
but it doesn't work. Anybody can help me with this?try
Server1 s = new Server1();
s.Server1("Server");
or
new Server1().Server1("Server"); -
Call another form with a button click (Oracle 10g)
I have two forms. (One called Main Form and 2nd Called Notification summary)
I want to call Main Form from notification summary. I have a unique column which is both in Main form and notification summary.
I want to pass that unique column from notification summary to main form so that specific detail open in main form.
Please suggest solution.
Edited by: 871590 on Jul 11, 2011 4:29 PMStarting with a question: why do you need an own (main) form, if you need to call that form in another context, it's fine. If you will use this functionality only once, consider a second canvas (content or stacked, whatever fits better) or a second window within your form (notification).
If its only on value you need to pass use a data parameter or a global variable; the first would be preferable to me.
If there are more values in your column you may use global record group or (preferable to me) some kind of "temporary" table. It may be a global temporary table as provided by the oracle db or you are doing this with a normal permanent table. For the latter you will have slight higher amount of programming for organisational purposes. -
MVC call another controller with other (own) namespace
Hello,
i have a bsp-application (mvc) in our own namespace '/otto/...'. Now i'd like to create a controller, but this controller is in the z-namespace.
I have tried with the method create_controller and the optional attributes application_namespace and application_name, but it didn't worked!?
I have tried also with upper case, lower case, full path,
relative path, but it didn't worked! What is wrong?
Thank you. LarsOK, sorry, i know this options and i use it, but the answer is the same:
"500 SAP Internal Server Error
Fehlermeldung: Es ist eine Ausnahme aufgetreten, die nicht abgefangen wurde. ( Abbruchsart: RABAX_STATE )"
i was looking in the 'ST22' there are the following information:
The Error was in the ABAP-Program "CL_BSP_PAGE_BASE==============CP " in
"CREATE_PAGE". Mainprogram was "SAPMHTTP ".
In the sourcecode line 1170 from (Include-)Programs "CL_BSP_PAGE_BASE==============CM01B ".
call method cl_o2_rt_support=>get_class_for_page
exporting
p_namespace = l_app_nspace
p_application = l_app_name
p_page = l_page_name
importing
p_pageclass = l_page_class
p_pageparams = l_page_parameters
p_html_pool = l_page_html_pool
p_script = l_page_script_code
p_options = l_page_options
p_pagetype = l_page_type
exceptions
error_occured = 1
object_not_existing = 2.
case sy-subrc.
when 1.
raise exception type cx_bsp_einternal.
when 2.
1170!
> raise exception type cx_bsp_inv_page
exporting page = l_page_name url = l_url.
endcase. -
Combining yearly Photoshop Photography Program with monthly Complete Program?
Hi all!
I'm planing to subscribe to a discounted 1-year Photoshop Photography Program. However, I sometimes need other apps from Complete Program, like AI or AE, too (probably worth 3-4 months a year).
For money saving reason. Is it possible to maintain a membership of Photoshop Photography Program while enrolling month-to-month Complete Program as needed along the way?
Or I need 2 Adobe ID?
Thanks!If you have the trial or any other perpetual license version you will need to uninstall that first. After that log out of CC, restart your machine and then log back into CC. LR should then be available to download.
-
Troublesome need to log off between switching from Yahoo to another website with message that program is still running.
Terminate Firefox from the "Processes" tab of the Windows Task Manager not the "Applications" tab. Then select firefox.exc and use the right-click context menu to "End Process" or use the "End Process" button on the selected process.
Windows 7 keyboard shortcut "Ctrl+Shift+Esc" will go directly to the Windows Task Manager and reopen the last tab that you had open.
See item #38 Closing Firefox Properly -- use File -> '''Exit'''
*http://dmcritchie.mvps.org/firefox/firefox-problems.htm#close_firefox
<br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>
I don't see why you feel you have to exit Firefox to get out of one website to immediately use another website. Very impractical. Does this have anything to do with desktop icons or not using tabs?
Completely unrelated to your question or your reason. Your flash plug-in is out of date.
Check for Flash updates to see if you really are current
* http://www.adobe.com/software/flash/about/
After the download,
#bring up the download manager ("Ctrl+J") and start your installs. As soon as the install comes up,
#close Firefox with File > Exit or "Firefox" button > Exit. Give Firefox some time to close and check that it finished via the Windows Task Manager -- if it is still running then terminate it by selecting the use "End Process" button or from context menu.
#proceed with the install
'''Warning''': this is the Adobe site and they have chosen to to provide crapware along with their own product. Only install the product you were planning to install. Do not install additional products: including -- "Free! McAfee Security Scan Plus" or "Google Chrome". Installing Google Chrome on your own and installing it because it is offered on the Adobe site are two different things.
Find updates for your installed plugins at http://www.mozilla.com/plugincheck/ mozilla.com/plugincheck
-- best to use Adobe's site to really see if their plug-ins are up to date. -
Interfacing with a C# program
Hi all, I need to know where to find the API that will be called to interface with a C# program. Is this something I'd have to write in Visual Studio 2005? I'm using CR v.XI I've only been using this program for about 2 weeks now so I'm still in the learning process. If anyone could help I'd really appreciate it.
Thank you in advance!Hi;
Some resources that may help get you started:
http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/20c235fe-7764-2b10-cb8c-840c7227bd45&overridelayout=true
http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/208edbbf-671e-2b10-d7b5-9b57a832e427
And, have a look at some of our samples:
http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/9043bbbc-ae66-2b10-ce96-b48f9e25a450
Best Regards,
Jonathan -
How to call a transaction with a variant
Hi all
I created a bdc program after updating it should call another transaction with predefined variant that that transaction program is of type module pool.
can anyone tell me the syntax how to call a transaction with a variant.Hi
goto Tcode SHD0
enter the Tcode for which Tran Variant has to be created(dialog Tcode)
enter Trans variant to be created
press create button
it will go through all the screens of that Tcode and save
and modify the fields as per requirement
we can create Transaction Variants Using SHD0 Transaction.
Transaction Variants and Screen Variants
Transaction variants can simplify transaction runs as they allow you to:
Preassign values to fields
Hide and change the 'ready for input' status of fields
Hide and change table control column attributes
Hide menu functions
Hide entire screens
In particular, hiding fields in connection with screen compression, and hiding screens, can result in greater clarity and simplicity.
Transaction variants are made up of a sequence of screen variants. The field values and field attributes for the individual screens found in transaction variants are stored in screen variants. Each of these variants is assigned to a specific transaction, can, however, also contain values for screens in other transactions if this is required by transaction flow. The transaction that the variant is assigned to serves as initial transaction when the variant is called.
There are both client-specific and cross-client transaction variants. All screen variants are cross-client, but may be assigned to a client-specific transaction variant.
A namespace exists for cross-client transaction variants and screen variants and both are automatically attached to the Transport Organizer. Client-specific transaction variants must be transported manually.
In principle, transaction and screen variants can be created for all dialog and reporting transactions. There are, however, certain Restrictions that apply to certain transactions, depending on their internal structure.
No transaction variants are possible with transactions already containing preset parameters (parameter transactions and variant transactions).
Regards
Anji -
How to call a form with dabble clicking on a record with one time where
Hi All,
How to call a form with dabble clicking on a record with one time where clause. I mean when i dabble click on the current record i want to call another form with details of the
record with onetime where clause. Can anyone help me in this regard.
Now i am calling a form with parameter with onetime where but this should avoid.
Thanks in advance
ArifHello,
I mistakenly mark it as solved. There is a problem remain. when i placed the code below it do not execute with the where condition. I mean the condition to execute is not work.
All records executes. Please correct my code--
Here the WHEN-BUTTON-PRESSED-trigger on the Edit-Button:
:GLOBAL.MODE:='EDIT';
:GLOBAL.REQ_ID:=:PROBLEM_REQUEST.REQ_ID;
CALL_FORM('REQUEST_ID_PARAM',NO_HIDE,DO_REPLACE,NO_QUERY_ONLY);And also, WHEN-NEW-FORM-INSTANCE-trigger of REQUEST_ID_PARAM:
DEFAULT_VALUE(NULL, 'GLOBAL.MODE');
DEFAULT_VALUE(NULL, 'GLOBAL.REQ_ID');
IF :GLOBAL.MODE='EDIT' THEN
GO_BLOCK('PROBLEM_REQUEST');
EXECUTE_QUERY;
SET_BLOCK_PROPERTY('PROBLEM_REQUEST', INSERT_ALLOWED, PROPERTY_FALSE);
END IF;Arif -
How to call a dialog program with return value in another dialog program
Dear All,
How can I call a dialog program with return value from another dialog program?
Regards,
Alok.Hi Alok,
You can you SET/GET parameters to do this.
This is some information about this.
To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETERstatements.
To fill one, use:
SET PARAMETER ID pid FIELD f.
This statement saves the contents of field f under the ID pid in the SAP memory. The ID pid can be up to 20 characters long. If there was already a value stored under pid, this statement overwrites it. If you double-click pid in the ABAP Editor, parameters that do not exist can be created as a Repository object.
To read an SPA/GPA parameter, use:
GET PARAMETER ID pid FIELD f.
This statement places the value stored under the pid ID into the variable f. If the system does not find any value for pid in the SAP memory, sy-subrc is set to 4. Otherwise, it sets the value to 0.
Thanks,
SriRatna -
When I am on a phone call and I double click the button to go to my home screen, then open another application (usually my calendar program, Calengoo), my screen goes blank and I am not able to return to either the app, the phone, or the home screen. If I am speaking to a person, if they hang up then I am back to the phone application. If I'm leaving a message, I am unable to return to the phone screen to end the call, and have to wait until the other phone hangs up. I'm also unable to switch back and forth to look at my calendar if I'm calling someone about scheduling. This has only started happening since the most recent iOs update. I run into situations similar to this about once per day during the work week, as I use my phone is this manner quite often. While not life altering it is quite frustrating. Can anyone here help me figure out a way to avoid this? If it helps, I have noticed a general downgrade in overall performance starting two system updates ago (apps opening more slowly, closing unexpectedly more often, etc.). I have an iPhone 3GS with the latest OS update.
Thank you for any help or suggestions,
ChrisI could be corrupted backup.
You can check the notification settings for message.
Settings>Notification Center>Messages>Alert Style
It should be on Banners or Alerts.
Settings>Messages> Turn on Imessage and send as SMS and below that "Blocked" to check if you have any numbers block might be blocking the message.
You can also do a hard reset by holding power and home till it restarts and release after seeing the apple logo.
Still doesn't work? Settings>General>Reset>Reset all settings -
Calling another program and waiting for output
Hi,
I'm writing a program that passes a file created for an application called Net Sim but has to wait for the output. Net Sim lies in another directory from the java files and I don't know how to call the program with the file created as a parameter, such as:
ns2 network1.tcl
where 'ns2' is the dos command to run net sim and 'network1.tcl' is a file passed as a parameter to the program.
I've tried
try{
Runtime r = Runtime.getRuntime();
r.exec(" <directory> ");
}catch(IOException e){
System.out.println("Error " +e);
This doesn't work though and I could use some help, as well as how to save the file created by the program in another directory.
Finally, I need to know how to make the program wait for the output from net sim which is a file I intend to use. Can I do this with a while loop etc.?
I thank you in advance for any help,
Regards,
Gary.Here's an article from JavaWorld describing some of the pitfalls when using Runtime.exec() that might help you:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html -
Call another program in first program
hi,
i need to perform to call another report in my current report. so how am i going to do so?
how report work:
the report are going to run as background job. once the report run, it will send out the report in text file to user. and then i want it to trigger report 2. report 2 work the same, it will send another text file to user.
and the parameter for both the report is on current date only.
so how am i going to code in my first report program, to call the second report program, and to execute it?
thanks
Edited by: ben leen lee on May 14, 2008 3:57 AMHi,
clear: d_JOB_COUNT.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = d_JOBNAME
IMPORTING
JOBCOUNT = d_JOB_COUNT.
submit ZFI_AGEWISE_PERFORMANCE
VIA JOB d_JOBNAME
NUMBER d_JOB_COUNT
with IKUNNR IN r_id
with s_vertn in S_VERTN
with s_hkont IN S_HKONT
with IBUDAT eq IBUDAT
with P_BUKRS eq P_BUKRS
with s_umskz in s_umskz
*with R1 = R1
WITH R2 = R2
*with r3 = R3
WITH P_SESS = P_SESS
AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBNAME = d_JOBNAME
JOBCOUNT = d_JOB_COUNT
STRTIMMED = 'X'.
Reward Points
Maybe you are looking for
-
My iPhone 5 screen has blacked out.
Hi there, My iPhone 5 screen has just randomly blacked out on me. I sent a text message to someone then lay my phone down on the sofa and when I picked it up again moments later the screen did not work and it is completely unresponsive. When I ring m
-
My iPod doesn't go to sleep.
I had my ipod for about 4 weeks now. It is the 4th generation everytime i open it and well use it i try to press the button to make it go to sleep but it doesnt seem to work any suggestions
-
Black background/white writing
Hi there, Just wondered if anyone knows of a phone that has a black background with white writing on all parts of the phone? Most phones at the moment have the facility to change it but the texts normally come up with white background/black writing.
-
SCCM 2012SP1 - Cross Forest Scenario
Guys/Girls I've configured a cross forest SCCM scenario, with all the SCCM config in one Forest and a single Windows XP SP3 desktop in the other. There is a trust between both Forests/2-way external but I haven't added Forests/Domain to SCCM to enabl
-
When I select the Com Security Tab from the Components / My Computer Properties page, I cannot modify the "edit limits" on either "access Permissions" or "Launch and Activation Permissions". Both buttons are greyed out and will not allow selection. I