User define properies
Hello.
I use OWB 9.0.4.
There are possibility to redefine class definition by
OMB Plus (command OMBREDEFINE CLASS DEFINTION).
If I define new user property, can I change its value PL/SQL API ?
Thanks.
Stas.
Where can I find description of Java API ?
There are not it among documentations of OWB.
Thanks.
S.Erokhin
Similar Messages
-
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 -
Binding a Check Box with a User Defined Field
Hi everyone,
i v created a user defined field (U_CheckPro)in the system table "OITM" with two values: Y for Yes and N for No. In relation to that i v also created a check box on the form "150" and would like to know how can i bind my checkbox with my user defined field properly.
The user would be than able to enable or disable the check box for each item (article). The user setting schould be than be active and valid in sbo-business logic, each time an item is selected. (for example in case of sales order ID 133, "OINV").
Any helfpul hints? Samples would be welcome as well.
Thanks and regards
Alban> First of all you should remove the valid values
> because checkboxes does not work with valid values...
> Just give a default value.
Hi Rasmus,
thank you very much for your helpful hint. I guess my problem is solved by that - nevertheless here is my complete code sequence once again in case of possible errors.
I would appreciate any additional suggestion for improvement of the same.
Thanks and regards
Alban
>>>
Private Sub AddItem()
' Test UserSource
oForm.DataSources.UserDataSources.Add("U_CheckPro", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
oItem = oForm.Items.Item("122")
' Adding a Static Text item
oNewItem = oForm.Items.Add("StaticTxt2", SAPbouiCOM.BoFormItemTypes.it_STATIC)
oNewItem.Left = oItem.Left + 20
oNewItem.Width = 100
oNewItem.Top = oItem.Top + 12
oNewItem.Height = 25
oNewItem.FromPane = oItem.FromPane
oNewItem.ToPane = oItem.ToPane
oNewItem.LinkTo = "CheckBox1"
oStaticText = oNewItem.Specific
oStaticText.Caption = "Test_Caption"
' Adding a Check Box item
oNewItem = oForm.Items.Add("CheckBox1", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
oNewItem.Left = oItem.Left
oNewItem.Width = 20
oNewItem.Top = oItem.Top + 15
oNewItem.Height = 19
oNewItem.FromPane = oItem.FromPane
oNewItem.ToPane = oItem.ToPane
oNewItem.DisplayDesc = False
oCheckBox = oNewItem.Specific
'binding check box to source
oCheckBox.DataBind.SetBound(True, "OITM", "U_CheckPro")
End Sub
>>> -
Access result set in user define type of table
here is the situation. I have a stored procedure that dequeues messages of a AQ and passes them as an OUT parameter in a collection of a user defined type. The same type used to define the queues. The java code executes properly but seems like we don't/can't access the result set. We don't receive any erros but don't know how to access the results. I've included relevant parts of the problem.
I know this should be doable but........Can someone please tell us what we are doing wrong....thanks in advance.
-----create object type
create type evt_ot as object(
table_name varchar(40),
table_data varchar(4000));
---create table of object types.
create type msg_evt_table is table of evt_ot;
----create queue table with object type
begin
DBMS_AQADM.CREATE_QUEUE_TABLE (
Queue_table => 'etlload.aq_qtt_text',
Queue_payload_type => 'etlload.evt_ot');
end;
---create queues.
begin
DBMS_AQADM.CREATE_QUEUE (
Queue_name => 'etlload.aq_text_que',
Queue_table => 'etlload.aq_qtt_text');
end;
Rem
Rem Starting the queues and enable both enqueue and dequeue
Rem
EXECUTE DBMS_AQADM.START_QUEUE (Queue_name => 'etlload.aq_text_que');
----create procedure to dequeue an array and pass it OUT using msg_evt_table ---type collection.
create or replace procedure test_aq_q (
i_array_size in number ,
o_array_size out number ,
text1 out msg_evt_table) is
begin
DECLARE
message_properties_array dbms_aq.message_properties_array_t :=
dbms_aq.message_properties_array_t();
msgid_array dbms_aq.msgid_array_t;
dequeue_options dbms_aq.dequeue_options_t;
message etlload.msg_evt_table;
id pls_integer := 0;
retval pls_integer := 0;
total_retval pls_integer := 0;
ctr number :=0;
havedata boolean :=true;
java_exp exception;
no_messages exception;
pragma EXCEPTION_INIT (java_exp, -24197);
pragma exception_init (no_messages, -25228);
BEGIN
DBMS_OUTPUT.ENABLE (20000);
dequeue_options.wait :=0;
dequeue_options.correlation := 'event' ;
id := i_array_size;
-- Dequeue this message from AQ queue using DBMS_AQ package
begin
retval := dbms_aq.dequeue_array(
queue_name => 'etlload.aq_text_que',
dequeue_options => dequeue_options,
array_size => id,
message_properties_array => message_properties_array,
payload_array => message,
msgid_array => msgid_array);
text1 := message;
o_array_size := retval;
EXCEPTION
WHEN java_exp THEN
dbms_output.put_line('exception information:');
WHEN no_messages THEN
havedata := false;
o_array_size := 0;
end;
end;
END;
----below is the java code....
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Struct;
import oracle.jdbc.driver.OracleCallableStatement;
import oracle.jdbc.driver.OracleTypes;
public class TestOracleArray {
private final String SQL = "{call etlload.test_aq_q(?,?,?)}";//array size, var name for return value, MessageEventTable
private final String driverClass = "oracle.jdbc.driver.OracleDriver";
private final String serverName = "OurServerName";
private final String port = "1500";
private final String sid = "OurSid";
private final String userId = "OurUser";
private final String pwd = "OurPwd";
Connection conn = null;
public static void main(String[] args){
TestOracleArray toa = new TestOracleArray();
try {
toa.go();
} catch (InstantiationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
private void go() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException{
Class.forName(driverClass).newInstance();
String url = "jdbc:oracle:thin:@"+serverName+":"+port+":"+sid;
conn = DriverManager.getConnection(url,userId,pwd);
OracleCallableStatement stmt = (OracleCallableStatement)conn.prepareCall(SQL);
//set 1 input
stmt.setInt(1, 50);
//register out 1
stmt.registerOutParameter(2, OracleTypes.NUMERIC);
//register out 2
stmt.registerOutParameter(3, OracleTypes.ARRAY, "MSG_EVT_TABLE");
* This code returns a non-null ResultSet but there is no data in the ResultSet
* ResultSet rs = stmt.executeQuery();
* rs.close();
* Tried all sorts of combinations of getXXXX(1);
* All return the same error Message: Invalid column index
* So it appears that the execute statment returns no data.
stmt.execute();
Struct myObject = (Struct)stmt.getObject(1);
stmt.close();
conn.close();
}Hi,
Sorry but I'd refer you to the following sections (and code samples/snippets) in my book:
Mapping User-Defined Object Types (AD) to oracle.sql.STRUCT in section 3.3, shows how to pass user defined types as IN, OUT,IN/OUT
JMS over Streams/AQ in the Database: shows how to consume AQ
message paylod in section 4.2.4
CorporateOnine, in section 17.2, show how to exchanges user defined type objects b/w AQ and JMS
All these will hopefully help you achieve what you are trying to do.
Kuassi -
Multiple input arguments in User defined funcions
Hi Experts,
I have a file to proxy sceanrio.Have to do one to one mapping of all the corresponding fields except 3 fields. for eg
1) - <Services>
<DisplayValue>Tax>Business Tax</DisplayValue>
</Services>
Sender Receiver
===== ========
Tax Functions
under the services tag the "Tax" is one of the sender's field .I need to map this "Tag" to the receiver field called as "function".My question is: can we do wz some user defined functions or we have to use java functions.If we use Java,what way we can implement in PI 7.1 because,i guess we can not use the multiple input arguments.
2) similarly,
- <LineOfBusiness>
<DisplayValue>Consumer Markets>Retail</DisplayValue>
</LineOfBusiness>
Sender Receiver
===== ========
Retail Sector
Retail is one of the sender field.it should be mapped wz another field "Sector" at receiver side.how to pick up the retail field and map it to the receiver side.Is there any user define function for this or we have to write java code if we have to go for Java,how it will be implemented in PI 7.1
3) similarly,
- <GeographicLocation>
<DisplayValue>Americas>North America>Null>United States & Virgin Isl.>United States,US,USA,United States of America</DisplayValue>
</GeographicLocation>
Sender Receiver
===== ========
Americas Region
North America Sub region
Null Area
UnitedStates,US,USA,United States of America Territory
As u all can see,the above corresponding sender fields should be mapped to Receiver fields.It all has coem under one line in XML.How to pick it up and map 1 to 1 at the receiver side bcoz receiver wants it as a separate fields.Is there any user define function for this or we have to write java code if we have to go for Java,how it will be implemented in PI 7.1
Experts,please help me out as this is a live scenario.
Thanks in Advance
VeeruHi,
here is the partial structure.pls have a look.
<Services>
<DisplayValue>Tax>Business Tax</DisplayValue>
</Services>
- <LineOfBusiness>
<DisplayValue>Consumer Markets>Retail</DisplayValue>
</LineOfBusiness>
- <GeographicLocation>
<DisplayValue>Americas>North America>Null>United States & Virgin Isl.>United States,US,USA,United States of America</DisplayValue>
</GeographicLocation>
I have to do mapping b/w tax and some receiver field and it is a 1 to 1 mapping.how to extract teh field "tax" from that beause there is also a field name "business tax ".
same with the field name "Retail" .
and also with the field names Americas>North America>Null>United States & Virgin Isl.>United States,US,USA,United States of America
I have to extract one-one field and map to corresponding single fields at the receiver side.
Have i presented properly.
Please help me out.
Thanks
Veeru -
View Object with User Defined Type input
I am trying to use a View Object with a query that requires a user defined object as an input parameter.
I have the query working with a PreparedStatement, but would like to use a View Object.
When I use the PreparedStatement, I prepare the user defined type data like this:
// get the data into an object array
Object[] wSRecObjArr = wSRec.getObjectArray();
// set up rec descriptor
StructDescriptor WSRecDescriptor = StructDescriptor.createDescriptor("WS_REC",conn);
// populate the record struct
STRUCT wSRecStruct = new STRUCT(WSRecDescriptor,conn,wSRecObjArr);
Then I can use this in the PreparedStatement like this:
OraclePreparedStatement stat = null;
ResultSet rs = null;
stat = (OraclePreparedStatement)conn.prepareStatement("Select test_pkg.test_function(?) FROM DUAL");
stat.setSTRUCT(1, wSRecStruct);
rs = stat.executeQuery();
I would like to do the same process with a View Object instead of the PreparedStatement.
My question is "How do I create the input objects"?
I obtain the View Object from the Application Module using findViewObject(). I don't actually have a connection object to pass into the StructDescriptor.createDescriptor method.
I have tried just using Java Object Arrays (Object[]) to pass the data, but that gave an error:
oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
Any help or pointers are greatly appreciated.
Thank you.
Edited by: 942120 on May 1, 2013 8:45 AM
Edited by: 942120 on May 1, 2013 8:46 AM
Edited by: 942120 on May 1, 2013 9:05 AM
Edited by: 942120 on May 1, 2013 9:06 AMCustom domains are the way to go.
When I try to pass custom domains that represent my user defined types - it works.
However, one of the functions requires a table of a user defined type be passed in.
I tried creating a domain of the table type. It forces me to add a field during creation (in JDEV), so I tried adding a field of type Array of Element of the domain representing the user defined type.
I populate the table by setting the field I created, but the table is empty in PL/SQL (TEST_TAB.COUNT = 0).
I also tried passing the oracle.jbo.domain.Array object, but that produced an error:
java.sql.SQLException: ORA-06553: PLS-306: wrong number or types of arguments in call
I also tried passing Object[], but that produced an error:
oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
How do I properly create, and pass an domain that represents a table of a user defined type?
When I use a OraclePreparedStatement, I can pass a oracle.sql.ARRAY using stat.setARRAY.
Thank you for the help you have provided, and any future advice.
JDEV 10.1.2.3
JDBC 10.2.0.5
Edited by: 942120 on May 13, 2013 7:13 AM
Edited by: 942120 on May 13, 2013 7:16 AM -
Reg: Configuring the User-Defined Message Search
Hi Experts !
I am getting an error while configuring the user defined message search.
Followed all the step mentioned in the sap help documentation.
http://help.sap.com/saphelp_nwpi711/helpdata/en/48/c85598f63335bfe10000000a42189d/frameset.htm
The last step, where we need to enter URL for WSDL Access i am getting the following error:
Error in WSDL access: Exception occurred in communication framework:
Error in HTTP Framework:404Not Found
http://<Host>/<Port>/MessageSearch/MessageSearchImplBean
You should enter the host name and the HTTP port for the Advanced Adapter Engine
i didnt get the meaning of above sentence : Is it different from what we use in the URL to access ESR and ID.
Is there any other steps to make MessageSearch/MessageSearchImplBean available
Regards,
Srinivas
Edited by: Srinivas on Oct 1, 2010 7:48 PMHi José Omar,
thanks for the reply...
I tried manual configuration but with no luck..opened a similar forum thread
I have applied the sap note suggested ,thinking that the error is due
to any source code.
The data synchronization is happening properly , but when i use test extractor button it throws the above mentioned error.
In the system details in have given the port number as 50700(which is visible in the link when we open integration builder page) and ESR client as 001.
could you please let me know if the exact values to be filled in transport setting.i just entered the port and client , other things
as default.
Regards,
Srinivas -
How to call User defined functions in Mathscript Node ?
Hi,
I have created a user defined function and saved it to Search path of Labview as an M file. If I run my program in Math script window, the function is recognized and the program works properly. If I do the same with MathScript node , the user defined functions are not identified.
Kindly help me with this problem. Thanks in advance
Cheers
Lenord MelvixThis page may help:
http://zone.ni.com/reference/en-XX/help/373123C-01/lvtextmathmain/caveats_recommendations_ms_search_...
Kevin C. -
Problems with user-defined update-process
Hi.
I have a small problem in the right syntax in an user-defined updated process.
The process is called by a button on the page and should update a record in a table.
BEGIN
UPDATE wam_mod_allocation SET
alloc_assessment = V('P2120_ASSESSMENT'),
last_update_date = LOCALTIMESTAMP,
last_update_staff = V('APP_USER')
WHERE username = V('P2120_USERNAME')
AND module_id = V('P2120_MODULE_ID')
END;
This is the code of the process. The line with the problem is marked bold. P2120_USERNAME is a text field in the page and contains the username to be updated.
The problem is, that the comparison doesn't work. the value "smith" is available in the table and is the same as in the text field. (both in lower case).
If I replace the part V('P2120_USERNAME') with 'smith' (with single quotes), the update statement works properly.
How do I have to compare the username with the item value that it works properly?1. Stephan
2 + 3 Well. I enclosed both tags in the TRIM-Operator and it works. First, I thought, a whitespace caused the problems. To determine which value contains the whitespaces I removed the trim-tags on both sides. It works.
It is quite funny, because,if I remove both tags, it works too? Well. Yesterday it didnt.
To be on the safe side, I will include the trim-tags.
Thanks very much.
Stephan -
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 Fields are read-only for a specific user
I have a user that has lost her ability to edit user defined fields. They are all grayed-out for all UDFs, all document types. Other users have access to these fields. I've even copied the authorizations from a user not experiencing the problem, but with no positive results. Anyone have any thoughts on this?
We are on SBO 8.8 PL 16Hi Randy......
This might be the Authorisation issue......
Please check properly whether you have given Full authorisation for Form Setting to such user or not and check by enabling it through Form Setting
Regards,
Rahul -
User defined fields does not get added into database
Hello Experts
User defined fields does not get added into database , when i click add button it
shows data added sucessfully , but when i check data base no entry is made , only entry is made for
B1 fields , like DocEntry ,DocNum etc.., no entry is made for U_fields..
I have check every thing databound is also set to true
Actually first few 6 data was added properly but now its not geeting added for user fields
I have used 2 document row child table for 2 matrix and for remaining Document table
What might be the problem
reply soon
plz suggestHello sir
I have checked Default form , in that entry is made into database
but running the form in screen painter in preview mode or through coding it does not get added for user field
this id my binding code
LoadFromXML("updateopd.srf")
oForm = SBO_Application.Forms.Item("updopd")
oForm.DataBrowser.BrowseBy = "txtpatid"
'Adding combo in Obervation
oItem = oForm.Items.Item("txtpatid")
oEdit2 = oItem.Specific()
oEdit2.DataBind.SetBound(True, "@UPDATE", "U_PID")
oItem = oForm.Items.Item("txtmnane")
oEdit3 = oItem.Specific()
oEdit3.DataBind.SetBound(True, "@UPDATE", "U_FName")
oItem = oForm.Items.Item("txtlname")
oEdit3 = oItem.Specific()
oEdit3.DataBind.SetBound(True, "@UPDATE", "U_LName")
Plz suggest -
User defined query parameter in query generator
Hi All,
i am using query generator in SAP to print some records of user defined query. precisely, the details about sales employees are to be printed. now the columns which exist in the database (ie. sales employee code, name, cardcode) etc can be given as a parameter like [%0] and [%1]. but some user defined parameter such as sales commission does not show as such parameter. i want one column as
select T0.doctotal, (T0.doctotal * [%0]) / 100 as brokerage from OINV T0
--where [%0] is some commission percentage that the user will give while running this query
This query gives correct results but it gives the parameter name as 'doctotal' while showing. any idea as to how to handle it properly in SAP?
thanks in advance,
Binita
Edited by: Binita Joshi on Sep 8, 2009 3:35 PMI sometimes defined a UDT only for getting the appropriate parameter entering window. The table has no data; I used it only for its field names in this window.
(The parameter request can be placed inside a comment and the entered value is used setting an SQL variable like this:
declare @d datetime
/*select t.createdate from ordr t where t.createdate=[%0]*/
set @d=[%0]
This SQL variable can be used later in the real query.) -
User defined query parameter in QLD
Hi All,
i am using query generator in SAP to print some records of user defined query. precisely, the details about sales employees are to be printed. now the columns which exist in the database (ie. sales employee code, name, cardcode) etc can be given as a parameter like %0 and %1. but some user defined parameter such as sales commission does not show as such parameter. i want one column as
select T0.doctotal, (T0.doctotal * [%0]) / 100 as brokerage from OINV T0
--where [%0] is some commission percentage that the user will give while running this query
This query gives correct results but it gives the parameter name as 'doctotal' while showing. also, when I join 4-5 tables and union, it totally misinterprets the paramater. any idea as to how to handle it properly in SAP?
thanks in advance,
BinitaHi
I know it list many value but u can try by this way....
declare @a numeric(3)
set @a = (select top 100 docnum from oinv T1 where T1.[docnum]= [%0])
select T0.doctotal, (T0.doctotal * @a) / 100 as brokerage from OINV T0
Thanks
Kevin -
User defined accounting fields from SRM to ECC
Hi!
We are running SRM 5.0 and ECC 6.0 with classic scenario
We have defined some accounting fields in SRM into structure BBP_PDS_ACC in an
include INCL_EEW_PD_ACC_CSF. New fields are also defined in tables BBP_C_ACC_F
and in BBP_C_ACCFD. New fields are also defined in srpo accounting.
In ECC same fields are defind in include CI_COBL.
When I create manual reservation in ECC using transaction MB21, I can use new fields properly
and they are restored in table RKPF - reservation header level just like cost center.
However, when I order my shopping cart with values in new fields, the values are not transferred into backend. Standard fields like cost center transfer nicely, but non of the user defined fields do that.
We have BADi BBP_CREATE_BE_RS_NEW active with manual ACCT_MAN indicator on and
movement allowed indicator on. In BADi wehave managed to to pass value from structure
IS_SC_DOCUMENT-account to structure cs_rs1_document-is_rs_header, but still not getting values to the backend. Is there some mapping done after BADi or how its done?
thanks,Hi,
Please check the note 458951. Hope this information would be of some help.
Regards,
Kalyan
Maybe you are looking for
-
How can I reset my password on a mac mini?
I I set a password to start a Macmini and I forgot it... Yeah Im a dumb a.... ! How can I reset it? I have no access to the bloody computer
-
Latest MacBook Pro able to run Rosetta?
I plan to seek a used MacBook Pro that is able to run Rosetta on Snow Leopard. What is the latest model able to do so?
-
Vendor consignment M7001 Error
hi. While doing the GI for raising the vendor consignment liability from MIGO with 201 K mvt type, after entering the vendor, the system is throwing such message. "In table XMRES the entry 0000000000 0001 is missing" Please provide me a path to follo
-
This is the first time I have tried to accomplish this task I have made a banner in flash 8 with some text that slides in, that was easy enough I have published it and I have a swf and the html and an fla These are in the same folder in dreamweaver 8
-
Power shell script to install apps in remote server
Hello Masters , Tried pssession , invoke command to run a PS1 script in remote server script wil install a exe file and run a script to install features no luck no luck no luck please help !