How to write into spool?
Hi experts,
I have a variable in my program that I want to write into the spool to see what was the value of it. How can I do that?
You can do this...
NEW-PAGE PRINT ON NO DIALOG
KEEP IN SPOOL 'X'.
WRITE: G_VARIABLE.
NEW-PAGE PRINT OFF.
Greetings,
Blag.
Similar Messages
-
HELP!!!!!! - How to write into a file?
How to write into a file?
I want to make a script that will connect(not enter) to my website[for example, www.vasa.com] every time i connect to the internet.
Now i have 3 problems:
1. i dont know how to write into a file
2. i dont know how to make it connect to my 'server' without entering the website
3. i dont know what file to write it to
so if someone can help me, please do.Well, how about RTFM?? In this case that can be found here:
http://developer.java.sun.com/developer/onlineTraining/
BTW - these things have been asked azillion times, search the forum. -
How to write 'into' a PDF-document ?
hi there,
i have a new small project to do with the following problem:
i get a file (text-file) with invoices from an external system.
I want to 'overlay' this file with a form, which is a PDF-document.
the question is: is it possible to write 'into the PDF'-form the contents of the text-file ? if yes, how is it possible ?
regards, Martinwell,
this is not what i need, sorry
i don't want to convert the text-file into a PDF-file.
i have an existing PDF-file (a FORM with all the overlay, like graphics, company-logo, etc....). and i have a text file. and i want to 'merge' the text into
the pdf-file.
regards, Martin -
How to write into generated HTML " " etc.?
Hi!
I use xmlparser_v2_0_2_6 for JAVA2 Solaris7.
When I declare ENTITY as:
<!ENTITY nbsp "#xA0;">
write into generated HTML symbol (code=#xA0),
but I need " " string.
Intuitivity I can declare ENTITY as:
<!ENTITY nbsp "&nbsp;">, but it is not work.
Where are trubles?know how to do that. Thanks
-
How to write into multicolumn listbox during runtime?
Hi,
I am able to edit into multicolumn listbox. But i am not able to write into empty boxes... How to do that???
Regards,
AmitHi Amit,
Have you initialised the item names with any default values? If not try initialising the item names to a 2D size that will be large enough for you're requirements. Once this size is set in edit mode you can't enter data at runtime outside of this initialised area.
Ian -
How to write into ldt log file in case of custom lct file
Hi Experts,
I have created one custom lct file for one of my requirement, from that I am calling database package for UPLOAD.
I want to write message into ldt log file if some validation fails.
Can anyone suggest how can I write messages into ldt log file.
Regards,
Brajeshuser13537002 wrote:
Hi,
After some search I got the solution
api FND_SEED_STAGE_UTIL.INSERT_MSG('Message'); works for me....it write message into ldt log file
Regards,
Brajesh
Thanks for the update and for sharing the solution!
Regards,
Hussein -
How to write into a private fiald from the outer world?
Hello,
I have just got some strange rerults and want to share them with you.
I'm writing a bean class. Each field of the bean conforms to a column in a table of the database. The bean is filled with a record of database from database by Entity Factory and is returned to me. I have not seen the sources of the Entity Factory system. The beans are entities that have setter and getters.
All my colegues use a standard scheme with private field (named as a column in the database) and setter/getter for it. I have deriviated from this scheme creating a virtual property; that is only setter and getter with no private field. And the Entity Factory started crushing! It cannot find the private field anymore to write data from a table into it!
I had an experiment adding the private field with the final modifier. And what do you think I've got in effect? The entity Factory started complaining that it CANNOT SET A PRIVATE FIELD BECAUSE IT IS MARKED WITH FINAL! Removing the final has solved the problem.
Can you beleive this story? As the system is Enterprise, I would think that application server would sublass my implementation. But the privates should be inaccessible anyway. I'm going to look into source codes tomorrow.As Kayaman says, you can get around the restriction described in the JLS by use of Reflection.
Consider the following example:
class SimpleKeyPair {
private String privateKey = "original"; // private field
public class ReflectionChecker {
public static void main(String[] args) throws Exception {
SimpleKeyPair keyPair = new SimpleKeyPair();
Class c = keyPair.getClass();
// get the reflected object
Field field = c.getDeclaredField("privateKey");
// set accessible true
field.setAccessible(true);
System.out.println("Value of privateKey: " + field.get(keyPair)); // prints "original"
// modify the member varaible
field.set(keyPair, "altered");
System.out.println("Value of privateKey: " + field.get(keyPair)); // prints "altered"
} -
How we write into properties file using get class method
Hi
I want to set some value into properties file using given code
can any one please tell me how i can do this.
property file
setting.properties
Name = abc
and code I use is
java.io.InputStream oInputStream = this.getClass().getResourceAsStream("Setting.properties");
Properties obj = new Properties();
obj.load(oInputStream);
String myName = obj.getProperty("Name");
System.out.println("myName :"+myName);
obj.setProperty("Name","def");
FileOutputStream oOutput= new FileOutputStream("Setting.properties");
obj.store(oOutput, "");
thanks.You can't.
If you have properties that change dynamically, you should not be using a properties file that sits in the classpath, you should be using Preferences, or a properties file that sits in some application or possibly even user directory, but not one in the classpath. The proper way to do this, would be to have a properties file in your jar (or otherwise in your classpath) that contains the defaults, and another one outside of the classpath in one of the twwo above mentioned areas, then, you read the default one only if the other doesn't exist, or you read the default one first, then read the other overwriting the values from the defaults.
Don't forget to save the properties again (right after loading if you loaded, or always load, the defaults) after every change. -
How to write into file from xml dom Object
Hello,
I try to transform my xml DOM document object into
file. I try the following:
try {
// Prepare the DOM document for writing
DOMSource source = new DOMSource(newDoc);
// Prepare the output file
File file = new File(myHomeRep + "btLom.xml");
StreamResult result = new StreamResult(file);
// Write the DOM document to the file
Transformer xformer = TransformerFactory.newInstance().newTransformer();
xformer.transform(source, result);
} catch (TransformerConfigurationException e) {
} catch (TransformerException e) {
But my file is empty.
I do it with some wel formed xml tree document, thus I am certain
that the xml tree exists.
Could you explane me please what I am doeing wrong,
or is there are some possibility to make from my xml dom object
a file.
In advance much thanks,
JuliaHere's one thing you are doing wrong:} catch (TransformerConfigurationException e) {
} catch (TransformerException e) {
}With this code, if an exception occurs then you are guaranteed to know nothing about it. At the minimum do this:} catch (TransformerConfigurationException e) {
e.printStackTrace();
} catch (TransformerException e) {
e.printStackTrace();
} -
How to write into a file from an applet?
Dear,
I made an applet and I want to create a file in a machine. I tried many way but it not work.
Here is the code:
URL url = "http://hostname/filename.txt;
URLConnection con = url.openConnection();
OutputStream out = con.getOutputStream();
out.write(data);
out.flush();
out.close();
Please help me resolve it.
Thanks.
KhaiURL url = new URL("http://hostname/filename.txt);
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(url.openStream()));
out.write("data"); -
How to write into selection screen varient table?
What is varient table name.
i need to update varient every time i have executed tha report.
How can i do it?You can use this FM to create the variant again
<b>end-of-selection.</b>
CALL FUNCTION 'RS_CREATE_VARIANT'
EXPORTING
CURR_REPORT = CURR_REPORT
CURR_VARIANT = CURR_VARIANT
VARI_DESC = VARI_DESC
TABLES
VARI_CONTENTS = VARI_CONTENTS
VARI_TEXT = VARI_TEXT
VSCREENS = VSCREENS
EXCEPTIONS
ILLEGAL_REPORT_OR_VARIANT = 1
ILLEGAL_VARIANTNAME = 2
NOT_AUTHORIZED = 3
NOT_EXECUTED = 4
REPORT_NOT_EXISTENT = 5
REPORT_NOT_SUPPLIED = 6
VARIANT_EXISTS = 7
VARIANT_LOCKED = 8
ERROR_MESSAGE = 9
OTHERS = 10. -
How can we put the report which is generated by the program into spool??
How can we put the report which is generated by the program into spool??
I had generated a file in Unix which had the report but now the requirement has changed.
Regards,
Shashank.Hi Shashank,
If the program is executed in the background and it has the write statement then the spool will automatically generated.
Reward points if useful.
Regards,
Atish -
How to write log information into SM37 batch job log
Hi,
I have a report running in batch mode, and I would like to log the start time and end time for some part of the code (different Function modules). I need to write this log information into the batch job log. Therefore I can check the time frame of my FMs.
After search the SDN, I can only get some information on how to write log into the application log displayed in SLG1, but that's not I want. I want to write batch log information, and check it in SM37.
If you have some solution or code to share, please. Thanks a lot.
Best Regards,
BenHi Nitin
Thanks for the reply. Could you explain it with some code ?
I tried to use the write statement , but it did not wrok. I could not see the result in SM37.
write : "start of the FM1 processing".
FM1 code
write : "end of the FM1 processing".
but those two statement did not show in SM37..
1) how to use a information message ?
2) how to use NEW PAGE PRINT ON and PRINT OFF command. ?
I would appreciate if you can write some code ,that I can use directly.
Thanks a lot.
Best Regards,
Ben -
Hi,
Iam new to the xml,
can u please anyone help me how to write procedure to load the data into a table using xml as input parameter to a procedure and xml file is as shown below which is input to me.
<?xml version="1.0"?>
<DiseaseCodes>
<Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
<Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
<Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
</DiseaseCodes>.
Regards,
vikram.here is the your XML parse in 11g :
select *
from xmltable('//Entity' passing xmltype
'<?xml version="1.0"?>
<DiseaseCodes>
<Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
<Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
<Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
</DiseaseCodes>
') columns
"dcode" varchar2(4000) path '/Entity/dcode',
"ddesc" varchar2(4000) path '/Entity/ddesc',
"reauthflag" varchar2(4000) path '/Entity/reauthflag'
dcode ddesc reauthflag
0 (I87)Other disorders of veins - postphlebitic syndrome 0
0 (J04)Acute laryngitis and tracheitis 0
0 (J17*)Pneumonia in other diseases - whooping cough 0
SQL>
Using this parser you can create procedure as
SQL> create or replace procedure myXMLParse(x clob) as
2 begin
3 insert into MyXmlTable
4 select *
5 from xmltable('//Entity' passing xmltype(x) columns "dcode"
6 varchar2(4000) path '/Entity/dcode',
7 "ddesc" varchar2(4000) path '/Entity/ddesc',
8 "reauthflag" varchar2(4000) path '/Entity/reauthflag');
9 commit;
10 end;
11
12 /
Procedure created
SQL>
SQL>
SQL> exec myXMLParse('<?xml version="1.0"?><DiseaseCodes><Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity><Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity><Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity></DiseaseCodes>');
PL/SQL procedure successfully completed
SQL> select * from MYXMLTABLE;
dcode ddesc reauthflag
0 (I87)Other disorders of veins - postphlebitic syndrome 0
0 (J04)Acute laryngitis and tracheitis 0
0 (J17*)Pneumonia in other diseases - whooping cough 0
SQL>
SQL>
Ramin Hashimzade -
How can I write into a table cell (row, column are given) in a databae?
How can I write into a table cell (row, column are given) in a database using LabVIEW Database Toolkit? I am using Ms Access. Suppose I have three columns in a table, I write 1st row of 1st column, then 1st row of 3rd column. The problem I am having is after writing the 1st row 1st column, the reference goes to second row and if I write into 3rd column, it goes to 2nd row 3rd column. Any suggestion?
Solved!
Go to Solution.When you do a SQL INSERT command, you create a new row. If you want to change an existing row, you have to use the UPDATE command (i.e. UPDATE tablename SET column = value WHERE some_column=some_value). The some_column could be the unique ID of each row, a date/time, etc.
I have no idea what function to use in the toolkit to execute a SQL command since I don't use the toolkit. I also don't understand why you just don't do a single INSERT. It would be much faster.
Maybe you are looking for
-
Hi experts, I have a FM in which there is one table customer_name It has fields as SIGN (type SIGN), OPTION (type OPTION), LOW (type name1_gp), HIGH (type name1_gp). Now the user can give single value, or a range of values for the customer name. I am
-
We have applied 9.2.0.5 patchset on 9.2.0.3 and after this we have completed the Post installation steps as well. After this when I tried to attach my AW it gives the following error in OLAP worksheet aw attach cvutrack ORA-37002: Oracle OLAP failed
-
Hi, all. I trying to learn how to produce reports, using iReport, but i am with the follow problem. I want create one report using parameters only. On the iReport, i test and all right. But in run time (calling of a java class), the JasperViewer show
-
Ability to ping redundant interface IP address
Hi, I have this setup for our content switches. Primary F/W --> Primary CSS --> Local Switches | | | | Secondary F/W --> Secondary CSS --> Local Switches This is the relevant configuration. Primary CSS circuit VLAN4 ip address 192.168.76.4 255.255.25
-
Cs4 ai after yosemite upgrade could not find a plug-in to read linked psd file
cs4 ai after yosemite upgrade could not find a plug-in to read linked psd file need to revise a client's file and can not access links! any hope?!