Please help me to implement merge
Hi Experts,
USING(
SELECT
stan_number
,s.sid,amount
,l.loc_id
FROM SOURCE_TABLE s
LOCATIONS_TABLE l
where s.sid = l.sid
) SOURCE
then it's possible
) values
( SOURCE.stan_number
, SOURCE.sid
, SOURCE.amount
,SOURCE.loc_id
Similar Messages
-
URGENT please help Prob in implementing fi validation checking - zrggbr000
Hi SAP Expert,
I'm currently working on FI Validation checking (ZRGGBR000) to control amount posted to asset number. Thus, I use an internal table declared in ZRGGBR000 to keep all the balance to be posted from 1 FI doc no and compare it with the limit (taken from customized table). But i'm having a prob,specifically while doing several Goods Issue (GI) posting continously without leaving the transaction MIGO. This is because the internal table i declared previously in ZRGGBR000 was not refresh automatically. The same thing happens while i'm doing the SES (ML81N).
Is there any way i can do to refresh this internal table?
any help, assistance and guidances are very much appreciated and will be very greatfull for the fast reply.
thanks & rgds,
fn
Message was edited by:
fnr nHi SAP Expert,
Really need your advice and guidance, Please help me. I'm currently working on FI Validation checking (ZRGGBR000) to control amount posted to asset number. Thus, I use an internal table declared in ZRGGBR000 to keep all the balance to be posted from 1 FI doc no and compare it with the limit (taken from customized table). But i'm having a prob,specifically while doing several Goods Issue (GI) posting continously without leaving the transaction MIGO. This is because the internal table i declared previously in ZRGGBR000 was not refresh automatically. The same thing happens while i'm doing the SES (ML81N).
Is there any way i can do to refresh this internal table?
For help, assistance and guidances are very much appreciated and will be very greatfull for the fast reply.
thanks & rgds,
fn -
Please help me to implement my logic.
Hi Experts,
I am providing the complete code and my exact requirement.
CREATE OR REPLACE PACKAGE INTERNAL_SCORING_RAM
IS
PROCEDURE TrendScoring_ram(pBUID IN STAGING_ORDER_DATA.BUID%TYPE,
OrderNum IN STAGING_ORDER_DATA.ORDER_NUM%TYPE,
ReturnValue OUT VARCHAR2);
PROCEDURE InsertTrend_ram(pBUID IN ORDER_TREND_SCORE.BUID%TYPE,
OrderNum IN ORDER_TREND_SCORE.ORDER_NUM%TYPE,
Variable IN ORDER_TREND_SCORE.TREND_VARIABLE%TYPE,
DeductPoints IN ORDER_TREND_SCORE.DEDUCTION_POINTS%TYPE,
FraudPct IN ORDER_TREND_SCORE.FRAUD_PERCENTAGE%TYPE,
FraudWkdPct IN ORDER_TREND_SCORE.FRAUD_WORKED_PERCENTAGE%TYPE);
END;
CREATE OR REPLACE PACKAGE BODY INTERNAL_SCORING_RAM
IS
PROCEDURE trendscoring_ram
(pBUID IN STAGING_ORDER_DATA.BUID%TYPE,
OrderNum IN STAGING_ORDER_DATA.ORDER_NUM%TYPE,
ReturnValue OUT VARCHAR2)
IS
tCleanProdDesc ORDERS.PRODUCT_DESC%TYPE;
tLocalChannel STAGING_ORDER_DATA.LOCAL_CHANNEL%TYPE;
tSKUNum STAGING_ORDER_DATA.SKU_NUM%TYPE;
tDeductionPoints TREND.DEDUCTION_POINTS%TYPE := 0;
tFrdPct TREND.FRAUD_TOTAL_PERCENTAGE%TYPE := 0;
tFrdWkdPct TREND.FRAUD_WORKED_PERCENTAGE%TYPE := 0;
tCount NUMBER := 0;
tAVS VARCHAR2(50);
tScore SCORE.VENDOR_COMBINED_SCORE%TYPE;
tProdDesc ORDERS.PRODUCT_DESC%TYPE;
tPayCode ORDERS.PAY_CODE%TYPE;
BEGIN
ReturnValue := 'get order header';
SELECT stgOrder.LOCAL_CHANNEL
INTO tLocalChannel
FROM STAGING_ORDER_DATA stgOrder
WHERE stgOrder.BUID = pBUID
AND stgOrder.ORDER_NUM = OrderNum
AND stgOrder.ADDRESS_TYPE = 'B';
SELECT ord.PRODUCT_DESC,
NVL (ord.SKU_NUM, ''),
NVL (cc.AVS_CC_CODE, ''),
NVL (s.VENDOR_COMBINED_SCORE, -1)
INTO tProdDesc,tSKUNum, tAVS, tScore
FROM MASTER_CURRENCY exchg,
ORDERS ord
LEFT OUTER JOIN
( SELECT BUID,
ORDER_NUM,
MIN (AVS_CC_CODE) AS AVS_CC_CODE,
MIN (CID_CODE) AS CID_CODE
FROM CREDIT_CARD
WHERE BUID = pBUID AND ORDER_NUM = OrderNum
GROUP BY BUID, ORDER_NUM) cc
ON ord.BUID = cc.BUID AND ord.ORDER_NUM = cc.ORDER_NUM
LEFT OUTER JOIN SCORE s
ON ord.BUID = s.BUID
AND ord.ORDER_NUM = s.ORDER_NUM
WHERE ord.CURRENCY_CODE = exchg.CURRENCY_CODE
AND ord.BUID = pBUID
AND ord.ORDER_NUM = OrderNum;
------SKU Num---------------------------------------------------------
ReturnValue := 'sku Num';
BEGIN
SELECT DEDUCTION_POINTS,
FRAUD_TOTAL_PERCENTAGE,
FRAUD_WORKED_PERCENTAGE
INTO tDeductionPoints, tFrdPct, tFrdWkdPct
FROM TREND
WHERE VARIABLE_NAME = 'sku num' AND
UPPER(VARIABLE_VALUE) = tSKUNum AND BUID = pBUID AND
LOCAL_CHANNEL = tLocalChannel
AND DEDUCTION_POINTS IS NOT NULL;
ReturnValue := 'product degredation';
InsertTrend_ram(pBUID,OrderNum,'sku num: ' || tSKUNum,tDeductionPoints,tFrdPct,tFrdWkdPct);
EXCEPTION
WHEN no_data_found THEN
tCleanProdDesc := fn_cleanproddesc(UPPER(tProdDesc));
ReturnValue := 'product degredation';
--product degredation---------------------------------------------------------
BEGIN
SELECT DEDUCTION_POINTS,
FRAUD_TOTAL_PERCENTAGE,
FRAUD_WORKED_PERCENTAGE
INTO tDeductionPoints, tFrdPct, tFrdWkdPct
FROM TREND
WHERE VARIABLE_NAME = 'product' AND
UPPER(VARIABLE_VALUE) = tCleanProdDesc
AND BUID = pBUID
AND LOCAL_CHANNEL = tLocalChannel
AND DEDUCTION_POINTS IS NOT NULL;
InsertTrend_ram(pBUID,OrderNum,'product: ' || tCleanProdDesc,tDeductionPoints,tFrdPct,tFrdWkdPct);
EXCEPTION
WHEN no_data_found THEN
NULL;
END;
END;
-----pay code--------------------------------------------------------------------
ReturnValue := 'pay code';
BEGIN
SELECT DEDUCTION_POINTS,
FRAUD_TOTAL_PERCENTAGE,
FRAUD_WORKED_PERCENTAGE
INTO tDeductionPoints, tFrdPct, tFrdWkdPct
FROM TREND
WHERE VARIABLE_NAME = 'payment code' AND VARIABLE_VALUE = tPayCode AND
BUID = pBUID AND LOCAL_CHANNEL = tLocalChannel
AND DEDUCTION_POINTS IS NOT NULL;
InsertTrend_ram(pBUID,OrderNum,'pay code: ' || tPayCode,tDeductionPoints,tFrdPct,tFrdWkdPct);
EXCEPTION
WHEN no_data_found THEN
NULL;
END;
--ship code--------------------------------------------------------------------
--InsertTrend_ram(pBUID,OrderNum,'ship code: ' || tShipCode,tDeductionPoints,tFrdPct,tFrdWkdPct);
--source system flag----------------------------------------------------------
--InsertTrend_ram(pBUID,OrderNum, 'source system flag: ' || tSrcSys,tDeductionPoints,tFrdPct,tFrdWkdPct);
--st address diff flag--------------------------------------------------------
--InsertTrend_ram(pBUID,OrderNum, 'st address diff flag: ' || tSTDiff,tFrdPct,tFrdWkdPct);
---inserttrend_ram procedure calling 70 times
END trendscoring_ram;
PROCEDURE InsertTrend_ram (
pBUID IN ORDER_TREND_SCORE.BUID%TYPE,
OrderNum IN ORDER_TREND_SCORE.ORDER_NUM%TYPE,
Variable IN ORDER_TREND_SCORE.TREND_VARIABLE%TYPE,
DeductPoints IN ORDER_TREND_SCORE.DEDUCTION_POINTS%TYPE,
FraudPct IN ORDER_TREND_SCORE.FRAUD_PERCENTAGE%TYPE,
FraudWkdPct IN ORDER_TREND_SCORE.FRAUD_WORKED_PERCENTAGE%TYPE
IS
BEGIN
DELETE FROM ORDER_TREND_SCORE WHERE BUID = pBUID AND ORDER_NUM = OrderNum AND TREND_VARIABLE = Variable;
INSERT INTO ORDER_TREND_SCORE (BUID,
ORDER_NUM,
TREND_VARIABLE,
DEDUCTION_POINTS,
FRAUD_PERCENTAGE,
FRAUD_WORKED_PERCENTAGE)
VALUES (pBUID,
OrderNum,
Variable,
DeductPoints,
FraudPct,
FraudWkdPct);
END InsertTrend_ram;
END;
/In my code the procedure "trendscoring_ram" is calling "inserttrend_ram" procedure 70 times
for different variable values.
Instead of calling the "inserttrend_ram" procedure 70 times.
I want to hold the values in a associative array , defining it in package and call that procedure only once.
As below.
Inserttrend_ram(pBUID, OrderNum, Associativearray, Associativearray, Associativearray,Associativearray);
For that I have tried the following but it's not working.
IN the package I have declared the associative array like this.
TYPE type_ots IS TABLE OF ORDER_TREND_SCORE%ROWTYPE INDEX BY PLS_INTEGER;
I have modified the inserttrend_ram as below.
PROCEDURE InsertTrend_ram(
P_TYPE_OTS_REC IN type_ots
IS
BEGIN
FORALL i in P_TYPE_OTS_REC.FIRST.. P_TYPE_OTS_REC.LAST
DELETE
FROM ORDER_TREND_SCORE
WHERE BUID = P_TYPE_OTS_REC(i).BUID
AND ORDER_NUM = P_TYPE_OTS_REC(i).ORDER_NUM
AND TREND_VARIABLE = P_TYPE_OTS_REC(i).TREND_VARIABLE;
FORALL i in P_TYPE_OTS_REC.FIRST.. P_TYPE_OTS_REC.LAST
INSERT INTO ORDER_TREND_SCORE(
BUID,
ORDER_NUM,
TREND_VARIABLE,
DEDUCTION_POINTS,
FRAUD_PERCENTAGE,
FRAUD_WORKED_PERCENTAGE
VALUES(
P_TYPE_OTS_REC(i).BUID,
P_TYPE_OTS_REC(i).ORDER_NUM,
P_TYPE_OTS_REC(i).TREND_VARIABLE,
P_TYPE_OTS_REC(i).DEDUCTION_POINTS,
P_TYPE_OTS_REC(i).FRAUD_PERCENTAGE,
P_TYPE_OTS_REC(i).FRAUD_WORKED_PERCENTAGE
END InsertTrend_ram;Please help me.
Thanks in advance.For that I have tried the following but it's not working.As you don't specify the error message, and we don't have your table definitions and you posted several hundreds of lines of code, we can not reproduce your problem, so you won't get any responses.
Sybrand Bakker
Senior Oracle DBA -
Hi guys,
Can someone help me out with this? I'm struggling to write an iterator (the hasNext() and next() methods) for a SimpleHashSet class and I keep failing. I have a basic unit test, which goes like this:
@Test
public void testIterator() {
SimpleHashSet<String> instance = new SimpleHashSet<String>();
assertTrue(instance.iterator() != null);
Iterator<String> it = instance.iterator();
assertFalse(it.hasNext()); //Should return false on an empty HashSet
assertTrue(it.next() == null); //Should return null on an empty HashSet
instance.add("First");
instance.add("Second");
assertTrue(it.hasNext()); // Return true if has first element
assertTrue(it.next() != null); //Should return first element
assertTrue(it.hasNext()); //Return true if has second element
assertTrue(it.next() != null); //Should return second element
assertFalse(it.hasNext()); //Return false, no third element
assertTrue(it.next() == null); //Return true, no third element
}and I can't figure out a way to pass all of these tests. I have written several variants and none of them works completely, only partially, inconsistently. I just don't know how to write it.
The SimpleHashSet is declared like this:
public class SimpleHashSet<E> extends AbstractSet<E> {
private static final int SIZE = 11;
LinkedList<E>[] buckets = new LinkedList[SIZE];
}I appreciate all help and guidance,
PR.Awesome, great answers, very helpful, thanks very much. Careful debugging and testing led me to a working solution. It passes my tests. This is what I have:
@Override
public Iterator<E> iterator() {
final SimpleHashSet<E> here = this;
Iterator<E> it = new Iterator<E>() {
private final SimpleHashSet<E> mySet = here;
private List<LinkedList<E>> bucketList = Arrays.asList(mySet.buckets);
private Iterator<LinkedList<E>> bucketsIterator = bucketList.iterator();
private LinkedList<E> currentBucket;
private Iterator<E> elements;
currentBucket = bucketsIterator.next();
elements = currentBucket.iterator();
@Override
public boolean hasNext() {
while (bucketsIterator.hasNext()) {
if (elements.hasNext()) {
return true;
} else {
currentBucket = bucketsIterator.next();
elements = currentBucket.iterator();
if (elements.hasNext())
return true;
return false;
@Override
public E next() {
while (bucketsIterator.hasNext()) {
if (elements.hasNext()) {
return elements.next();
} else {
currentBucket = bucketsIterator.next();
elements = currentBucket.iterator();
if (elements.hasNext())
return elements.next();
if (!bucketsIterator.hasNext())
throw new NoSuchElementException();
return null;
return it;
}I'm only not sure if it behaves the same as an original HashSet iterator. I doubt. The problem with my implementation is that both hasNext() and next() progress the internal iterators forward, so i.e. calling hasNext() on an empty set will progress the internal iterators to the end, so then adding some elements and calling hasNext() again will return false. I couldn't figure out a way that hasNext() does not progress the iterators, so that only next does that. Both hasNext() and next() are dependent on each other in my example. But it works.
Thanks,
PR. -
Please help can we implement datasource for bluetooth connections
hi i my application reads data from bluetooth from PC to mobile now iam using streamconnections iam sending audio data from pc to mobile and for this in my mobile side i would like to implement the datasource for incomming bluetooth data is it possible if so how i can do it....
You should post this in CLDC and MIDP forum and not in this.
Anyway coming to your question now can you tell why do you want to maintain a datasource and what actually you mean by data source in this context. If you want to maintain a list of the data that is transferred to the mobile then it can be done.
Sunil -
I am working on big project and in accidentally flatten the file and i saved it as PSD in then I exited Photoshop. the next time when i open the file it is merged on one page. please help!
Flattening and merging are very similar. The main difference is merging keeps the transparent areas, whereas flattening removes all transparent areas by giving it a white background. A good example of flattening is a jpg image.
Since you have closed the file by closing photoshop, that means that the history is now gone, no way of undoing.
So that leaves you with two choices.
You can either recreate the whole document.
Or you can make selections of areas you are keeping and moving them one at a time to new layers. Keep each object on a separate layer. Then redo the area behind those objects. -
Please help me to build the logic
Hi All,
Please help me to implement the following logic.
The conditional statements should not only be executed in sequence, but also if any of them are true they should not be overridden by any subsequent conditional statements being true.
When actual effort Accepted or Rejected for AST proposals and calculate a flag for “enhance to AST guideline” = Y/N as follows for each employee and display at the employee level
1)If AST eligibility = N AND proposed AST % >0, then “N”
2)Else If AST eligibility = N AND proposed AST % = 0 then “n/a”
3)Else If AST eligibility = Y AND Act Rank = 3 AND proposed AST = 0 then “Y”
4)Else If AST eligibility = Y AND Act Rank = 3 AND proposed AST >0 then “N”
5)Else If AST eligibility = Y AND Act Rank = 2 AND proposed AST = 0 then “Y”
6)Else If AST eligibility = Y AND AST % is greater than or equal to the AST guideline minimum AND less than or equal to the AST guideline maximum, then “Y”
7)Else If AST eligibility = Y AND AST % is less than the minimum guideline OR greater than the maximum guideline, then “N”
I tried the following code but I am not getting the expected result .
Could you Please help me to build the logic.
Your earliest response is very helpful to me.
if (upper(P_stat)='ACCEPTED' or upper(P_stat) like 'REJECTED%') then
else if NVL(P_elgi,'N') <> 'Y' AND P_prop > '0' then
P_flag := 'N';
else if(NVL(P_elgi,'N') <> 'Y' AND P_prop = '0') then
P_flag := 'N/A';
else if ((NVL(P_elgi,'N')='Y') AND P_rank = '3' AND P_prop = '0') then
P_flag := 'Y';
else if((NVL(P_elgi,'N')='Y') AND P_rank = '3' AND P_prop > '0') then
P_flag := 'N';
else if((NVL(P_elgi,'N')='Y') AND P_rank = '2' AND P_prop = '0') then
P_flag := 'Y';
Else if (P_prop >=ast_min_guide AND P_prop <= ast_max_guide ) then
P_flag := 'Y';
else
((P_prop < ast_min_guide) OR (P_prop > ast_max_guide)) then
P_flag := 'N';
end if;
end if;Thanks for ur quick responce .
When actual effort Accepted or Rejected for AST proposals and calculate a flag for “enhance to AST guideline” = Y/N
Once the above condition is satisfied we have to check for remaing conditions
if (upper(P_stat)='ACCEPTED' or upper(P_stat) like 'REJECTED%') then
once it is satisfies then we have to go for remaing conditions.
how can we do it in CASE statement.
1)If AST eligibility = N AND proposed AST % >0, then “N”
2)Else If AST eligibility = N AND proposed AST % = 0 then “n/a”
3)Else If AST eligibility = Y AND Act Rank = 3 AND proposed AST = 0 then “Y”
4)Else If AST eligibility = Y AND Act Rank = 3 AND proposed AST >0 then “N”
5)Else If AST eligibility = Y AND Act Rank = 2 AND proposed AST = 0 then “Y”
6)Else If AST eligibility = Y AND AST % is greater than or equal to the AST guideline minimum AND less than or equal to the AST guideline maximum, then “Y”
7)Else If AST eligibility = Y AND AST % is less than the minimum guideline OR greater than the maximum guideline, then “N”
I tried the following code but I am not getting the expected result . -
A new problem with CS5 forced me to download PScc but the problem is still there. I am getting tmp00000001 in photo merge when importing multiple files from inside PS and if trying from bridge I am getting a pop up box telling me I need to select more than 1 file. Photoshop potomerge is not recognizing my selections from bridge..!! please help.. my knowledge of computers is a 3 on a scale of 1-10
if i run this particular code
( SELECT
AccountDetails.CUSTOMERNUMBER, AccountDetails.ACCOUNTNUMBER, CUSTOMERDETAILS.CDTITLE, CUSTOMERDETAILS.CDFIRSTNAME, CUSTOMERDETAILS.CDLASTNAME, AccountDetails.ACCOUNTTYPE,
AccountDetails.ORIGINALCONTRACTENDDATE, AccountDetails.CONTRACTTERM, AccountDetails.CONTRACTENDDATE, AccountDetails.BRANCHAREA, AccountDetails.PRODUCTTYPE,
AccountDetails.HOUSEBANKACCOUNT, AccountDetails.CARMODEL, AccountDetails.CARLICENCE, AccountDetails.ARREARSBALANCE, AccountDetails.CODEBTOR, AccountDetails.GUARANTORNUMBER
FROM AccountDetails
JOIN CUSTOMERDETAILS ON AccountDetails.CUSTOMERNUMBER = CUSTOMERDETAILS.CUSTOMERS1
WHERE EXISTS
( SELECT *
FROM Dcaaccountallocation
JOIN DebtEpisodes ON DebtEpisodes.ACCOUNTID = Dcaaccountallocation.ACCOUNTID
WHERE Dcaaccountallocation.dcaid = 41
AND Dcaaccountallocation.status = 2
AND DebtEpisodes.DCASentDate IS NULL
AND Dcaaccountallocation.ACCOUNTID = AccountDetails.ACCOUNTNUMBER
AND DebtEpisodes.DCAORLAWYER = 'DCA'
This returns 1 row of data
However if i run a small part of the above code...
SELECT *
FROM Dcaaccountallocation
JOIN DebtEpisodes ON DebtEpisodes.ACCOUNTID = Dcaaccountallocation.ACCOUNTID
WHERE Dcaaccountallocation.dcaid = 41
AND Dcaaccountallocation.status = 2
It returns a lot of rows with a status of 2
Now i presume what I am going to do is to ensure that all the fields provide satisfactory requirements, with regards to the above code. Although I have many records in all the stated tables already.
:( -
HI my partner used my apple id and email address when setting up his iPhone so when he turned on iCloud our phones merged!! How do we undo this? Can he still use my iTunes account with a different Id and can he change the email on his phone without losing information? Also iPad is linked too, the family uses this and I would like to keep my phone separate! At the moment nothing is sacred! Please help! We are not very good with computers!!
Several things here so let me attempt to clarify.
For iCloud the reason the contacts where removed from he other device is because you updated your contacts, in this case deleted them, and then iCloud updated the other device to match. By deleting the iCloud account on the device it will stop the device from using that iCloud account and therefore nothing will change on the other device. By using a seperate Apple ID you can still use the features of iCloud, Find My iPhone comes to mind, without your content (contacts, message etc.) merging with the other device
For iTunes, you cannot use two Apple IDs for one account however if you use the same account iTunes on your computer will keep the content on each device seperate very nicely. You can also configure the settings for iTunes and the App store on each device to keep the content from automatically downloading to the other device. What I meant by share apps and music is this. What happens if you find a game, lets say Minecraft, that you really like and it cost, as Mincraft cost, $6.99USD. You buy it and play for a while and then you realize that your husband really likes the game as well. If you both use the same Apple ID for iTunes he can download the $7.00ish game to his device at no additional charge. If you use seperate Apple IDs for iTunes well... it look like he will also be paying for the game to have it on his account. Same goes for Music and Movies
I hope that clears things up. Let me know if you have anymore question. -
Hi Gurus,
I wanted to implement the drop down list button in the WDP Abap interactive form. Once the users clicks on the drop down button, an RFC should be called and display the details under the drop down button. Please give me the logic with code. Its very urgent...please help me. Please note that it is in WDP Abap interactive forms. We are using NW2004S, ECC6.0.Hello,
you have to use ZCI form to use DDLB in WD-ABA. The content of the DDLB has to be present at rendering time, there is no dinamic call when you click the "dropdown".
The attribut you map to the DDLB has to be an element with a value-set, and the value set has to contain the text / value pairs.
>> this will be displayed when you click the dropdown.
Best regards,
Dezso -
How to merge two java files with InputDialog to select?Please help me!?
//Addition Java application
import javax.swing.JOptionPane; // import the class
public class Addition {
// main method
public static void main(String[] args)
String firstNumber, secondNumber;
int number1, number2, sum;
// read the first number
firstNumber = JOptionPane.showInputDialog("Please enter a integer: ");
// read the second number
secondNumber = JOptionPane.showInputDialog("Please enter another integer: ");
// data type conversion
number1 = Integer.parseInt(firstNumber);
number2 = Integer.parseInt(secondNumber);
sum = number1 + number2;
// display the result
JOptionPane.showMessageDialog(null, "The sum is " + sum + ".", "Results", JOptionPane.PLAIN_MESSAGE);
System.exit(0);
//Multiplication Java Application
import javax.swing.JOptionPane;
public class Multiplication5
public static void main(String args[])
int number1, number2, number3, number4, number5, product;
String firstNumber, secondNumber, thirdNumber, forthNumber, fifthNumber ;
firstNumber =
JOptionPane.showInputDialog("Please input an integer");
secondNumber =
JOptionPane.showInputDialog("Please input another integer");
thirdNumber =
JOptionPane.showInputDialog("Please input the third integer");
forthNumber =
JOptionPane.showInputDialog("Please input the forth integer");
fifthNumber =
JOptionPane.showInputDialog("Please input the fifth integer");
number1 = Integer.parseInt(firstNumber);
number2 = Integer.parseInt(secondNumber);
number3 = Integer.parseInt(thirdNumber);
number4 = Integer.parseInt(forthNumber);
number5 = Integer.parseInt(fifthNumber);
product = number1 * number2 * number3 * number4 * number5;
JOptionPane.showMessageDialog(null, "The product is " + product, "Results", JOptionPane.PLAIN_MESSAGE);
System.exit(0);
I seek for help to merge above two java application files.
I need to call JoptionPane.showInputDialog to prompt the user to input the operation, 1 for addition, 2 for multiplication. In this dialog, the user is expected to enter the integer of 1 or 2 for the calculation.
Please help me ! Thank you!Hi CRay,
You just need to call the main methods of the 2 classes according to "1" or "2" entered.
It is better if the "multiplication" and "addition" are declared as methods rather than in main methods.
Example:-
public static void Addition()
Then call
Addition.addition();
than
Addition.main(new String[]{});
as shown below.
import javax.swing.JOptionPane; // import the class
public class Test{
public static void main(String[] args){
// read which operation to perform
String operation = JOptionPane.showInputDialog("Please enter which operation : ");
if(operation.equals("1")){
Addition.main(new String[]{});
else{
Multiplication5.main(new String[]{});
}Rose -
I have 2 users on my Mac I want to merge the photo libraries please help!
I have 2 users on my Mac I want to merge the photo libraries please help!
What version of iPhoto? Do yuo hae Aperature 3.3? With iPhoto 9.3 and Aperature 3.3 you can merge iPhoto libraries - you also can do it with the paid version of iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -
LN -
How to implement an independent static stub client ? Please, help
Hi everybody!
I'm using the jwsdp1.2 and i got the static stub tutorial client to test my webservice. It works fine! However, i tried to compile the client code separately and it didn't worked. The jvm can't find the webservice class. So, the questions are:
- How to implement an independent static stub whithout the ant help?
- How can the client get the endpoint to create the proxy?
- Must I use any javax.xml.rpc interface (call or service maybe) to do the job?
- Could anybody show me some sample code?
Well, that's it. I'm waiting for some answer. Please, help me.
Tks in advance,
Rodrigo.Can you explain what you mean by "independent static stub" ?
JWSDP Tutorial explains all the steps required to create a static stubs client and invoke the service. In addition, https://jax-rpc.dev.java.net/whitepaper/1.1/index-part2.html#Scenario2 explains the detailed steps to achieve the same from command line.
Hope that helps.
Post your JAX-RPC related questions to [email protected] for a quicker resolution.
Send an email to [email protected] to subscribe to the alias.
Send an mail to [email protected] for a complete list of help commands.
-Arun -
Want a complete migration guide to upgrade 11.1.0.7 to 11.2.0.3 database using DBUA..We are implementing R12.1.3 version and then have to migrate the default 11gR1 database to 11.2.0.3 version. Please help with some step by step docs
Upgrade to 11.2.0.3 -- Interoperability Notes Oracle EBS R12 with Oracle Database 11gR2 (11.2.0.3) (Doc ID 1585578.1)
Upgrade to 11.2.0.4 (latest 11gR2 patchset certified with R12) -- Interoperability Notes EBS 12.0 and 12.1 with Database 11gR2 (Doc ID 1058763.1)
Thanks,
Hussein -
Duplicate calendars need to be merged, please help
i have duplicate calendars (ie: travel, travel) each one contains different events. this happened because of some sync issues when i tried to use gmail instead of my .mac account.
i need to merge these 2 calendars together because i dont' want to loose any data.
please help!?Select one of the calendars. From the File menu choose 'Export...' then 'Export...'; from the sub-menu. This will create an .ics file at the location chosen in the Export dialog.
From the File menu choose 'Import...' then 'Import...' from the sub-menu. A navigation pane will open: navigate to and choose your exported .ics file.
iCal will ask you where to import this to. Click the drop-down menu and select the calendar you want to add these events to. Import.
The events from the first calendar will be added to the second. Be aware that you cannot reverse this process.
Maybe you are looking for
-
Home sharing - can see shared library but won't pull up songs to share?
I am trying to share some music with my daughters older mac... I have done it in the past, but it is not working now. I can share her library on my laptop, but I see my library on her computer, but when I select it no songs come up and it jumps back
-
Why does a different number come up when i messaging to other i phones? My friends keep responding to my imessage with 'who is this' and apparently it comes from another number-not my usual number like texts...
-
Issue with XML report printing on R12 instance
Hi, I'm facing issue with printing xml reports on R12 instance and followed the note (How To Print XML Publisher PDF Reports Via The Concurrent Manager:metalink id:338990.1) and configured the pasta printer,still printer output is showing the junk ch
-
CF10 Sandbox Security prevents CFCOLLECTION create from working
Hello, everyone, I've got CF10 installed on my dev system. I've created several Solr collections. I have turned on Sandbox Security, and added defined directory permissions for C:/ColdFusion10/cfusion/collections and C:/ColdFusion10/cfusion/jetty f
-
Itunes 4 pc not working for two weeks now
After a windows 7 update 2 weeks ago my itunes stopped working. I have uninstalledand reinstalled and i cam't get Itunes working again.. what can I do? it wont launch. i have made sure that it installs in the program files (x86) folder too. what can