Get object type attribute value
1 am trying binding Oracle Object types to java object types using the ORAData interface.
I created a simple object type called att_mesg_type with the syntax
create type att_mesg_type as object (subject varchar2(200),Text varchar2(1000));
I then created a class called attMesgType using Jpublisher which implements the interface.
The getSubject() and getText() method return '???'.
Anybody has any insights? Any inputs are appreciated.
declare
attr_name varchar2(10) := 'ATTR1';
attr_value varchar2(50);
type_instance MyType := MyType('VALUE 1', 'VALUE 2');
begin
execute immediate 'declare type_instance MyType := :1; begin :2 := type_instance.' || attr_name || '; end;'
using type_instance,out attr_value;
dbms_output.put_line(attr_value);
end;
VALUE 1
PL/SQL procedure successfully completed.
SQL> SY.
Similar Messages
-
Passing Values to Object Type Attributes
Hi Experts,
I need to pass values to object type attributes amount,channel and company code from zprogram.
I have got FM 'SWO_INVOKE'.But in this FM how will I pass values to 3 attributes.
I have created object type through SWO1 .Is it necessary to call FM SWO_CREATE before FM 'SWO_INVOKE'.
Please suggest.
Regards,
Kaustubh.Hi,
I guess you will have to Initialize business object first by using the function module "SWO_CREATE' and then call the other function module to pass the attributes. I am not sure, but please check by passing the attribute name and value to the tables parameter 'CONTAINER'.
CONTAINER-ELEMENT = <Attribute name>.
CONTAINER-VALUE = <value from the Zprogram>.
Hope this will help.
Thanks,
Samson -
Not getting all the attributes value from Trusted Recon in eventhandler
Hi,
I am not getting the values of all the attributes in hashmap from Trusted recon in eventhandler.
Following is the hashmap value I am getting :
Parameter Hashmap value is {re_key=1869, Email=[email protected], Role=Full-Time, act_key=22, User Login=TUser43, Xellerate Type=End-User, Last Name=User43, First Name=Test}
Please let me know how to get all the attributes value in eventhandler. I need to take some decisions based on these attributes.
ThanksYou should be getting all the values in the recon event.
To get the current user states for all the records in the bulk event use this:
Identity[] currentUserStates = (Identity[]) eventDataHashMap.get("CURRENT_USER");
Now when you are looping through your bulkParametersp[], you can use the same get from the currentUserStates:
Identity currentUser = null;
currentUser = currentUserStates[counter];
Now if the attribute is not in your hashmap, you can use:
currentUserState.getAttributes().get(attribute)
-Kevini -
FIXED type Attribute value not equal to the default
Hi
I am in the processing of doing AP Inbound process. During My process I have created Invoice XML and XSD and mapped with XML Gateway OAG XSD.
BPEL able to pool the directory and process the XML file. But I am getting below error at XML Gateway error log.
FIXED type Attribute value not equal to the default
value ''.
Could any body let me know when do I get normally this kind of error.
Regards
Kiran AkkirajuIf you have imported the source code you could use a workaroud i have found. Create a new workspace and a new Project. In it create with the wizard a new Struts Controller Page Flow. After, create a action class, and some jsp pages.Then put some Struts components with the Components Palette.Be sure that in the newly created pages, jdeveloper has put the struts taglib. Now you can rebuild your project.
It seems that jdeveloper does some internal libraries configuration, but when you import the source code, it doesn't do it.
Hope it helps
Nicolas Fonnegra M. -
Is there any way to get a particular attribute value pair based on a search condition ?
From a multivalue attribute , can I get a particular attribute value based on a search condition.
No, this is not part of the LDAP specs... and therefore it is not implemented in Directory Server 5.x.
However, there has been some proposal for a standard mechanism for specifying returning Matched values in LDAPv3. The internet draft expired a year ago mostly because of lack of interest from the LDAP users community.
Regards,
Ludovic. -
How to get the VO attribute value by groovy?
Hi everyone,
I have a ItemsVO (with an entity behind it), a CompaniesVO and BusinessVO. CompaniesVO is filtered by a ExecuteWithParams, and has a type attribute, with this attribute I can filter BusinessVO used as LOV in ItemsVO. How can I pass the value using a groovy expression in the view accesor? Can I do this?
Thanks in advance.Hi
If there is a master child relation between CompaniesVO and BusinessVo, then define a viewLink and create view accessors and you can access the another view object attributes from groovy like 'view accessor name.attribute name'.
Make sure you set the bind var value type as expression. And for example please refer to the below link by andrejus b.
http://andrejusb.blogspot.com/2010/06/lov-description-text-with-groovy.html
N. -
Hi Experts,
I have the requirement to show a warning that the user shall maintain a Partner "Enduser" in the Assignmentblock "Partners" when creating an Opportunity. The code for the warning is implemented in the Impl-Class of the View BTPARTNER/Partner (my Assignmentblock "Partners"). The problem is, that the Assignment Block is also used in other Scenarios, but the Waring shall only appear in the Opportunity View.
How can I check the current Scenario? I thought of getting the Object Type BT111_OPPT and check it.
Anyone know how to get the Object Type or any other solution for the problem?
Thanks and regards,
SebastianHi,
I think using the Object_type to display warning message in your case is fine and it should work. Now as you are looking how to get object_type here..my suggestion would be in View BTPARTNER/Partner you have a context node called 'BTPartnerSet' after getting the current entity (by using get_current() ) you can get the parent which would be BTAdminH and in this entity you have object_type as a attribute so you can easily call get_property or get_property_by_string () and can put your check.
Regards
Ajay -
Object Types Attributes (Data Modeler 3.0 EA1.)
Hi,
Will the attribute object type support in data modeler be upgraded to the same functionality as column relational table support in 3.0? For relational columns I can attach a domain to a column, I can't attach a domain to an attribute in an object type. Also for a column I can define a 'Units', that is VARCHAR2 (30 BYTE) orVARCHAR2 (30 CHAR). If can't do this with the (Data Modeler 3.0 EA1.) for an object type's attribute. Will this be included?
Thanks,
ScottSue,
Thanks to you and your team for extending this to the object type (structured type) portion of SDDM 3.3 EA1 and 3.3 EA2. The object type portion of SDDM is pretty robust now for modeling and actually generating useable structures in the database (Oracle) now. With 3.3 EA2 at this point it will be much easier to take advantage of the object type features in the database and our applications. I have been waiting since Oracle version 8 for the tools team to provide a modeling tool that mirrors the functionality the server team has provided when it comes object types.
Thanks for this in SDDM 3.3 EA1 and SDDM 3.3 EA2!
ScottK -
How to access Business object type attribute from a method/function modul ?
Hello,
i have created a business object type object along with attributes and methods. Now inside the method i want to access the attributes. inside the method i am writing:
data a type XXX.
a = me->attribute
this is creating a compilation error.
Now the method is defined as a function module in some package, so can anyone inform me how to access object attributes from the function module ?
pointes are awarded
RegardsHello,
thanks for your answer, but this too did not work, "=>" is for static attributes and the attributes i have are not static. Moreover, i tried it but it gave the same error :
the abap error was when i was checking the code is :
the type me=>documenttype is unknown
as you know in SWO1 i created an object and when i create a method you link it to a function module and this is where you have the implementation of the method, so from this method how can i access the attributes on the main object that i created in SWO1
regards -
JCo method to find CCMS Text Attribute/Object Description attributes value
Is there any function available in SAP JCo / XAL ( External Interface for Alert Management ) to find the current values for CCMS Text Attribute or Object Description attributes and CCMS Heartbeat attributes from a Java Program. It seems XAL only has functions to find the current values of performance, status and log attributes.
hi arun,
refer this link
http://help.sap.com/saphelp_nw04/helpdata/en/6a/82343ecc7f892ee10000000a114084/content.htm
https://dsd.esco-salt.com/StartPage/documents/admin/30.html
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/548da290-0201-0010-0299-f037dd7eeb36
check for the api for jmomapi.jar
Alert status definitions
ther u have code and example also
bvr
Edited by: bvr on Apr 27, 2009 12:18 PM
Edited by: bvr on Apr 27, 2009 12:53 PM
Edited by: bvr on Apr 27, 2009 12:55 PM -
Is it possible to get object type name with help of key field?
can any one tell me is it really possible to get the object type name if i have only key field,
are there any tables which store the object type names & keyfield. or there are any functionmodue which gives object type name by entering keyfield.Hello,
If the PO has workflows associated with it, there is a table SWIWIOBJCT which stores details of the workitem, object key , object type details.
If you input the object key to this table ( For ex: PO number in this case) , it will give you the corresponding object type for the object key for Workitem type F.
Thanks,
Sowmya Arni -
Is it possible to get and Set attribute value in OVD through JNDI or Java
Hi,
I have a requirement to read an OVD Attribute value from a Jsp Page and set the Attribute value in OVD.
Is it possible to achieve it through JAVA/JNDI code, Any pointers or code snipplet are welcome.
Thanks
AkUse JNDI with LDAP provider or another LDAP java library, plenty of examples on google
-
How to get object type and object key from Bapi_acc_gl_posting_post
Hi,
Currently iam implementing FB01 transaction thru Bapi_acc_gl_posting_post.
I got object key by including document no, fiscal year and Document data
I got object type from TTYP table. But iam not sure it is correct.
After implemeting the BAPI return code is giving successfull and i commited the process.
But at last data is not updating in BKPF table. There is no document number displayed at BKPF...Please go thru and do the needful its urgent.
Thanks in advance....
Regards,
GangaHi Max,
I have executed it and it is working only for GL posting but i need to make this for different accounting types like vendors, customers, material customers etc.
I found BAPI_ACC_DOCUMENT_POST. when i executed it is giving error as 'Line entered several Times'.
I following is my code. If time permits please go thru my code and do the need ful..
Thanks in advance.
REPORT zk_fi_fb01 .
Data: v_objkey(20) type c.
Data: Docheader type BAPIACHE09.
Data: ACCOUNTGL LIKE BAPIACGL09 occurs 0 with header line,
ACCOUNTRECEIVABLE like BAPIACAR09,
ACCOUNTPAYABLE like BAPIACAP09 occurs 0 with header line,
CURRENCYAMOUNT like BAPIACCR09 occurs 0 with header line,
RETURN like BAPIRET2 occurs 0.
Data: obj_typ like BAPIACHE09-OBJ_TYPE,
OBJ_KEY like BAPIACHE09-OBJ_KEY,
OBJ_SYS like BAPIACHE09-OBJ_SYS.
*Data: gv_belnr type belnr_d.
*Data:file_Na type String.
Data: lsys like TBDLS-LOGSYS.
*START OF SELECTION
START-OF-SELECTION.
*CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '19'
object = 'RF_BELEG' "'FIAA-BELNR'
QUANTITY = '1'
SUBOBJECT = '7777'
TOYEAR = '2007'
IGNORE_BUFFER = ' '
IMPORTING
NUMBER = gv_belnr
QUANTITY =
RETURNCODE =
*CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
OWN_LOGICAL_SYSTEM = lsys
EXCEPTIONS
OWN_LOGICAL_SYSTEM_NOT_DEFINED = 1
OTHERS = 2
*IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
*concatenate gv_belnr '7777' '2007' into v_objkey.
*Filling Document Header Details
*Docheader-OBJ_TYPE = 'BEBD'.
*Docheader-OBJ_key = V_objkey.
*Docheader-OBJ_SYS = lsys.
docheader-BUS_ACT = 'RFBU'.
Docheader-USERNAME = sy-uname.
Docheader-COMP_CODE = '7777'.
Docheader-DOC_DATE = '20070724'.
Docheader-PSTNG_DATE = '20070725'.
Docheader-FISC_YEAR = '2007'.
Docheader-DOC_TYPE = 'KZ'.
*Item data for ACCOUNTGL
ACCOUNTGL-ITEMNO_ACC = '0000000001'.
ACCOUNTGL-GL_ACCOUNT = '0000000501'.
ACCOUNTGL-DOC_TYPE = 'KZ'.
ACCOUNTGL-COMP_CODE = '7777'.
ACCOUNTGL-FISC_YEAR = '2007'.
ACCOUNTGL-PSTNG_DATE = '20070725'.
*ACCOUNTGL-DE_CRE_IND = 'S'.
append ACCOUNTGL.
ACCOUNTGL-ITEMNO_ACC = '0000000002'.
ACCOUNTGL-GL_ACCOUNT = '0000400002'.
ACCOUNTGL-DOC_TYPE = 'KR'.
ACCOUNTGL-COMP_CODE = '7777'.
ACCOUNTGL-FISC_YEAR = '2007'.
ACCOUNTGL-PSTNG_DATE = '20070725'.
*ACCOUNTGL-DE_CRE_IND = 'H'.
append ACCOUNTGL.
*Account payable
ACCOUNTPAYABLE-ITEMNO_ACC = '0000000001'.
ACCOUNTPAYABLE-GL_ACCOUNT = '0000000102'.
ACCOUNTPAYABLE-COMP_CODE = '7777'.
append ACCOUNTPAYABLE.
ACCOUNTPAYABLE-ITEMNO_ACC = '0000000002'.
ACCOUNTPAYABLE-GL_ACCOUNT = '0000400002'.
ACCOUNTPAYABLE-COMP_CODE = '7777'.
append ACCOUNTPAYABLE.
*Currency Amount
CURRENCYAMOUNT-ITEMNO_ACC = '0000000001'.
CURRENCYAMOUNT-CURRENCY_ISO = 'INR'.
MOVE 1000 TO CURRENCYAMOUNT-AMT_DOCCUR.
Append CURRENCYAMOUNT.
CURRENCYAMOUNT-ITEMNO_ACC = '0000000002'.
CURRENCYAMOUNT-CURRENCY_ISO = 'INR'.
MOVE '1000-' to CURRENCYAMOUNT-AMT_DOCCUR.
Append CURRENCYAMOUNT.
clear CURRENCYAMOUNT.
clear ACCOUNTGL.
clear ACCOUNTPAYABLE.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = Docheader
CUSTOMERCPD =
CONTRACTHEADER =
IMPORTING
OBJ_TYPE = obj_typ
OBJ_KEY = obj_key
OBJ_SYS = obj_sys
tables
ACCOUNTGL = ACCOUNTGL[]
ACCOUNTRECEIVABLE =
ACCOUNTPAYABLE = ACCOUNTPAYABLE
ACCOUNTTAX =
currencyamount = CURRENCYAMOUNT
CRITERIA =
VALUEFIELD =
EXTENSION1 =
return = return.
if sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ' '.
endif.
if sy-subrc = 0.
WRITE: / OBJ_KEY,
OBJ_TYP,
OBJ_SYS. -
Hello,
I want to know the object type in cocoa.
Suppose object (id) is consider in which i store string,int,etc..
But i want to know the type of (id).
Thank you...You can't introspect basic scalar data types nor should you ever have any reason to given the fact that C is a strongly typed language where you are expected to keep track of such things yourself.
#if _LP64_ || NSBUILD_32_LIKE64
typedef long NSInteger;
typedef unsigned long NSUInteger;
#else
typedef int NSInteger;
typedef unsigned int NSUInteger;
#endif
That's all an NSInteger is. -
Images are not downloaded at all and page looks broken.
The same page works fine over HTTP but shows the problem over HTTPS. Works fine in firefox and chrome.
Checked and found the problem in IE 9, 10, 11
Is it some bug in IE, I have searched the forums and searched internet. Got following but are not relevant to this case.
Resetting src of the img (Ruled out, not doing any reset)
Do not save encrypted pages to disk is checked in advanced security options (Ruled out, unchecked)
Using TLS 1.2 with SSL 2.0 (Ruled out, SSL 2.0 unchecked)
Cache-preventing headers: Cache-Control header with the tokens no-cache, no-store (Ruled out, no such headers)
Restarts due to parser reset owing XML Namespace declaration, Meta tags etc. (Ruled out, image tags are afterwards)
Thanks in advance for help!I probably encountered the same problem.
What happens when you disable the 'Use TLS 1.0' checkbox in Internet Options, Advanced, Security, 'Use TLS 1.0'?
The only enabled option I have in IE is 'Use SSL 3.0'.
Source:
http://social.msdn.microsoft.com/Forums/ie/en-US/88a58e78-ebb4-469d-a361-0d3762a4cf80/ie10-reports-aborted-js-and-css-downloads-randomly?forum=iewebdevelopment
Maybe you are looking for
-
Free Issue - condition in purchasing pricing & GRN - IS-Retail
I am having following scenario in IS-Retail. Whenever my client is purchasing articles, he is getting some free issue materials also from vendor alongwith actual po qty. Say, if he is ordering 100 Boxes of Tiles, he is getting 10 boxes free from ven
-
Do I have to name each file using FILE_DATASTORE
Hello, i wan't to crawl and search our filesystems, do i have name each file and insert it to the database using FILE_DATASTORE or can I use an asterix? or is there an other solution thx
-
Cideon / Autocad 2007 / Material BOM Creation from autocad
Hi, we are using Cideon integration for AutoCad 2007 & SAP ERP communication. DIR's in DMS are created from AutoCad drawings via SAP menu. We want to create Material & Material BOM from AutoCad but we cannot see any option present in SAP menu. We can
-
Laptop Losing Color Management Settings When Docking or Undocking
I originally posted this to the general Windows 7 support forum; however, one of the support engineers recommended that I move it here as I'm running Windows 7 Enterprise, so here it is... I am running Windows 7 Enterprise SP1 64-bit on a Dell Latitu
-
Aperture newbie, is it possible to overlay text onto a photo?
Aperture newbie, is it possible to overlay text onto a photo?