Regarding which design pattern to use for this scenario???
hi guys
I am working on a J2EE application where I need to do translations for 3 different scenarios. It is basically a conversion from service order objects to invoices.
First from a service order object to an invoice.
Second a conversion from a transaction table.
Third a conversion from a remote system.
Finally the product is an invoice..
What design pattern can i use ....is strategy pattern a good idea??
Thanks
J
Hi,
I think your problem is in result state. You can you sequencial block but for approve or reject you need to set target for each result state. Here I am providing a link. I think you will get your solution here please go through it.
http://help.sap.com/saphelp_nw2004s/helpdata/en/44/429bbd709914bce10000000a155369/frameset.htm
if you have any query please let me know.
Thanks
Chandan
Similar Messages
-
Need Help regarding which Material Type to use for the Scenario
Hi,
Here we are configuring the service scenario.
Suppose Electric Switch of customer flat is not working.
Here in this case I will purchase the switch. And along with service order
I will do the delivery of the Material. Then will raise the Invoice to the customer
with service charge as well as material cost.
Here I will have to run the MRP also for that material to raise the PR if stock goes below
the reorder point.
So I will have to maintain the Purchase view, Sales View & MRP view to that Material.
So in this case which standard material Type can I use for this material? Or I have to create
our own material Type for this material.
Regards,
PradipROH is usually a material type that is supposed to be consumed in production.
HALB is a semifinished good, own produced and meant to consumed in production.
Both are usually not forseen to be sold.
A material that you buy yourself and sell to a customer is a trading good, which is HAWA in SAP. -
Which mapping pattern would work for this?
Hi,
i been trying to create a mapping program.
the source structure is as
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns:MT_SOURCE xmlns:ns="http://test.bsa.demo">
<GT_ABC>
<field1>6</field1>
<keyfield>1001</keyfield>
<field2>2</field2>
</GT_ABC>
<GT_ABC>
<field1>6</field1>
<keyfield>1002</keyfield>
<field2>2</field2>
</GT_ABC>
<GT_XYZ>
<field1>7</field1>
<keyfield>1002</keyfield>
<field2>3</field2>
</GT_XYZ>
<GT_XYZ>
<field1>12</field1>
<keyfield>1003</keyfield>
<field2>3</field2>
</GT_XYZ>
<GT_XYZ>
<field1>15</field1>
<keyfield>1004</keyfield>
<field2>4</field2>
</GT_XYZ>
</ns:MT_SOURCE>
</ns0:Message1>
</ns0:Messages>
and the desired target structure to be generated is based on the total no. of keyfield entries.
suppose that keyfied entry has values,
1002 for substructures GT_ABC and GT_XYZ
1001 for substructures GT_ABC.
then there should be 2 occurences of target structure for keyfields 1001 and 1002 respectively.
for the occurence of 1001 the structure MT_KEYFIELD should have substructure GT_ABC
for the occurence of 1002 the structure MT_KEYFIELD should have substructures GT_ABC and GT_XYZ since both of them have keyfield value as 1002
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<MT_KEYFIELD> 0..unbounded
<GT_ABC> 0..unbounded
</field1>
</keyfield>
</field2>
</GT_ABC>
<GT_XYZ> 0..unbounded
</field1>
</keyfield>
</field2>
</GT_XYZ>
</MT_KEYFIELD>
</ns0:Message1>
</ns0:Messages>
after mapping is executed the target strucuture should be as shown below
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<MT_KEYFIELD>
<GT_ABC>
<field1>6</field1>
<keyfield>1001</keyfield>
<field2>2</field2>
</GT_ABC>
</MT_KEYFIELD>
<MT_KEYFIELD>
<GT_ABC>
<field1>6</field1>
<keyfield>1002</keyfield>
<field2>2</field2>
</GT_ABC>
<GT_XYZ>
<field1>7</field1>
<keyfield>1002</keyfield>
<field2>3</field2>
</GT_XYZ>
</MT_KEYFIELD>
<GT_XYZ>
<field1>12</field1>
<keyfield>1003</keyfield>
<field2>3</field2>
</GT_XYZ>
</MT_KEYFIELD>
<MT_KEYFIELD>
<GT_XYZ>
<field1>15</field1>
<keyfield>1004</keyfield>
<field2>4</field2>
</GT_XYZ>
</MT_KEYFIELD>
</ns0:Message1>
</ns0:Messages>
which mapping pattern would helpful for this?????
Thanks & Regards,
BibinuI am an independent web designer/developer and have separate
clients with non-related websites each of which is hosted remotely.
Would I be able to set up a client as a Contribute user (assuming
they bought the software) and allow them to edit areas of their
site?
Yes, that is possible. Each client would have his own license
though. You could then administer the sites from your own copy of
Contribute.
This may seem like a dumb question, but in going through
several tutorials it isn't clear to me whether Contribute is
intended for content editors all of whom work within one
organization and who all access a web server within their
organization's IT network to do this editing. I can't quite
understand how the software on the desktop on my client's computer
interfaces at all with settings that I set on my own installation.
Is some server technology needed here?
The editors don't have to be working in the same organization.
The connection is made through ftp-like connections from the users
computer to the server, and the administration of the site is
maintained at the server and kept up to date at the clients
computer. I suggest you download the trial version of Contribute
CS3 to check it out. -
Suggestion for whether CDLC + MIDP platform can be used for this scenario?
Hi,
I am developing an agent for mobile phones, with a solution which will cover most of the mobile phones (with OS Microsoft ME, Symbian, Blackberry RIM,..) and PDA's
Features of the agent:
Sending mobile inventory details like OS, apps running, etc to a server machine
Installing apps/patches from server to mobiles
Will the CDLC + MIDP platform be suitable for this kind of development?
Thanks in advance.J2MENewbie wrote:
Can you please specify why it cannot be used,Don't be silly. It can't be used because the features and services you require aren't a part of the feature set of Java ME.
and please suggest which platform can i use for developing this application for mobilesNo idea. This forum is for CLDC and MIDP, not for random programming queries. Use Google for that.
db -
Design Patterns, best approach for this app
Hi all,
i am starting with design patterns, and i would like to hear your opinion on what would be the best approach for this app.
this is basically an app for data monitoring, analysis and logging (voltage, temperature & vibration)
i am using 3 devices for N channels (NI 9211A, NI 9215A, NI PXI 4472) all running at different rates. asynchronous.
and signals are being processed and monitored for logging at a rate specified by the user and in realtime also.
individual devices can be initialized or stopped at any time
basically i'm using 5 loops.
*1.- GUI: Stop App, Reload Plot Names (Event handling)
*2.- Chart & Log: Monitors Data and Start/Stop log data at a specified time in the GUI (State Machine)
*3.- Temperature DAQ monitoring @ 3 S/s (State Machine) NI 9211A
*4.- Voltage DAQ monitoring and scaling @ 1K kS/s (State Machine) NI 9215A
*5.- Vibration DAQ monitoring and Analysis @ 25.6 kS/s (State Machine) NI PXI 4472
i have attached the files for review, thanks in advance for taking the time.
Attachments:
V-T-G Monitor_Logger.llb 355 KBmundo wrote:
thanks Will for your response,
so, basically i could apply a producer/consummer architecture for just the Vibration analysis loop? or all data being collected by the Monitor/Logger loop?
is it ok having individual loops for every DAQ device as is shown?
thanks.
You could use the producer/consumer architecture to split the areas where you are doing both the data collection and teh analysis in the same state machine. If one of these processes is not time critical or the data rate is slow enough you could leave it in a single state machine. I admit that I didn't look through your code but based purely on the descriptions above I would imagine that you could change the three collection state machines to use a producer/consumer architecture. I would leave your UI processing in its own loop as well as the logging process. If this logging is time critical you may want to split that as well.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot -
Which BRM component to use for this?
Hi All,
I would like to know what form of BRM will fit this requirement exactly?
Requirment is,
I want to do a length check for 10 parameters. Each parameter has a different length check.
Ex: P1 - 30 characters, P2 - 45, P3 - 32, P4 - 50... P10-44 characters.
I want to evaluate all the parameters and get the result as true or false.
Ex: P1 - true, P2 - false, P3 - true..... P10 - false.
So totally there are 3 fields i am talking here... Parameter name, Length, Result(boolean).
The key thing is, i want all 10 Parameters to be evaluated and get results for all 10 with their results.
I roughly understand that this can be done in a script (If else...). *Would there be option to have a decision table to get solve this?
or any other BRM components will fit?*
My business also has an requirement, so that they can change the length easily at some point of time.. so they really dont want to do it in java coding level...
It would be great, if you experts could help in suggesting a component for best fit in functionality & Maintenance point.
Cheers
Senthilyes, you are right - the version that ships with java 1.6 can only process XSLT 1.0
however, I finally managed to get saxonHe working with my app
the XSLT you provided works, as expected:
<span class="Apple-style-span" style="font-weight: bold; font-style: italic; ">italic-bold<subtree>a</subtree>test</span>reults in:
<b><i>italic-bold<subtree>a</subtree>test</i></b>nice :)
but I now have one problem, where I'm stuck:
when the input also cotains a span with only one of the rules, e.g.
<span style="font-weight: bold;">bold</span>the bold rule will fire and surround it with <b> tags, but then the next-match will be the template that simply copies the tag along, so that I end up with this:
<b><span style="font-weight: bold;">bold</span></b>but what I'd like to get is simply:
<b>bold</b>I already tried several things, without success.
maybe someone can point me in the right direction -
Hi,
I'm hesitant about what data structure to use (best efficient one) in the following scenario
At a given moment I have an ordered set of data such as:
(1,3,6,9,10)
and a current value (by instance, 11)
Then I need to access the LAST one (10) and
If my value is greater I will add it to the list. In this example I will add 11 so the list will be (1,3,6,9,10,11)
On the other hand, as a second step, I will iterate on the list as follows: I will get the first element, do something, then remove it, and go to next one until the list is empty. Therefore, basically I will access always the first element on the list.
I don't really care about the elements in the middle.
Which data structure do you suggest me to use?
I was thinking on Queue (easy to access the head, and extract one by one in order), but I don't know how to get the tail element (10 in this case), as it is the one that tells me if I have to add another element...
Thank you.>
At a given moment I have an ordered set of data such as:
(1,3,6,9,10)
and a current value (by instance, 11)
Then I need to access the LAST one (10) and
If my value is greater I will add it to the list. In this example I will add 11 so the list will be (1,3,6,9,10,11)Any data structure will do, I would suggest a LinkedList.
On the other hand, as a second step, I will iterate on the list as follows: I will get the first element, do something, then remove it, and go to next one until the list is empty. Therefore, basically I will access always the first element on the list.Use an iterator and the corresponding remove methods.
Mel -
Which Time variable should use compare this month with last month
We want to calculate the increaed number of employees according to one action reason e.g. Entry to company compare with last month. In this case we have to use time variable in BEx query designer. Now can see 0calmonth has serval variable available.
1) Should we use [0CMLMON] for last month and use offset for this month like [0CMLMON]-1 or [0CMLMON]+1 or use variable [0RSTTCM1], which variable should we use for this month and last month? Do we need to create variables by manually?
2) Then using calculated KF to calculate the increaed number of employees, is this logic correct? If it is wrong, please info.
Edited by: hi ni on Apr 22, 2008 7:58 AMHi,
For the comparison of last 2 months data, you can use two Restricted Key figures with reference to 0CALMONTH and it is better to use only customer exit variable for both RKF's.For the Last month use offset value as -1.
Rgs,
I.R.K -
Need inputs from u for this scenario?
Hi all,
I have one scenario I need all inputs from u all.
My scenario is like this.
I will get data from online transactions I need to collect all the day transaction into one folder and upload them into SAP system at one particular time.
Which are the best adapters for this scenario.
If I have standard IDOC I will go with IDOC adapter at receiver side if not proxy.
But collecting all the data into one folder and schedule the process at particular time.
How to do this and what are the adapter I can use.
Thanks and Regards,
Phani Kumar.Hi,
I hope for online transactions and for tracking it and saving you can write a java script where you can prepare a XML file to get all transactions for particular order and always append it to the end of that xml file. At end of the day you will have a complete transaction list in the XML you are creating. You can use the file name as you desired but i will prefer datewise name.after the completion of that Transaction recording step, put it in some In folder from where your XI system willo take input.
Now this is file to Idoc scenario or whatever you want to use to post data to SAP Systems. The sechdule this scenario to run in the night or your desired time. After processing the XML file put that file\ to some other complete folder , not to get it again.
For collection of transactions you can also use databases. Then you scenario will be JDBC to IDOC or the thing you want to post data in SAP system.
Hope this will help you.
Regards
Aashish Sinha
PS : reward pints if helpful -
Which Design Pattern and how to design using OOP this scenario
I am having trouble designing a module, can anybody help me?
Because it will be hard to maintain this kind of module, I also think that this can test my skill of design pattern usage.
Requirement
This is basically an agricultural project (web application). I need to design a module where some calculation takes place.
There are different crops involved like maize, tomato, okra etc. Each of these crops has different traits.
Each trait has a measurement scale which lies in integer like 200-1000. Now let's say I have planted the crop and done measurement noted down the traits. Now I want to do some sort of measurement. Some measurements are simple and some are complex.
Example
Lets take an example of crop maize. I have recorded observations for 15 traits. (We'll use trait1-trait15 as examples, the actual name can be like plt_ht, yld, etc.)
I recorded 5 observations for each trait:
trait1 trait2 trait3 trait5 trait6..... trait15
01,02,03,04 01,02,03,04 01,02,03,04
User logs into system and selects his crops and enters data for these observations. I have to calculate either average or sum of the data entered for each trait.
Complexity / centre of the problem
So far it's simple but complexity comes when I have some different formulas for some of the traits.
Example: trait YLD has a formula based on which I have to calculate its value, which may also depend on some other traits. Each different crop can have different traits.
All this I am able to do - whenever user selects crop I will check for those specific traits and do calculations (if it's not a special trait then I either average or sum it, based on db entry), but there is a lot of hard coding.
I would like to have suggestions on a better way of handling this.
My code needs to handle both simple and complex calculations.
Simple calculations are easy, I have take average of value entered for trait.
The problem comes when I have to do complex calculations, since each crop have different traits with their own formulas, so to calculate I have to check for crop and then for complex trait. So I have to hardcode the trait name of complex traits.
Can any tell me how I can design this using Java oops [?!?] so that I can make it generic?
I have about 10 different crops. Some calculations are specific to crops, so there will be lot of code like the if below:
hasZeroValue = (HashMap<String, ArrayList<String>>) dataValues[1];
} else if(cropId.equalsIgnoreCase("MZ") && traitName.equalsIgnoreCase("Shelling")) {
avg=HybridTestDataUtility.calculateAvg(traitName, dataPoint, dataTraits, traitValues,dataPvalues, dataPoint, type);
avg=avg*dataPoint;
traitAvg=getMaizeYeild(traitName, traitAvg, population, avg, hybrid, area);
} else if(cropId.equalsIgnoreCase("OK") && traitName.equalsIgnoreCase("YLDGM")) {
avg=HybridTestDataUtility.calculateAvg(traitName, dataPoint, dataTraits, traitValues,dataPvalues, dataPoint, type);
//avg=avg*dataPoint;
Object[] dataValues=getOKRAYield(traitName, traitAvg, population, avg, dividend,hasZeroValue,hybrid,repl);
traitAvg = (HashMap<String, Float>) dataValues[0];
hasZeroValue = (HashMap<String, ArrayList<String>>) dataValues[1];
} else if(cropId.equalsIgnoreCase("HP") && traitName.equalsIgnoreCase("w1-w10")) {
avg=HybridTestDataUtility.calculateAvg(traitName, dataPts, dataTraits, traitValues,dataPvalues, dataPoint, type);
avg=avg*dataPoint;
Object[] dataValues=getHotPepperYield(traitName, traitAvg, population, avg,dividend,hasZeroValue,hybrid,repl);
traitAvg = (HashMap<String, Float>) dataValues[0];
hasZeroValue = (HashMap<String, ArrayList<String>>) dataValues[1];
} else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("TLSSG_70")) {
traitAvg=calculateTLCV(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues,50);
} else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("TLSSG_100")) {
traitAvg=calculateTLCV(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues,50);
} else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("YVMV_60")) {
traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
} else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("YVMV_90")) {
traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
} else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("YVMV_120")) {
traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
} else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("ELCV_60")) {
traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
} else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("ELCV_90")) {
traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
} else if(cropId.equalsIgnoreCase("TO") && traitName.equalsIgnoreCase("ELCV_120")) {
traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
} else if(cropId.equalsIgnoreCase("OK") && traitName.equalsIgnoreCase("YVMV_60")) {
traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
} else if(cropId.equalsIgnoreCase("OK") && traitName.equalsIgnoreCase("YVMV_90")) {
traitAvg=tomatoYVMVCalculation(traitName, traitAvg,dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
} else if(cropId.equalsIgnoreCase("OK") && traitName.equalsIgnoreCase("YVMV_120")) {
traitAvg=tomatoYVMVCalculation(traitName, traitAvg, dataPoint, dataTraits, hybrid, repl, traitValues, dataPvalues);
} else if(cropId.equalsIgnoreCase("OK") && traitName.equalsIgnoreCase("ELCV_60")) {Can anybody think of a way to make a generic approach to this?There are crops and each crop have traits , traits are actually a mesuremet
scale to decide growth of a seed of a particular crop.
This module is to for planters to observe growth of seeds sowed of certain
crops and take down n no of observation for each trait and upload in csv format.Once they enter
data i have to either avg out the values or sum the values or sometimes
there are more complex function that i have to apply it may differe for each
trait .This is the whole module about.Just to give an idea about how they
will enter data
Hyubrid(seed) trait1 trait2 trait3 trait5 trait6..... trait15
Hybrid1 01 02 03 04 01
HYbrid2 04 06 08 04 01
HYbrid2 04 06 08 04 01
HYbrid2 04 06 08 04 01
HYbrid2 04 06 08 04 01
Once they enter data in this format i have to give result something like
this.
Here avg colum does not necessaryly mean avg it can be sum or any formula
based resutl.Hybrid is the seed for which they record the observation.
I have shown avg column only for two tratis it is actually for all the
traits.
Hyubrid(seed) trait1 Avg trait2 avg trait3 trait5 trait6..... trait15
Hybrid1 01 01 02 04 03 04 01
HYbrid2 04 04 06 10 08 04 01
HYbrid2 04 04 06 12 08 04 01
HYbrid2 04 04 06 14 08 04 01
HYbrid2 04 04 06 12 08 04 01
Hope this clarifies atleat a but
The data are not correctly indented but there is no way i can format it. -
Hi experts,
Can anybody suggest me. If we I have to set permanent Rej.Ind in ME47, which BADI or Exit will be used for this.
Thanks
PankajHello,
Check with following BADIs. It may help.
ME_PROCESS_PO
ME_PROCESS_PO_CUST
Regards
Arindam -
Which pattern for this scenario ?
Hi all,
I have an EJB which connects to an external system (written in Perl) using plain HttpConnections and posting HTML content.
I would like to centralize this access using a design pattern.
Which pattern is would fit this scenario ?
I wonder if I should use the Adapter pattern or the Bridge Pattern.
What do you say to it ?
Thanks
FrancescoI'd kind-of guessed it was uni work :-)
in all honesty, I wouldn't even approach the problem from a patterns perspective. all I see is a subsystem I don't want to deal with directly, so I define an interface to hide it behind. could argue that it's an Adapter, since it's taking the Http interface and abstracting away from it, to a java one. on the other hand, since mucking around with Http in java isn't exactly straight-forward, you're defining a more simple interface, so it could be considered a facade. which do you think is closer?
most people, once au fait with design patterns, think less in terms of those patterns, and more in terms of what OO principles to apply. score some extra credit by writing a passage about how design patterns are not prescriptive, and that many coders lift ideas about encapsulation and separation from patterns, rather than use the pattern exactly as described. -
Which ADOBE SOFTWARE IS USED FOR 3D DESIGN
which ADOBE SOFTWARE IS USED FOR 3D DESIGN
I don't know, but go to this link and you may click to read the description of each program Explore Adobe desktop apps | Adobe Creative Cloud
-
In Adobe Acrobat 9 (Wndows 7) which I have been using for a long time now it says I cannot use it withoutv repairing. It instructs me to uninstall & reinstall...
I have not run into this yet with my AA9 and Win7, but have been seeing posts about it. I would try a repair before I would do an uninstall and reinstall. You might also turn off javascript for a bit in case there has been some javascript that has caused problems (ok, making wild guesses). If you do decide to uninstall, be sure to deactivate first, uninstall, run http://labs.adobe.com/downloads/acrobatcleaner.html, and remove any left over parts of the Acrobat folder. Then proceed to the reinstall and updates.
There is a question about whether being able to use it is correct, or you are just getting some message that is a spam that somehow got into your system (again, a possible javascript issue). Besides turning off javascript, you could also try isolating the javascripts to moving them to a temporary directory and seeing if one is causing the problem. -
I accidentally set up two accounts. One account with my old e-mail address which I've been using for years and has all of my purchases on it. Now I have a new account with my current e-mail address. How do I disable this new account? I need to disable the new e-mail address account so that I can add it as an additional e-mail to my old account. THEN, how do I make this new e-mail address my primary e-mail for this old account?
Did yoo go to Settings>iTunes and App Stores and sign out and sign back in?
Next see:
Frequently Asked Questions About Apple ID
Maybe you are looking for
-
How to create printable report from a swing app.
Hi, I have googled quite a bit and have searched the forum extensively but haven't found answers to my questions. I have a small swing based application (that uses jtextfields, jbuttons, jlist, etc) that collects information from user and stores in s
-
http://kirtmarkle.com/slide1.html http://kirtmarkle.com/ http://kirtmarkle.com/gallery_frameset.html Above I have included a link to a set of 3 slides I create this morning in an attempt to better define my site (as well as links to my Home and Galle
-
How can I find out the revision of my board?
In the manual it says there are already a 1.1 and 1.2 revision of my K8N Diamond. Where can I see what revision I have? I think its still the 1.0 rev though...
-
IPhoto '09 how to group package photos?
Is there a way in iPhoto ('09, v8.1.2 on my Intel 24" desktop iMac) to somehow "group package" 4 or 5 individual photos so that I can upload this "single" file to, in this case, one of the online photo printing companies to fit their "single photo" c
-
Yesterday evening i installed ios 7.2 on my iphone 4 and since then my iphone's screen is stuck on the itunes n a battery recharge sign under it. what should i do?