Calling a script in program
hi friends
i have called 3 functional modules.
open
write
close
but im getting an exit message as element window main is not defined in the form. suggest me in this regard.
deepika.
Hi,
Are you using statements like see below?.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'TITLE_B'
WINDOW = 'TITLE'
EXCEPTIONS
ELEMENT = 1
WINDOW = 2.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'EMPTY_LINE'
EXCEPTIONS
ELEMENT = 1
WINDOW = 2.
Have you put in parameter ELEMENT the value 'MAIN'
Let me know?
Gr., Frank
Similar Messages
-
Calling SAP script program in BAPI and want to display in html format
Dear All,
I am writing bapi and calling sap script program in it.
I want output in html format pl suggest me
same coding is working for report giving error in sapscript only.
types: begin of tt_html,
html type w3html,
end of tt_html.
data: list_tab type standard table of abaplist.
SELTAB-SELNAME = 'S_INVNO'.
SELTAB-KIND = 'S'.
SELTAB-SIGN = 'I'.
SELTAB-OPTION = 'EQ'.
SELTAB-LOW = INVOICE_NUM1.
SELTAB-HIGH = INVOICE_NUM2.
APPEND SELTAB.
submit ZSDRDINVPNBRPT with selection-table seltab
exporting list to memory and return.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = MTAB_REPORT_LIST
EXCEPTIONS
not_found = 1
OTHERS = 2.
CALL FUNCTION 'WRITE_LIST'
EXPORTING
WRITE_ONLY = 'X'
TABLES
listobject = MTAB_REPORT_LIST
EXCEPTIONS
EMPTY_LIST = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WWW_LIST_TO_HTML'
TABLES
HTML = MTAB_REPORT_HTML
EXCEPTIONS
OTHERS = 1.
LOOP AT MTAB_REPORT_HTML.
ENDLOOP.For displaying output in html format,
u can either use BSP ( Business Server Pages)
or Webdynpro.
Reward if helpful. -
Not able to call sql script from shell program
Hi Gurus,
I am facing issue while calling sqlplus script from my shell program. Please find below my shell script. This program I've written and registered as for one of concurrent program
in oracle applications.
p_userid_passwd=$1
p_appl_login=$2
p_user_name=$3
p_request_id=$4
v_conc_request_id=${5}
p_to_role=${6}
p_from_role=${7}
p_subject=${8}
p_body=${9}
p_dist_list=${10}
v_request=${11}
v_file_path_name=/u01/oraspt/REQUEST
cd $APPLCSF/$APPLOUT
echo "v_conc_request_id" $v_conc_request_id
echo "p_to_role" $p_to_role
echo "p_from_role" $p_from_role
echo "p_subject" $p_subject
echo "p_body" $p_body
echo "p_dist_list" $p_dist_list
echo "v_request" $v_request
ls -l $v_request
if [ $? -ne 0 ]
then
echo "No output request generated"
else
echo "Output request generated"
fi
echo "connecting to ftp for placing out file to DB server"
echo FTP to 99.60.17.11
echo username: "oraspt"
echo pw:
ftp -i -n 99.60.17.11 << EOF2
user "oraspt" orakdk
cd $v_file_path_name
put $v_request
bye
EOF2
output=`sqlplus -s /nolog <<EOT
whenever sqlerror exit failure;
connect apps/apps
set verify off;
set serveroutput on size 120000;
DECLARE
l_errbuf varchar2(300);
l_retcode varchar2(300);
BEGIN
XXFND_SEND_MAIL.SEND_NOTIFICATIONS( errbuf => l_errbuf
, retcode => l_retcode
, p_request_id => $v_conc_request_id
, p_to_role => $p_to_role
, p_from_role => $p_from_role
, p_subject => $p_subject
, p_body => $p_body
, p_dist_list => $p_dist_list);
EXCEPTION
when others then
dbms_output.put_line('Error encountered :'||SQLERRM);
END;
EOT
`
echo "connecting to ftp for deleting output file"
echo FTP to 99.60.17.11
echo username: "oraspt"
echo pw:
ftp -i -n 99.60.17.11 << EOF2
user "oraspt" orakdk
cd $v_file_path_name
delete $v_request
bye
EOF2
echo "Deleted successfully"Output for script is as below
v_conc_request_id 451906
p_to_role DC.DKHOO
p_from_role DC.DKHOO
p_subject Receivable audit report10
p_body Please find Audit Report Attachment.
p_dist_list
v_request o451906.out
-rw-r--r-- 1 applspt dba 2368 Dec 28 15:06 o451906.out
Output request generated
connecting to ftp for placing out file to DB server
FTP to 10.60.17.11
username: oraspt
pw:
connecting to ftp for deleting output file
FTP to 10.60.17.11
username: oraspt
pw:
Deleted successfullyPlease let me know how to trigger pl/sql script.
Thanks in advance for your help.
Regards
Nagendra
Edited by: 838961 on Dec 27, 2011 11:25 PMPlease find output as suggested, I've placed set -x in script.
+ p_userid_passwd=APPS/APPS
+ p_appl_login=1110
+ p_user_name=DC.DKHOO
+ p_request_id=451949
+ v_conc_request_id=451945
+ p_to_role=DC.DKHOO
+ p_from_role=DC.DKHOO
+ p_subject=Receivabless
+ p_body=report
+ p_dist_list=
+ v_request=o451945.out
+ v_file_path_name=/u01/oraspt/REQUEST
+ cd /u01/applspt/inst/apps/SPT_nfs-stg-app1/logs/appl/conc/out
+ echo v_conc_request_id 451945
v_conc_request_id 451945
+ echo p_to_role DC.DKHOO
p_to_role DC.DKHOO
+ echo p_from_role DC.DKHOO
p_from_role DC.DKHOO
+ echo p_subject Receivabless
p_subject Receivabless
+ echo p_body report
p_body report
+ echo p_dist_list
p_dist_list
+ echo v_request o451945.out
v_request o451945.out
+ ls -l o451945.out
-rw-r--r-- 1 applspt dba 2368 Dec 28 15:54 o451945.out
+ '[' 0 -ne 0 ']'
+ echo 'Output request generated'
Output request generated
+ echo 'connecting to ftp for placing out file to DB server'
connecting to ftp for placing out file to DB server
+ echo FTP to 10.60.17.11
FTP to 10.60.17.11
+ echo username: oraspt
username: oraspt
+ echo pw:
pw:
+ ftp -i -n 10.60.17.11
++ sqlplus -s /nolog
+ output=Connected.
+ echo 'connecting to ftp for deleting output file'
connecting to ftp for deleting output file
+ echo FTP to 10.60.17.11
FTP to 10.60.17.11
+ echo username: oraspt
username: oraspt
+ echo pw:
pw:
+ ftp -i -n 10.60.17.11
+ echo 'Deleted successfully'
Deleted successfully -
Calling javaFX script from Java program
I am trying to call JavaFX script from a simple Java program. code as follows:
import java.io.*;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
public class My{
public static void main(String[] args) {
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByExtension("fx");
try {
InputStreamReader reader = new InputStreamReader(My.class.getResourceAsStream("first.fx"));
engine.eval(reader);
reader.close();
} catch (Exception e) {
e.printStackTrace();
my first.fx file code is here:
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.text.TextAlignment;
Stage {
title: "My First JavaFX Sphere"
scene: Scene {
width: 250
height: 250
content: [
Text {
font: Font { size: 24 }
x: 20, y: 90
textAlignment: TextAlignment.CENTER
content:"Welcome to \nJavaFX World"
} //Text
] // content
} // Scene
} // Stage
I am not able to run My.java. runtime error as follows:
java.lang.NullpointerException
Kindly correct me, where I am wrongI am able to call .fx file from Java. Thank you all for helping me to resolve this problem
Regards,
Ritu -
Calling GUI Scripting from ABAP program
Is it possible to call GUI Scripting from ABAP and thus to use GUI Scripting as an alternative to CALL TRANSACTION?
Is the class CL_JAVA_SCRIPT suitable to access GUI Scripting engine? Accessing ABAP data object would work as well in this case as i think. What SAP Logon and WAS releases are required? Is the 6.20 release sufficient for this case?
I would appreciate if somebody could post an example.Hi,
CL_JAVA_SCRIPT has nothing to do with SAPGUI Scripting.
Calling SAPGUI Scripting API from ABAP could be possible for programmes experienced with OLE automation calls from ABAP coding.
The hardest thing will be, to access the scripting engine handle as an entry point. Once you have a handle in your abap session, any api function can be invoked.
Best regards
Jens
BTW: SAP testtool eCATT does call SAPGUI-Scripting from ABAP. -
All values in internal table are not displaing in the script print program
Hi,
I am calling the script program.In main window all values in the internal table are not displaying. I wrote
write-form statement in loop. But not all the values are getting displayed. Only thel ast values getting dispalyed.
*& Report ZSCRIPT_116719
REPORT ZSCRIPT_116719.
************Table decleration***************
TABLES: mara, mbew, makt.
loop at i_makt into wa_makt.
endloop.
loop at i_MARA into wa_mara.
endloop.
LOOP AT I_MBEW INTO WA_MBEW.
ENDLOOP.
lv_price = 0.
********************Total Price******************
LOOP AT i_mbew INTO wa_mbew.
lv_price = lv_price + wa_mbew-stprs.
ENDLOOP.
end-of-selection.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX =
ARCHIVE_PARAMS =
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'ZSCRIPT_719'
LANGUAGE = SY-LANGU
OPTIONS =
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJECT =
RAW_DATA_INTERFACE = '*'
SPONUMIV =
IMPORTING
LANGUAGE =
NEW_ARCHIVE_PARAMS =
RESULT =
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
INVALID_FAX_NUMBER = 8
MORE_PARAMS_NEEDED_IN_BATCH = 9
SPOOL_ERROR = 10
CODEPAGE = 11
OTHERS = 12
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'START_FORM'
EXPORTING
ARCHIVE_INDEX =
FORM = 'ZSCRIPT_719'
LANGUAGE = SY-LANGU
STARTPAGE = ' '
PROGRAM = 'ZSCRIPT_116719'
MAIL_APPL_OBJECT =
IMPORTING
LANGUAGE =
EXCEPTIONS
FORM = 1
FORMAT = 2
UNENDED = 3
UNOPENED = 4
UNUSED = 5
SPOOL_ERROR = 6
CODEPAGE = 7
OTHERS = 8
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*LOOP AT I_MBEW INTO WA_MBEW.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'DATA'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*ENDLOOP.
If I give only one value it is showing the output. When I am fetching the data for range of values it i sshowing start_form is not there.
Plz let me know how to get the aa internal table values to be displayedhi
I shortened your program a bit. So we can go to essentials of your question.
You said you put in it in a loop.
What i see in your prog is:
REPORT zscript_116719.
************table decleration***************
TABLES: mara, mbew, makt.
LOOP AT i_makt INTO wa_makt.
ENDLOOP.
LOOP AT i_mara INTO wa_mara.
ENDLOOP.
LOOP AT i_mbew INTO wa_mbew.
ENDLOOP.
lv_price = 0.
********************total price******************
LOOP AT i_mbew INTO wa_mbew.
lv_price = lv_price + wa_mbew-stprs.
ENDLOOP.
END-OF-SELECTION.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = 'ZSCRIPT_719'
language = sy-langu.
CALL FUNCTION 'START_FORM'
EXPORTING
form = 'ZSCRIPT_719'
language = sy-langu
program = 'ZSCRIPT_116719'.
*LOOP AT I_MBEW INTO WA_MBEW.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'DATA'
function = 'SET'
type = 'BODY'
window = 'MAIN'.
*endloop.
1. Your loop is not a loop with this '*' in front of it.
2. Are you printing &wa_mbew-???& variables in your sap-script
3. is itab I_MBEW properly filled
Let me know.
Gr. Frank -
Need to call Shell script that uses SQL loader in APex4.1/11g
Hi there!
I have a requirement, wherein I have to call a shell script that connects to an external server, ftp's a file in and then uses sqlloader to load data into our table. Now we have the ftp script that does this for another program, but is a scheduled job. I wanted to call the ftp shell script from within APEX. Any suggestions on how this can be done, what PL/SQL logic can we use? I see online some people using dbms scheduler for this?
Thank you
SunHi,
Create some sh script on your oracle host machine where you can join into external server and run the process.
something like:
run_external_sh.sh
#!/bin/sh
ssh ext_user@ext_host ./sqlloader/import/import.shThen create a external JOB to call it via ORACLE(PL/SQL)
-- Call Shell Script.
BEGIN
DBMS_SCHEDULER.create_program (
program_name => 'external_call_sh',
program_type => 'EXECUTABLE',
program_action => '/local_host/call_external/sh/run_external_sh.sh',
number_of_arguments => 0,
enabled => TRUE,
comments => 'Call external SH script');
END;
/Now you can create a scheduled/or not scheduled JOB
-- Job defined by an existing program and schedule.
BEGIN
DBMS_SCHEDULER.create_job (
job_name => 'jb_external_call_sh',
program_name => 'external_call_sh',
schedule_name => 'external_call_scheduler', -- created scheduler
enabled => TRUE,
comments => 'Job defined by an existing external_call_sh program and schedule.');
END;
/Now you can call the JOB in APEX in PL/SQL process.
BEGIN
-- Run job synchronously.
DBMS_SCHEDULER.run_job (job_name => 'jb_external_call_sh');
END;Regards
J :D -
Call unix script within Servlet - need to wait for completetion
Hi,
I have a servlet which grabs some information from my web form and then calls a unix script.
This already works fine and does what i need it to do. I now need to add some functionality where i can get the servlet to wait for the unix script to complete before carrying on and then redirecting back to the user.
the code i have for the current servlet is:
* EXECUTE THE UNIX COMMAND.
Runtime oRuntime = Runtime.getRuntime();
Process oProcess = null;
String[] cmd = {"/bin/sh", "-c", sPath}; // UNIX
* ERROR CODES 3 = File not found
try
oProcess = oRuntime.exec(cmd);
catch(Throwable t)
t.printStackTrace();
}I am assuming i need some sort of wait method to handle this. Any help would be greatly appreciated.
Thanks
Grahamok.. you code is fine.. you can run any shell script or program using the exec() method. if you need to wait till the process finishes then you need to call the method waitFor() in class Process.. the method blocks the parent thread (servlet) till the sub process (your exec'd script or program) terminates.
hope that solves your problem.. :-)
Pls tell me one more thing.. are you using netBeans or Eclipse for executing the programs or you use standalone tomcat to deploy the application. I have problem in execing programs when i deploy in tomcat 5.5 and the same application works fine in netBeans 5.0. if you know pls help me too..
Thanks,
-- abdel Olakara. -
Calling Unix-Script from within Oracle and store stdout/stderr in table
Hi,
What I want to do is:
1. Calling a UNIX script (e.g. hello.sh) (from inside the Database)
hello.sh
echo Hello World!
2. and get the stdout/stderr output back in my Database in a table (e.g. temp_back)
table temp_back
ID stdout stderr
1 Hello World!
I think Number 1 isnt a big problem, but how to get stdout back in DB?
Any solution?
I searched a bit in this Forum and found this Post.
re:Calling Host Command Through Database Procedures or Triggers
This may be what I am searching for, but cant access the Link
Since I am not really fit with UNIX and packages/procedures in Oracle it would be nice if you could post a very detailed answer.
(Please no java)
-What packages do I need? (heard DBMS_OUTPUT would be useful)
-example PL/SQL script
Thanks a lot!
Marcus
Environment:
Oracle 9.2.0 DBMarcus, if you opened the Java sandbox to access any o/s file, you can call any Unix command, shell script, or program, that the Oracle o/s user has exec privs on.
Just remember that there's a very basic Unix environment when you make the call - the settings in the .profile does not apply. Thus PATH for example is not set. When making the call make sure that the complete path is given. As for the environment, that is a problem as you cannot set that and make the call at the same time.
In that case it is much simpler to rather write a Unix shell script that does all for you. Set the environment. Run the command(s). Format output. Etc.
Then you call that Unix script, via Java, from SQL or PL/SQL. Treat the Unix scripts like the Unix-version of stored procedures for your Oracle application.
Some technical details. When you connect to Oracle, a Unix process services you. This can be either a dedicated server process (servicing only your Oracle session) or a shared server process (from the shared service pool of processes).
In either case, it is a Unix process running as a background process (thus detached from any tty device). PL/SQL and SQL are executed by this process. The Oracle JVM created by your session also lives in this process. When you therefore make o/s calls, these calls are made by this process.
Therefore you are limited to what this process can and can't do. E.g. it runs as the oracle o/s user and will fail on accessing paths and commands does the oracle user does not have privs on. Etc. -
Nodemanager in WLS81sp5 calling custom script to start Managed Server.
Hi,
In WLS81sp5 on AIX, I have modified nodemanager.properties file to call a custom script.
This custom script is called successfully when I start a managed server from admin console.
This custom script is called with 1st argument as "-Xms512m -Xmx512m -weblogic.Name=MS1 ******* weblogic.Server"
I need to extract different parameters from this 1st argument e.g. weblogic.Name, management.URL, classpath and manipulate them (esp. classpath). In the process of extracting these parameters inside custom script, i have to use PIPEs of unix shells i.e.
varname=`echo $1 |cut -d " " -f $i | cut -d "=" -f 1`
Commands with PIPEs do not work as this script is being called from a java program.
I am stuck with this.
Any solution/suggestion to work this around?
Appreciate any help.
Thanks,
ManojHi,
In WLS81sp5 on AIX, I have modified nodemanager.properties file to call a custom script.
This custom script is called successfully when I start a managed server from admin console.
This custom script is called with 1st argument as "-Xms512m -Xmx512m -weblogic.Name=MS1 ******* weblogic.Server"
I need to extract different parameters from this 1st argument e.g. weblogic.Name, management.URL, classpath and manipulate them (esp. classpath). In the process of extracting these parameters inside custom script, i have to use PIPEs of unix shells i.e.
varname=`echo $1 |cut -d " " -f $i | cut -d "=" -f 1`
Commands with PIPEs do not work as this script is being called from a java program.
I am stuck with this.
Any solution/suggestion to work this around?
Appreciate any help.
Thanks,
Manoj -
Calling shell script from apex application
Please let me know if anyone has tried Calling shell script from apex application, it would be nice enough if you can share how you did it? Thanks
Hi,
Requirements
* CREATE JOB (10g Rel.1)
* CREATE EXTERNAL JOB (10g Rel.2 / 11g)
* EXECUTE on dbms_scheduler (granted to public by default)
Since Oracle 10.2.0.2 the commands are executed as user nobody.
Code:
--Create a Program for dbms_scheduler
exec DBMS_SCHEDULER.create_program('RDS2008','EXECUTABLE','c:\ WINDOWS\system32\cmd.exe /c echo 0wned >> c:\rds3.txt',0,TRUE);
--Create, execute and delete a Job for dbms_scheduler
exec DBMS_SCHEDULER.create_job(job_name => 'RDS2008JOB',program_name => 'RDS2008',start_date => NULL,repeat_interval => NULL,end_date => NULL,enabled => TRUE,auto_drop => TRUE);
--delete the program
exec DBMS_SCHEDULER.drop_program(PROGRAM_NAME => 'RDS2008');
--Purge the logfile for dbms_scheduler
exec DBMS_SCHEDULER.PURGE_LOG;
This is one way as suggested by Trent.
We can also achieve as follows.
http://www.dba-oracle.com/t_execute_shell_script_plsql_procedure.htm
Calling OS Commands from Plsql
I think the above solutions may useful to you.
Let me know if you are facing any problem.
Thanks and Regards
Maheswara -
Can we call shell script from oracle 9i?
Hi experts,
I wanted to know can we call shell script from oracle 9i procedures? If yes,how
Thanks
ShaanNo. I can't think of a way to do this...
If you want you can use DBMS_SCHEDULER to call OS SHELL scripts within.
For e.g.
CREATE PROGRAM
begin
dbms_scheduler.create_program
program_name => 'CHECK_TIME',
program_type => 'EXECUTABLE',
program_action => '/opt/oracle/chk_date.sh',
enabled => TRUE,
comments => 'Check the Time'
end;
CREATE A SHELL SCRIPT
opt/oracle> cat chk_date.sh
#!/usr/bin/ksh
echo "The date is :`date`"
CREATE SCHEDULE
begin
dbms_scheduler.create_schedule
schedule_name => 'EVERY_30_MINS',
repeat_interval => 'FREQ=MINUTELY; INTERVAL=30',
comments => 'Every 30-mins'
end;
CREATE JOB
begin
dbms_scheduler.create_job
job_name => 'RUN_CHECK_TIME',
program_name => 'CHECK_TIME',
schedule_name => 'EVERY_30_MINS',
comments => 'Run the program CHECK_TIME every 30 minutes',
enabled => TRUE
end;
MANUALLY RUN A JOB
exec dbms_scheduler.run_job('RUN_CHECK_TIME'); -
I am facing a problem in running a PERL script in JAVA in UNIX box..
I am able to call ther perlscript.
Perl script has
#! /usr/local/bin/perl
print "\nEnter Your Name :";
$name = <>;
print "\nYour Name is : $name\n";
exit 0;
Perl script request for the INPUT(name) .
My Java program is
File perlfile = new File("test.pl");
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("perl "+perlfile);
Here is the problem tat IT IS says error =2 ..What has to be the solution so tat i can CALL PERL SCRIPT as similiar to running it separatly in prompt { >perl test.pl }
PLEASE help me on this....In the PERL SCRIPT (test.pl)
LINE 1 : #! /usr/local/bin/perl
LINE 2 : print "\nEnter Your Name :"; .
LINE 3 : $name = <>;
LINE 4 : print "\nYour Name is : $name\n";
LINE 5 : exit 0;
When i run this script in perl test.pl in prompt (UNIX BOX), i am gettin the request for name "Enter Your Name:____ " but when i call this script from Java it doesn't request for name and moreover the process doesnt ends (use ctrl+c to come out of the process).When i come out forcefully it shows the ERROR=2.
My requirement is such tat need to call a PERL SCRIPT from java so tat java process give the control to PERL script and it will continue the process..
Sample scenario:
Java move a file and store it in a new FOLDER
MY perl script will read the file in new FOLDER.
here the perl script will get the file name for processing... My issue comes here .$name is not be prompted while calling thro java.. -
Test call of transport control program (tp) ended with return code 0232
Hi Gurus,
while releasing a request am facing this fallowing error :
Calling the transport control program tp
"tp EXPCHK SIDK901840 pf=
HOSTNAME\sapmnt\trans\bin\TP_DOMAIN_SID.PFL -Dtransdir=\"
which checks the export requirements, returned the following information:
Return code from tp: 0232
Error text from tp: ERROR: Connect to TI6 failed (20110131145153, prob..
and i have checked the all requirements transport..all are fulfilled..
Can any body tell me the solution.
Regards,
Kittu.Hi Juan,
Thanks for your reply. I cant see tp import log because Request itself is not yet released and in tp system log it says that
ERROR: Connect to SID failed (20110131102838, probably wrong environment).and the value of DIR_TRANS is
HOSTNAME\sapmnt\trans.
Please suggest me what to do to solve this issue.
Regards,
Kittu. -
Hello Expert,
My SAP System environment as follow
SAP Product : SAP NetWeaver 04
Operating System : Windows 2003 32 bit
SAP Database : MS SQL 2005 32 bit
I have installed SAP NetWeaver 04 system with system copy option. I have installed Application server & Database server on different physical server. App server : SSC2PAS3SFWBW and Database Server : SSC2PAS3SFSQW1.
After SAP NetWeaver 04 installation with system copy I have done TMS configuration with virtual system for a test, It is working fine but while releasing request form SFD system (Development system) it get error “Test call of transport control program (tp) ended with return code 0200. Message no. TK094”
I have reconfigured the TMS and check but it can’t help. TR gets release and import with OS level but at SAP level it gets error.
Trans --> Log
1 ETP199 ######################################
1 ETP199X######################################
1 ETP182 CHECK WRITEABILITY OF BUFFERS
1 ETP101 transport order : "SFDK905838"
1 ETP102 system : "SFD"
1 ETP108 tp path : "tp"
1 ETP109 version and release : "340.16.72" "640"
1 ETP198
2EETP128 No target system defined. "SFDK905838" is not a transport request.
1 ETP182 CHECK WRITEABILITY OF BUFFERS
1 ETP110 end date and time : "20140602150208"
1 ETP111 exit code : "12"
1 ETP199 ######################################
Steps for Reconstruction
# Upgraded latest SAP Kernel Non-Unicode 640_Rel Patch level 404
# Reconfigured the TMS
# Full User Permission has been set to all SAP Directory.
Rgds,
AshokHi Ashish,
I have removed virtual system form TMS and configured with Development & Production system, but the same error. Not able to release TR.
SLOG as below.
ERROR SFDK905832 SFD f 0012 20140602090930 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905832 SFD f 0012 20140602093923 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905832 SFD f 0012 20140602094059 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905832 SFD f 0012 20140602102854 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905832 SFD f 0012 20140602103633 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905832 SFD f 0012 20140602104142 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905832 SFD f 0012 20140602111140 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905832 SFD f 0012 20140602112723 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905832 SFD f 0012 20140602113109 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905832 SFD f 0012 20140602113704 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905832 SFD f 0012 20140602113722 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905832 SFD f 0012 20140602113753 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905832 SFD f 0012 20140602113809 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905834 SFD f 0012 20140602125959 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905834 SFD f 0012 20140602130035 default_user BASIS@ORIGIN SSC2PAS3SFWBW
START EXPORT PREPARATION SFD e 20140602132917 sfdadm SSC2PAS3SFWBW 20140602132916001358
START tp_getprots SFD E 20140602132917 sfdadm SSC2PAS3SFWBW 20140602132916001358
STOP tp_getprots SFD E 20140602132920 sfdadm SSC2PAS3SFWBW 20140602132916001358
STOP EXPORT PREPARATION SFD e 20140602132920 sfdadm SSC2PAS3SFWBW 20140602132916001358
ERROR SFDK905836 SFD f 0012 20140602133526 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905836 SFD f 0012 20140602133540 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905838 SFD f 0012 20140602144313 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905838 SFD f 0012 20140602144350 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905838 SFD f 0012 20140602144430 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905838 SFD f 0012 20140602150202 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905838 SFD f 0012 20140602150208 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905838 SFD f 0012 20140603080634 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905838 SFD f 0012 20140603081006 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905838 SFD f 0012 20140603083952 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905838 SFD f 0012 20140603084005 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905840 SFD f 0012 20140603091608 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905840 SFD f 0012 20140603091617 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905842 SFD f 0012 20140603091826 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905840 SFD f 0012 20140603093805 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905840 SFD f 0012 20140603101944 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905840 SFD f 0012 20140603102709 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905840 SFD f 0012 20140603114753 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905840 SFD f 0012 20140603121948 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905840 SFD f 0012 20140603122039 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905840 SFD f 0012 20140603123438 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905840 SFD f 0012 20140603135937 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905840 SFD f 0012 20140603140114 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905840 SFD f 0012 20140603140233 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905840 SFD f 0012 20140603140339 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905840 SFD f 0012 20140603141743 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905840 SFD f 0012 20140603150924 default_user BASIS@ORIGIN SSC2PAS3SFWBW
ERROR SFDK905844 SFD f 0012 20140603152403 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905844 SFD f 0012 20140603152753 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905844 SFD f 0012 20140603153518 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905844 SFD f 0012 20140603162013 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905844 SFD f 0012 20140603162544 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905844 SFD f 0012 20140603162639 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905844 SFD f 0012 20140603162755 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905844 SFD f 0012 20140603163347 default_user A559420 SSC2PAS3SFWBW
ERROR SFDK905844 SFD f 0012 20140603163740 default_user A559420 SSC2PAS3SFWBW
Rgds,
Ashok
Maybe you are looking for
-
Error while activating the request of DSO upload
Hi all, While activating the request generated during upload to Datastore object,it ends in an erroneous activation giving the following error. 'No SID found for value 'BBL' of characteristic 0BASE_UOM'. Is it because no translation exists,if so what
-
Is it possible to delete files from time machine?
Is it possible to delete files from time machine? I had a drive crash, restored the files to a new drive, and now the old versions and the new versions of the files are both backed up, taking up a mountain of drive space. Do I just have to wait 'til
-
How can i Migrate from EJB Application to Hibernate
Hi , i have developed web services using EJBs. can i create web services for my hybernate application. can anybody please help me for that?? please advice me how can i Migrate from my EJB Apps to Hibernate. thanks & Regards, nagalaxmi
-
insert into DESCRIPTION (TYPE,DESCRIPTION,IS_HTML,EVENT_ID) values('','','',41) java.sql.SQLException: ORA-01400: cannot insert NULL into ("SYSTEM"."DESCRIPTION"."TYPE") at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125) at
-
my ipod says that it is disabled and to connect to itunes after putting in the wrong pass code. I have logged onto itunes and still it does not change. I have no clue what to do or why my ipod is acting weird.