Local Dictionary Simple Data Types - RFC Model
Hi,
can somebody help out with this error message:
com.sap.tc.webdynpro.services.exceptions.WDTypeNotFoundException: type com.global.wdschulung3.types.String could not be loaded: com.sap.dictionary.runtime.DdException:
at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:242)
at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getDataType(DataTypeBroker.java:205)
is it something to do with the JCO Connection?
I have checked in the WebDynpro Content Admin - and I don't get a green or red Status Symbol - in fact it's just grey - and buttons for "create JCO Connection" ars disabled
thanx for help,
matthias
Hi Bhavik,
thanks for the links - now i configured the sld supplier in visual admin tool and it looks good. Connection test is successful.
Now I was also able to create the JCO Connection in webdynpro content administrator for wd_model_dest and wd_metadata_dest - looks good, and I get a green icon.
Unfortunately testing the jco-connection still fails... I get this error message:
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=x1t GROUP=SPACE R3NAME=X1T MSSERV=sapmsX1T PCS=1 <b>ERROR service '?' unknown TIME </b> Mon Sep 12 14:24:20 2005 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -3 COUNTER 1
Somebody experienced this before?
thanx once more,
matthias
Message was edited by: matthias kasig
Similar Messages
-
Problem with central build of Simple Date Type with Enumeration
Dear gurus,
I hope I'm posting this in the correct forum. Please advise if I'm in the wrong forum.
I have a Web Dynpro DC in which I've created a simple data type with enumeration. It is used for binding to a radio box. The data type is called DownloadType; the enumeration contains two vales: current and archive. To allow me to access the enumeration values, I turn on the "Generate a class representation of the enumeration" in the data type builder.
I then reference the enumeration values with code like:
if (downloadType.equals (DownloadType._CURRENT))
yada yada yada
This works fine when building locally and deploying directly. But when the DC is built by CBS (or doing a "Development Component->Build..." in NW Dev Studio), the build fails, stating that the DownloadType._CURRENT symbol cannot be resolved.
For example:
C:yadayadayada.java:227: cannot resolve symbol
symbol : variable _CURRENT
location: class yadayadayada.DownloadType
equals(DownloadType._CURRENT)) {
Apparently the central builder is not smart enough to handle the "Generate a class representation" flag.
Is this a known problem? Are there any workarounds?
Thanks in advance for any help you can provide.
-Kelly
P.S. Environment: 2004sHi Kelly,
works for me using SP10, what SP are you on?
There's a line in the DC log that says:
[ddgen] [Info] Generating datatypes/com/x/x/x/MyEnum.java
and the java compiler includes the matching path for compilation:
[echo] source paths:
[echo] ...\_comp\src\packages
[echo] ..\t\ABF37B5AFB3B2E8A76FFD29E7862EA48\gen_ddic\datatypes
Regards,
Marc -
Dynamic Drop Down creation using simple data types
Hi all,
I have got a requirement in which i have to create an iView which is going to have 6 drop down values and with in that 1 value is going to have sub values which needs to get displayed in the similar drop down fashion.
I have created a simple data type having enumeration of the 6 values and linked the same to iView with drop down by key which is working successfully. And for the purpose of sub values i have created a similar simple data type with two values and linked the same with a value attribute.
Well, can any one tell me the further process to proceed ?
Thanks in advance ...
VipinVipin,
There are quite some steps to achieve what you need. Since you have both your DropDownByKey elements defined and bound to context elements, it may make sense to keep the Second DropDownByKey element invisible and make it visible only when user selects a specified key from first DropDownByKey. To achieve this, follow these steps.
1. Create an action with a parameter "key" of type string.
2. Bind this action with onSelect event of your First DropDownByKey UI Element.
3. Do mapping of parameter "key" in your wdDoModifyView with following code.
if (firstTime)
final IWDDropDownByKey dk = (IWDDropDownByKey)view.getElement("DropDownByKey1");
// Replace DropDownByKey1 with id of your DropDownByKey Element.
dk.mappingOfOnSelect().addSourceMapping("key", "key");
4. Create a context attribute of type WDVisibility say "DDVisible" and bind to "visible" property of your second DropDownByKey.
5. Set DDVisible to NONE in wdInit().
wdContext.currentContextElement().setDDVisible(WDVisibility.NONE);
6. In onSelect action write this code to make second visible
if(key.equalsIgnoreCase("Two")){
//Replace "Two" with your required value.
wdContext.currentContextElement().setDDVisible(WDVisibility.VISIBLE);
else{
wdContext.currentContextElement().setDDVisible(WDVisibility.NONE);
This should give the desired results.
Hope this helps.
Vishwas. -
Simple Data Type in CAF of SAP NetWeaver DevStudio 7.1 SP3
Hallo
Anybody knows about the use of Enumeration for simple Data Type in CAF of SAP NetWeaver DevStudio 7.1 SP3?
I've defined an attribute "status" for the Entity "Project" with the following values
0: NEW;
1: ACTIVE;
-1: INACTIVE.
As you see the data type is short.
In the program I want to use the following code:
Project myProject = new Project();
myProject.setStatus(Status.NEW)
But I found it out, it is inpossible to to use Status.NEW.
On the other side I read the article of https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/085098ea-0c01-0010-12a8-80ac838bec85. This article is again not updated with the version 7.1 SP 3.
I cannot understand about the whole changes. In the previous release we can define a DDIC type and use it as Simple Data type and in the new Release we just use the XSD-Facet to define an enumeration, but the problem is: we can not reference it in the program. I don't see any advantage. And I tried to find out how I can define the attibute using DDIC type. I didn't get it.
Thanks for any Hints!
Kind Regards!
PingHi Oliver,
Thanks for the reply!
I have login into the system, using User Id and Password.
I have tried unsinstalling everything but the result remains the same.
Previously only one service SAPCE_01 was showing up in the services explorer. But when I tried the
Instance 00:
sc create SAPRKT_00 binPath= "C:\usr\sap\RKT\SYS\exe\uc\NTI386\sapstartsrv.exe pf=C:/usr/sap/RKT/SYS/profile/CE1_SCS00_xxxxx" start= auto obj= "NT AUTHORITY\LocalService" password= abcd1234
Instance 01:
another service SAPCE1_00 was created. But when I tried to retry the instlattio, the installation again stopped at the point while starting the service and when I tried to retry it terminted with the following error.
Please guide.
sapinst.exe - Application Error
The instruction at "0x00cbf040" referenced memory at "0x0072006d". The memory could not be "read".
Click on OK to terminate the program
Click on CANCEL to debug the program
Selfextractor error
iaextract.c:888: child has signaled an exec error. Keeping directory C:/DOCUME1/I047488/LOCALS1/Temp/sapinst_exe.1448.1196681060
OK
Manish -
Issues in Simple Data Type - Float
Hi SDN,
I have created a simple data type of float and assigned to a context attribute. I have mentioned that the minimum and maximum inclusive value for the float as 0.1 and 29.9. This is assigned to a field aaa. When the page loads for the first time, there appears 0 by default and if I dont edit the field and try saving, it doesnt throw any error message. It accepts the value which was very strange to me. But if I edit the value and put as 0.0, it throws error message saying, the acceptable value for the field is between 0.1 and 29.9.
What should I do to resolve this issue? Also Can I make the field empty instead of a zero appearing the field?
Regards,
Ganesh NHello Ganesh,
Whatever the value you have provided only that values are allowed in that input field. if the value is 0 or 0.0 you can validate that attribute and throw an error message that "The Value should not be 0".
Regards
Nizamudeen SM -
Lose data types after model saving
Hi all.
I try to import model from erwin 7.3 in data modeler Version 3.0.0.665
after import i have this log:
Oracle SQL Developer Data Modeler 3.0.0.665
Oracle SQL Developer Data Modeler Import Log
Date and Time: 2011-09-20 16:31:22 MSD
Design Name: DPO
Import Finished
Errors: 0
Warnings: 0
i receive similar model as erwin-model. but afeter saving and reopening almost all datatype set as UNKNOWN. what`s wrong?
i try change type for one column from UNKNOWN to NUMBER and again save/reopen. this change was saving.
how i can save source datatypes after import model?
screenshots:
before saving http://s016.radikal.ru/i336/1109/dc/16cf0ab0c7df.jpg
after saving http://s011.radikal.ru/i315/1109/7a/808bded51f7b.jpg
Edited by: Finch on 20.09.2011 6:15Hello,
I have no definitive idea as to why you are losing the dataypes, though I suspect it has to do with setting the Design Rules under the Tools option.
The suggestion I want to make is that you generate the DDL from Erwin and and import this and save, all data types should save, they have for me. Also Have found the DDL import to be the most reliable along with importing from Oracle Designer and Oracle database data dictionaries.
If you have logical objects you want to transfer over then I would advise export Erwin to Oracle Designer and import to SQL Data Modeler.
If you go through the threads on this forum you are no alone in finding issues with Erwin import.
Hope that helps.
Yusef -
Local Currency - Translation Date Type
Hi:
We are on ECC 6.0 with New GL.
I wanted to check if we can change the Translation Date Type for 1st local currency (10) from Translation date to document date? There are three options in this field - Posting date, document date and translation date. But when we maintain it (under additional local currencies for a company code), local currency has this grey out and comes default to translation date. Not sure where it is defined that local currency can be translated only based on translation date.
However for 2nd and 3rd currencies this field is open and allow to choose any date type.
Please advise.
Thanks,
RahulHello Rahul,
For the local currency, it is hard-coded in the system to
choose the translation date as the transalation date (type 3). If you
change this translation date when you enter a document, the system will
use this new date. However, if you don't change this, the system will
always use the posting date as translation date for the local currency.
hope thic clarifies
Ray -
Help for Structure in Local Dictionary
Hi All
I need to create a structure of structures in local dictionary of the application.
While setting the data type of the element in the structure, It just give me the option for simple data type and predefined datatype.
Is there any way in which we can create structure of structure?
Please help
Thanks in advance
Regards
Sonal ManglaI think it's no possible because the generated file .xlf have different tags inside for the structures and simple types....
I tried but without a solution.
Bye,
Vito -
How to reference complex data type when consuming web services in WAS 620?
In WAS 620, I tried to consume a web service in ABAP. I was successful when the web service returned one or more simple data type. But when the web service is changed to return a complex data type (eg. a structure with 3 elements), the call to the web service did not return anything.
Do any of you know how to reference the individual element in the structure of an output parameter in a web service? I use the add_parameter method of the CSoapDocument class to identify the output parameters.
Here is part of the WSDL file:
<?xml version="1.0" encoding="UTF-8" ?>
- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="urn:sap-com:document:sap:rfc:functions" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="urn:sap-com:document:sap:rfc:functions">
- <types>
- <xsd:schema targetNamespace="urn:sap-com:document:sap:rfc:functions">
- <xsd:element name="Z_SRM_SOAP_TEST_COMPLEX">
- <xsd:complexType>
- <xsd:all>
- <xsd:element name="INTEXT">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="50" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:all>
</xsd:complexType>
</xsd:element>
- <xsd:element name="Z_SRM_SOAP_TEST_COMPLEX.Response">
- <xsd:complexType>
- <xsd:all>
<xsd:element name="OUTTEXT" type="s0:ZSRM_TEST_STRUCT" />
</xsd:all>
</xsd:complexType>
</xsd:element>
- <xsd:complexType name="ZSRM_TEST_STRUCT">
- <xsd:sequence>
- <xsd:element name="ELEMENT1" minOccurs="0">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="50" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
- <xsd:element name="ELEMENT2" minOccurs="0">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="50" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
- <xsd:element name="ELEMENT3" minOccurs="0">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="50" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</types>Hi,
[email protected] is my id and one more thing u by looking at the wsdl file u can know what al the parameters we have to give to the webservice so try it out also.
Regards,
Sirisha. -
AppleScript Call Soap Data types
I am using AppleScript to issue SOAP requests via built-in the 'call soap' function. The server to which I am connecting uses both simple and complex data types. It's pretty straight forward issuing the basic parameters for simple data types, but if the remote method requires a complex data type, such as a double set of parameters, I can't see how to get it done.
Anyone have any experience sending SOAP requests with AppleScript that involved complex data types, which include multiple parameters, rather than just simple flat parameter lists?Hi,
not exactly sure what you mean by placeholder data types?
Surely it would be better to evaluate off a sample employee/departments or predefined database schema if you want to see what the UI / design process is like?
The design process is very smooth and elegant in JDev 11g if you use the business components from tables wizard in the model and then design pages.
Brenden -
Hi experts,
Source database having below data types , Can you please confirm is there any restrictions in GoldenGate to replicate the below data type data? is the below data types are supported or not supported , please confirm. DB version 11.2.0.2 , OS : Oracle exadata machine , OGG 11.2
TIMESTAMP(6) WITH LOCAL TIME ZONE
UROWID
UNDEFINED
NVARCHAR2
RAW
ROWIDHi
About UNDEFINED data type, do you know what kind of object does it belong to?
I had the same question but when i queried the database dictionary UNDEFINED data type columns were columns of views with "INVALID" status.
If this is your case you may prefer to ignore this data type.
About ROWID columns i have the same concern as you, by now i have experimented with an initial load with 2 databases 11.2.0.3 with identical structure (datafiles, tablespaces), using GoldenGate 11.2.1 and had no problem, the ROWID data type colums loaded correctly.
I'll continue investigating and if you find out something any feedback would be apreciated. -
Why need message type when u create data type...
why need message type when u create data type...
Hi,
A message type comprises a data type that describes the structure of a message. At the following points in SAP Exchange Infrastructure you can refer to the message to be exchanged at runtime by using the message type:
· More than one message interface can use the same message type. For example, an asynchronous outbound message interface and an asynchronous inbound message interface can reference the same message type because the request message does not need to be mapped.
· When defining a message mapping you can directly reference message types to map messages from an outbound interface to messages from a receiver interface.
For technical reasons, a data type is not sufficient to describe the instance of a message. In XML schema, data types are defined as abstract types that are not yet fixed to an element. You can only describe an instance of a message when you have specified a data type as an element type. Therefore, a message type defines the root element of a message.
A message type does not define the direction of the message exchange, in other words, whether it is a request or a response. In exceptional cases you can use the same message type for both the request and the response message.
A message type has the following characteristics:
· It comprises exactly one data type, which determines the content of the message to be transferred.
· It is identified by a name and an XML namespace. The name (together with the namespace) of a message type is located in the uppermost tag of the message to be exchanged. This is an element tag.
You have defined a message type GreetingRes that references a simple data type of type xsd:string. The XML namespace of the message type is http://sap.com/xi/myExample. The corresponding payload might look like this:
<?xml version="1.0" encoding="utf-8" ?>
<ns1:GreetingRes xmlns:ns1="http://sap.com/xi/myExample"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Hello Mrs. Miller
</ns1:GreetingRes>
You can specify how a message type is used in more detail in the description
hope this will help you.
regards
Aashish Sinha
PS : reward points if helpful -
Accessing data from an abstract data type
I've been trying to find a way to split up a comma in delimited string PL/SQL, and the following article has helped me do that:
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:8861471892664
Basically, the solution calls for creating a simple data type which looks like this:
create or replace type myTableType as table of
numberThis will hold the parsed data, which is populated by calling the str2tbl function. But the article doesn't explain how to access the data inside this table once it's been populated.
For example, I create the type myTableType and the function str2tbl, and run this query:
SQL> select str2tbl('4,2,3,4') from dual;
STR2TBL('4,2,3,4')
MYTABLETYPE(4, 2, 3, 4)The function returns a table of type myTableType, but I have no idea how access or index the data. I want to be able to access the 4, the 2, the 3, or the 4 of the result that is returned in the above example. Here's what I've tried:
SQL> select temp(1) from (select str2tbl('4,2,3,4') as temp from dual);
select temp(1) from (select str2tbl('4,2,3,4') as temp from dual)
ERROR at line 1:
ORA-00904: "TEMP": invalid identifierI get the invalid identifier error on pretty much any attempt to get to the data. This seems to be something that's easy to do but I just can't figure it out. Any help would be appreciated, thanks!Have a look at this thread and scroll all the way to the bottom
http://asktom.oracle.com/pls/ask/f?p=4950:8:11331947847331890504::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:110612348061,
Regards,
Steve Rooney -
Converting Resource(Dictionary Simple Type) to Binary Format.
Hello Experts,
In my Web Dynpro Application,
I have a View Context attribute called "FileResource" of type Resource(Dictionary Simple Type) which is bound to the FileUpload UIElement of View.
When im running the application I am able to Upload the file in my view context attribute successfully,
Now I need to pass it to the RFC as an Import Parameter which is declared as type "RAW-Uninterpreted Sequence of bytes",
kindly guide me how to convert the value of the view context attribute "FileResource" of type Resource(Dictionary Simple Type) into BINARY format, so that i can pass it to the RFC as an import parameter.
Thank you please reply.........I used this code from a tutorial. And it work. Place Some of this code on any button.
IPrivateFileUploadVIEW.IContextElement element = wdContext.currentContextElement();
//if a file in the FileUpload field exists
if (element.getResource() != null)
IWDResource resource = element.getResource();
try{
InputStream archivo = resource.read(false);
byte[] b = new byte[5000];
archivo.read(b);
//ResourceBundle.getBundle();
wdContext.currentZ_Lmmfu_Cambio_Estado_InputElement().setI_Archivo(b);
wdThis.wdGetAdminCMPController().executeZ_Lmmfu_Cambio_Estado_Input();
//Imprimir nombre del archivo
String name=resource.getResourceName();
wdComponentAPI.getMessageManager().reportException(name,false);
File f = new File(resource.toString());
catch(IOException error)
wdComponentAPI.getMessageManager().reportException(error.toString(),false);
//report success message
// wdComponentAPI.getMessageManager().reportMessage(IMessageAdministracionCMP aa ,new Object[] { resource.getResourceName()}, false);
else
// if no file in the FileUpload field exists
// report error message
wdComponentAPI.getMessageManager().reportException("Search for a file",false);
// clear the 'FileResource' context value attribute
element.setResource(null);
Is there a better way to do this.
I need to get the creation or modification date from the original file. How can I do this? -
How to use two RFC models in one Data Source for a Interactive Form UI Elem
Hi
I want to use two RFC models (two Function Modules from a SAP Backend system) in one context node of a View Controller in order to pass it as the data source to a Interactive Form UI element. Can I use the data binding mechanism directly or have I to copy the data into a Value Node within the view controller.
Thanks for helping
René Morel
SAP (Schweiz) AGRene,
You can create a local context node in component controller and copy the data from both the RFC's to this node, then bind it to the view controller. Then you can make this view context node as the datasource of the interactive form.
Regards,
Anand
Maybe you are looking for
-
I'm having issues when loading something in a relative path through a script, on my computer I have no issues, but on 2 other devices at work, it's not working. Even at home on a PC and mac I haven't run into problems, anyone have insight on this? He
-
To find the Internal Order for a given opportunity
Hi, Can anyone help me in finding out the internal order number for a list of opportunities? I need to know the tables in which this is getting updated. TIA, sinthu
-
Air HTML/JS WinXP - Font specified in CSS doesn't work in App
I have an app that runs on several machines... on one of them, however, the font has started failing to load in my app. The App loads a web page and displays it. The font is installed locally on the machine. I can use it in IE and Wordpad, but the Ap
-
PC I'm using is failing and I need to transfer to another system.
Would like to know if I am within my rights to do so?
-
Hi, after I installed new firmware 20.0.016, the Maps is not working. I installed Maps 2.0 but still not working cannot connect satellites. Any comment how to resolve it?