How exit for a script having set of pl/sql blocks and sql queries
HI,
I have set of blocks and sql queries in a script.
In some cases I want to stop the excution of next statements and blocks.
As in pl/sql block We can use return , in case of loop we can use exit, so what is to be use in case if sql script which contain set of blocks and sql queries.
Thanks and Regards in Advance,
Hi,
how to exit from the script if confirm_to_continue is set to 'N'.
i.e in this case I want the preceding statements not to be excuted.
Please suggest.
script:
declare /*BLOCK NO1*/
begin
IF &&confirm_to_continue = 'N'
THEN
---exit from from whole script
RETURN; -- this will only exit from this block
END IF;
end;
host IF EXIST &file_name (del &file_name) ELSE (echo missing)
declare /*BLOCK NO 2*/
begin
end;
/
Similar Messages
-
:I went to Mozilla's website and downloaded the Firefox Optimized for Yahoo, following the directions. The download installed easily, but when it opened my Yahoo web page (I already had an account with them), the Java Script error message "Uninstall set!" immediately began alerts, and kept repeating the alert about every 15 seconds. I got the same result even after uninstalling Firefox and downloading a fresh installation. I am only getting this alert via Firefox; I do not get it when using my Yahoo page with Google. Thanks.
See:
* https://support.mozilla.com/kb/Firefox+is+already+running+but+is+not+responding -
Hello, my engineer (Japanese) is trying to start AdobeMediaServer but he got stuck after getting "Waiting for another script to finish..." message. Any idea how to resolve this situation?
[root@NA1SIBZDH02 /opt/adobe/ams]# ./server start
NPTL 2.5
chmod: changing permissions of `./tmp/': 読み込み専用ファイルシステムです
Waiting for another script to finish...
[root@NA1SIBZDH02 /opt/adobe/ams]#
[root@NA1SIBZDH02 /opt/adobe/ams]#
[root@NA1SIBZDH02 /opt/adobe/ams]# ls -l
合計 52324
drwxr-xr-x 15 ams ams 4096 9月 11 17:54 Apache2.2
-rwxr-xr-x 1 root root 1061035 9月 11 17:54 License.htm
-rwxr-xr-x 1 root root 43374 9月 11 17:54 License.txt
-rwxr-xr-x 1 root root 58827 9月 11 17:54 ReleaseNotes.htm
-rwxr-xr-x 1 root root 5715 9月 11 17:54 adminserver
-rwxr-xr-x 1 root root 871 9月 11 17:54 adobe-lq.png
-rwxr-xr-x 1 root root 2912 9月 11 17:54 ams_icon.png
-rwxr-xr-x 1 root root 3220552 9月 11 17:54 amsadmin
-rw-r--r-- 1 root root 6 9月 11 17:54 amsadmin.pid
-rwxr-xr-x 1 root root 11187664 9月 11 17:54 amscore
-rwxr-xr-x 1 root root 4331472 9月 11 17:54 amsedge
-rwxr-xr-x 1 root root 3070840 9月 11 17:54 amsmaster
-rw-r--r-- 1 root root 6 9月 11 17:54 amsmaster.pid
-rwxr-xr-x 1 root root 5242 9月 11 17:54 amsmgr
drwxrwxrwx 6 ams ams 4096 9月 11 17:54 applications
-rwxr-xr-x 1 root root 960 9月 11 17:54 cleanup
drwxr-x--- 3 ams ams 4096 9月 11 17:54 conf
drwxr-xr-x 5 ams ams 4096 9月 11 17:54 creds
drwxr-xr-x 3 root root 4096 9月 11 17:54 documentation
-rwxr-xr-x 1 root root 16368842 9月 11 17:54 libadbe_dme.so
-rwxr-xr-x 1 root root 336065 9月 11 17:54 libadbe_flv.so
-rwxr-xr-x 1 root root 59248 9月 11 17:54 libasneu.so.1
-rwxr-xr-x 1 root root 71263 9月 11 17:54 libcares.so
-rwxr-xr-x 1 root root 71263 9月 11 17:54 libcares.so.2
-rwxr-xr-x 1 root root 71263 9月 11 17:54 libcares.so.2.0.0
-rwxr-xr-x 1 root root 1968482 9月 11 17:54 libcrypto.so.1.0.0
-rwxr-xr-x 1 root root 162403 9月 11 17:54 libexpat.so.1
-rwxr-xr-x 1 root root 3497472 9月 11 17:54 libfmsccme.so
-rwxr-xr-x 1 root root 6992879 9月 11 17:54 libhds.so
-rwxr-xr-x 1 root root 403767 9月 11 17:54 libssl.so.1.0.0
drwxr-xr-x 2 root root 4096 9月 11 17:54 licenses
drwxrwxrwx 2 root root 4096 9月 11 17:54 logs
drwxr-xr-x 5 root root 4096 9月 11 17:54 modules
drwxr-xr-x 6 root root 4096 9月 11 17:54 samples
drwxr-xr-x 3 root root 4096 9月 11 17:54 scriptlib
-rwxr-xr-x 1 root root 7494 9月 11 17:54 server
-rwxr-xr-x 1 root root 300864 9月 11 17:54 shmrd
-rwxr-xr-x 1 root root 36206 9月 11 17:54 tcSrvMsg
drwxrwxrwx 2 root root 4096 9月 11 17:54 tmp
drwxr-xr-x 9 root root 4096 9月 11 17:54 tools
-rwxr-xr-x 1 root root 2411 9月 11 17:54 uninstallAMS
drwxr-xr-x 8 ams ams 4096 9月 11 17:54 webroot
[root@NA1SIBZDH02 /opt/adobe/ams]#
[root@NA1SIBZDH02 /opt/adobe/ams]#
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーA possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.<br />
Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
See:
* https://support.mozilla.com/kb/Server+not+found
* https://support.mozilla.com/kb/Firewalls -
Hi,
How can I recover or re-activate my password if my account is blocked and I have no access to my email adress associated with my apple id, and worst case scenario, I forgot the answers for security questions...
Thanks,I forgot my password
Go to http://iforgot.apple.com and sign in with your iCloud login. A new password will be sent to your associated email address. If this doesn't work you will have to contact Support. Go to https://getsupport.apple.com; click' See all products and services', then 'More Products and Services, then 'Apple ID', then 'Other Apple ID Topics' then 'Lost or forgotten Apple ID password'.
I forgot my security answers and have no rescue email
Go to https://getsupport.apple.com click 'See all products and services', then 'More Products and Services, then 'Apple ID', then 'Other Apple ID Topics' then 'Forgotten Apple ID security questions'. -
How do I use scripting to set an object location?
Hello,
I have an "X" text object that I would like to change its (x,y) location on my .pdf form based on values that the .pdf user places into (2) separate decimal fields.
For Example:
If User enters for example 3.1 and 2.5 into the two decimal fields the location of the "X" object would be:
Xcoordinate = constant1 * 3.1 + constant 2
Ycoordinate = constant3 * 2.5 + constant 4
Does anyone have an idea on how I might be able to accomplish this using the script editor in LiveCycle Designer or some other method?
If not, is there a way for me to make the "X" movable (by dragging) by the end user who will not be using LiveCycle Designer?
Thanks,
ChrisHi,
you can manipulate the x and y on any object as long it's placed in a positioned page or subform.
The simply use a FormCalc script in the change event of your numeric fields to change the desired property.
For the x property it could look this way.
Textfield1.x = Concat($event.fullText, "mm")
Note: The x and y property accepts 4 different measurements (in, mm, cm and pt). -
Hi Experts ,
Below is my requirement .
My client wants to use the existing SAPScript ( i.e Cheque Printing Script- FI Module ) for on-site printing for different forms depending on some variables (for example - printer name or payment method supplement).
But the forms are defined in a static way. T-code F110 > Environment -> Maintain config -> Pmnt methods in company code -> Method C -> Form data.
Here my question is, is there a way to override the value dynamically at run-time using some kind of user exit?
If the User exit is not available then what is the proposed solution .
Here My Form is Zxxxxx Form ( Not Standard one ) But the print program is standardone ( RFFOUS_C)
Thnx
Venky .Hi Kishore ...
U r menrtioned the same thing which i mention in my query
i.e T-code F110 > Environment -> Maintain config -> Pmnt methods in company code -> Method C -> Form data. or Transaction FBZA Both r same.
Thnx
Venky -
What is the best way for a family to set up apple ID's and icloud?
My partner and I have separate apple id's and own a mac book, ipad, 2 iphones and apple tv. What's the best way to set it all up so we can access everything on each device? Can we merge our ID's into one and transfer all our payments? We just registered for icloud and used a new shared email address, but still have our separate apple ID's. We have separate email addresses, calendars and notes that we would prefer to keep separate. It's really just our itunes purchases, music and photos that we want to be able to share. Thanks in advance! Cheers, Nicky
They will be able to download everything that was bought with their Apple ID. If they all shared an ID then they switched to their own ID they won't be able to use any apps or music bought with another Apple ID. As I explained in my previous response. There is only one way to share apps and content across multiple Apple ID's and that is home share. So, NO there isn't a "Smooth" way to do it.
-
How do I ensure permissions I set apply to all files and folder below
Hi Everyone,
I dont know if you will be able to help but Im sure someone will know the answer to this one.
OK, so, I run my MAC with a VMWare Fusion Windows Virtual Machine running Windows 7 and I manage my time machine and some other backups using a Netgear ReadyNAS NV+.
What I am finding irritating is that say I use the Apple+CTRL+i command to change the permissions on the 'Pictures' folder to give the account I use for the Windows access and ReadyNAS access to have 'Read + Write' permissions, then 'apply to enclosed items', this works fine.
However, should I move files, create new ones or the system creates new ones, it does not apply the permissions I set. This is irritating because it is preventing the NAS box from completing a sucessful backup and I often find that if I try and open an image for example on my Windows VM, I will get a messaging informing me that I don't have permission to open that file.
What I then have to do is repeat the permissions setting process, then I can open the file and work on it.
This is becomming extraordinarily irritating and Im sure there is something I can do but I dont know what that may be.
PLEASE can someone help me from going insane!?
Thanks,
RossWhen you create an action, the first step is the "Start with" step where you can select a folder. Just to the right of that there's an icon that you can click to select other file types. Just deselect them all.
An alternative it to temporarily move the PDFs to another folder. -
How to write a JAVA program to execute the SQL queries
I have a database in the Microsoft Access queries and I need to execute the query by some how write the Java program to make it execute the query. because I need to get the different of time so I know how fast each query run.
Thank youYou need jdbc-driver for MSAccess for run this example:
JDBCClient.java
import java.util.Properties;
import java.lang.String;
import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.BufferedOutputStream;
import java.lang.System;
import java.lang.Class;
import java.sql.SQLException;
import java.util.Date;
import java.util.Locale;
import java.text.DateFormat;
import java.sql.Time;
public class JDBCClient{
private String DriverName = new String();
private String DatabaseURL = new String();
private String UserName = new String();
private String Password = new String();
private String SQLFile = new String();
private String OutputFile = new String();
private String Separator = new String();
private boolean NeedColumnHeaders;
private String EncodingParamName = new String();
private String EncodingValue = new String();
private String OutputEncoding = new String();
private boolean AfterLastColumnSeparator;
JDBCClient( String propfilename){
System.out.println( "Initializing...");
Properties properties = new Properties();
try{
properties.load( new FileInputStream( propfilename));
catch( Exception e){
System.out.println( "Error: " + e.toString());
System.exit( 0);
DriverName = properties.getProperty( "DriverName");
DatabaseURL = properties.getProperty( "DatabaseURL");
UserName = properties.getProperty( "UserName");
Password = properties.getProperty( "Password");
SQLFile = properties.getProperty( "SQLFile");
OutputFile = properties.getProperty( "OutputFile");
Separator = properties.getProperty( "Separator");
if( properties.getProperty( "NeedColumnHeaders").compareToIgnoreCase( "yes") == 0 ||
properties.getProperty( "NeedColumnHeaders").compareToIgnoreCase( "true") == 0)
NeedColumnHeaders = true;
else
if( properties.getProperty( "NeedColumnHeaders").compareToIgnoreCase( "no") == 0 ||
properties.getProperty( "NeedColumnHeaders").compareToIgnoreCase( "false") == 0)
NeedColumnHeaders = false;
else{
System.out.println( "Invalid value for \"NeedColumnHeaders\" property (logical expected)");
System.exit( 0);
EncodingParamName = properties.getProperty( "EncodingParamName");
EncodingValue = properties.getProperty( "EncodingValue");
OutputEncoding = properties.getProperty( "OutputEncoding");
if( properties.getProperty( "AfterLastColumnSeparator").compareToIgnoreCase( "yes") == 0 ||
properties.getProperty( "AfterLastColumnSeparator").compareToIgnoreCase( "true") == 0)
AfterLastColumnSeparator = true;
else
if( properties.getProperty( "AfterLastColumnSeparator").compareToIgnoreCase( "no") == 0 ||
properties.getProperty( "AfterLastColumnSeparator").compareToIgnoreCase( "false") == 0)
AfterLastColumnSeparator = false;
else{
System.out.println( "Invalid value for \"AfterLastColumnSeparator\" property (logical expected)");
System.exit( 0);
try{
byte[] EOL = new byte[2];
EOL[0] = 13;
EOL[1] = 10;
Class.forName( DriverName);
Properties connInfo = new Properties();
connInfo.put( "user", UserName);
connInfo.put( "password", Password);
if( EncodingParamName.length() != 0 && EncodingValue.length() != 0)
connInfo.put( EncodingParamName, EncodingValue);
Connection connection = DriverManager.getConnection( DatabaseURL, connInfo);
FileInputStream in = new FileInputStream( SQLFile);
byte[] buffer = new byte[in.available()];
in.read( buffer);
in.close();
String SQL = new String( buffer);
PreparedStatement statement = connection.prepareStatement( SQL);
Date d1 = new Date();
System.out.println( "Database connected at " + d1 + " Executing statement...");
ResultSet resultSet = null;
if( statement.execute())
resultSet = statement.getResultSet();
else{
System.out.println( "Script updates " + statement.getUpdateCount() + " records.");
System.exit( 0);
ResultSetMetaData metaData = resultSet.getMetaData();
BufferedOutputStream out = new BufferedOutputStream( new FileOutputStream( OutputFile));
if( NeedColumnHeaders && metaData.getColumnCount() > 0){
String head = new String();
for( int i = 1; i < metaData.getColumnCount(); i++)
head += metaData.getColumnName( i) + Separator;
head += metaData.getColumnName( metaData.getColumnCount());
out.write( head.getBytes( OutputEncoding), 0, head.length());
out.write( EOL, 0, 2);
String record = new String();
while( resultSet.next()){
record = "";
for( int i = 1; i < metaData.getColumnCount(); i++)
record += resultSet.getString( i) + Separator;
record += resultSet.getString( metaData.getColumnCount());
if( AfterLastColumnSeparator)
record += Separator;
out.write( record.getBytes( OutputEncoding), 0, record.length());
out.write( EOL, 0, 2);
out.close();
Date d2 = new Date();
System.out.println( "Done at " + d2);
System.out.println( "Executing time " + new Time( d2.getTime() - d1.getTime() - 10800000));
catch( ClassNotFoundException e){
System.out.println( e.toString());
catch( SQLException e){
System.out.println( e.toString());
catch( java.io.IOException e){
System.out.println( e.toString());
System.exit( 0);
public static void main( String args[]){
if( args.length == 1)
new JDBCClient( args[0]);
else
System.out.println( "Usage JDBCClient <properties_file>");
}JDBCClient.properties ( for Oracle database)
DriverName=oracle.jdbc.driver.OracleDriver
DatabaseURL=jdbc:oracle:thin:@192.168.1.1:1521:test
UserName=test
Password=test
SQLFile=test.sql
OutputFile=test.csv
Separator=*
NeedColumnHeaders=yes
EncodingParamName=
EncodingValue=
OutputEncoding=windows-1251
AfterLastColumnSeparator=yestest.sql
select * from users; -
How To reset iPad without having it synced to a computer and not knowing the password???? I changed my password and have forgotten it is there any way I can access and get on it??? Thanks
You must use a computer. There is no way around it for you.
You have to restore the device within iTunes. You can restore with any other computer, but you will lose everything on the iPad. You will have to download all of your purchased content again after you unlock the device.
You will have to use recovery mode
iPad: Unable to update or restore -
PC-WQS: User exit for material valuation
Hello,
Currently we use data from the purchase info records to carry out material valuation of raw materials in the cost estimate. The client would like to get this data from the contracts instead of the info records since all purchase orders get information from the contracts. The second reason is that maintenance of the info record is very cumbersome and prone to errors when creating or updating the cost/ quantity.
My question is, has anyone used the user exit COPCP005 - User exit for material valuation (strategy U) in the valuation variant and has anyone gone after the contracts to get the purchase price?
If yes, I would like to know how you did it.
Thanks,
dineshCan you explain a little more where you encountered the problem?
1. Is there a Val Strategy before the Val Strat U that is probably able to find a price for costing?
2. Is the User Exit being triggered?
3. Can you run CK11N in the debug mode (/h) and check if the User Exit is triggered?
4. If all of these occur, the problem probably lies in the ABAP code... check for changes in the material number range or plant codes, or the plant-specific material status - the system does not valuate if the status does not permit it to.
If nothing works, come back with confirmation of the above and we'll go forward from there.
Cheers. -
User Exit for VA01 - Delivery Block
Dear Friends
I wanted to do a User Exit for VA01 which should set the Delivery Block = Credit Memo as default for a particular user.
Can anyone give me the solution.
REg
S.K.RajHi Kamaraj,
First of all u have to find out the perticular exit for make the changes, after that take one field TBTKZ which is flag for decit /credit memo. Based on the condition that flag set as 'X'. If that flag set as 'X' then populate the data.
Here it ishow to find out the user exit.
execute the following report and enter the t-code VA01 it will display all the exits. then search them by seeing coments..
report zuserexit no standard page heading.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode obligatory.
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
select single * from enlfdir where funcname =
tfdir-funcname.
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct where sprsl eq sy-langu and
tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
Hope this helps you..
Regards,
Kumar. -
Menu exit for ik11-------- take point.s
HI all,
I found a menu exit for tcode IK11. Could u let me know, what i 've to write in the function module.
<b>Got points soon</b>
Regards,
[email protected]Hi Pradeep,
Firstly, your question is not furnished well.
Once you found the menu exit for the TCode ik11, click on the function module, and a dialog box will be displayed.
Provide the Icon image, its name and information abt the icon.
Once you save and activate the function module. Go to Tcode ik11 and you may find the Menu Exit.
<b>Reward Points if useful</b>
Harish -
User Exit for Sorting Prod Ord. Status by date instead of status(CO03) ?
Hi Experts
While using TX CO03 and on Production Order Header screen
Header->Status Changes
Change documents in Status management is displayed.
On this screen the table is sorted by System Status.
We want to sort this table by Date and time and not by System Status which seems SAP default.
I understood based on your response that we need RICEF for this.
I was wondering if there is a user exit for this ?
Pls advise if anybody has found and used a user exit for this.
Appreciate your help.
Regards
GauravThx
-
The binary code for the script is not found error for the Script component - SSIS 2012
Hi,
I'm implementing a SSIS 2012 pkg. For a data flow task, I'm using a Visual Basic 2010 script component with an Oracle input flow. For the script component I've an input column and I've created an output column. Inside the script code I've edited only inside
Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer).
The written code is:
If Year(Row.OFFDATAORI) < 1900 Then
Row.OFFDATAORIconv = CDate(CStr("1900" + "-" + Right("00" + CStr(Month(Row.OFFDATAORI)), 2) + "-" + Right("00" + CStr(DatePart(DateInterval.Day, Row.OFFDATAORI)), 2))
Else : Row.OFFDATAORIconv = Row.OFFDATAORI
End If
It is to note that OFFDATAORI isn't the name of the input column for the script component.
When I close the script component I've an error about "The binary code for the script is not found".
Any helps to me, please?
ThanksHi,
I've solved. There was a syntax error, a bit hidden.
Bye
Maybe you are looking for
-
Provisioning: Users from OIM to Active Directory
Dear Experts! I am trying to setup provisionig from OIM to AD. I just want to provision Users from OIM to AD. I am going through this documentation/tutorial: http://download.oracle.com/docs/cd/E11223_01/doc.910/e11197/deploy.htm#insertedID0 i also re
-
How do i put a Picture in LiveType?
How can i put a picture as a background?
-
I forgot my ipod passcode lock, how do i unlock it again?
I have tried doing the 'Try to connect to itunes on your home conputer device' Thing, it hasnt work ONCE. Plese help.
-
How do I delete the message app from my mac?
I have a late 2009 iMac 21.5" monitor. I noticed when I upgraded the operating system, Messages was added. I don't like having messages appear on the iMac. I've tried to disable messages, by removing all associated accounts. eg. phone, email. etc, H
-
Read most current version of record
I am new to Crystal and would appreciate some help with the following issue: I am reading 2 tables. The first table has a field named Policy#. The 2nd table has a number of records for that policy#. It also includes a version# field. I only want