Return money
Hello!I want return my money. I want to cancel the purchase of 10 GB to store icloud
Read here on how to get a refund & the time limit to ask for such:
http://support.apple.com/kb/PH12798
Similar Messages
-
How i can return money which were paid for increase in volume of storage in iCloud
How i can return money which were paid for increase in volume of storage in iCloud
The following link to Apple's iCloud storage upgrade cancellation policy may help: http://support.apple.com/kb/PH12798
-
Hello. I want to reduce a tariff plan of iCloud to 10 Gb and to return money for a tariff plan to 20 Gb. Thanks
How do I pay for storage annually? I also do not like this"deal" I would like to revert to my original plan.
-
Hello. I want to reduce a tariff plan of iCloud to 10 Gb and to return money for a tariff plan to 20 Gb. Thanks
How do I pay for storage annually? I also do not like this"deal" I would like to revert to my original plan.
-
What is T code for return money of advance payment.
hello Gurus.
in our comapany, we gives advance money to our site engineer. and site engineer is define as vendor in our comany.
now some money is not spent by site engineer. and They want to revoke it back to account department.
so how acount department take entry of that money.
which t code is use to collect that money back.
we are waiting your reply.
Regard,
Riten patelDear,
Create one special G/L for advance payment to site engineer. For e.g. you have create special G/L T - Advance to site engineer.
Whenever you make advance payment of Rs. 1000 to site engineer the entry will be - Use transaction F-02
PK Account Sp G/L Amount
29 Vendor a/c T 1000
50 Cash a/c 1000
When engineer returns Rs. 200. then - Use transaction F-02
PK Account Sp G/L Amount
39 Vendor a/c T 200
40 Bank a/c 200
It is better if you create your own document type for e.g. ZR - Return of adv payment from engineer so that this transaction will identified very easily.
Regards,
Chintan Joshi. -
Hi all.
Business scenario is like this:
- ACME ltd. issues an invoice to a John Doe to $100
- John Doe accidently pays $120
- After he realizes that, John $20 of his money back to his bank account. He doesnt want it to be left over for clearing the next invoice nor he wants to be payed via cash journal. He is willing to provide the bank account details.
What would be the best way of handling this situation?
One of the solutions (ill try to leave this for the last option) is creating manual payment to his bank account and then recording it via FPE1 transaction. Is there any payment run option that would go throught the contract account, select the candidates (or let me choose them), and then create a bank payment form?
Thanks!
MarkoMarko:
for that open item - go to payment data tab and enter/maintain a payment method, eg check or ACH. ACH would require the data to be stored on the BP.
Alternately, you can go to txn FPTCRPO and process the credit individually.
regards,
bill. -
Cancel my prieum account and return money my accou...
Sir please cancel my preimum accoun
t and return my amount asap n my bank accountWelcome to the Apple community.
You can't actually cancel an iCloud account, but you can stop using it, log out and save your contacts back to your Mac. -
Return Sales process, Posting billing document before return delivery
Hello SAP Experts,
Please guide me to map the Return Sales process scenario.
I need this to map a scenario for Return Sales from one country to other country.
Scenario is as follow:
u2022 I had created return delivery directly without any previous sales order. (VA01)
u2022 I want to return money in advance to customer before return deliver. (I donu2019t know whether it is debit memo or credit memo) (VF01)
u2022 Return delivery.(VL01N)
Please help me to map this scenario.
If possible please send the document to create Billing document before delivery against sales order and also configuration document for the same?
Thanks in advance.
Waiting for reply.
Best regards,
MaheshHello Lakshmipathi,
Thanks for reply.
Scenario is as Below
Customer in Belgium wants to return some material which he has purchased from Vendor in South Korea in month Jan 2010.
Customer in Belgium has created Return Purchase order and Goods return document with movement type 161.
Vendor in South Korea has Created Return Sales order with Z document type.
As per standard process Customer in Belgium need to create Credit Memo after Goods Return by 161 movement, but canu2019t do that because some legal implications and so canu2019t send the Credit memo to customer in South Korea.
So Customer in Belgium is expecting Credit Memo first from Vedor.
So Vendor in South Korea, need to Create Credit Memo first before creating Return delivery.
Hopes this clears exact scenario.
Please advice how to create Credit memo first after Return sales order. If configuration is necessary for this, please advice to do it.
In brief, Vendor in South Korea, has Created Return Sales order and he want to create Credit memo before creating Return Delivery without Credit Memo from customer.
Best regards,
Mahesh -
I want my money back! but the shop wont do that
hi everyone
i am SO DONE with the zen micro! from what read on this forum, lots of people had a problem with their headphones being broke, I HAD THAT TOO! other people had problems had problems with their creative just not turning on at all anymore, I HAD THAT TOO! that's two times that my creative zen micro has been in repair, 6 weeks i get a new one. but now, AGAIN, my zen micro is broken, it is frozen at the creative screen, like a lot of people have too. now i completly HAD it with this device, i don't want another repair or new machine, i simply want my money back and i'm gonna get another mp3 player. but here comes the trouble:
i bought this thing at a shop which doesn't just return money (and i can understand), but they also don;t just give out a new machine, they just take it in repairs. the last time my zen was in repair it was away for 2 (!) **bleep**ing weeks!! is there any way i can somehow contact creative and ask my money back from them? since the shop doesn't.... does anyone know how to get my money back in stead of repairment?Message Edited by Serious_Shady on 0-2-2005 09:4 PMMost stores, i believe, would not do a refund. This is especially so if the player is bought for quite sometime already i.e. more than a month (think about it: If i buy a player which I don't really like/bought a player just to test it out, then I simply get a refund - is that fair to the store?). What they usually do is offer a -to- exchange. Even so, that exchange is only available for a pretty short period of time, usually with 7 days of purchase. Guess you should just make full use of the warranty services at the moment.
-
Help Transfering Money in Account Class
Hi, i had a task where i have to add some feature to a account class. I have done the first two (checking if in credit, and applying a credit charge) but i am having trouble with the transfer one. Money has to be transfered from "from" to the account. The tip says the following.
"Send the message to withdraw to the object passed as a parameter. Then you will need to add the withdrawn amount to the balance in the current account. Remember the object from is a seperate account and is passed by reference. Consequence of passing the handle to the object by value. So that all changes made to the formal parameter from are made to the actual object that is passed."
My question is that how do i set up the reference to the account from, as i am unsure how to, as how i have it at the moment is just withdrawing from the current account? Also at the moment i have
"getBalance()=getBalance()+amount;" why will it not allow this as they are all double?
Super class
class Account
private double theBalance = 0.00; // Balance of account
private double theMinBalance = 0.00; // Minimum bal (Overdraft)
public double getBalance()
return theBalance;
public double withdraw( final double money )
assert money >= 0.00;
if ( theBalance - money >= theMinBalance )
theBalance = theBalance - money;
return money;
} else {
return 0.00;
public void deposit( final double money )
assert money >= 0.00;
theBalance = theBalance + money;
public void setMinBalance( final double money )
theMinBalance = money;
public double getMinBalance()
return theMinBalance;
}And my subclass
public class AccountBetter extends Account
boolean a;
double charge;
double newbal;
double awooga;
public boolean in_credit(){
if (getBalance()>0.00)
a = true;
else
{a = false;
return a; }
public void credit_charge()
{if (getBalance()<0.00)
{charge = getBalance() * -0.00026116;
if (withdraw(charge)>getMinBalance()){
setMinBalance(getMinBalance()-charge);
withdraw(charge);
public void transfer (AccountBetter from, double amount)
withdraw(amount);
getBalance()=getBalance()+amount;
}Hi, i had a task where i have to add some feature to a
account class. I have done the first two (checking if
in credit, and applying a credit charge) but i am
having trouble with the transfer one. Money has to be
transfered from "from" to the account. The tip says
the following.Finally somebody who's posting code, asking precise questions and makes sense :-)
"Send the message to withdraw to the object passed as
a parameter. Then you will need to add the withdrawn
amount to the balance in the current account. Remember
the object from is a seperate account and is passed by
reference. Consequence of passing the handle to the
object by value. So that all changes made to the
formal parameter from are made to the actual object
that is passed."Pass-by-reference v.s. pass-by-value
Search on that in this forum, you'll find about everything you ever want to know (and don't want to know) about it.
My question is that how do i set up the reference to
the account from, as i am unsure how to, as how i have
it at the moment is just withdrawing from the current
account?Imagine 2 account objects, method calls with parameters and calling methodson both objects.
(Also remember the pass-by-reference thingies you spent time on reading here in the forum :-P )
Also at the moment i have
"getBalance()=getBalance()+amount;" why will it not
allow this as they are all double?This won't ever work, sorry about that, but no luck there.
You cannot assign a value to a method call.
<snip-code />
I would take a look at the coding standards while you were at it,
for example: the method credit_change is not according to the, general accepted, coding standards ;-)
About your problem,
the signature of the transfer money is sufficient but think about the following:
- Where do i want to transfer from?
- Where do i want to transfer to?
- Can i assign values to a method or can i only do that to variables that are visible in the scope i'm working in?
- Are there any other methods I could use, for example inherited ones? -
Extract values from an object trapped in TreeMap
I can't figure out how to get the balance of an account Object (consisting of name plus balance)which is stored in a TreeMap.
Normally it would go like this: For example
accounts[2].getBalance();
Normally would return the value for the specified account.
Can anybody help?
Thanks.
import java.util.*;
class Account
private double theBalance = 0.00; // Balance of account
private String theName = "";
public static void main (String args[]) {
Account accounts[] = new Account[4];
TreeMap accountsMap = new TreeMap();
accountsMap.put( "0023", new Account( "Gordon", 100.0 ) );
accountsMap.put( "0123", new Account( "James", 200.0 ) );
accountsMap.put( "0001", new Account( "Edward", 300.0 ) );
accountsMap.put( "7777", new Account( "Percy", 400.0 ) );
BankStats bs = new BankStats();
LinkedList r = bs.accountsBelow( accountsMap, 250.0 );
System.out.println(r);
public Account( String name, double openingBalance )
theBalance = openingBalance;
theName = name;
public double getBalance()
// assert theBalance >= 0.00;
return theBalance;
public String getName()
return theName;
public double withdraw( final double money )
// assert theBalance >= 0.00;
if ( theBalance >= money )
theBalance = theBalance - money;
return money;
} else {
return 0.00;
public void deposit( final double money )
// assert theBalance >= 0.00;
theBalance = theBalance + money;
class BankStats {
public LinkedList accountsBelow (TreeMap accountsMap, double ammount) {
LinkedList list1 = new LinkedList();
for (int i = 0; i < 10000; ++i) {
String no = Integer.toString(i);
for (int z =0; no.length()<4 ; z++) {
no= "0"+no;
if (accountsMap.get(no)!= null) {
System.out.println (accountsMap.get(no)); // WANT TO GET THE BALANCE FOR THE ACC OBJECT ASSOCIATED WITH THIS KEY (String no)
if (accountsMap.get(no)< ammount) {
list1.add(accountsMap.get(no)); }
return list1;}
public LinkedList accountsBelowNotFrozen (Account accounts[], double ammount) {
LinkedList list2 = new LinkedList();
for (int i = 0; i < accounts.length; ++i) {
String nam = accounts.getName();
if (accounts[i] != null) {
if (accounts[i].getBalance() < ammount & !nam.endsWith("[Frozen]")) {
list2.add(accounts[i]); } } }
return list2;}Use this method call to retrieve the balance (or anything else):
Account acc = (Account) accountsMap.get(no)
double bal = acc.getBalance();or simply:
double bal = ((Account) accountsMap.get(no)).getBalance(); -
I've had a black 80 GB iPod since around the time it was first released (January 2007). Until about 6 months ago, I never had any problems with it - I could download songs, TV shows, movies, and games without experiencing any problems.
About 6 months ago, when downloading a TV show season package, I received a message on one of the episodes that I'd never seen before, error 8008 (which told me that the file was corrupted and could not be downloaded). After some unproductive back-and-forth with a representative, I gave up on the episode and deleted the file from my computer hard drive completely. Of note, even though I'd given up on the episode and removed it from my iTunes download list, it appeared on my iTunes download list randomly last week and there were no problems with the download.
But ever since the original incident 6 months ago (when I received the 8008 error message), my iPod has turned on me. Videos that I have downloaded since then (both movies and TV shows) will suddenly freeze and the iPod itself will start making this noise - kind of like a computer when it's "thinking" - and I can feel the iPod churning in my hand. This is usually accompanied by a harsh loud scratching and "bleeping" noise on the audio, and the screen goes black. On some videos, I have been able to fast-forward for several seconds and then it returns to normal. On some of these videos, I have to fast-forward several times during the video because it will happen more than once. And some videos I simply cannot watch because the iPod will not permit me to fast forward over the corrupted segments. It takes a lot of effort and many attempts at resetting before the iPod will become "unstuck." Songs and albums I've downloaded also have minor "skips" in certain places as well (kind of like a CD with a tiny scratch) but this is not as frustrating as the TV shows and movies ... a "skip" here or there is nothing compared to paying $15.99 for a movie you cannot watch!
Edited to add: None of the videos I downloaded before receiving the 8008 error have had any problems since the 8008 error appeared. I can still watch them all just as before. No skipping, no freezing, nothing. It is only videos I've downloaded since then that have had these issues.
Oh, also after the 8008 error, I began seeing a white screen I'd never seen before after turning on my iPod telling me that my iPod needed to be restored. I had never seen such a message before. Again, I followed all of the steps that Apple suggested; it kept happening anyway. I saw this message for about 4 months, but I haven't seen it since.
Currently, I have 31.80 GB free on my iPod. I have never "overloaded" my iPod and have never had less than 20 GB free at a time. I've never dropped my iPod; I keep it in a protected plastic case; I update the iTunes software every time it is available; I am not using Genius; I have never imported a video or a CD that was NOT from iTunes into my library - after my library was erased when I upgraded from the earlier version to the 80 GB model, I didn't feel like uploading my CDs all over again, so this cannot possibly be an issue related to getting a "virus" from downloading movies from the Internet.
Is my iPod corrupted forever? Will it always be a guessing game from now on as to whether a video I've downloaded will be perfectly fine or whether it will skip and freeze and not permit me to watch it? (In which case, iTunes certainly doesn't return money, as the download on their end was "successful.") How do I go about fixing this problem when the iPod - while in perfect condition otherwise because I've kept such good care of it - is no longer under warranty?Also, if there's a better place to post this question, please let me know how to post it elsewhere. I tried to do so but I suppose I'm not permitted to double post in different forums?
-
THE ONE WHO SOLVES THIS PROBLEM IS GREAT!
I'm serious. I am so fed up I am with this problem. Ground rules: you must NOT just give me code. I need to be able to know why my problem is happening, and how to fix it myself. I'm a grad student and am bound by a code of conduct. I don't have any more time to spend investigating this. It could be something simple or complex...I am at a loss.
Here is the situation: I'm developing this console java application on my Windows PC. When I run it on my pc, it runs in under a minute. However, when I transfer my program to the servers at my school (sun unix workstations) it takes a ridiculous amount of time to run the same program. I am told that 80% of the students in my class have their programs running in less than 5 minutes. Almost all of them didn't have to do any kind of optimizations. They just wrote it, and it worked. My program is averaging 10-15 min, but my prof runs it locally at school, and says it takes 40 min!
The entire program is posted below. Please forgive me for not commenting so great. They were better at first, but when I started moving things around and changing everything, I threw comments out the window. Still, the existing comments should be helpful in understanding what I'm doing. NOTE: Below the code is the DTD that all the .xml files I'm parsing conforms to. Here are a few links to .xml files that represent part of the dataset. The actual dataset consists of 40 files totaling 30MB.
http://www.geocities.com/c_t_r_11/items-1.xml
http://www.geocities.com/c_t_r_11/items-10.xml
http://www.geocities.com/c_t_r_11/items-20.xml
the dtd is at:
http://www.geocities.com/c_t_r_11/itemsdtd.txt
And here is the code:
/* Instructions:
This program processes all files passed on the command line (to parse
an entire diectory, type "java MyParser myFiles/*.xml" at the shell).
At the point noted below, an individual XML file has been parsed into a
DOM Document node. You should fill in code to process the node. Java's
interface for the Document Object Model (DOM) is in package
org.w3c.dom. The documentation is available online at
http://java.sun.com/j2se/1.4/docs/api/index.html
A tutorial of DOM can be found at:
http://java.sun.com/webservices/docs/ea2/tutorial/doc/JAXPDOM.html#67581
Some auxiliary methods have been written for you. You may find them
useful.
Modified by:
Will
import java.io.*;
import java.text.*;
import java.util.*;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.FactoryConfigurationError;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.*;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import org.xml.sax.ErrorHandler;
class MyParser{
static DocumentBuilder builder;
static final String[] typeName = {
"none",
"Element",
"Attr",
"Text",
"CDATA",
"EntityRef",
"Entity",
"ProcInstr",
"Comment",
"Document",
"DocType",
"DocFragment",
"Notation",
static final String[] itemTags = {
"Number_of_Bids",
"Started",
"Ends"
static class MyErrorHandler implements ErrorHandler {
public void warning(SAXParseException exception)
throws SAXException {
fatalError(exception);
public void error(SAXParseException exception)
throws SAXException {
fatalError(exception);
public void fatalError(SAXParseException exception)
throws SAXException {
exception.printStackTrace();
System.out.println("There should be no errors " +
"in the supplied XML files.");
System.exit(3);
/* Non-recursive (NR) version of Node.getElementsByTagName(...) */
static Element[] getElementsByTagNameNR(Element e, String tagName) {
Vector elements = new Vector();
Node child = e.getFirstChild();
while (child != null) {
if (child instanceof Element && child.getNodeName().equals(tagName))
elements.add(child);
child = child.getNextSibling();
Element[] result = new Element[elements.size()];
elements.copyInto(result);
return result;
/* Returns the first subelement of e matching the given tagName, or
* null if one does not exist. */
static Element getElementByTagNameNR(Element e, String tagName) {
Node child = e.getFirstChild();
while (child != null) {
if (child instanceof Element && child.getNodeName().equals(tagName))
return (Element) child;
child = child.getNextSibling();
return null;
/* Returns the text associated with the given element (which must have
* type #PCDATA) as child, or "" if it contains no text. */
static String getElementText(Element e) {
if (e.getChildNodes().getLength() == 1) {
Text elementText = (Text) e.getFirstChild();
return elementText.getNodeValue();
else
return "";
/* Returns the text (#PCDATA) associated with the first subelement X
* of e with the given tagName. If no such X exists or X contains no
* text, "" is returned. */
static String getElementTextByTagNameNR(Element e, String tagName) {
Element elem = getElementByTagNameNR(e, tagName);
if (elem != null)
return getElementText(elem);
else
return "";
/* Returns the amount (in XXXXX.xx format) denoted by a money-string
* like $3,453.23. Returns the input if the input is an empty string. */
static String strip(String money) {
if (money.equals(""))
return money;
else {
double am = 0.0;
NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.US);
try { am = nf.parse(money).doubleValue(); }
catch (ParseException e) {
System.out.println("This method should work for all " +
"money values you find in our data.");
System.exit(20);
nf.setGroupingUsed(false);
return nf.format(am).substring(1);
/* Process one items-???.xml file. */
static void processFile(File xmlFile) {
Document doc = null;
try {
doc = builder.parse(xmlFile);
catch (IOException e) {
e.printStackTrace();
System.exit(3);
catch (SAXException e) {
System.out.println("Parsing error on file " + xmlFile);
System.out.println(" (not supposed to happen with supplied XML files)");
e.printStackTrace();
System.exit(3);
/* At this point 'doc' contains a DOM representation of an 'Items' XML
* file. Use doc.getDocumentElement() to get the root Element. */
System.out.println("Successfully parsed - " + xmlFile);
/*Open the output files for each relation****************************/
PrintWriter itemsFile = null, usersFile = null,
bidsFile = null, categoriesFile = null;
/*Open files for writing each of the txt files******************/
try{
itemsFile = new PrintWriter(new BufferedOutputStream(new FileOutputStream("Items.dat", true)), true);
usersFile = new PrintWriter(new BufferedOutputStream(new FileOutputStream("Users.dat", true)), true);
bidsFile = new PrintWriter(new BufferedOutputStream(new FileOutputStream("Bids.dat", true)), true);
categoriesFile = new PrintWriter(new BufferedOutputStream(new FileOutputStream("Categories.dat", true)), true);
}catch(FileNotFoundException e){
System.out.println("Error trying to open an output file: " + e.getMessage());
System.exit(0);
/*Parse content for each relation in turn********************/
//Write to the Items.txt file
NodeList itemNodes = doc.getDocumentElement().getElementsByTagName("Item");
final String colSep = "|#|";
String itemID = null;
Element[] categories = null;
NodeList bids = null;
NodeList eBid = null;
NodeList bidders = null;
Element tempElement = null;
Element itemElement = null;
Element thisBid = null;
String description = new String();
for(int i=0; i<itemNodes.getLength(); i++){
//Get the item Element for this iteration
itemElement = (Element)itemNodes.item(i);
/*Write out ItemID**************************************/
itemID = itemElement.getAttribute("ItemID");
itemsFile.print(itemID);
itemsFile.print(colSep);
/*Write out Name****************************************/
itemsFile.print(getElementTextByTagNameNR(itemElement, "Name"));
itemsFile.print(colSep);
/*Write out the Currently element***********************/
itemsFile.print(strip(getElementTextByTagNameNR(itemElement, "Currently")));
itemsFile.print(colSep);
/*Write out the Buy_Price element, if it exists*********/
Element checkNode = null;
if( (checkNode = getElementByTagNameNR(itemElement, "Buy_Price")) != null){
itemsFile.print(strip(checkNode.getFirstChild().getNodeValue()));
itemsFile.print(colSep);
/*Add the First_Bid element*****************************/
itemsFile.print(strip(getElementTextByTagNameNR(itemElement, "First_Bid")));
itemsFile.print(colSep);
/*Now iterate over the next three elements, adding them in turn*/
for(int j=0; j<itemTags.length;j++){
itemsFile.print(getElementTextByTagNameNR(itemElement, itemTags[j]));
itemsFile.print(colSep);
/*Add the SellerID**************************************/
itemsFile.print(getElementByTagNameNR(itemElement, "Seller").getAttribute("UserID")
+ colSep);
/*Finally, add the description. Truncate, if necessary*/
description = getElementTextByTagNameNR(itemElement, "Description");
itemsFile.print(description.substring(0, Math.min(4000, description.length())));
itemsFile.print(colSep);
itemsFile.println();
/*Locate all of the Categories******************************/
categories = getElementsByTagNameNR(itemElement, "Category");
/*For every category in this item, write a ItemID-Category pair*/
for(int j=0; j<categories.length; j++){
categoriesFile.print(itemID + colSep);
categoriesFile.print(categories[j].getFirstChild().getNodeValue());
categoriesFile.println(colSep);
if( (bids = itemElement.getElementsByTagName("Bid")) != null){
/*Go through the bids, writing the info***********/
for(int j=0; j<bids.getLength(); j++){
thisBid = (Element)bids.item(j);
bidsFile.print(getElementByTagNameNR(thisBid, "Bidder").getAttribute("UserID"));
bidsFile.print(colSep);
bidsFile.print(itemID);
bidsFile.print(colSep);
bidsFile.print(getElementTextByTagNameNR(thisBid, "Time"));
bidsFile.print(colSep);
bidsFile.print(strip(getElementTextByTagNameNR(thisBid, "Amount")));
bidsFile.println(colSep);
/*write out userid and rating from any and all bidder nodes*/
if( (bidders = itemElement.getElementsByTagName("Bidder")) != null){
for(int j=0; j<bidders.getLength(); j++){
usersFile.print(bidders.item(j).getAttributes().getNamedItem("UserID").getNodeValue());
usersFile.print(colSep);
usersFile.print(bidders.item(j).getAttributes().getNamedItem("Rating").getNodeValue());
usersFile.print(colSep);
//If there's a location node, write it
if( getElementByTagNameNR((Element)bidders.item(j), "Location") != null){
usersFile.print(getElementTextByTagNameNR((Element)bidders.item(j), "Location"));
usersFile.print(colSep);
//If there's a country node, write it
if( getElementByTagNameNR((Element)bidders.item(j), "Country") != null){
usersFile.print(getElementTextByTagNameNR((Element)bidders.item(j), "Country"));
usersFile.println(colSep);
/*Now write out the Seller information*******************/
usersFile.print(getElementByTagNameNR(itemElement, "Seller").getAttribute("UserID"));
usersFile.print(colSep);
usersFile.print(getElementByTagNameNR(itemElement, "Seller").getAttribute("Rating"));
usersFile.print(colSep);
usersFile.print(getElementTextByTagNameNR(itemElement, "Location"));
usersFile.print(colSep);
usersFile.print(getElementTextByTagNameNR(itemElement, "Country"));
usersFile.println(colSep);
itemsFile.close();
usersFile.close();
bidsFile.close();
categoriesFile.close();
public static void main (String[] args) {
if (args.length == 0) {
System.out.println("Usage: java MyParser [file] [file] ...");
System.exit(1);
/* Initialize parser. */
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setValidating(true);
factory.setIgnoringElementContentWhitespace(true);
builder = factory.newDocumentBuilder();
builder.setErrorHandler(new MyErrorHandler());
catch (FactoryConfigurationError e) {
System.out.println("unable to get a document builder factory");
System.exit(2);
catch (ParserConfigurationException e) {
System.out.println("parser was unable to be configured");
System.exit(2);
/* Process all files listed on command line. */
for (int i = 0; i < args.length; i++) {
File currentFile = new File(args);
processFile(currentFile);
REMEMBER: Please do not just post the correct code. This will violate my code of conduct. I need tutoring--consultation.If I was trying to get someone else to do my work,
I wouldn't be posting this saying what I have said
would I? I'm not unwilling to do the work myself.From what was stated in your OP, it seemed that you
were.I'm sorry if it seemed that way. I don't want something for nothing. I've spent MANY hours, which I don't have, trying to work this out. I have hit a point where I don't think my expertise is going to solve the problem. That's why I've turned to some experts who might say something along the lines of, "Hey, I know what that is...you're compiling against... and on the Unix box, it's compiling against..." I was NOT looking for something like, "See the code below that fixes your problem."
The only problem is that I don't have direct access
to the sun unix machines I'm running the app on,
so I can't run a profiler on it. Ah, okay. So the only knowledge you have of how it
performs on those machines is from your instructor
running it and then telling you how long it took?No. I can SSH into the servers and run the program from a command line. But I wouldn't be able to install any profiler programs.
You could ask your prof to run it with -Xprof or
-Xhprof or whatever. Or you could put in a bunch of
timing statements to get a rough idea of which parts
are making it take that extra 39 minute or whatever.is -Xprof a java command line option? If so, I will look into doing that. Maybe it's available on the machines at school. Thanks for that input. -
Copy AR invoice to Credit Memo
In B1 2005A SP01 PL 36, you cannot create a Credit memo from a closed invoice. This is extremely restrictive as the majority of product returns occur after the invoice has been paid. Is there an update to 2005A that provides this capability or does 2007 offer it? If not, this really should be considered since the Credit memo is used to return money to the customer. Not having to reenter the information would be a time saver and a potential reduction of entry errors. In our instance, all of our products are under Batch management and the credit memo has to put the stock back into the correct batch. This should automatically done from copying the original AR.
Hi Art,
Here are the postings as performed in my UK localisation testdatabase:
AR invoice:
BP account Debit 117.50
VAT @ 17.5% Credit 17.50
Revenue Credit 100.00
Credit Card Payment:
Credit Card account Debit 117.50
BP Account Credit 117.50
Cancellation of Credit Card Payment:
Credit Card account Debit -117.50
BP Account Credit -117.50
The payment is reconciled with the original invoice & the cancellation.
The invoice is reconciled with the payment & the cancellation, yet in status 'open' because the payment has been cancelled & the balance due is back on the account.
The invoice will appear in the open items list as unpaid & is available as base document for a credit memo. You can then use the 'copy from' or 'copy to' functionality to creste the credit memo based on the invoice.
The invoice will then be reconciled with:
a) the payment
b) the cancellation of the payment
c) the credit memo
If you use the invoice as base document for only a partial credit memo, then you will need to either create another payment to clear the balance due or another credit memo.
As I outlined above, the reason for 'locking' a fully reconciled invoice is because this particular transaction is completed. This is of importance, especially if there is stock with serial/batch numbers involved. Depending on the industry, it is of vital importance to keep track of batches & being able to duplicate a batch/serial number when the original transaction is completed, would lead to inconsistencies. Also,
if there has been no stock transaction prior to the invoice, this is done on the same journal entry. So if, say 100 items of your stock left the warehouse at a MAP of 1 each at the invoice stage, the value of your warehouse is reduced by 100. If you base the credit memo on the invoice, this stock is always received back with a value of 100. If the MAP changes, say to 1.5 & you the create an independent credit memo, then the items are received back with the new MAP of 1.5 since there is no link to the original, outgoing, document.
Therefore, the process should be:
1. AR invoice (Status: open)
2. Payment (AR invoice status: closed)
3. Cancel Payment (AR invoice status: open)
4. Credit memo (full- AR invoice status: closed, partial-AR invoice status: open)
5. Payment/credit memo if balance due (AR invoice status: closed)
All the best,
Kerstin -
here is my Entity class :
package com.azry.employee;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
@Entity
@TableGenerator(name = "EMP_GENERATOR",
table = "EMPLOYEE",
pkColumnName = "EMPLOYEE_ID",
pkColumnValue = "EMPLOYEE_ID",
allocationSize = 10)
@Table(name = "EMPLOYEE")
public class Employee implements java.io.Serializable {
private int id;
private String name;
private String email;
private int money;
@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator = "EMP_GENERATOR")
public int getId() {
return id;
public void setId(int id) {
this.id = id;
public String getName() {
return name;
public void setName(String name) {
this.name = name;
public String getEmail() {
return email;
public void setEmail(String email) {
this.email = email;
public int getMoney() {
return money;
public void setMoney(int money) {
this.money = money;
}i also have created database EmployeeDB in mysql and have also mysql-ds.xml :
and also have a client class:
package com.azry.employee.clients;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.rmi.PortableRemoteObject;
import com.azry.employee.*;
public class Client {
public static void main(String[] args) {
try {
Context jndContext=getInitialContext();
Object ref=jndContext.lookup("EmployeeSession/remote");
EmployeeRemote rem=(EmployeeRemote)PortableRemoteObject.narrow(ref,EmployeeRemote.class);
Employee emp=new Employee();
// emp.setId(1);
emp.setMoney(1000);
emp.setName("david");
emp.setEmail("email");
rem.insert(emp);
catch(Exception ex) {
ex.printStackTrace();
private static Context getInitialContext()throws NamingException{
Properties p=new Properties();
p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
p.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
p.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
return new InitialContext(p);
}i also have remote interface and session bean that overrides remote interface but the real problem is that when i run server everything goes well but when i run client exception occurs :
javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not get or update next value
at com.azry.employee.clients.Client.main(Client.java:24)
Caused by: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not get or update next value
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)
at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:218)
at org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionScopedEntityManager.java:182)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:173)
Caused by: org.hibernate.exception.SQLGrammarException: could not get or update next value
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.engine.TransactionHelper$1Work.doWork(TransactionHelper.java:41)
at org.hibernate.engine.transaction.Isolater$JtaDelegate.delegateWork(Isolater.java:106)
at org.hibernate.engine.transaction.Isolater.doIsolatedWork(Isolater.java:40)
at org.hibernate.engine.TransactionHelper.doWorkInNewTransaction(TransactionHelper.java:51)
at org.hibernate.id.MultipleHiLoPerTableGenerator.generate(MultipleHiLoPerTableGenerator.java:191)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:99)
at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:131)
at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:87)
at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:38)
at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:618)
at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:592)
at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:596)
at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:212)
... 37 more
can anyone tell me what i am doing wrong?_here is my Entity class :
package com.azry.employee;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
@Entity
@TableGenerator(name = "EMP_GENERATOR",
table = "EMPLOYEE",
pkColumnName = "EMPLOYEE_ID",
pkColumnValue = "EMPLOYEE_ID",
allocationSize = 10)
@Table(name = "EMPLOYEE")
public class Employee implements java.io.Serializable {
private int id;
private String name;
private String email;
private int money;
@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator = "EMP_GENERATOR")
public int getId() {
return id;
public void setId(int id) {
this.id = id;
public String getName() {
return name;
public void setName(String name) {
this.name = name;
public String getEmail() {
return email;
public void setEmail(String email) {
this.email = email;
public int getMoney() {
return money;
public void setMoney(int money) {
this.money = money;
}i also have created database EmployeeDB in mysql and have also mysql-ds.xml :
and also have a client class:
package com.azry.employee.clients;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.rmi.PortableRemoteObject;
import com.azry.employee.*;
public class Client {
public static void main(String[] args) {
try {
Context jndContext=getInitialContext();
Object ref=jndContext.lookup("EmployeeSession/remote");
EmployeeRemote rem=(EmployeeRemote)PortableRemoteObject.narrow(ref,EmployeeRemote.class);
Employee emp=new Employee();
// emp.setId(1);
emp.setMoney(1000);
emp.setName("david");
emp.setEmail("email");
rem.insert(emp);
catch(Exception ex) {
ex.printStackTrace();
private static Context getInitialContext()throws NamingException{
Properties p=new Properties();
p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
p.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
p.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
return new InitialContext(p);
}i also have remote interface and session bean that overrides remote interface but the real problem is that when i run server everything goes well but when i run client exception occurs :
javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not get or update next value
at com.azry.employee.clients.Client.main(Client.java:24)
Caused by: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not get or update next value
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)
at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:218)
at org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionScopedEntityManager.java:182)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:173)
Caused by: org.hibernate.exception.SQLGrammarException: could not get or update next value
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.engine.TransactionHelper$1Work.doWork(TransactionHelper.java:41)
at org.hibernate.engine.transaction.Isolater$JtaDelegate.delegateWork(Isolater.java:106)
at org.hibernate.engine.transaction.Isolater.doIsolatedWork(Isolater.java:40)
at org.hibernate.engine.TransactionHelper.doWorkInNewTransaction(TransactionHelper.java:51)
at org.hibernate.id.MultipleHiLoPerTableGenerator.generate(MultipleHiLoPerTableGenerator.java:191)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:99)
at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:131)
at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:87)
at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:38)
at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:618)
at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:592)
at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:596)
at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:212)
... 37 more
can anyone tell me what i am doing wrong?_
Maybe you are looking for
-
hi all My client gives me the mpeg 2 source for dvd authoring. he requires subtitle. how do i burn timecodes in mpeg2 files for subtitling. one way is we can directly type the subtitles in dvdsp. but Is there any easiest way to burn timecoding in mpe
-
Can we create a table like this
Hi experts plz help me in this how to create a table like this Class Number count Amount First A 1 50 2 70 3 60 Second B 1 50 2 200 3 9 Thanks sush
-
Regarding the event for expand/collapse of navigation panel
Hi All, Is it possible to have an event for the exapnd/collapse for the navigation panel of the portal. If yes, how to achieve it.. Can we add the event for this or not. If yes, I want to fire this event from the webdynpro ABAP to collapse or expand
-
hi what is the difference between a driver program written for a script, and a normal report.
-
Update to 10.0 failed. iTunes does not see my iPhone.
I removed iTunes from my computer and downloaded the update, but my phone is showing that I need to connect to iTunes. Does anyone know what may have gone wrong? Thank you!