Regarding methods
Hi all,
My requirement is I an entering data into 3 text fields. And when i am performing action(Clicking a button) I want to display the text which i have entered in the three text box into next screen Container. So how can i display that.One of my friend suggested me to use Set_text_as_r3table and Get_text_as_r3table to store the data and retreive the date from the Database table.And try. But i am not getting the class in which i can find this methods. Can any one help me out in solving this problem. Or if any other method is plz suggest me .
Thanx in Advance,
Murthy
HI,
you can use 'EXPORT' and 'IMPORT' to get your work done.
in first screen 'EXPORT' the fields to abap memory and in second screen PBO 'IMPORT' fields to get value and display them in screen.
<b>IN first screen PAI do this.</b>
data: text_field(50).
EXPORT text_field TO MEMORY ID 'MID'.
<b>IN second screen PBO do this.</b>
data: text_field(50).
IMPORT text_field FROM MEMORY ID 'MID'.
Regards,
Similar Messages
-
hi,
i am new to this forum,can anybody tell mme which method is more efficient in ALV REPORT:-
1.) DECLARING TYPES AND WORK AREAS
OR
2.) DECLARING INTERNAL TABLE AND PASSING IT IN FUNCTIONS.
PLZZZ ANY BODY GIVE EXAMPLE OF 2 ND OPTION AS I HAD MADE REPORT BUT D OUTLOOK SEEMS TO BE OUTDATED AS COMPARE TO 1ST METHOD.Hello and Welcome,
As far as i have worked...there is no such categorisation as using
1.) DECLARING TYPES AND WORK AREAS
OR
2.) DECLARING INTERNAL TABLE AND PASSING IT IN FUNCTIONS.
Each has there own set of plus and minus points..we do a mix of all the above to suit the requirements given..sort of (1) AND (2)
eg:
Declaring types:The main advantage is that unless you do a 'data' initialisation no memory is used and you can create multiple objects of the same structure if we are using types..so in short with types we can also create a work area as well as an internal table
Types : Begin of demo_types,
date type sy-datum,
screen type sy-dynnr,
end of demo_types.
data : Internal_table1 type table of demo_types with header line.
data : Internal_table2 type table of demo_types.
data : work_area type demo_types.
we can declare internal table with header line if the choice is not to use a separate work area for instance while looping which can be done as
loop at internal table ....endloop...."with headerline
loop at internal table into workarea...endloop...."without/with header line
<u><i><b>so ---> if you have large data with complex calculations we need all of what you have mentioned in points 1 and 2....If there is a specifIC doubt ..please revert back..and reward if helpful..to encourage more healthy answers to the query
the query is very general and the more and more you work on a report...the choice will come naturally...just in case you need more examples in ALV please refer the following programs(go to se38 -> BCALV* -> F4 --> you have list of ALV programs</b></i></u>
]BCALV_EDIT_01 Switch on and off the ready-for-input status of the entire grid
BCALV_EDIT_02 Define ready-for-input status at cell level
BCALV_EDIT_03 Verification of modified cells
BCALV_EDIT_04 Delete and append rows
BCALV_EDIT_05 Checkboxes
BCALV_EDIT_06 Dropdown Listbox at Column Level
BCALV_EDIT_07 Dropdown Listbox at Cell Level
BCALV_EDIT_08 Integrate Non-Standard F4 Help
BCALV_GRID_01 Processing Print Events
BCALV_GRID_02 Display Detail List in Dialog Box Container
BCALV_GRID_03 Detail List in Dialog Window
BCALV_GRID_04 Display Exceptions (LEDs or Traffic Lights)
BCALV_GRID_05 Add a Self-Defined Button to the Toolbar
BCALV_GRID_06 Define Self-Defined Context Menu
BCALV_GRID_07 Define a Menu in the Toolbar
BCALV_GRID_08 Define a Menu with Default Pushbutton
BCALV_GRID_09 Saving Options for Layouts
BCALV_GRID_10 Load a layout before list display
BCALV_GRID_11 Test for new layout function modules
Regards
Byju -
hi
sap guru's
can anybody give some simple sample classes containg methods,
inheritance, very urgent
Regards
SpanadanaHi spandana,
Class Definition
CLASS main DEFINITION
CLASS main DEFINITION.
PUBLIC SECTION.
METHODS add_data IMPORTING i_data TYPE i.
METHODS get_data EXPORTING e_data TYPE char20.
CLASS-METHODS print IMPORTING value TYPE char20.
PRIVATE SECTION.
DATA atribute TYPE char01.
ENDCLASS.
Class Implementation
CLASS main IMPLEMENTATION
CLASS main IMPLEMENTATION.
METHOD add_data.
ADD i_data TO atribute.
ENDMETHOD.
METHOD get_data.
CONCATENATE 'Atribute value' atribute
INTO r_data SEPARATED BY space.
ENDMETHOD.
METHOD print.
WRITE value.
ENDMETHOD.
ENDCLASS.
Creation Object
DATA: object_reference TYPE REF TO main.
DATA: var type char20.
Instance Creation
CREATE OBJECT object_reference.
Calling Methods
CALL METHOD object_reference->add_data( i_data = 3 ).
var = object_reference->get_data( ).
CALL METHOD main=>print EXPORTING value = var.
The atribute value is printed
" Atribute value 3 "
For more refer Wiki ->Abap developments->abap objects-->beginer examples
Regards,
Shiva K -
Hi All,
If I have a main method in Java which returns int
public static int main(String args[])
then at the time of compiling the program we don�t get any compilation error, but at run time why a java.lang.NoSuchMethodError occurs?
My another question is also similar with the above one.
Let say I have 2 class, one is TestClass1.java and TestClass2.java
// TestClass1
class TestClass1
public static void main(String[] args)
TestClass2 testClass2 = new TestClass2();
testClass2.testMethod();
// TestClass2
class TestClass2
public void testMethod()
System.out.println("I am in testMethod of TestClass2");
//return 1;
We are calling testMethod() of TestClass2 from TestClass1. After compiling these 2 program if I execute the TestClass1 program then it runs perfectly. Now if I change the return type of testMethos() and compile only TestClass2 not the TestClass1 and run TestClass1 then an exception is thrown from main that is also java.lang.NoSuchMethodError. Is this related with the previous problem any more?
Regards,
GourabWe are calling testMethod() of TestClass2 from
TestClass1. After compiling these 2 program if I
execute the TestClass1 program then it runs
perfectly. Now if I change the return type of
testMethos() and compile only TestClass2 not the
TestClass1 and run TestClass1 then an exception is
thrown from main that is also
java.lang.NoSuchMethodError. Is this related with the
previous problem any more? Yes. You're replacing the signature of an existing method with one that doesn't exist. So it crashes...
And it's not an exception, it's a full error. -
Please help regarding method/function sign up validation with mysql jdbc.
HI guys,
I am have been fixing this problem for days, hope that someone could help me find the bug on my code.
I have 3 files:
1.WithAuth.java - for database jdbc mysql connection
2.WithAuthMet.java - method that will read any variables that will be passed to it. this method is waiting for two variables, a and b. a for userName and b for userPassword.
3.WithAuthTest.java - the testing class, this is where i declare my sample control data to test the database connection and query.
here's the actual codes:
WithAuth.java
package com.Auth;
public class WithAuth {
static String userName = "root";
static String userPassword = "";
static String databaseUrl = "jdbc:mysql://localhost:3306/javatowebservice";
static String userQuery = "select * from userlogin";
}WithAuthMet.java
- this is where the error is and where I messed up.
package com.Auth;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
public class WithAuthMet extends WithAuth {
public void connect(String a, String b)throws Exception{
//try {
Class.forName ("com.mysql.jdbc.Driver").newInstance ();
Connection conn = DriverManager.getConnection (databaseUrl, userName, userPassword);
Statement stat = conn.createStatement();
String query = userQuery;
ResultSet result = stat.executeQuery(query);
System.out.println("Result(s): ");
while (result.next ()){
int i = result.getInt("userId");
String name=result.getString("userName");
String password=result.getString("userPassword");
//System.out.println("test data:"+a);
if(a.equals(name.equals("userName"))&& b.equals(password.equals("userPassword"))){
System.out.println("User is Valid");
else{
System.out.println("You are not a Valid User");
System.out.println("test data:"+name);
System.out.println("test data:"+password);
System.out.println("test data:"+a);
System.out.println("test data:"+b);
//conn.close();
// }catch(Exception e){
//System.out.println("Exception is ;"+e);
//System.out.println("Exception is ;");
// if(a.equals(name.("userName"))
// && password.equals(password.equals("userPassword"))){
// System.out.println("User is Valid");
// else{
// System.out.println("You are not a Valid User");
} WithAuthTest.java
package com.Auth;
public class WithAuthTest extends WithAuthMet{
public static void main(String[] args) throws Exception{
WithAuthMet CTD = new WithAuthMet();
String a = "dan";
String b = "password";
//CTD.connect(String name,String password);
CTD.connect(a, b);
//return connect;
}please help.yakultyakultyakult wrote:
WithAuthMet.java
- this is where the error is and where I messed up.
package com.Auth;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
public class WithAuthMet extends WithAuth {
public void connect(String a, String b)throws Exception{
//try {
Class.forName ("com.mysql.jdbc.Driver").newInstance ();
Connection conn = DriverManager.getConnection (databaseUrl, userName, userPassword);
Statement stat = conn.createStatement();
String query = userQuery;
ResultSet result = stat.executeQuery(query);
System.out.println("Result(s): ");
while (result.next ()){
int i = result.getInt("userId");
String name=result.getString("userName");
String password=result.getString("userPassword");
//System.out.println("test data:"+a);
if(a.equals(name.equals("userName"))&& b.equals(password.equals("userPassword"))){
System.out.println("User is Valid");
else{
System.out.println("You are not a Valid User");
System.out.println("test data:"+name);
System.out.println("test data:"+password);
System.out.println("test data:"+a);
System.out.println("test data:"+b);
//conn.close();
// }catch(Exception e){
//System.out.println("Exception is ;"+e);
//System.out.println("Exception is ;");
// if(a.equals(name.("userName"))
// && password.equals(password.equals("userPassword"))){
// System.out.println("User is Valid");
// else{
// System.out.println("You are not a Valid User");
This is one line that is wrong
if(a.equals(name.equals("userName"))&& b.equals(password.equals("userPassword"))){You have 'a' and 'b which are Strings
and you are comparing them [using equals()] with the boolean return from another set of equals() invocations.
String equals boolean will always be false (well, maybe not if the String is "TRUE" or "FALSE" - and you would need some more boilerplate to make that work). -
Regarding methods in webdynpro
Hi,
I am new to webdynpro.I am familiar with creating view,attributes etc.
Can any one give an idea on wat these wd_context->get_child_node( name = `DATA` ).
elem_data = node_data->get_element( ).
OR
node_ui = wd_context->get_child_node( name = `UI` ).
elem_ui = node_ui->get_element( ). etc do.
What does these mean or can any one provide documentation on wat these do.hi ,
Go through this link.
node_ui = wd_context->get_child_node( name = `UI` ). is creating the reference to the root node.
elem_ui = node_ui->get_element( ). etc do. creating the reference to the node which is next to the rootnode.
Web Dynpro ABAP Demonstration Videos
/people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken]
http://help.sap.com/saphelp_erp2005/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/frameset.htm -
Setting optional parameter stepToStoreResultsIn of Thread.WaitForEnd() method
This question is related to an earlier posting of mine regarding launching a thread from a c++ code module (http://forums.ni.com/ni/board/message?board.id=330&message.id=15383&query.id=775150#M15383). I am launching a new thread from a code module (c++ DLL), and I need wait for it to finish.
There are 2 ways I envision doing this:
1. wait for the new thread to finish before returning from my code module by calling Thread.WaitforEnd()
2. return a reference to the new thread to the calling sequence and make the calling sequence wait for the thread to complete before terminating using a wait step at the end of the sequence.
My questions are regarding method 1, where I would call Thread.WaitforEnd(). I want to set the parameter stepToStoreResultsIn to set the result of the step in the calling sequence to the result of the sequence executed in the new thread:
a. Do I understand the purpose of the stepToStoreResultsIn parameter correctly?
b. The stepToStoreResultsIn parameter must be a variant, so how do I pass in the step context as a variant? is it the same as a IDispatch pointer?a. Yes
b. Yes -
Org.xml.sax.SAXException
Hi all,
I am trying to invoke a method from my BPEL console of my webservice.I am passing inputHeader variables(For passing WS-Addressing) related information.On invoking my web service,the following error is thrown
<remoteFault>
<part name="code" >
<code>Server.userException</code>
</part>
<part name="summary" >
<summary>when invoking endpointAddress 'http://10.100.64.64:8080/wsrf/services/examples/core/factory/MathService', org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</summary>
</part>
<part name="detail" >
<detail>AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:144) at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:238) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:386) at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285) at org.globus.wsrf.container.ServiceThread.doPost(ServiceThread.java:677) at org.globus.wsrf.container.ServiceThread.process(ServiceThread.java:398) at org.globus.wsrf.container.ServiceThread.run(ServiceThread.java:302) {http://xml.apache.org/axis/}hostname:revati.nakshatra.da-iict.org </detail>
</part>
</remoteFault>
My BPEL file is follows
<!--
// Oracle JDeveloper BPEL Designer
// Created: Fri Apr 21 21:15:55 GMT+05:30 2006
// Author: Administrator
// Purpose: Asynchronous BPEL Process
-->
<process name="MathService" targetNamespace="http://xmlns.oracle.com/MathService" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ns1="http://www.globus.org/namespaces/examples/core/FactoryService" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns3="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:ns2="http://www.globus.org/namespaces/examples/core/MathService_instance" xmlns:client="http://xmlns.oracle.com/MathService" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"><!-- ================================================================= --><!-- PARTNERLINKS --><!-- List of services participating in this BPEL process --><!-- ================================================================= -->
<partnerLinks><!--
The 'client' role represents the requester of this service. It is
used for callback. The location and correlation information associated
with the client role are automatically set using WS-Addressing.
-->
<partnerLink name="client" partnerLinkType="client:MathService" myRole="MathServiceProvider" partnerRole="MathServiceRequester"/>
<partnerLink name="factoryServicePL" partnerRole="FactoryPortType_Role" partnerLinkType="ns1:FactoryPortType_PL"/>
<partnerLink name="mathServicePL" partnerRole="MathPortType_Role" partnerLinkType="ns2:MathPortType_PL"/>
</partnerLinks><!-- ================================================================= --><!-- VARIABLES --><!-- List of messages and XML documents used within this BPEL process --><!-- ================================================================= -->
<variables><!-- Reference to the message passed as input during initiation -->
<variable name="inputVariable" messageType="client:MathServiceRequestMessage"/><!-- Reference to the message that will be sent back to the
requester during callback
-->
<variable name="outputVariable" messageType="client:MathServiceResponseMessage"/>
<variable name="invokeFactoryService_createResource_InputVariable" messageType="ns1:CreateResourceRequest"/>
<variable name="invokeFactoryService_createResource_OutputVariable" messageType="ns1:CreateResourceResponse"/>
<variable name="invokeMathService_add_InputVariable" messageType="ns2:AddInputMessage"/>
<variable name="invokeMathService_add_OutputVariable" messageType="ns2:AddOutputMessage"/>
<variable name="headerRequest" messageType="ns2:Header"/>
</variables><!-- ================================================================= --><!-- ORCHESTRATION LOGIC --><!-- Set of activities coordinating the flow of messages across the --><!-- services integrated within this business process --><!-- ================================================================= -->
<sequence name="main"><!-- Receive input from requestor.
Note: This maps to operation defined in MathService.wsdl
-->
<receive name="receiveInput" partnerLink="client" portType="client:MathService" operation="initiate" variable="inputVariable" createInstance="yes"/><!-- Asynchronous callback to the requester.
Note: the callback location and correlation id is transparently handled
using WS-addressing.
-->
<invoke name="invokeFactoryService" partnerLink="factoryServicePL" portType="ns1:FactoryPortType" operation="createResource" inputVariable="invokeFactoryService_createResource_InputVariable" outputVariable="invokeFactoryService_createResource_OutputVariable"/>
<assign name="Assign_1">
<copy>
<from variable="inputVariable" part="payload" query="/client:MathServiceProcessRequest"/>
<to variable="invokeMathService_add_InputVariable" part="parameters" query="/ns2:add"/>
</copy>
<copy>
<from expression="string('http://10.100.64.64:8080/wsrf/services/examples/core/factory/MathService')"/>
<to variable="headerRequest" part="To" query="/ns3:To"/>
</copy>
<copy>
<from expression="string('uuid:1')"/>
<to variable="headerRequest" part="MessageID" query="/ns3:MessageID"/>
</copy>
<copy>
<from expression="string('http://www.globus.org/namespaces/examples/core/MathService_instance/MathPortType/addRequest')"/>
<to variable="headerRequest" part="Action" query="/ns3:Action"/>
</copy>
<copy>
<from>
<From xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
</Address>
</From>
</from>
<to variable="headerRequest" part="From" query="/ns3:From"/>
</copy>
<copy>
<from expression="bpws:getVariableData('invokeFactoryService_createResource_OutputVariable','response','/ns1:createResourceResponse/ns3:EndpointReference/ns3:ReferenceProperties/ns2:MathResourceKey')"/>
<to variable="headerRequest" part="MathResourceKey" query="/ns2:MathResourceKey"/>
</copy>
</assign>
<invoke name="invokeMathService" partnerLink="mathServicePL" portType="ns2:MathPortType" operation="add" inputVariable="invokeMathService_add_InputVariable" outputVariable="invokeMathService_add_OutputVariable" bpelx:inputHeaderVariable="headerRequest"/>
<invoke name="callbackClient" partnerLink="client" portType="client:MathServiceCallback" operation="onResult" inputVariable="outputVariable"/>
</sequence>
</process>
For my process.I have to use 3 different WSDL: files which contain information about binding,sevice,methods.These WSDL files refer each other for getting information
The WSDL containing binding related information is as follows
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="MathService" targetNamespace="http://www.globus.org/namespaces/examples/core/MathService_instance/bindings" xmlns:tns="http://www.globus.org/namespaces/examples/core/MathService_instance" xmlns:porttype="http://www.globus.org/namespaces/examples/core/MathService_instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:import namespace="http://www.globus.org/namespaces/examples/core/MathService_instance" location="Math_flattened.wsdl"/>
<wsdl:binding name="MathPortTypeSOAPBinding" type="porttype:MathPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="add">
<soap:operation soapAction="http://www.globus.org/namespaces/examples/core/MathService_instance/MathPortType/addRequest"/>
<wsdl:input>
<soap:header use="literal" message="tns:Header" part="MessageID"/>
<soap:header use="literal" message="tns:Header" part="To"/>
<soap:header use="literal" message="tns:Header" part="Action"/>
<soap:header use="literal" message="tns:Header" part="From"/>
<soap:header use="literal" message="tns:Header" part="MathResourceKey"/>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="subtract">
<soap:operation soapAction="http://www.globus.org/namespaces/examples/core/MathService_instance/MathPortType/subtractRequest"/>
<wsdl:input>
<soap:header use="literal" message="tns:Header" part="MessageID"/>
<soap:header use="literal" message="tns:Header" part="To"/>
<soap:header use="literal" message="tns:Header" part="Action"/>
<soap:header use="literal" message="tns:Header" part="From"/>
<soap:header use="literal" message="tns:Header" part="MathResourceKey"/>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getValueRP">
<soap:operation soapAction="http://www.globus.org/namespaces/examples/core/MathService_instance/MathPortType/getValueRPRequest"/>
<wsdl:input>
<soap:header use="literal" message="tns:Header" part="MessageID"/>
<soap:header use="literal" message="tns:Header" part="To"/>
<soap:header use="literal" message="tns:Header" part="Action"/>
<soap:header use="literal" message="tns:Header" part="From"/>
<soap:header use="literal" message="tns:Header" part="MathResourceKey"/>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetResourceProperty">
<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties/GetResourceProperty"/>
<wsdl:input>
<soap:header use="literal" message="tns:Header" part="MessageID"/>
<soap:header use="literal" message="tns:Header" part="To"/>
<soap:header use="literal" message="tns:Header" part="Action"/>
<soap:header use="literal" message="tns:Header" part="From"/>
<soap:header use="literal" message="tns:Header" part="MathResourceKey"/>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="InvalidResourcePropertyQNameFault">
<soap:fault name="InvalidResourcePropertyQNameFault" use="literal"/>
</wsdl:fault>
<wsdl:fault name="ResourceUnknownFault">
<soap:fault name="ResourceUnknownFault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
</wsdl:definitions>
WSDL containing service related information
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="MathService" targetNamespace="http://www.globus.org/namespaces/examples/core/MathService_instance/service" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:binding="http://www.globus.org/namespaces/examples/core/MathService_instance/bindings" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:import namespace="http://www.globus.org/namespaces/examples/core/MathService_instance/bindings" location="Math_bindings.wsdl"/>
<wsdl:service name="MathService">
<wsdl:port name="MathPortTypePort" binding="binding:MathPortTypeSOAPBinding">
<soap:address location="http://10.100.64.64:8080/wsrf/services/examples/core/factory/MathService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
WSDL containing information regarding methods is as follows
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="MathService" targetNamespace="http://www.globus.org/namespaces/examples/core/MathService_instance" xmlns:wsrp="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd" xmlns:tns="http://www.globus.org/namespaces/examples/core/MathService_instance" xmlns:wsrpw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl" xmlns:wsdlpp="http://www.globus.org/namespaces/2004/10/WSDLPreprocessor" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<wsdl:import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl" location="../../wsrf/properties/WS-ResourceProperties.wsdl"/>
<wsdl:types>
<xsd:schema targetNamespace="http://www.globus.org/namespaces/examples/core/MathService_instance" xmlns:tns="http://www.globus.org/namespaces/examples/core/MathService_instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://schemas.xmlsoap.org/ws/2004/03/addressing" schemaLocation="../../ws/addressing/WS-Addressing.xsd"/>
<!-- REQUESTS AND RESPONSES -->
<xsd:element name="MathResourceKey" type="xsd:string"/>
<xsd:element name="add" type="xsd:int"/>
<xsd:element name="addResponse" type="xsd:int"/>
<xsd:element name="subtract" type="xsd:int"/>
<xsd:element name="subtractResponse" type="xsd:int"/>
<xsd:element name="getValueRP">
<xsd:complexType/>
</xsd:element>
<xsd:element name="getValueRPResponse" type="xsd:int"/>
<!-- RESOURCE PROPERTIES -->
<xsd:element name="Value" type="xsd:int"/>
<xsd:element name="LastOp" type="xsd:string"/>
<xsd:element name="MathResourceProperties">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" ref="tns:Value"/>
<xsd:element maxOccurs="1" minOccurs="1" ref="tns:LastOp"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="SubtractOutputMessage">
<wsdl:part name="parameters" element="tns:subtractResponse"/>
</wsdl:message>
<wsdl:message name="GetValueRPInputMessage">
<wsdl:part name="parameters" element="tns:getValueRP"/>
</wsdl:message>
<wsdl:message name="SubtractInputMessage">
<wsdl:part name="parameters" element="tns:subtract"/>
</wsdl:message>
<wsdl:message name="AddInputMessage">
<wsdl:part name="parameters" element="tns:add"/>
</wsdl:message>
<wsdl:message name="AddOutputMessage">
<wsdl:part name="parameters" element="tns:addResponse"/>
</wsdl:message>
<wsdl:message name="GetValueRPOutputMessage">
<wsdl:part name="parameters" element="tns:getValueRPResponse"/>
</wsdl:message>
<wsdl:message name="Header">
<wsdl:part name="MessageID" element="wsa:MessageID"/>
<wsdl:part name="To" element="wsa:To"/>
<wsdl:part name="Action" element="wsa:Action"/>
<wsdl:part name="From" element="wsa:From"/>
<wsdl:part name="MathResourceKey" element="tns:MathResourceKey"/>
</wsdl:message>
<wsdl:portType name="MathPortType" wsrp:ResourceProperties="tns:MathResourceProperties">
<wsdl:operation name="add">
<wsdl:input message="tns:AddInputMessage"/>
<wsdl:output message="tns:AddOutputMessage"/>
</wsdl:operation>
<wsdl:operation name="subtract">
<wsdl:input message="tns:SubtractInputMessage"/>
<wsdl:output message="tns:SubtractOutputMessage"/>
</wsdl:operation>
<wsdl:operation name="getValueRP">
<wsdl:input message="tns:GetValueRPInputMessage"/>
<wsdl:output message="tns:GetValueRPOutputMessage"/>
</wsdl:operation>
<wsdl:operation name="GetResourceProperty">
<wsdl:input name="GetResourcePropertyRequest" message="wsrpw:GetResourcePropertyRequest" wsa:Action="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties/GetResourceProperty"/>
<wsdl:output name="GetResourcePropertyResponse" message="wsrpw:GetResourcePropertyResponse" wsa:Action="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties/GetResourcePropertyResponse"/>
<wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrpw:InvalidResourcePropertyQNameFault"/>
<wsdl:fault name="ResourceUnknownFault" message="wsrpw:ResourceUnknownFault"/>
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>
Partner links are auto generated,hence information related to that is not given in this
Can some one please throw some light on the cause of this error,and how can I rectify it.
Please help me out...
Thanks
Regards
Prateek Jain
B.Tech(ICT)
DA-IICT
Gandhinagar(Gujarat)
India
Detailed log is as follows
<conversationId>bpel://localhost/default/MathService~v2006_04_22__46596/1401-BpInv0-BpSeq0.3-2</conversationId>
<properties>{}</properties>
</partnerLink>
<2006-04-22 13:05:22,296> <DEBUG> <default.collaxa.cube.ws> <WSIFInvocationHandler::doShortCut> Parner Property optShortCut
<2006-04-22 13:05:23,515> <DEBUG> <default.collaxa.cube.ws> SOAP-HTTP-BASIC: null
<2006-04-22 13:05:23,656> <DEBUG> <default.collaxa.cube.ws> SOAP-HTTP-BASIC: null
<2006-04-22 13:05:24,640> <DEBUG> <default.collaxa.cube.ws> <WSInvocationManager::invoke> operation: add, partnerLink: <partnerLink name="mathServicePL" partnerLinkType="{http://www.globus.org/namespaces/examples/core/MathService_instance}MathPortType_PL">
<myRole name="null">
<ServiceName>null</ServiceName>
<PortType>null</PortType>
<Address>null</Address>
</myRole>
<partnerRole name="MathPortType_Role">
<ServiceName>null</ServiceName>
<PortType>{http://www.globus.org/namespaces/examples/core/MathService_instance}MathPortType</PortType>
<Address>null</Address>
</partnerRole>
<conversationId>bpel://localhost/default/MathService~v2006_04_22__46596/1401-BpInv1-BpSeq0.3-4</conversationId>
<properties>{}</properties>
</partnerLink>
<2006-04-22 13:05:24,718> <DEBUG> <default.collaxa.cube.ws> <WSDLManager::getWSDL> registered wsdl at D:\OraBPELPM_1\integration\orabpel\domains\default\tmp\.bpel_MathService_v2006_04_22__46596.jar\Math_flattenedRef.wsdl
<2006-04-22 13:05:24,734> <DEBUG> <default.collaxa.cube.ws> <WSDLManager::getWSDL> got wsdl at: D:\OraBPELPM_1\integration\orabpel\domains\default\tmp\.bpel_MathService_v2006_04_22__46596.jar\Math_flattenedRef.wsdl
<2006-04-22 13:05:24,734> <DEBUG> <default.collaxa.cube.ws> <WSInvocationManager::invoke> def is file:/D:/OraBPELPM_1/integration/orabpel/domains/default/tmp/.bpel_MathService_v2006_04_22__46596.jar/Math_flattenedRef.wsdl
<2006-04-22 13:05:24,750> <DEBUG> <default.collaxa.cube.ws> <WSIFInvocationHandler::invoke> opName=add, parnterLink=<partnerLink name="mathServicePL" partnerLinkType="{http://www.globus.org/namespaces/examples/core/MathService_instance}MathPortType_PL">
<myRole name="null">
<ServiceName>null</ServiceName>
<PortType>null</PortType>
<Address>null</Address>
</myRole>
<partnerRole name="MathPortType_Role">
<ServiceName>{http://www.globus.org/namespaces/examples/core/MathService_instance/service}MathService</ServiceName>
<PortType>{http://www.globus.org/namespaces/examples/core/MathService_instance}MathPortType</PortType>
<Address>null</Address>
</partnerRole>
<conversationId>bpel://localhost/default/MathService~v2006_04_22__46596/1401-BpInv1-BpSeq0.3-4</conversationId>
<properties>{}</properties>
</partnerLink>
<2006-04-22 13:05:24,765> <DEBUG> <default.collaxa.cube.ws> <WSIFInvocationHandler::doShortCut> Parner Property optShortCut
<2006-04-22 13:05:24,765> <DEBUG> <default.collaxa.cube.ws> SOAP-HTTP-BASIC: null
<2006-04-22 13:05:24,781> <DEBUG> <default.collaxa.cube.ws> SOAP-HTTP-BASIC: null
<2006-04-22 13:05:25,156> <DEBUG> <default.collaxa.cube.ws> <WSIFInvocationHandler::invoke> invoke failed
org.collaxa.thirdparty.apache.wsif.WSIFException: exception during AXIS invoke: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.; nested exception is:
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.populateFaultMessage(WSIFOperation_ApacheAxis.java:3422)
at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.invokeAXISMessaging(WSIFOperation_ApacheAxis.java:2120)
at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.invokeRequestResponseOperation(WSIFOperation_ApacheAxis.java:1611)
at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.executeRequestResponseOperation(WSIFOperation_ApacheAxis.java:1083)
at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:452)
at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:327)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:189)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:601)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:317)
at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:188)
at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3408)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1836)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:166)
at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:252)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5438)
at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1217)
at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:511)
at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:335)
at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.java:1796)
at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
at org.collaxa.thirdparty.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
at org.collaxa.thirdparty.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at org.collaxa.thirdparty.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1083)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.collaxa.thirdparty.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:226)
at org.collaxa.thirdparty.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
at org.collaxa.thirdparty.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.collaxa.thirdparty.apache.axis.client.Call.invokeEngine(Call.java:2754)
at org.collaxa.thirdparty.apache.axis.client.Call.invoke(Call.java:2715)
at org.collaxa.thirdparty.apache.axis.client.Call.invoke(Call.java:1737)
at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.invokeAXISMessaging(WSIFOperation_ApacheAxis.java:2113)
... 27 more
<2006-04-22 13:05:25,406> <DEBUG> <default.collaxa.cube.ws> <WSIFInvocationHandler::invoke> Fault happened
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:144)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:238)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:386)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)
at org.globus.wsrf.container.ServiceThread.doPost(ServiceThread.java:677)
at org.globus.wsrf.container.ServiceThread.process(ServiceThread.java:398)
at org.globus.wsrf.container.ServiceThread.run(ServiceThread.java:302)
{http://xml.apache.org/axis/}hostname:revati.nakshatra.da-iict.org
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
at org.collaxa.thirdparty.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
at org.collaxa.thirdparty.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at org.collaxa.thirdparty.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1083)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.collaxa.thirdparty.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:226)
at org.collaxa.thirdparty.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
at org.collaxa.thirdparty.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.collaxa.thirdparty.apache.axis.client.Call.invokeEngine(Call.java:2754)
at org.collaxa.thirdparty.apache.axis.client.Call.invoke(Call.java:2715)
at org.collaxa.thirdparty.apache.axis.client.Call.invoke(Call.java:1737)
at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.invokeAXISMessaging(WSIFOperation_ApacheAxis.java:2113)
at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.invokeRequestResponseOperation(WSIFOperation_ApacheAxis.java:1611)
at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.executeRequestResponseOperation(WSIFOperation_ApacheAxis.java:1083)
at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:452)
at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:327)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:189)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:601)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:317)
at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:188)
at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3408)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1836)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:166)
at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:252)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5438)
at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1217)
at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:511)
at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:335)
at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.java:1796)
at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)you are unable to deserialize the data from the client what you have at the moment. There ius some datatype which you are unable to process / maybe it was added recently and you do not have the latest client to process that.
The solution would be do some changes at e changes at you client side / regenerate client which will understand the new datatype else do changes to server side to make the data type simpler / revert.
Hope this helps -
HALLOW
i have this metod and when i set just CARRID its work o.k. but when i wont to set
also CONNID i have eroor i new with this topic (oo)
regards
METHOD wddoinit .
DATA:
node_flightinfo TYPE REF TO if_wd_context_node,
elem_flightinfo TYPE REF TO if_wd_context_element,
stru_flightinfo TYPE if_componentcontroller=>element_flightinfo .
navigate from <CONTEXT> to <FLIGHTINFO> via lead selection
node_flightinfo = wd_context->get_child_node( name = if_componentcontroller=>wdctx_flightinfo ).
get element via lead selection
elem_flightinfo = node_flightinfo->get_element( ).
get all declared attributes
elem_flightinfo->set_static_attribute(
EXPORTING
name = 'CARRID'
value = 'AA'
<b> name = 'CONNID'
value = '1231').</b>
ENDMETOD.Hi Shnya,
when u are using the method set static attribute for setting thur context element u jhave to pass a structure to the method set static attribute like
stru_flightinfo-carrid ='AA'.
stru_flightinfo-connid = '17'.
elem_flightinfo->set_static_attributes(
exporting
static_attributes = stru_flightinfo ).
Regards
Sarath
Reward Points if it helps you -
Urgent Help with a my Cheap Greek Hotel!
Thanks for your help with the pseudocode. I have got many errors with this program in the funtions. The code is below. Is there someone who can help me get my head around them?
import Date;
import Money;
public class Hotel {
private Room[] rooms = new Room[12];
public Hotel() {
for(int i = 0; i<rooms.length; i++){
rooms[i] = new Room(i+1,20);
public static void main (String[]args)
// public void bookIn(String guest, Date today)
public void bookIn(String guest, Date today, int roomNumber)
if (roomNumber < 1 || roomNumber > rooms.length){
throw new Exception("Room numbers must be within 1-" + rooms.length);
if (rooms[roomNumber-1].getRoomHolder() !=null){
throw new Exception("Room " + roomNumber + " not available.");
rooms[roomNumber-1].setRoomHolder(guest);
rooms[roomNumber-1].setBookedIn(today);
// fn to put a guest in ata a specified date
public void bookOut (Date checkedIn, Date checkedOut)
//In the date class you can probably check the Calendar class to find
//out the syntax for subtracting dates
int nightsStayed = checkedOut - checkedIn;
//Now I'd have an array of Guest
//objects, where the room number = the position in the
//array. When a guest checks in, you can set whatever
//info. you need (check in date, guest name, etc.) and
//set it back to null when a guest checks out.
new Room[12][roomNumber] = null;
//calculate the fee
double price = getFee(nightsStayed);
System.out.println("You owe: "+price);
// public double bookOut(Date currentdate)
}//end method
public double bookOut (Date currentdate)
// fn to empty the room and may be calculate & return the value of the bill
public double getFee(int nightsStayed)
double fee = (nightlyFee*nightsStayed);
return fee;
//end method
//end class
}The errors in this program are listed below`
T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:31: cannot resolve symbol
symbol : method setRoomHolder (java.lang.String)
location: class Room
rooms[RoomNumber-1].setRoomHolder(guest);
^
T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:32: cannot resolve symbol
symbol : method setBookedIn (Date)
location: class Room
rooms[RoomNumber-1].setBookedIn(today);
^
T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:40: operator - cannot be applied to Date,Date
int nightsStayed = checkedOut - checkedIn;
^
T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:46: cannot resolve symbol
symbol : variable RoomNumber
location: class Hotel
new Room[12][RoomNumber] = null;
^
T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:46: unexpected type
required: variable
found : value
new Room[12][RoomNumber] = null;
^
T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:59: cannot resolve symbol
symbol : variable nightlyFee
location: class Hotel
double fee = (nightlyFee*nightsStayed);
^
T:\Year 1\Programming Workshop\Assignment2\Assignment2\Room.java:36: cannot return a value from method whose result type is void
return bookedIn;
^
7 errors
*** Compiler reported errorsIs there anyone who can transfer my pseudocode into language specific java? I really need some help. Thanks.Thanks for your Help regarding methods. You managed to help me correct two errors. Which means i know have six. Thanks ever so much. The method setRoom Holder has been recognised aswell as the method setBookedIn.
What did you mean by "I cannot use minus operators on dates?" Is there any other way that I can code this function so that it is acceptable?
int nightsStayed = bookedOut - bookedIn;
Can you help me code these last four functions please? Then my program will have no errors. I have to get rid of six.
// public void bookIn(String guest, Date today)
public void bookIn(String guest, Date today, int RoomNumber)
if (RoomNumber < 1 || RoomNumber > rooms.length){
throw new Exception("Room numbers must be within 1-" + rooms.length);
if (rooms[RoomNumber-1].getRoomHolder() !=null){
throw new Exception("Room " + RoomNumber + " not available.");
rooms[RoomNumber-1].setRoomHolder(guest);
rooms[RoomNumber-1].setBookedIn(today);
// fn to put a guest in ata a specified date
public void bookOut (Date bookedIn, Date bookedOut)
//In the date class you can probably check the Calendar class to find
//out the syntax for subtracting dates
int nightsStayed = bookedOut - bookedIn;
//Now I'd have an array of Guest
//objects, where the room number = the position in the
//array. When a guest checks in, you can set whatever
//info. you need (check in date, guest name, etc.) and
//set it back to null when a guest checks out.
new Room[12][RoomNumber] = null;
//calculate the fee
double price = getFee(nightsStayed);
DerbyIO.getString("You owe: "+price);
// public double bookOut(Date currentdate)
}//end method
public double bookOut (Date currentdate)
// fn to empty the room and may be calculate & return the value of the bill
public double getFee(int nightsStayed)
double fee = (nightlyFee*nightsStayed);
return fee;
//end method
//end class
} -
DNG native camera lossless compression on import
Hi. I have XP with LR2.5 and Ps CS4 and ACR 5.5. My camera (Leica M8) produces DNG files as its native format.
I am confused regarding methods to apply lossless compression to these DNG files. I have used this successfully previously but currently am unable to reproduce this function with LR2.
I have lossless compression for DNG set in preferences. I am importing the files from the card and applying a change to the file, for example WB, then selecting update metadata and preview as a workaround. However file sizes do not appear to change.
Since I have opened DNGs in another converter as well as in ACR too I am confused on where the lossless compression has been applied previously.
I have successfully applied this compression with ACR in the past but am trying to learn the LR workflow.
I am also unsure if I can have the lossless compression applied during import.
Any pointers as to what I am now missing would be greatly appreciated.I don't think that in the workflow you describe there is any possibility for the data to become compressed by Lightroom. Updating metdata in a dng file does not touch the RAW data, so it is normal that the filesize does not change.
I am also unsure if I can have the lossless compression applied during import.
Any pointers as to what I am now missing would be greatly appreciated.
You can set the import pane up to "copy photos as dng". I believe this recompresses the dng but I have never owned a camera that uses dng as its native format so I am not sure about that. Otherwise, you can after import "Convert photo to DNG" from the edit menu. This should also reconvert files that are already dng. -
Non_elimination of dividends for some of the affiliate/associate companies
Dear Experts,
I am hoping some of you could help me with my issue on legal consolidation. I have a scenario in which dividends are eliminated from subsidiaries and affiliates. However, there are some dividends which should not be eliminated.
To illustrate, consolidation is executed for Group1. Entities A, B, C, D, and E are consolidated under Group 1 with Entity_A as the parent company. We have set up a business rule (automatic adjustments) that eliminates all dividends from subsidiaries and affiliates. However, some dividends should not be eliminated. Entity_B, for example, recorded dividend with Intco_C. However, this dividend should not be eliminated during consolidation because these are dividends from marketable securities not really from Investments account. In addition, percentage of ownership of Entity_B on Entity_C is not maintained in the Ownership application.
Given the above scenario, how do i create a filter to exclude Entity_B's dividend on Intco_C from the business rule which eliminates the dividends? I've tried using the "other dimensions filter" field (where i used the Entity_property of the Group_dimension = Entity AND I_POWN<0) but i couldn't get the expected results.
Would really appreciate your help.
Best regards,
GraceHi Alvin,
Thanks for responding to my request. I really appreciate your inputs.
For Method 1, this is a good option. I actually brought this up with my client and they are not too keen on using a different account/flow for dividends which should not be eliminated. However, i will take this up again and hopefully they will change their mind given that i have a BPC expert who is making this suggestion.
As regards Method 2, I will test how this one will work. Just a clarification. If i run the legal consolidation package for Group 1 (for example), will the system take into consideration the ownership from other Groups (eg. Group 3, which is not a subgroup of Group 1)? Please use the following scenario
Legal Entity C
- owned by Group 1 using method 30
- owned by Group 3 using method 86
If i set up the rule not to eliminate on method 86, will it apply assuming i am running the data package on Group 1?
Thanks and best regards,
grace -
Qualifications and proficiency data upload
Hi people,
can you please help me with one matter. I need to upload data from excel to SAP regarding qualifications for jobs and qualifiactions for persons.
I have read on the internet many solutions but I still don't have the answer for these questions:
1. What is the best way to upload qualifications with proficiency on objects C (jobs) and P (Persons)
2. How should the excel look like, which columns
Thank you for your answers.
Best regards,
RomanoAs our friend use PP01 Tcode.
Regarding method to upload. If you are familier with LSMW you can create it.
If not ask you your ABAPer to create BDC program.which is very easy to use.
Regarding Excel template
Place mandatory columns as field of excel or as per your business requriement.
eg
StartDate ` End Date Object abbr Object name etic.
Warm Regards -
Mail from Web Template : body text
Hello,
i created a button in my web template so that users can send a mail to confirm they have checked this months data. Nothing to fancy about it (not getting dynamicaly the variable values just some fixed text).
This is the code i used:
<FORM action="mailto:[email protected]
?subject=I have checked and approve the data for this month
&body=Best regards"
method=post encType=text/plain>
<INPUT type=submit value="I have checked and approve the data for this month">
</FORM>
This works fine.
Now my question : i want to have multiple lines in my body and i can't get thjis working (logic since i don't know much of HTML ). Anybody any suggestions?
Thanks in advance for your help!Hi Tom,
One small change whatever you are writing in
Value="....."
This Text will come on Button.
So as explained earlier if you want more text on button you can do that.
If you want more text in body than I think simply you can use
<FORM action="mailto:[email protected] ?subject=I have checked and approve the data for this month &body=Best regards \n Tom"
i.e. use "\n".
Hope this helps.
Regards,
Ashish -
My iPhone5 is not backing up at night even though it is plugged into a power source, connected to wi-fi and the screen is locked.
Hi, tweggert.
You may find these articles helpful in troubleshooting your iPhone backup issue that you are experiencing.
iCloud: Troubleshooting creating backups
http://support.apple.com/kb/ts3992
iOS: Troubleshooting backup issues in iTunes
http://support.apple.com/kb/ts2529
If the issue persist after processing these troubleshooting steps are processed, information regarding method of backup, error message received, iOS installed and operating system installed on your computer would be helpful. Also, keep in mind that certain Wi-Fi settings can result in backup failure. Make sure your access point has the most current settings optimized for performance.
iOS and OS X: Recommended settings for Wi-Fi routers and access points
http://support.apple.com/kb/ht4199
Cheers,
Jason H.
Maybe you are looking for
-
How to use a loop for a object
Hi, All I have a procedure that needs a collection to pass in. The pass_in collection has multiple records with multiple fields, so I guess I need a loop for each record. How to assign each record of multiple fields to each corresponding local variab
-
Using the URL to filter a list
All, I am using the URL to filter a list, for example, FilterField1=Writer&FilterValue1=Chris%20Tobey. In this method, we need to provide the FilterField which is the column name. Can we do the filter for all column? For example, I would like to sear
-
Zone cluster support in 3.3
as of today which agent are support by ZC? so far in release note of 3.2u3 apache mysql oracle RAC GDS any other? e.g. ha-oracle etc thx
-
How do I send "blind" email?
If I want to send email to a list of people (from a group list) - how can I send it out so that each receiver does not have a list of everyone else that it was sent to? I thought that if I used BCC that would happen, but it doesn't - the entire list
-
i purchased photoshop cs5 and I want to re install it because I have a new computer but I do not have the disk only the serial number?