User Defined Mapping Problem
Dear SDNs,
I write a user defined mapping program under a namespace, and I want to use it in other namespaces by drag and drop instead of importing, is that possible?
Hi,
<i>>>>Prakash, I'm a little confused, I think mapping program like java and XSLT can only imported in user defined function in Mapping, isn't it?</i>
No, you will be importing it under Imported Archive. You will find User Defined Function inside the Graphical Mapping.
Refer this link for UDF
http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm
<i>>>>What do you mean by the "F4"? Can you explain it to me ?</i>
F4 is Value request. In the Interface mapping when you are assigning the mapping program you will click on the "?" button which is nothing but F4. You can also press F4 which is equal to pressing "?"
Thanks,
Prakash
Similar Messages
-
Problems with User Defines Mapping Objects - Dynamic Configuration
We have a mapping object that takes data passed in from R3 and does an HTTP Post to another system using a URL and file name that is passed from the header record. We had a consultant set this up for us last year and in creating the new one we just pretty much copied what he did. The problem is, it is not working for us. We have the url and file name, we pass it to the user defined code that is supposed to pass it to the url and file name in the configuration. The java code looks like this:
public String getPcurlOut(String pcurl,Container container){
String ourSourceFileName = "START";
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
if (conf != null) {
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
conf.put(key, pcurl + ".xml");
ourSourceFileName = conf.get(key);
} else {
ourSourceFileName = "conf == null";
Basically we want to pass a url and file name to our communication channel based on values that come from our file in R3
It is almost exactly like the one that works. Can anyone help with this?
Thanks
Mike
Message was edited by:
Michael CurtisHi Michael
<i>Basically we want to pass a url and file name to our communication channel based on values that come <b>from our file in R3</b></i>
--> This means you have file as a sender adapter.
Check adapter specific message properties in sender adapter.
Please refer this blog , it is really worth.
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Also
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory")
Try writing this as
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","<b>FileName</b>")
Regards -
Java User-defined packages problem!
Hi everyone,
I am new to java programming.I am trying to do a small program to see how the user-defined pckages work.I wrote 2 small programs one is Balance.java and TestBalance.java.
The code for Balance.java is as follows..
package MyPack;
public class Balance{
String name;
double bal;
public Balance(String n, double b){
name = n;
bal = b;
public void show(){
if(bal < 0)
System.out.print("--->");
System.out.println(name + ": $" + bal);
}The code for TestBalance.java is as follows..
import MyPack.*;
class TestBalance{
public static void main(String args[]){
Balance test = new Balance("Leela",99.88);
test.show();
}These r both in the same directory....I am able to compile Balance.java...but when I try to compile TestBalance.java I am getting the following errors
TestBalance.java:1: package MyPack does not exist
import MyPack.Balance;
^
TestBalance.java:5: cannot resolve symbol
symbol : class Balance
location: class TestBalance
Balance test = new Balance("Leela",99.88);
^
TestBalance.java:5: cannot resolve symbol
symbol : class Balance
location: class TestBalance
Balance test = new Balance("Leela",99.88);
^
3 errorsI am using j2se1.4 version ....my path is set to bin folder..
Could someone plz tell me what is the mistake...it would be very helpful for me if someone could plz tell me what the problem is...
Thanx in advance.99% going to work
i have noticed some of the few thing
trying to help
u told that ur both the classes r in same directory right
ok
now ur first class has this as first line
package mypack;//till here its ok only "mypack" should be small case
now put this same line also in the other class as firat line
and remove that import statement since both r in same package so no
need to import it ok
here's the code
package mypack;class TestBalance{ public static void main(String args[]){ Balance test = new Balance("Leela",99.88); test.show(); } }
now compile it this way
create a folder call mypack and put this both the classes in that folder
say its c:\mypack\ur classes
now in dos prompt
type this
set classpath=%classpath%;C:\mypack \
now u compile ur first class and then second
Surely this going to work if not tell me the errors u r getting -
LMS 3.2 Common Services User Defined Groups problem
CiscoWorks LMS 3.2 is installed on Windows 2008 64-bit server.
All devices are added into appropriate User defined group in Groups/Common Services.
All groups are fine except that Members of group named Switch-HO-access have been copied also to group named Router-Branch by system for unknown reasons.
At few files we have noticed errors :
" FATAL com.cisco.nm.xms.ogs.server.OGSServer main Exception while OGS Server start up: CTMRegistry::startRegistryServer() : Can't find/start registry server " and
" com.cisco.nm.xms.ogs.util.OGSException: CTMRegistry::startRegistryServer() : Can't find/start registry server ".
What is the reason for copying this devices and is there some other underlying problem?it seems that the errors you see correlate with regular stopping/starting of the LMS processes (dmgtd) so this would be a normal behaviour.
Can you provide a screenshot of the problem you describe and also the rule for the group Switch-HO-access and Router-Branch -
2.1 EA1 User Defined Report problem
Hi, I copiied Search Code item to User Defined Report and edited SQL (added union):
select
owner "Owner",
name "PL/SQL Object Name",
type "Type",
line "Line",
text "Text",
owner sdev_link_owner,
name sdev_link_name,
type sdev_link_type,
line sdev_link_line
from (select owner,
name,
type,
line,
text
from sys.all_source
where
(:OBJECT_NAME is null or
instr(upper(name),upper(:OBJECT_NAME)) > 0)
and (:TEXT_STRING is null or
instr(upper(text),upper(:TEXT_STRING)) > 0)
and name not like 'BIN$%'
--order by owner, name, type, line
union
select owner,
name,
type,
line,
text
from dba_source
where
(:OBJECT_NAME is null or
instr(upper(name),upper(:OBJECT_NAME)) > 0)
and (:TEXT_STRING is null or
instr(upper(text),upper(:TEXT_STRING)) > 0)
and name not like 'BIN$%')
order by owner, name, type, line
But I have problem - in result window, popup menu Go To <i.e.> MY_PACKAGE... doesn't work - no errors, simply nothing action. Original item works fine.
Where is the problem?
PetrYour union code seems fine but there is already a go to bug report logged.
Already logged:
Bug 9196402 - GO TO TYPE NAME NOT WORK IN PLSQL REPORT
-Turloch -
User defined activity problem in process flow
Hi ,
any one can help me out
I have added a user defined activity in process flow , and given command values as \\windows\system32\cmd.exe
and parameter list : ${input.value}
and in script : kpi.bat
where i written
cd \kpi_sap
for /f "tokens=1-5 delims=/ " %%d in ("%date%") do copy "c:\kpi_sap\kpi_sap.csv" %%e-%%f-%%g.dat
but its not working ...
can any one give me direction to get success in this activity
best regards,
mahiHi Mahi,
I see that your post is a few days old and you might have resolved this issue, but if you haven't you might want to change the command value to c:\windows\system32\cmd.exe instead. Its been a while since I worked with commands, but I remember that I had a lot of problems when I defined paths with '\\'. What I found out was that OWB jobs was run under the windows system account and the system account don't have access to networkshares (even if its really not on the network).
I can't say whether the script in the kpi.bat is wrong, but as long as you can run it manually using cmd.exe you should be ok.
If this doesn't help it might be helpful with some more specific error messages.
regards Ragnar -
Hi gurus,
Good day!
I just wanna ask regarding on how to terminate or to exit the user-defined screen that i call out? i use SELECTION-SCREEN BEGIN OF SCREEN 100 and call it up using CALL SELECTION-SCREEN 100 when i choose the option completed transaction that i declare in my screen but when i press the CANCEL button in my screen 100 that i call out, it retrieve the data still and display the output which is supposedly it will back on the first or main screen. And what is the format of the standard output when i print it? i mean is it .DOC or PDF file? Can anyone help me plz....
Thanks,
nipsHi,
Use AT USER COMMAND event and in the CASE ENDCASE of sy-ucomm WHEN 'CANCEL' then use LEAVE TO SCREEN 0. -
Tabbed navigation,Theme change and User define templates problem
Hi,
· I have created an application in which I have defined many page,page regions,buttons,forms templates myself.
· The end user has now requested for a tabbed look and feel for the same and that too in a different theme (color red)
· However, inclusion of tabs to the application plus a change in the theme color (to red) in this case causes all user defined templates to behave erratically.
· I guess these templates will have to be redefined in this new theme. I tried to copy some of these today but got weird results.
Without all these templates in place the look and feel of the application will not be as usual.
· Also,I had posted a thread on the APEX forums concerning tabs and have received information that each page in the application has to be manually added to the tab set in a situation such as this.This will really increase the time taken to achieve the desired application navigation.
I would appreciate some good advice as how to get this appliction navigation running smoothly in a tabbed format in the least possible time.
Thanks and Regards,
Priya JetleyHello,
I would have a look at the Lists in Shared Components which allow you to create Tabs as well.
They are a bit more flexible.
Regards,
Dimitri
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/
http://www.apexblogs.info/ -
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 -
User defined exception problem in session bean.
Hi,
I creaed one user defined exception and using this exception
in the session bean when I am trying use this bean at the client
side and cathing this exception it is not catching it properly
while server side it is throwing this exception.
I can elaborate it through client code -
try {
isModified = sessionBean1.modifyNe(Object product);
catch (ValidationException nve) {
throw nve;
catch (RemoteException remoteException) {
remoteException.printStackTrace();
server is throwing ValidationException but it is cathing in
the RemoteException.
stack trace is given below
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: com.ss.sms.common.exception.ValidationException: name should be unique
at com.sisl.snms.server.esc.common.SmsEscBean.checkDuplicateNeName(SnmsEscBean.java:56)
at com.sisl.snms.server.esc.escatm.SessionBean1.modifyNe(EscAtmBean.java:219)
at com.pramati.ejb.runtime.EscAtmBean_LocalObject_Impl_785398532._pramati_impl_modifyNe(EscAtmBean_LocalObject_Impl_785398532.java:285)
at com.pramati.ejb.runtime.EscAtmBean_LocalObject_Impl_785398532$3.run(EscAtmBean_LocalObject_Impl_785398532.java:238)
at com.pramati.security.util.JAASSecurityHelper.doAs(JAASSecurityHelper.java:158)
at com.pramati.security.util.JAASSecurityHelper.doAs(JAASSecurityHelper.java:266)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)hi vikassahu
try it : remove remoteException catching. and try it with normal Exception, and make sure that Exception should be in remote interface.
and make sure that you are throwing your user Defined Excepion
ok i think this will help u
ok -
User Defined Form problem...
Hi,
I have the Item Master Data form opened with the User Defined Form opened.
Now the Form has the focus and I'm trying to get an User Defined Item control on the User Defined Form
but it says Form not found and I did try to select it or to use the GetForm with the "-" + TypeEx of the current form but nothing seems to work.
Any idea how I can switch from the form to the User Defined Form on which I need to get the control ?
I havfe to mention that I'm trying it on a second opened Item Master Data form so the FormTypeCount = 2 Could it be a BUG ?
Edited by: Marc Roussel on May 28, 2009 4:20 PMif (mo.ItemUID.IndexOf("U_") != -1)
oCurrentForm.PaneLevel = 1; // I tought this could help since the UDF form has a pane level of 1 but it does nothing.
oCurrentForm = _SBOApplication.Forms.GetForm("-" + FormType.ToString(), FormTypeCount);
// I get a Form not found here............ HUH WHY ??????? It's there and visible. I DON'T UNDERSTAND...
// and FormType is really "150" which is the actual form opened...... -
User-defined object problem,why can't I use?
as follows:
UObject.java
package test1;
public class UObject
private String num;
public UObject()
public void setNum(String num)
this.num=num;
public String getNum()
return num;
Test.java
package test1;
public class Test
public static void main(String args[])
UObject U=new UObject();
U.setNum("Squall");
System.out.println(U.getNum());
UObject[] U=new UObject[5];
for(int i=0;i<U.length;i++)
U.setNum(String.valueOf(i));
for(int i=0;i<U.length;i++)
System.out.println(U[i].getNum());
error:
java.lang.NullPointerException
why can't I use?please tell me why?thanks.
ps:in Test.java's comments can run./**/.Please use code formatting tags in future! http://forum.java.sun.com/features.jsp#Formatting
It would be easy to find the problem yourself if you printed out a stack trace e.g.
public static void main(String args[])
try
UObject U=new UObject();
U.setNum("Squall");
System.out.println(U.getNum());
UObject[] U=new UObject[5];
for(int i=0;i<U.length;i++)
U.setNum(String.valueOf(i));
for(int i=0;i<U.length;i++)
System.out.println(U.getNum());
catch( Exception e )
e.printStackTrace()
}Tho code doesnt look lke it compiles to me! -
I am Adding data of matrix using UDO
data is successfully entered.
but there is one problem that one extra blank row of matrix is also added into database.
I can check by code that last row of matrix is blank or not but i am unable to prevent to get added that blank row of matrix in database.
Is there any method to prevent that last blank row to get added.
Edited by: Rakeshbos on Apr 18, 2010 12:33 PMI get answer by myself
by deleting blank row -
if (a.equals= = 311&&b.equals == SL02&&c.equals==SL01))
return "SL04";
elseif(a.equals= = 311&&b.equals == SL01&&c.equals==SL11))
return "SL01";
Problem in this UDF
Regards
SkanchamHi,
Your UDF code syntax is totally wrong. you are using the equals method and using the == also. It should not be like that.
Please modify the code as shown.
if (a.equals("311")&&b.equals("SL02")&&c.equals("SL01"))
return "SL04";
elseif(a.equals("311")&&b.equals("SL01")&&c.equals("SL11"))
return "SL01";
Thanks. -
Hi.
I have strange problem with Grid 10.2.0.5. When I create UDM based on sql quary. When I create UDM paste username and password and click "test" button UDM returns value but when I schedule UDM to run every 5 min UDM did not return any value. Any ideas ???
Best Regards
JarekHi Jarek,
Were you careful to press the Ok button after your test thus saving the UDM definition? Or did you perhaps attempt to edit the UDM after the original creation and not give it the credentials (again)?
I've done this a few times myself :)
Maybe you are looking for
-
Problem with queue and context change JAVA udf
Hi all, MY scenorio is from source i get multiple instances and each instance i need to pass to different fields od target in one source instance i may get multiple values which i have to create multple nodes under one target instance. my source xml
-
How can i convert an int to a String. There is no direct String constructor that take only an integer. Thanks
-
A window to another site?
hi, im trying to make a window in an applet, display content of another site, a bit like if i was using <iFrame> in html. now the thing is i have no idea what-so-ever how to do this, i tried with JEditorPane, but that cant read Java, javascript, ect.
-
Problem related to transfer of stock to blocked stock?
Hi All, i want to transfer the stock from unrestricted i.e my stock is already lying in unrestricted and now I want to move it to Blocked Stock . please Tell Me How Can I do it?
-
HT1373 How can I find Pages documents I've created on my iPad on my Mac?
How can I find Pages documents that I've created on my iPad on my Mac? I have iCloud set up. Thanks.