HT201415 Problems calling Monaco +377 code
Having trouble calling Monaco telephone numbers on Iphone5s - brand new phone. It wasn't a problem on the Iphone4s.
My account is VirginMobile with a French number and I cannot call +377 numbers?
My colleague is a UK phone ORANGE - and is unable to call +377 numbers?
I have checked all settings for roaming etc and all is in order.
Can you help?
Victoria
Hi Friend,
Please find the disconnect cause code = 1 meaning.
Unallocated (unassigned) number.
This number is not in the routing table or it has no path across the ISDN cloud (network).
Check routing table to see it the number is available.
Check to make sure the correct digits were dialed and it is a valid number.
Please check the call manager services has been enabled in publisher
Similar Messages
-
Problem in modifying the code using work area concept
Hi,
I am working on a code in which i am on the code in which i am using the modify statement but it is not giving the right output.
here's d code:-
LOOP AT T_ITPO5 INTO W_ITPO5.
LOOP AT T_ITPO4 INTO W_ITPO4 WHERE AUFNR = W_ITPO5-AUFNR.
LOOP AT T_ITPO4 INTO W_ITPO4 FROM WV_INDEX.
IF W_ITPO4-AUFNR EQ W_ITPO5-AUFNR.
IF ITPO4-NTGEW <> 0 .
CALL FUNCTION 'ZGET_ITEM_WEIGHT'
EXPORTING
P_BUID = W_ITPO4-WERKS
P_ITEMID = W_ITPO4-MATNR
P_QTY = 1
P_UOM = W_ITPO4-MEINS
P_UOM1 = 'KG'
IMPORTING
P_RETVAL = W_ITPO4-WTKG.
TOTWT1 = W_ITPO4-WTKG * W_ITPO4-MENGE.
IF W_ITPO4-BWART = '261'.
W_ITPO5-I_QTY = W_ITPO5-I_QTY + TOTWT1.
ELSEIF W_ITPO4-BWART = '101' OR W_ITPO4-BWART = '531'.
W_ITPO5-I_QTY = W_ITPO5-I_QTY - TOTWT1.
ENDIF.
ENDLOOP.
MODIFY T_ITPO5 INDEX SY-TABIX FROM W_ITPO5.
MODIFY T_ITPO5 FROM W_ITPO5 TRANSPORTING AUFNR.
ENDLOOP.
WRITE: / 'PRD.NO ITEM DESCRIPTION WIP(KGS)'.
ULINE.
LOOP AT T_ITPO5 INTO W_ITPO5.
READ TABLE T_ITPO1 INTO W_ITPO1 WITH KEY AUFNR = W_ITPO5-AUFNR.
SELECT SINGLE MAKTG FROM MAKT INTO W_ITPO5-ITEMDESC WHERE MATNR = W_ITPO1-MATNR.
if sy-subrc = 0 .
WRITE: / W_ITPO5-AUFNR,W_ITPO5-ITEMDESC,W_ITPO5-I_QTY.
TOT_QTY = TOT_QTY + W_ITPO5-I_QTY.
else.
write 'Unsuccessful'.
endif.
ENDLOOP.
ULINE.
FORMAT COLOR 3.
WRITE: / 'GTOTAL',55 TOT_QTY.
FORMAT COLOR OFF.
plzz provide me guidelines to solve this problem.here's d code;-
TYPES: BEGIN OF ITPO1,
AUFNR TYPE AFPO-AUFNR, "Order Number
PSMNG TYPE AFPO-PSMNG, "Order item quantity
WEMNG TYPE AFPO-WEMNG, "Quantity of goods received for the order item
DWERK TYPE AFPO-DWERK, "Plant
MATNR LIKE AFPO-MATNR, "Item Id
END OF ITPO1.
DECLARATION FOR AUFM TABLE
TYPES: BEGIN OF ITPO4,
AUFNR TYPE AUFM-AUFNR, "Order Number
BWART TYPE AUFM-BWART, "Movement Type (Inventory Management)
MENGE TYPE AUFM-MENGE, "Quantity
MEINS TYPE AUFM-MEINS, "Base Unit of Measure
BLDAT TYPE AUFM-BLDAT, "Document Date in Document
WERKS TYPE AUFM-WERKS, "Plant
MATNR TYPE AUFM-MATNR, "Material Number
NTGEW TYPE MARA-NTGEW, "Net Weight
WTKG TYPE MARA-NTGEW,
END OF ITPO4,
BEGIN OF ITPO5 ,
AUFNR TYPE AUFM-AUFNR,
MENGE TYPE AUFM-MENGE,
I_QTY TYPE AUFM-MENGE,
ITEMDESC LIKE MAKT-MAKTG,
END OF ITPO5.
WORK AREA AND INTERNAL TABLE DECLARATION
DATA : W_ITPO1 TYPE ITPO1,
W_ITPO4 TYPE ITPO4,
W_ITPO5 TYPE ITPO5,
T_ITPO1 TYPE ITPO1 OCCURS 0,
T_ITPO4 TYPE ITPO4 OCCURS 0,
T_ITPO5 TYPE ITPO5 OCCURS 0.
VARIABLES
DATA: TOTWT1 LIKE AUFM-MENGE,
TOT_QTY LIKE AUFM-MENGE.
PARAMETERS N SELECT-OPTIONS
PARAMETERS: PLANT LIKE AFPO-DWERK.
SELECT-OPTIONS: PO_DATE FOR AFKO-GSTRP.
LOOP AT T_ITPO5 INTO W_ITPO5.
LOOP AT T_ITPO4 INTO W_ITPO4 WHERE AUFNR = W_ITPO5-AUFNR.
CALL FUNCTION 'ZGET_ITEM_WEIGHT'
EXPORTING
P_BUID = W_ITPO4-WERKS
P_ITEMID = W_ITPO4-MATNR
P_QTY = 1
P_UOM = W_ITPO4-MEINS
P_UOM1 = 'KG'
IMPORTING
P_RETVAL = W_ITPO4-WTKG.
TOTWT1 = W_ITPO4-WTKG * W_ITPO4-MENGE.
IF W_ITPO4-BWART = '261'.
W_ITPO5-I_QTY = W_ITPO5-I_QTY + TOTWT1.
ELSEIF W_ITPO4-BWART = '101' OR W_ITPO4-BWART = '531'.
W_ITPO5-I_QTY = W_ITPO5-I_QTY - TOTWT1.
ENDIF.
ENDLOOP.
MODIFY T_ITPO5 INDEX SY-TABIX FROM W_ITPO5.
MODIFY T_ITPO5 FROM W_ITPO5 TRANSPORTING AUFNR.
ENDLOOP.
WRITE: / 'PRD.NO ITEM DESCRIPTION WIP(KGS)'.
ULINE.
LOOP AT T_ITPO5 INTO W_ITPO5.
READ TABLE T_ITPO1 INTO W_ITPO1 WITH KEY AUFNR = W_ITPO5-AUFNR.
SELECT SINGLE MAKTG FROM MAKT INTO W_ITPO5-ITEMDESC WHERE MATNR = W_ITPO1-MATNR.
if sy-subrc = 0 .
WRITE: / W_ITPO5-AUFNR,W_ITPO5-ITEMDESC,W_ITPO5-I_QTY.
TOT_QTY = TOT_QTY + W_ITPO5-I_QTY.
else.
write 'Unsuccessful'.
endif.
ENDLOOP.
ULINE.
FORMAT COLOR 3.
WRITE: / 'GTOTAL',55 TOT_QTY.
FORMAT COLOR OFF.
I want to have output that the production order is displayed along with the deficit quantity. but using this concept it shows only production order no. and qty 0. -
Hi All!
I'm having some problems calling a Webservice. I've created a deployable proxy and a client bean and from this bean I've generated a Webservice. When I test this Webservice the actual webservice call is succesfull but I get the following response from the Webservice:
HTTP/1.1 200 OK
Connection: close
Date: Fri, 13 May 2005 10:26:37 GMT
Server: Microsoft-IIS/6.0
P3P: CP="NOI DSP COR ADM DEV PSA PSD HIS OTP OUR IND STA"
X-Powered-By: ASP.NET
X-Powered-By: PHP/4.3.9
Status: 200 OK
Server: PEAR-SOAP 0.8.0RC2-devel
Content-Type: text/xml; charset=UTF-8
Content-Length: 1887
X-Zend-WinEnabler: 1.2.0
<br />
<b>Notice</b>: Undefined property: actor in <b>C:Program FilesZendWinEnablerphppearSOAPServer.php</b> on line <b>318</b><br /> <br />
<b>Notice</b>: Undefined property: mustunderstand in <b>C:Program FilesZendWinEnablerphppearSOAPServer.php</b> on line <b>322</b><br />
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/ ....etc"
As you can see there is some HTML code in the response. This HTML code causes problems for the SAP parser as it expects a SOAP:Envelope and not some HTML junk.
I've looked up what the properties <i>mustunderstand</i> and <i>actor</i> do in a SOAP header and they seem to be optional properties. On the Webservice side the SOAP parser unfortunately seem to think these properties are mandatory.
There's probably two ways to solve this problem. The first way is to ask the guys who host this Webservice to change it are their side. The other option is to add these properties to the SOAP header on the SAP side....which brings me to my question: Is there any way to add these two properties to the SOAP header before the deployable proxy calls the Webservice?Hi Arnouid,
as far as I understand your post, the HTML code is the body of the response.
If it is so, it is not a correct SOAP-message. A SOAP header is inside of the envelope and not outside of it.
So, it is not very a big surprise, that the parser don't like this.
Aside from the form of a SOAP-message, it is not even a XML-message, which must begin with <?xml...
tom -
Now I had to restart my Ipod all over again which because of that i lost all my data. When I want to get apps I can't install them because of a billing information problems. What security code do they want on my account settings information? And how do you delete purchased apps that you install, but didn't want?
Maybe the three or four digit security code on your credit card card
http://www.creditcards.com/credit-card-news/credit-card-verification-numbers-sec urity-code-1282.php
or maybe the answers to your security questions. If you do not remember them:
From a Kappy post
The Best Alternatives for Security Questions and Rescue Mail
1. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
2. Call Apple Support in your country: Customer Service: Contact Apple support.
3. Rescue email address and how to reset Apple ID security questions.
An alternative to using the security questions is to use 2-step verification:
Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID. -
Set the field value, call transcation T-CODE in CRM
Hello
I face the proble as follow: select the field into the itab,and set the field itab-field to call transcation T-CODE in CRM.
exp:call T-CODE:"CRMD_BUS2000111". when I execute the program, display the opportunity value screen, not the init select&result screen.
Thanks!Please reward and close your other post regarding a similar problem.
If you don't want the initial screen, you have fill the BDC data for the initial screen and then call the transaction with mode 'E'. I gave the same solution to your previous question. -
Call a transaction code in dynamic action
Hi
How can we call a transaction code in a dynamic action.
TC XD01 is populated when changes is happen in IT0006 subtype 03.
Regards
WSHi,
Please find the below threads which may help you.
Problem in calling dynamic actions in BDC
Create Dynamic Action
Triggering Dynamic actions when updating an Infotype using a FM
Thanks & Regards,
Sandip Biswas. -
Problem calling simplebutton from library
Hi guys,
I'd like to ask for your assistance. I have a problem calling
SimpleButton from library. I already checked the Linkage:Export for
actionscript but still an error appear "Call to a possibly
undefined method OkBtn". I'm just wondering because this method
works on my MovieClips except for SimpleButtons. Is there another
way to call SimpleButtons?
Here's my code calling MovieClip:
var mc:MovieClip = new ourProduct();
and same in calling my SimpleButton:
var myOkBtn:SimpleButton = new OkBtn();
please help.
Thank you very muchHi again,
Since I could not call my SimpleButton inside the library, I
was thinking of putting my button inside the movieclip and call
that clip inside my library.
On my stage, I called
underConstructionPane() movieclip. This
underConstructionPane contains
myOkBtn which previously I wanted to call but as a work
around, I just put it inside
underConstructionPane movieclip with instance name of
okBtn. I added eventHandler on
okBtn which supposed to call
showHome() function outside
underConstructionPane.
showHome() was declared on the stage or root (I don't know
the correct term. hehehe
sorry.) but I don't know how to call that function.
I tried this:
var home = new showHome();
but it won't work.
Please help me
Thank you. -
Problem calling C# dll using JNI
Hi,
I'm trying to call C# functions from a JNI interface. I built a C++ DLL to link the Java and C# calls together, but I am always getting the same error. Calling the C# DLL directly from the C++ code (compiled as an application) does not cause this error. I have to be able to connect our java application with a third party C# DLL, so I cannot just right the DLL directly in C++... Here is my code:
//C# Class Library::
namespace ClassLibrary2
/// <summary>
/// Summary description for Class1.
/// </summary>
public class Class1
public Class1()
// TODO: Add constructor logic here
public void Bidon1()
MessageBox.Show("Affiche", "Toi", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
//C++ DLL::
#using "ClassLibrary2.dll"
BOOL APIENTRY DLLMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
return TRUE;
JNIEXPORT void JNICALL Java_com_blablabla_CommJNIDLL_Init
(JNIEnv * enivronmt, jobject obj)
new ClassLibrary2::Class1();
(new ClassLibrary2::Class1())->Bidon1();
Olivier dit :
//Java JNI Calls::
//From CommJNIDLL::
static {
System.loadLibrary("MyCDLL");
public native void Init(); If I comment the calls within the C++ DLL, they get fired, and no exception is raised. What am I doing wrong?
Thanks, bumpertHi,
I am currently also trying to call some C# code within JNI. So far I have managed to call some simple C# code in Java through JNI based on the example on codeproject. However, now my problem is that instead of doing JNI-->C++->M C++->C#, I need to include one more reference to some other DLLs in the C# code. Therefore I need to do JNI-->C++-->M C++-->C#-->DLL. So is there a way to do this? I can compile all the code sucessfully in C++, but when I try to execute the .netmodule (for C#) and DLL for C++ through JNI in Java, it gives me an error. I have tried to put all the relevant DLLs in the same directory, but it still does not work. So is there someway to combine the .netmodule of C# with the DLLs it references to? Perhaps that could solve the problem? I am new to C# and C++, really appreciate if someone can give some advices since there's nothing much on the net.
thanks,
Lee -
SLDCHECH: Function call returned exception code 3
Hi all.
I am trying to set up ESS and MSS on EP 6.0 SP15.
I have configured the RFC destination, and when i do a test in RZ70 and SM59 everything is ok, but when i try running transaction SLDCHECK i get the following error:
Use transaction SLDAPICUST if you wish to maintain the SLD server access data
Launching the SLD GUI in a separate browser window...
=> Verify in the browser GUI that the SLD is in a healthy running state!
Calling function LCR_LIST_BUSINESS_SYSTEMS
Retrieving data from the SLD server...
Function call returned exception code 3
=> Check whether the SLD is running!
Summary: Connection to SLD does not work
=> Check SLD function and configurations
Can anybody shead some light on this problem?
Regards LiselotteDear Liselotte,
This will help you,
http://help.sap.com/saphelp_nw04/helpdata/en/78/20244134a56532e10000000a1550b0/frameset.htm
Might be Java version to the proxy settings. Try to go thru listed down various troubleshooting steps in following this weblog.
Unable to open IR/ESR/ID ? (XI/PI/PI 7.1) [Updated for PI 7.1 support]
Regards
Agasthuri Doss -
ODP problem Calling Stored proc..
First here is the code (C#) Errror I am getting is
(Either wrong number of arguments or right at the execute command it just hangs..)
OracleConnection oOracleConn = new OracleConnection();
oOracleConn.ConnectionString = "Data Source=Config;USER ID=xyz;PASSWORD=xyz;";
oOracleConn.Open();
OracleCommand myCmd = new OracleCommand("Config.BillerVersionIns", oOracleConn);
myCmd.CommandType = CommandType.StoredProcedure;
OracleTimeStamp x = OracleTimeStamp.GetSysDate();
myCmd.BindByName = true;
myCmd.Parameters.Add("p_BillerID ", OracleDbType.Int32).Value = 409;
myCmd.Parameters.Add("p_BillerName", OracleDbType.Varchar2).Value = "TestBiller";
myCmd.Parameters.Add("p_BillerActiveInd", OracleDbType.Char).Value = "Y";
myCmd.Parameters.Add("p_ParentBillerID", OracleDbType.Int32);//( this can be null)
myCmd.Parameters.Add("p_PaymentAcceptanceInd", OracleDbType.Char).Value = "Y";
myCmd.Parameters.Add("p_VersionDesc", OracleDbType.Varchar2).Value = "Version Number 4";
myCmd.Parameters.Add("p_EffectiveDate", OracleDbType.TimeStamp).Value = x;
myCmd.Parameters.Add("o_BillerID", OracleDbType.Int32).Direction = ParameterDirection.Output;
myCmd.Parameters.Add("o_VersionID", OracleDbType.Int32).Direction = ParameterDirection.Output;
myCmd.Parameters.Add("o_VersionDesc", OracleDbType.Varchar2).Direction = ParameterDirection.Output;
myCmd.Parameters[3].Status = OracleParameterStatus.NullInsert;
OracleDataReader myreader = myCmd.ExecuteReader();
And now the Stored proc in Oracle 10g...( pls note I have tested this stored proc from Oracle client tool its getting executed perfectly only problem is when I try to call it from code above it throws error)..
Var v1 Number
Var v2 Number
Var v3 Varchar2(50)
Exec Config.BillerVersionIns (409,'Midwest Energy1', 'Y', NULL, 'Y', 'Version Number 1', SYSDATE, :v1, :v2, :v3)
Print v1
Print v2
Print v3
Oracle Procs
TEXT
Procedure BillerVersionIns
( p_BillerID In Number,
p_BillerName In Varchar2,
p_BillerActiveInd In Char,
p_ParentBillerID In Number,
p_PaymentAcceptanceInd In Char,
p_VersionDesc In Varchar2,
p_EffectiveDate In TimeStamp,
o_BillerID out NOCOPY Number,
o_VersionID out Number,
o_VersionDesc out NOCOPY Varchar2
) Is
v_BillerID Number;
v_VersionID Number;
v_EffectiveDate TimeStamp;
v_SysDate TimeStamp;
Begin
v_EffectiveDate := p_EffectiveDate;
v_EffectiveDate := SYSDATE;
v_SysDate := SYSDATE;
If (p_BillerID Is Null) Then
v_VersionID := 1;
Insert Into Config.Biller(BillerID, BillerName, BillerActiveInd, ParentBillerID, PaymentAcceptanceInd, CreatedDate, UpdatedDate)
Values (Config.Biller_Seq.NextVal, p_BillerName, p_BillerActiveInd, p_ParentBillerID, p_PaymentAcceptanceInd, v_SysDate, v_SysDate);
Select BillerID Into v_BillerID From Config.Biller Where BillerName = p_BillerName;
Insert Into Config.BillerVersion (BillerID, VersionID, BillerName, VersionDesc, BillerVersionActiveInd, EffectiveDate, RetireDate, ParentBillerID, PaymentAcceptanceInd, CreatedDate)
Values (v_BillerID, v_VersionID, p_BillerName, p_VersionDesc, 'Y', v_EffectiveDate, NULL, p_ParentBillerID, p_PaymentAcceptanceInd, v_SysDate);
o_BillerID := v_BillerID;
o_VersionID := v_VersionID;
Select VersionDesc Into o_VersionDesc From Config.BillerVersion Where BillerID = v_BillerID And VersionID = v_VersionID;
Else
Select Max(VersionID) Into v_VersionID From Config.BillerVersion Where BillerID = p_BillerID;
Update Config.BillerVersion
Set BillerVersionActiveInd = 'N',
RetireDate = v_SysDate
Where BillerID = p_BillerID
And VersionID = v_VersionID;
v_VersionID := v_VersionID + 1;
Update Config.Biller
Set BillerName = p_BillerName,
BillerActiveInd = p_BillerActiveInd,
ParentBillerID = p_ParentBillerID,
PaymentAcceptanceInd = p_PaymentAcceptanceInd,
UpdatedDate = v_SysDate
Where BillerID = p_BillerID;
Insert Into Config.BillerVersion (BillerID, VersionID, BillerName, VersionDesc, BillerVersionActiveInd, EffectiveDate, RetireDate, ParentBillerID, PaymentAcceptanceInd, CreatedDate)
Values (p_BillerID, v_VersionID, p_BillerName, p_VersionDesc, 'Y', v_EffectiveDate, NULL, p_ParentBillerID, p_PaymentAcceptanceInd, v_SysDate);
o_BillerID := p_BillerID;
o_VersionID := v_VersionID;
Select VersionDesc Into o_VersionDesc From Config.BillerVersion Where BillerID = p_BillerID And VersionID = v_VersionID;
End If;
End;
69 rows selected
TEXT
Message was edited by:
user588434One additional point I would make on the Spring integration side is that you should probably cast to ClientSession below rather than SpringClientSession. Or, in this case, even to oracle.toplink.publicinterface.Session.
java.sql.Connection conn = ((ClientSession) session).getAccessor().getConnection();
Or probably even better would be to refactor the code so that you can execute a DatabaseQuery with a stored procedure Callable. Although I know you already said that you inherited this code from somewhere else, so maybe there's nothing you can do.
But in general, I try to do whatever I can to avoid having to extract the Connection from a TopLink Session. -
Problem calling AS3 class's methods from Flex Project
Sorry if this is a stupid question, but after 2 days of Web
searching and 2 books give up; I am a Java and c# programmer and am
having problems calling AS3 classes (in packages) from Flex Builder
2 Flex Projects; the AS3 classes work great as Flex Builder "AS3
Projects", but when I try to use the classes in a Flex Builder
"Flex Project" I am able to see and set their properties, but
cannot see (through "code completion") their methods (unless the
class extends another AS3 class; and in that case I can see the
base class's methods). Here is the code:
AS3 Example Class:
package asText {
public class CheckWord {
public var strData:String;
public var strAProperty:String;
public var intAProperty:int;
// Constructor
public function CheckWord() {
public function TestMethod():void {
trace("test...");
public function WordLength():int {
var intLength:int = 0;
trace(strData);
intLength = strData.length;
return intLength;
} // From Method WordLength
} // From Class CheckWord
} // From Package asText
The MXML code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute"
width="442" height="488" horizontalAlign="center"
verticalAlign="middle"
backgroundGradientColors="[#c0c0c0, #c0c0c0]"
xmlns:asTheText="asText.*"
>
<asTheText:CheckWord strData="Test words" />
<mx:Panel title="Welcome to ........" width="337"
height="393" horizontalAlign="center" verticalAlign="middle"
layout="absolute" y="15" x="50">
<mx:Text text="First Name" enabled="true" width="68"
fontWeight="bold" x="27.25" y="36"/>
<mx:TextInput id="txtFName" x="112.25" y="34"/>
<mx:Text text="Last Name" enabled="true" width="68"
fontWeight="bold" x="27.25" y="66"/>
<mx:TextInput x="112.25" y="64" id="txtLName"/>
<mx:Text text="email address" enabled="true" width="87"
fontWeight="bold" x="17.25" y="96"/>
<mx:TextInput width="189" id="txtEmail" left="112.25"
top="94"/>
<mx:Button id="butSubmit" label="Submit" x="95" y="194"
click="asTheText:TestMethod();"/>
..............and so on ............
All this does is give me an 1180 error:
1180: Call to a possibly undefined method TestMethod.
flexConveyMovie1.mxmlThanks, I have it working; I was not assigning an "ID" to the
"MXML use of the class" (whatever the formal name for that is;
like: <asTheText:CheckWord id="MyText" strData="The Data" />
) and then I was not referencing that ID in what I am refering to
as calling methods for the Class; like:
<mx:Button id="butTest" label="Test Function" x="39"
y="208" click="MyText.TestMethod();"/>
Also, I did some tests on this, and I am shocked that
apparently neither of these two "uses"(?) of a custom AS3 class
actually "call" the Class's constructor. Does that make sense or is
that the result of how I am structuring this?
Phil -
Problem call stored procedure from asp using oo4o
I am having a problem calling a pl/sql stored procedure from ASP.
Attached is the code. Any help would be appreciated. There are no errors returned on the page as far as I can tell.
Sub add_cc_rec(p_location_rental_object_num, p_start_date, p_end_date, p_rate_code, p_quantity)
'On Error Resume Next
Dim msg, stat, p_available, p_free_sell, p_cap_level, p_status_code, p_error_code
Dim OraDatabase, PlSqlStmt
Response.Write "In Function add_cc_rec<br>"
msg = ""
stat = ""
p_available = "Y"
p_free_sell = "Y"
p_cap_level = "0"
p_status_code = 2
p_error_code = ""
Set OraSession = Server.CreateObject("OracleInProcServer.XOraSession")
Response.Write "Created OraSession<br>"
Set OraDatabase = OraSession.OpenDatabase(ORADB, RUUID &"/"& RUPWD, 0)
'Set OraDatabase = OraSession.DbOpenDatabase(ORADB, RUUID &"/"& RUPWD,cint(0))
'Set OraDatabase = OraSession.DbOpenDatabase(ORADB, UID &"/"& PWD,cint(0))
Response.Write "Created OraDatabase with the following parameters<br>"
Response.Write "Database is " & ORADB & "<br>"
Response.Write "UserId is " & RUUID & "<br><br>"
OraDatabase.Parameters.Add "p_location_rental_object_num", p_location_rental_object_num, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_available", p_available, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_start_date", p_start_date, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_end_date", p_end_date, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_free_sell", p_free_sell, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_quantity", p_quantity, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_cap_level", p_cap_level, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_rate_code", p_rate_code, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_status_code", p_status_code, ORAPARM_OUTPUT, ORATYPE_NUMBER
OraDatabase.Parameters.Add "p_error_code", p_error_code, ORAPARM_OUTPUT, ORATYPE_VARCHAR2
Response.Write "Calling PL/SQL procedure cc_insert <br>"
Set PlSqlStmt = OraDatabase.CreateSQL("Begin RATELINK_CAPACITY_CONTROL.cc_insert(:p_location_rental_object_num, :p_available, :p_start_date, :p_end_date, :p_free_sell, :p_quantity, :p_cap_level, :p_rate_code, :p_status_code, :p_error_code); end;", ORASQL_DEFAULT)
Response.Write "PL/SQL procedure cc_insert has been called <br>"
Response.Write "Status code from PL/SQL procedure cc_insert (" & OraDatabase.Parameters("p_status_code").value & ")<br>"
Response.Write "Error code from PL/SQL procedure cc_insert (" & OraDatabase.Parameters("p_error_code").value & ")<br>"
'Response.Write "Error code from PL/SQL procedure cc_insert (" & p_error_code & ")<br>"
OraDatabase.Parameters.Remove "p_location_rental_object_num"
OraDatabase.Parameters.Remove "p_available"
OraDatabase.Parameters.Remove "p_start_date"
OraDatabase.Parameters.Remove "p_end_date"
OraDatabase.Parameters.Remove "p_free_sell"
OraDatabase.Parameters.Remove "p_quantity"
OraDatabase.Parameters.Remove "p_cap_level"
OraDatabase.Parameters.Remove "p_rate_code"
OraDatabase.Parameters.Remove "p_status_code"
OraDatabase.Parameters.Remove "p_error_code"
Set OraSession = Nothing
Set OraDatabase = Nothing
End Sub1 - Can I clear errors on the OraDatabase class. How do
I do that?They store the last error, should clear itself.
2. Is this a client side or server side error? If this
is a client side error, how do I resolve it?Server side error only. Make sure the user you connect as can see 'RATELINK_CAPACITY_CONTROL.CC_INSERT' and has execute permissions on it. You may need to qualify it with a schema name if the connected user is not the schema owner. -
Problems calling context-sensitive AIRHelp from Adobe Flex App
Hi everyone...
I´m having problems calling context-sesitive AIRHelp from Flex.
I can launch the help from flex using the following code (flex), but allways starts on the default topic.
private function invocarAirHelp(tema:String):void {
var appID:String = "pc1";
var pubID:String = "8C47FDE4638CAF7F210634E52A5F8318D893A57C.1";
var mgr:ProductManager = new ProductManager("airappinstaller");
mgr.launch("-launch " + appID + " " + pubID);
the launch method can recive parameters after the publisherID, but i dont know the parameters that i should give to the method to start the AIRHelp on an specific topic.
I tryed using the parameters as the call was on the command line, ex:
mgr.launch("-launch " + appID + " " + pubID + " -csh mapnumber 12");
but i can get any results... with those parameters the help application doesn´t even start
Anyone have an idea to make this works?
Thanks in advance, SabinHi Sabin,
The only supported way to launch AIR applications from the browser is the air "browser API": http://livedocs.adobe.com/flex/3/html/help.html?content=distributing_apps_3.html#1035834
The browser API uses ProductManager internally and exposes higher-level browser API so that we change the implementation if necessary someday. The browser API will stay the same, even if the interactions through ProductManager (or something else) change.
The browser API (air.swf) has other features that make it the preferred way to launch apps. For instance, it provides accurate information about which platforms support AIR, and can therefore manage install of new apps and of the runtime itself.
Also, if the application is not installed then Browser API will return Error to the flex application, but that does not happen in case of ProductManager.
That said, you can probably use "--" to separate arguments intended for airappinstaller from arguments that should be passed through to the app itself.
mgr.launch("-launch " + appID + " " + pubID + " -- -csh mapnumber 12");
-Praful Jain -
I am making code to try to make a game and my problem is that my code
will not let it change the hit everytime so im getting the first guy to hit 1 then next hits 8 and so on and always repeats.
Another problem is that I would like it to attack with out me telling it how much times to attack. I am using Object oriented programming.
Here is the code for my objects:
import java.lang.*;
import java.io.*;
import java.net.*;
import java.util.*;
import java.util.Random;
import static java.lang.Math.*;
import java.awt.*;
import java.awt.color.*;
class rockCrab {
//Wounding formula
double sL = 70; // my Strength Level
double bP = 1; // bonus for prayer (is 1 times prayer bonus)
double aB = 0; // equipment stats
double eS = (sL * bP) + 3; // effective strength
double bD = floor(1.3 + (eS/10) + (aB/80) + ((eS*aB)/640)); // my base damage
//Attack formula
double aL = 50; // my Attack Level
double eD = 1; // enemy's Defence
double eA = aL / eD; // effective Attack
double eB = 0; // equipment bonus'
double bA = ((eA/10) * (eB/10)); // base attack
//The hit formula
double fA = random() * bA;
double fH = random() * bD;
double done = rint(fH - fA);
//health formula
double health = floor(10 + sL/10 * aL/10);
rockCrab() {
void attack() {
health = floor(10 + sL/10 * aL/10);
double done = rint(fH - fA);
fA = random() * bA;
fH = random() * bD;
done = rint(fH - fA);
System.out.println("Rockcrab hit" +done);
import java.lang.*;
import java.io.*;
import java.net.*;
import java.util.*;
import java.util.Random;
import static java.lang.Math.*;
import java.awt.*;
import java.awt.color.*;
class self {
//Wounding formula
double sL = 1; // my Strength Level
double bP = 1; // bonus for prayer (is 1 times prayer bonus)
double aB = 0; // equipment stats
double eS = (sL * bP) + 3; // effective strength
double bD = floor(1.3 + (eS/10) + (aB/80) + ((eS*aB)/640)); // my base damage
//Attack formula
double aL = 1; // my Attack Level
double eD = 1; // enemy's Defence
double eA = aL / eD; // effective Attack
double eB = 0; // equipment bonus'
double bA = ((eA/10) * (eB/10)); // base attack
//The hit formula
double fA = random() * bA;
double fH = random() * bD;
double done = rint(fH - fA);
//health formula
double health = floor(10 + sL/10 * aL/10);
self() {
void attack() {
health = floor(10 + sL/10 * aL/10);
fA = random() * bA;
fH = random() * bD;
done = rint(fH - fA);
System.out.println("You hit" +done);
}Here is the main code that writes what the objects do:
class fight {
public static void main(String[] args) {
self instance1 = new self();
rockCrab instance2 = new rockCrab();
instance2.health = instance2.health - instance1.done;
System.out.println("You hit: " +instance1.done);
System.out.println("rockCrabs health: " + instance2.health);
instance1.health = instance1.health - instance2.done;
System.out.println("RockCrab hit: " +instance2.done);
System.out.println("rockCrabs health: " + instance1.health);
instance2.health = instance2.health - instance1.done;
System.out.println("You hit: " +instance1.done);
System.out.println("rockCrabs health: " + instance2.health);
instance1.health = instance1.health - instance2.done;
System.out.println("RockCrab hit: " +instance2.done);
System.out.println("rockCrabs health: " + instance1.health);
instance2.health = instance2.health - instance1.done;
System.out.println("You hit: " +instance1.done);
System.out.println("rockCrabs health: " + instance2.health);
instance1.health = instance1.health - instance2.done;
System.out.println("RockCrab hit: " +instance2.done);
System.out.println("rockCrabs health: " + instance1.health);
instance2.health = instance2.health - instance1.done;
System.out.println("You hit: " +instance1.done);
System.out.println("rockCrabs health: " + instance2.health);
instance1.health = instance1.health - instance2.done;
System.out.println("RockCrab hit: " +instance2.done);
System.out.println("rockCrabs health: " + instance1.health);
}when the code is run it says something like this:
you hit 1
RockCrabs health is 9
RockCrab hit 7
your health is 38
you hit 1
RockCrabs health is 8
RockCrab hit 7
your health is 31
you hit 1
RockCrabs health is 7
RockCrab hit 7
your health is 24
you hit 1
RockCrabs health is 6
RockCrab hit 7
your health is 17
my point is whatever some one hits it always repeats that
my expected output would have to be something like
you hit 1
RockCrabs health is 9
RockCrab hit 9
your health is 37
you hit 3
RockCrabs health is 6
RockCrab hit 4
your health is 33
you hit 2
RockCrabs health is 4
RockCrab hit 7
your health is 26
you hit 3
RockCrabs health is 1
RockCrab hit 6
your health is 20
Edited by: rade134 on Jun 4, 2009 10:58 AM[_Crosspost_|http://forums.sun.com/thread.jspa?threadID=5390217] I'm locking.
-
Problem calling a EJB Java Client from Java Activity Agent
Hi,
We have a wrapper java class that calls to an EJB through a JNDI lookup. The wrapper class is called from a workflow. The problem is that the call fail with the following message error:
Error : getRemoteHome Lugar: ServiceLocator NamingException Mensaje Error: Receive timed out
Mon Jan 09 15:32:13 EST 2006 Enqueuing VIC/97513 com.tallion.tax.workflow.assessment.Update
F_FN_ERROR (MODULE=com.tallion.tax.workflow.assessment.Update) (ITEMTYPE=VIC) (ITEMKEY=97513) (ACTID=10617) (FUNCMODE=RUN) (ERRMESSAGE=getRemoteHome Lugar: ServiceLocator NamingException Mensaje Erro
The wrapper class has in their classpath a jndi.properties as follows:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=69.0.137.120:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
The call just works fine when we restart the Java Activity Agent and then, after a while it fails again with the same error.
Any ideas/workaround?
Thanks.I have a situation that is a bit similar. I have successfully used beans for storing methods used in JSPs and used by other methods in the same class as was suggested above. Now I would like to break some methods into another (utility) class since they are lower level and can be used by lots of things. They are for database operations (given a String query and String dbname, it queries and returns ResultSet for example). I want to have them in a separate class for reusability and OOP.
I am having problems calling those public static methods in the public class from my bean that communicates with the JSP. I can't compile the class that calls the method in the database ops class. I get an error like :
loginHelper.java:45: cannot find symbol
symbol : variable sqlHelper
location: class dbHelperBean.loginHelper
and when I include the package name in the call I get
loginHelper.java:45: cannot find symbol
symbol : class sqlHelper
location: package dbHelperBean
That's strange since the package of both classes is dbHelperBean and the class is indeed called sqlHelper. I tried to compile it in the same directory as sqlHelper as well. What am I doing wrong?
Thanks for any help.
Maybe you are looking for
-
My iPad won't let me download or update apps or do a software update. Help!!!
Alright so My iPads App Store doesn't let me download any apps... It always says "(the app)" could not be downloaded at this time. It also won't let me do a software update to iOS 7.1.2 I have iOS 7.1.1... What could be wrong and how do I fix it?! I
-
File Info problems in Photoshop CC & CS5.1 on OS X 10.8
I have recently upgraded my Macs, running OS X Mountain Lion, from Photoshop CS5.1 to Photoshop CC for two reasons: 1. Because it most the most cost efficeint way to obtain the latest Camera Raw plugins that are no longer supported in CS5.1 2. Becaus
-
SOAP Adapter with Security Levels - HTTP & HTTPS
We have a successfully working interface scenario where SAP XI is hosting a web service and the partner systems calling it using SOAP Adapter URL http://host:port/XISOAPAdapter/MessageServlet?channel=:service:channel with Security Level HTTP on the S
-
Automizing error message with Fault Message Type
(Request F6) (Request F6) System - > XI - > SAP (Doesn't have F6) <-- XI <-- SAP (Doesn't have F6) (Respons: error) (Respons. error) (Problem) When the request message doesn't content sufficient information that is requi
-
Hello, everybody. I know that what I wants goes against open-code ABAP' spirit, but there are people I hace dependence of who are over me, telling me to do (just for eco reasons): Is it there any way for not allowing to debug a program o a piece of c