Does LDS 1.1 Support use-defined functions?
Does LDS 1.1 Support use-defined functions? I'm working with the W3C use case
REL Q12 which fails with the function, but succeeds if I "inline" the function.
LD 1.1 does not support User Defined Functions. This feature was omitted for performance
reasons.
- Mike
"Mark Maxey" <[email protected]> wrote:
>
Does LDS 1.1 Support use-defined functions? I'm working with the W3C
use case
REL Q12 which fails with the function, but succeeds if I "inline" the
function.
Similar Messages
-
File scenario error in Used defined function
Hi Everyone,
I was doing file to file scenario, i want to get the same source file name in target also.
I created the structure as FileName, Company, Address. I did direct mapping for Company and Address
but for field FileName, i created a userdefined function as i want the same file name.
I mentioned the following code in Used defined function
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
When i test the mapping in IR, with sample data, i am getting this error.
RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns0:Target_File_MT/FileName. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._Source_File_to_Target_File_MM_ method DynamicFile$[, com.sap.aii.mappingtool.tf3.rt.Context@1763e46]
Could anyone please help me with the issue.
I have done only IR part, I didnot configured ID.
Regards,
Varun.HI,
Check Adapter Specific Message attributes.This blog will help you
The specified item was not found.
You can also go for variable substitution :-
When you specify the target directory and file name schema, you have option of setting variables and defining them in a table. The variables are replaced by elements from the XML structure at runtime.
http://help.sap.com/saphelp_nw2004s/helpdata/en/8e/464442c1a1c253e10000000a1550b0/content.htm
links on the dynamic variable substitution
The specified item was not found.
The specified item was not found.
Dynamic File Name Part 1
Dynamic File Name using XI 3.0 SP12 Part - I
Dynamic File Name Part 2
Dynamic file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II
Thanks -
Does EJBQL in JDeveloper support max aggregate function ?
Does EJBQL in JDeveloper support max aggregate function ?
I can't get it to work using select max(o.time) from MyObject o; It always returns the MyObject to me.
Anybody knows how to do this ?
Thanks.No one knows how exactly this works in JDeveloper 11g? As I see it, it's most likely a bug. For one, JDeveloper already supports plenty of databases and enforces some limitations on the useability of these databases where necessary (for instance, JDBC Positioning instead of Oracle's way of binding for the bind variables in a query). However, this enforcement does not happen with the WHERE clause of the view criteria in MySQL when you choose an operator that concatenates strings together in the WHERE clause, such as "contains". You'd expect it's smart enough to use different syntax for concatenating the strings, depending on the database (e.g., CONCAT for MySQL, || for Oracle). Second, lack of this enforcement should not break functionality, and here it does (searching with wildcards in LOV is just not possible declaratively with MySQL), which resembles a bug in the software.
For now, I've completely rewritten the LOV in Java, so it's not declarative anymore, but programmatic. It works, resembles searching with "contains" and it stays that way, despite of the higher difficulty in maintenance, until this issue can be solved declaratively, by any means: via a patch release or via a workaround. I hope someone can provide me (and quite possibly others facing this issue) with insight upon this.
Thanks in advance. -
Does the iPhone 6 support use of bluetooth enabled mouse?
Does the iPhone 6 support use of bluetooth enabled mouse?
I'd really like to think so as well, who's using a tempered glass for the screen an a similar film/glass for the backplate that can shed some realistic light on this query? help is much appreciated.
people tend to get a bit hysterical when they see my uncased 4s, and yet after 2.5 it is still in better shape than everyone else's.....so if that's gonna be the case with the 6 plus I'll be satisfied.
I understand the 6 (and 6 plus) have a cureved screen and that most glass protectors are a bit dorky and dont go all the way to the end. would ones that go all the way be more fragile and by that endanger the screen or is full coverage better? is there a suggested tempered glass protector for the 6 plus? -
MAPPING for xi USED-DEFINED FUNCTION(UDF)
Hi, all !
Does anybody know how to use package com.sap.engine.lib.security.http.* in the UDF ?
when i import it in the UDF ,the system reports " package com.sap.engine.lib.security.http does not exist"
can anybody help me ?
Thanks a lot in advance!
Edited by: ALAN WANG on Sep 16, 2008 10:44 AMHI,
Check Adapter Specific Message attributes.This blog will help you
The specified item was not found.
You can also go for variable substitution :-
When you specify the target directory and file name schema, you have option of setting variables and defining them in a table. The variables are replaced by elements from the XML structure at runtime.
http://help.sap.com/saphelp_nw2004s/helpdata/en/8e/464442c1a1c253e10000000a1550b0/content.htm
links on the dynamic variable substitution
The specified item was not found.
The specified item was not found.
Dynamic File Name Part 1
Dynamic File Name using XI 3.0 SP12 Part - I
Dynamic File Name Part 2
Dynamic file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II
Thanks -
Does the nb7.1 support using the javafx Components panel to design the ui?
does anyone knows whether the nb7.1 support using the javafx Components panel to design the ui? thanks
Hello guys, what kind of support would you like to see?
Code snippets in the palette?
Please answer here: What would you like to have in NetBeans 7.2 for JavaFX? -
Timesten user defined function problem
create or replace
FUNCTION FACTORIAL
n IN NUMBER
RETURN NUMBER IS
val NUMBER :=1;
tem number :=n;
BEGIN
while tem>1 LOOP
val:=val*tem;
tem:=tem-1;
END LOOP;
RETURN val;
END FACTORIAL;
I create a function like this.
And I test it in sql developer(ctrl-F10), and get the right result.
When I use the function in SQL: select factorial(10) from dual; (I use log as function owner, exactly same connection as I test the function with ctrl-F10)
cames the error message:
[TimesTen][TimesTen 11.2.2.5.0 ODBC Driver][TimesTen]TT2818: Unknown function FACTORIAL. If this is a PLSQL function note that such functions are not yet supported in SQL statements. -- file "saCanon.c", lineno 24079, procedure "inferExprTNFunc()"
Does that means timesten doesn't support user defined function in SQL statements?Yes, unfortunately currently TimesTen does not support calling PL/SQL functions from within a SQL statement.
Chris -
Do the Mac minis support using AirPlay and all of its functions? I thought I saw a comment yesterday that suggested the Mac mini (particularly the late 2012 models) does not support AirPlay. Thank you.
Hello,
AirPlay Mirroring
Requires a second-generation Apple TV or later. Supports the following Mac models:
iMac (Mid 2011 or newer)
Mac mini (Mid 2011 or newer)
MacBook Air (Mid 2011 or newer)
MacBook Pro (Early 2011 or newer)
http://support.apple.com/kb/HT5444 -
How to use a user defined function in XI
Hi Experts,
I would like learn how to use a user defined function in Xi during mapping . Is there any step by step on that.
Besides during when me make communcaton channels I see the following tabs...Paramters ..Identifiers ...Module...
The module that is given here ...where and how it is used.Hi,
You can write UDFs in java in Graphical mapping to enhance your XI Graphical mapping functionality
The steps for doing it would be:
1. Click on Create New function Button found on Bottom left corner on your XI Mapping window.
2. Write your java code.
3. Run the Mapping Test as usual.
>>The module that is given here ...where and how it is used.
The adapters in the Adapter Framework convert XI messages to the protocols of connected external systems and the other way around. When doing so, some
functionality might need to be added specific to a situation which is possible with the use of custom modules.
Typical example would be validation of file content when using a File Adapter or modification of the message payload to a common content structure which is not supported by any of the standard SAP modules.
An Adapter module is developed as an Enterprise Java Bean and is called locally by the Adapter.
An example on modules :
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805">How to develop a module for reading file name in a sender file adapter XI 3.0</a>
Cheers,
Chandra -
Using User Defined Function is SQL
Hi
I did the following test to see how expensive it is to use user defined functions in SQL queries, and found that it is really expensive.
Calling SQRT in SQL costs less than calling a dummy function that just returns
the parameter value; this has to do with context switchings, but how can we have
a decent performance compared to Oracle provided functions?
Any comments are welcome, specially regarding the performance of UDF in sql
and for solutions.
create or replace function f(i in number) return number is
begin
return i;
end;
declare
l_start number;
l_elapsed number;
n number;
begin
select to_char(sysdate, 'sssssss')
into l_start
from dual;
for i in 1 .. 20 loop
select max(rownum)
into n
from t_tdz12_a0090;
end loop;
select to_char(sysdate, 'sssssss') - l_start
into l_elapsed
from dual;
dbms_output.put_line('first: '||l_elapsed);
select to_char(sysdate, 'sssssss')
into l_start
from dual;
for i in 1 .. 20 loop
select max(sqrt(rownum))
into n
from t_tdz12_a0090;
end loop;
select to_char(sysdate, 'sssssss') - l_start
into l_elapsed
from dual;
dbms_output.put_line('second: '||l_elapsed);
select to_char(sysdate, 'sssssss')
into l_start
from dual;
for i in 1 .. 20 loop
select max(f(rownum))
into n
from t_tdz12_a0090;
end loop;
select to_char(sysdate, 'sssssss') - l_start
into l_elapsed
from dual;
dbms_output.put_line('third: '||l_elapsed);
end;
Results:
first: 303
second: 1051
third: 1515
Kind regards
TaoufikI find that inline SQL is bad for performance but
good to simplify SQL. I keep thinking that it should
be possible somehow to use a function to improve
performance but have never seen that happen.inline SQL is only bad for performance if the database design (table structure, indexes etc.) is poor or the way the SQL is written is poor.
Context switching between SQL and PL/SQL for a User defined function is definitely a way to slow down performance.
Obviously built-in Oracle functions are going to be quicker than User-defined functions because they are written into the SQL and PL/SQL engines and are optimized for the internals of those engines.
There are a few things you can do to improve function
performance, shaving microseconds off execution time.
Consider using the NOCOPY hints for your parameters
to use pointers instead of copying values. NOCOPY
is a hint rather than a directive so it may or may
not work. Optimize any SQL in the called function.
Don't do anything in loops that does not have to be
done inside a loop.Well, yes, but it's even better to keep all processing in SQL where possible and only resort to PL/SQL when absolutely necessary.
The on-line documentation has suggested that using a
DETERMINISTIC function can improve performance but I
have not been able to demonstrate this and there are
notes in Metalink suggesting that this does not
happen. My experience is that DETERMINISTIC
functions always get executed. There's supposed to
be a feature in 11g that acually caches function
return values.Deterministic functions will work well if used in conjunction with a function based index. That can improve access times when querying data on the function results.
You can use DBMS_PROFILER to get run-time statistics
for each line of your function as it is executed to
help tune it.Or code it as SQL. ;) -
How to use StreamTransformationException in user-defined function?
Hi,
I'm doing a DBLookup (using Java pgm in one of my Imported Java archives) for populating one of the fields in message mapping. If the DB connection fails, I want to terminate the mapping by throwing a StreamTransformationException from within a user-defined function.
I require urgent help in this regard.
Thanks in advance.
Regards,
Sridhar Rajan NHi,
I had the same problem. I failed to find the way how to throw a StreamTransformationException in my user-defined function. But I used another exception: NullPointerException. Yes, I know, this is not an elegant solution...
Best regards,
Andrzej Filusz -
Does Report Builder 6i support Spatial Functions
Does Report Builder 6i support spatial functions? I would like to use the following query in a report:
SELECT id, rseq
FROM gps a, user_sdo_geom_metadata m
WHERE m.table_name = 'GPS'
and mdsys.sdo_lrs.is_geom_segment_defined (a.geom, m.diminfo) = 'FALSE' and a.id like '01%'
It does not recognize the spatial LRS function. This query does not return geometries but rather will only return tabular information.
Thanks
DaveHello,
Your colleague is right. Even if the SQL query is executed by the DB server , Reports needs to parse the SQL query.
The SQL parser included in Reports 6i is based on 8.0.6
You can see this version in the Reports Builder help :
Menu : Help -> About Reports Builder ...
ORACLE Server Release 8.0.6.0.0
Regards -
Does Information Designer Tools's aggregate awareness function support OLAP
Hi...
Does Information Designer Tools's aggregate awareness function support OLAP ??
ThanksTo see which ODBC function DG4ODBC is looking for and unixODBC isn't supporting it would be best to get an ODBC trace file. But as your unixODBC driver (unixODBC-2.2.11-10.el5) is outdated and these old drivers had a lot of issues when being used on 64bit operating systems (for example wrong sizeofint etc). So best would be to update the unixODBC Driver manager to release 2.3.x. More details can be found on the web site: www.unicodbc.org
- Klaus -
Hi
I checked following page and I understood that PB 12.6 supports native connection for connecting to MS SQL Server 2012.
Latest database native drivers supported by PowerBuilder 12.6
http://wiki.scn.sap.com/wiki/display/SYBPB/Latest+database+native+drivers+supported+by+PowerBuilder+12.6
But there is no info about other connecting methods (e.g. OLEDB).
Does PB 12.6 support to use them ?
And is there a info of it ?
Thanks.
Tsuyoshi YagiHi Tsuyoshi;
1) FYI: OLE-DB and ODBC are examples of "middle-ware" and are not a direct connection to any DBMS vendor!
2) The true native client connection to SS is SNC (SQLServer Native Client). That connection mechanism is supported in PB.
Note: You could also use JDBC or ADO.Net as well from PB. Personally, I always use SNC for the best performance and supported DML functionality.
HTH
Regards ... Chris -
Error in conditional map using User Defined Function
All,
In my mapping I basically have a user defined function that returns the filename of my inbound file from the adapter-specific message attributes (file adapter). I know this is coded properly because if I simply assign this function to my destination field I can see the filename in the payload XML.
However if I conditionally check that returned value using if,then,else I get an error message stating:
"During the application mapping com/sap/xi/tf/_MaterialData2ZcustProdMastMulti_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformation"
Essentially in my if I'm checking if the value returned by my user defined function is equal to the constant "SOMECONSTANT" then I'm setting my destination field to some other constant value. Otherwise it's equal to a different constant value.
Any thoughts?Claus,
Thanks for the help. I actually had figured the problem out on my own. Sorry for not updating the thread sooner. What happened was this (as I suspected it wasn't related to my user defined function). For the newbies out there (of which I'm one) the problem was I was comparing strings in the graphical mapping tool using the Boolean "EQUALS" rather than the Text "EQUALSS".
Can you give yourself points for solving
Maybe you are looking for
-
How do I install Lightroom 3 on my macbook pro that does not have a CD drive?
I bought Lightroom 3 years ago but my computer at that time did not possess the processing power. I just bought a macbook pro but it does not come with a CD drive.... how can I install it without going out an buying an external drive?
-
Have wifi iPad 2 and iPhone 4s w/AT&T gps hotspot ??
Hi everyone, This is my first question and I hope someone can help. I just recently purchased both of these, and already had a mifi (personal hotspot w/AT&T ). I was told that it was redundant/waste of $ to have the mifi when I could use my phone
-
How to install Vertias netbackup 4.5 on solaris 9
Hi all, is there anyone out there who can provide a step by step guide for a newbie to install netbackup on solaris 9....I have no idea how to do it....so far i have installed solaris 9 with no dramas, i connect the scsi cables from a Sun L20 Storedg
-
Contacts disappeared--how to get them back from iCloud?
All of my contacts disappeared from my iPhone 4S--doesn't seem to be in response to a particular thing I did, they were just gone one day. I logged on to iCloud from my computer, and they are still listed there, but I couldn't see a way to get them
-
HELP, in desperate need of ipod touch assitance
this thing has brought me nothing but frustration, and too add to it, i lost my old ipod and cant work the touch that i got as a gift for christmas. when i plug it in, nothing happens, the ipod itself just beeps twice, and then nothing.. the very fir