Empty attribute fields in object
Hi,
I'm using a subtype of object TRLOAPPROV, and when testing the object in SWO1 the fields are filled with the correct data. However when the object is used with a workflow the fields are empty.
I guess it shouldn't be a binding problem as the attributes only depend on the key-fields of the object. Debugging the object in runtime shows me that the fields are empty, but if I look at the container from SWIA the fields have been filled.
Might be a bit difficult to understand what I'm trying to say here, so post me some questions and I'll try and answer them.
I think the value of the attribute is not getting Populated at the time you are using the Business Object inside a Workflow. Probablu you should put some wait UPTO 60 Seconds coding before checking the attribute. It happens and it is common:))
Thanks
Arghadip
Similar Messages
-
Expression or Function as field in Object Type
I am trying to use an expression or call a function as a return value for a field in an OBJECT TYPE.
Here's the obj def:
CREATE OR REPLACE TYPE OUTAGE_REPEAT_CALL_T2 AS OBJECT (
INITCALL_TS DATE,
LASTCALL_TS DATE,
CALL_SRC CHAR(8),
ELAPSED_TIME NUMBER,
REP_ID CHAR(8),
CALL_CNT NUMBER(3)
The ELAPSED_TIME field should be the differnece in minutes from the LASTCALL_TS and SYSDATE...
I'm not sure how to select into this OBJECT to get my result...
Sample table and data:
SQL> desc oms.outage_repeat_call
Name Null? Type
ACCT NOT NULL NUMBER(10)
INITCALL_TS NOT NULL DATE
LASTCALL_TS NOT NULL DATE
CALL_CNT NOT NULL NUMBER(3)
CALL_SRC NOT NULL CHAR(8)
REP_ID NOT NULL CHAR(8)
The ELAPSED_TIME is not part of the underlying table..
sample data from tbl:
ACCT INITCALL_ LASTCALL_ CALL_CNT CALL_SRC REP_ID
123456 02-JAN-02 02-JAN-02 1 CBIS MJB2302
I want to have this as a result:
INITCALL_ LASTCALL_ CALL_SRC ELAPSED_TIME REP_ID CALL_CNT
02-JAN-02 02-JAN-02 CBIS 9997 MJB2302 1
But by doing a select from the OBJECT TYPE:
i.e.
SELECT OUTAGE_REPEAT_CALL_T2( ORPC.INITCALL_TS,
ORPC.LASTCALL_TS,
ORPC.CALL_SRC,
'expression or func' AS ELAPSED_TIME,
ORPC.REP_ID,
ORPC.CALL_CNT)
FROM
OMS.OUTAGE_REPEAT_CALL ORPC
WHERE
ORPC.ACCT=123456;
I am using DBMS_XMLQUERY to eventually get this:
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<INITCALL_TS>1/2/2002 12:45:0</INITCALL_TS>
<LASTCALL_TS>1/2/2002 12:45:0</LASTCALL_TS>
<CALL_SRC>CBIS </CALL_SRC>
<ELAPSED_TIME>10009</ELAPSED_TIME>
<REP_ID>MJB2302 </REP_ID>
<CALL_CNT>1</CALL_CNT>
</ROW>
</ROWSET>
Here's the real query... this OBJECT TYPE is embedded as an attribute of another OBJECT TYPE def.
sQuery := 'SELECT '
|| iNumAcct || ' AS NUMACCT,
SITE_T(S.ACCT,
S.SITE,
S.PHONE,
S.CUST_NM,
S.MED_IND,
S.MAC_IND,
S.HPP_IND,
S.STREET,
S.CITY,
S.STATE,
S.ZIP,
S.EUC,
S.STATUS,
S.AGR_TYP,
S.PRICE_SCHED,
S.OL_IND,
S.TRANS_IND,
S.CIRCUIT,
S.SUBSTATION,
S.OP_CENTER,
OUTAGE_STATUS_T(O.OUT_ID,
O.OUT_STATUS,
O.PO_DEV,
O.DEV_TYP,
O.CREW,
O.ETOR_TS,
O.TRBL_CD,
O.FIRST_RPT_TS,
O.END_TS,
O.CUST_CNT,
O.O_CALL_CNT,
OUTAGE_REPEAT_CALL_T(ORC.INITCALL_TS,
ORC.LASTCALL_TS,
ORC.CALL_SRC,
ORC.REP_ID,
ORC.CALL_CNT),
LIGHT_REPEAT_CALL_T(LRC.INITCALL_TS,
LRC.LASTCALL_TS,
LRC.CALL_SRC,
LRC.REP_ID,
LRC.CALL_CNT)
) AS OUTCUST
FROM
OMS.SITE S,
OMS.OUTAGE O,
OMS.OUTAGE_REPEAT_CALL ORC,
OMS.LIGHT_REPEAT_CALL LRC,
OMS.OUTAGE_TRANSFORMER OT
WHERE
S.ACCT = ' || pi_acctNum || ' AND
S.TRNFRMR_ID = OT.TRNFRMR_ID(+) AND
OT.OUT_ID = O.OUT_ID(+) AND
S.ACCT = ORC.ACCT(+) AND
S.ACCT = LRC.ACCT(+)';
I know this may sound confusing...but I apprecitate anyone's/everyone's suggestions!
MJB
DUKEPOWER CO.yes... here's the function that I also used as the expression...
FUNCTION uf_minutesDiff(pi_beginDte IN VARCHAR2, pi_endDte IN VARCHAR2) RETURN NUMBER
|| FUNC name: uf_minutesDiff
|| purpose: this function accepts A BEGINNING DATE AND ENDING DATE AND
|| RETURNS THE DIFFERENCE IN MINUTES
||
|| date: 12/19/2001
|| author: Mark J Brooks
||
|| history:
||
||
IS
iMinutes NUMBER;
/* LINE 280 */
BEGIN
select (to_date(pi_endDte,'DD-MON-YYYY:HH24:MI') -
to_date(pi_beginDte,'DD-MON-YYYY:HH24:MI'))*24*60
INTO iMinutes from dual;
IF iMinutes = 0
THEN
iMinutes := 1;
END IF;
RETURN iMinutes;
END uf_minutesDiff;
I also just used:
SQL> SELECT OUTAGE_REPEAT_CALL_T2( ORPC.INITCALL_TS,
2 ORPC.LASTCALL_TS,
3 ORPC.CALL_SRC,
4 (ORPC.LASTCALL_TS - SYSDATE) AS ELAPSED_TIME,
5 ORPC.REP_ID,
6 ORPC.CALL_CNT)
7 FROM
8 OMS.OUTAGE_REPEAT_CALL ORPC
9 WHERE
10 ORPC.ACCT=123456;
(ORPC.LASTCALL_TS - SYSDATE) AS ELAPSED_TIME,
ERROR at line 4:
ORA-00907: missing right parenthesis
with and without the parens
tx -
Hello,
I'm currently using Java 5.0 (especially for the Generics part) on a new Java/J2EE project, but having a strange issue with code working previously in a Java 1.4 project.
Below is an overriding of the toString() method provided by the Object class which allow me to view nicely in debug (dev. mode) the contents of my Transfer Objects (all the TO's must extend this ATO abstract class).
Previously this code displayed me something like:
[field1 => value1, field2 => value2] ... for a TO (sort of "Javabean") having e.g. two String fields with values initialized to "value1" (resp. "value2").
But unfortunately, this does (or seems) not to work anymore, having such display :
[field1 => null, field2 => null]I tried to debug, and the problem is that the call fieldValue = field.get(this); returns null while it should returns the actual value of the field.
I thing it it strongly related to Generics, but could not at the moment found how/why it does not work.
May someone help...? Thanks.
public abstract class ATO {
// Reflection for field value display
public String toString() {
StringBuffer sb = new StringBuffer("[");
MessageFormat mf = new MessageFormat("{0} => {1}, ");
Field[] fields = this.getClass().getDeclaredFields();
for (int i = 0; i < fields.length; i++) {
Field field = (Field) fields;
String fieldName = field.getName();
Object fieldValue = null;
try {
fieldValue = field.get(this);
} catch (IllegalArgumentException e) {
} catch (IllegalAccessException e) {
mf.format(new Object[] { fieldName, fieldValue }, sb, null);
if (sb.length() > 1) {
sb.setLength(sb.length() - 2);
sb.append("]");
return sb.toString();ejp wrote:
Field field = (Field) fields;
This cast is unnecessary.
Effectively, I haven't noticed it yet. Fixed.
} catch (IllegalArgumentException e) {
} catch (IllegalAccessException e) {
}Either the field value really is null or you are getting one of these exceptions which you are ignoring. Never write empty catch blocks.That's true, I missed something. Fixed with some code to log the eventual exceptions.
Thanks for you answer. -
Problem with Persistent Object as Reference Attribute of Persistent Object
Hello All,
I have a problem with a persistent class that contains a reference attribute to another persistent class. I can write the reference object attribute to the DB but when I read the reference attribute back from the DB the object is null. Allow me to explain...
I have two tables; one is a data table with one key field of type OS_GUID, the second is a mapping table with several business key fields and two further fields; an instance GUID and a class identifier GUID. The data table is used to contain all the data for an object. The mapping table is used to hold a relationship between the GUID assigned in the data table and the business key. The mapping table has been structured in this way by following the help here:
http://help.sap.com/saphelp_erp2005vp/helpdata/en/df/e785a9e87111d4b2eb0050dadfb92b/frameset.htm
and the field mapping in persistent class for the mapping table has been mapped following the help here:
http://help.sap.com/saphelp_erp2005vp/helpdata/en/06/f23c33638d11d4966d00a0c94260a5/frameset.htm
The code I use to create entries in the data and mapping table is:
<-snip->
DATA:
gv_blank_data_guid TYPE REF TO zcl_ps_data,
gv_data_guid TYPE os_guid,
go_data_ps TYPE REF TO zcl_ps_data,
go_data_agent TYPE REF TO zca_ps_data,
go_data_map_ps TYPE REF TO zcl_ps_data_map,
go_data_map_agent TYPE REF TO zca_ps_data_map,
go_exc TYPE REF TO cx_root.
go_data_agent = zca_ps_data=>agent.
go_data_map_agent = zca_ps_data_map=>agent.
TRY.
Check if there's already data with the business key on the DB
go_data_map_ps = go_data_map_agent->get_persistent(
i_data_ref = iv_data_ref
i_action = iv_action ).
... if there is then exit.
EXIT.
CATCH cx_root INTO go_exc.
ENDTRY.
TRY.
Create the data...
go_data_ps = go_data_agent->create_persistent(
i_root_guid = gv_blank_data_guid
i_req_date = iv_req_date ).
TRY.
... finally, write the new data to the data business key map table
go_data_map_ps = go_data_map_agent->create_persistent(
i_data_ref = iv_data_ref
i_action = iv_action
i_data_guid = go_data_ps ). "note1
CATCH cx_root INTO go_exc.
ENDTRY.
CATCH cx_os_object_not_found.
ENDTRY.
COMMIT WORK.
<-snip->
The fact that it is possible to pass the object GO_DATA_PS in the call to GO_DATA_MAP_AGENT (the line that I've put the comment "note1" on) indicates to me that the reference to the data persistent object can be written to the DB by the mapping persistent object. After executing the above code the mapping table object and class identifier fields are populated. Also, if multiple entries are written to the tables then the class identifier field in the mapping table is always the same and the object ID is different as expected.
However, the problem I have is if I read an object from the DB using the business key with the following code:
<-snip->
DATA:
gv_req_date type datum,
gv_data_guid TYPE os_guid,
go_data_ps TYPE REF TO zcl_ps_data,
go_data_agent TYPE REF TO zca_ps_data,
go_data_map_ps TYPE REF TO zcl_ps_data_map,
go_data_map_agent TYPE REF TO zca_ps_data_map,
go_exc TYPE REF TO cx_root.
go_data_agent = zca_ps_data=>agent.
go_data_map_agent = zca_ps_data_map=>agent.
TRY.
Read data mapping with the business key
go_data_map_ps = go_data_map_agent->get_persistent(
i_data_ref = iv_data_ref
i_action = iv_action ).
... then read the data.
TRY.
CALL METHOD go_data_map_ps->get_data_guid
RECEIVING
result = go_data_ps.
CATCH cx_os_object_not_found.
ENDTRY.
CATCH cx_root INTO go_exc.
ENDTRY.
<-snip->
At no point during this code are the attributes of the object of the persistent class for the data table populated with the contents of the fields of the data table referenced as the attribute of the mapping table. To clarify, when viewing the object in the debugger all the attributes of the mapping object that are simple table fields are populated with the values of the fields of in the mapping table, however, the attributes of the object that represents the persistent class for the data table are not populated with the fields of the data table. I had hoped that by reading the mapping table object the data object would automatically be populated. Is there another step I need to perform to populate the data object?
I'm sorry if the above is hard to follow. Without being able to provide screenshots it's difficult to explain.
If someone has managed to store references to persistent objects in a table and then read the references back could you list the steps you went through to create the persistent classes and include the code that reads the objects please? The code I have almost works, I must be just missing some subtle point...
Thanks in advance,
Steve.Hi Andrea,
The iObject being replicated at item level for Service Complaints is the SAP standard behaviour.
Generally we raise complaint refering to some sales or service issues. In your scenario you are trying to create a complaint based on an iObject, then you have to mention the corresponding product details. I dont see any business requirement not to copy the iObject product at the item level.
If you want it then I think only you have to write a Z program for it.
Hope this helps!
Regards,
Chethan -
Transient Attributes in Entity object vs View Object
Hi Everyone,
I need some suggestion with my project. I have a vendors table based on which I created an entity object (columns: vendor_id, contract_id, so on ) but I want to display vendor_name in UI which can be read from other table. I thought of using a transient attribute to populate this vendor_name.
It is working fine when I create a new record (where I handled this in LOV return value of vendor_id field and it return vendor_id, vendor_name values) but when there is edit/view of page, this vendor_name is null which means I need to populate it during page load /refresh time. Can someone suggest me a better way to populate this transient attributes. I also want to know when should I use transient attributes in Entity object (I saw most of the developer using VO transient attributes in these kind of situation)
Thanks,
RaviHi,
also want to know when should I use transient attributes in Entity object (I saw most of the developer using VO transient attributes in these kind of situation)
transient values in entities are saved in the entity cache and thus can be changed in the UI. If you use transient attributes on the VO then these are read-only. All transient attribute however need to be populated upon page load, which you can do in a ViewRowImpl class that checks for a null value when the getter is called to then call a setter, or by using Groovy script as a default value (just set the attribute to script)
Frank -
Effect from build time dependent 2 attribute in info object master data
Dear all,
i creat time dependent 2 attributes in info object master data (ZCURRLUM) which use in info cube. after that i open workbook or query, it has short dump which error message
"UNCAUGHT_EXCEPTION" "CX_RSR_X_MESSAGE"
"CL_RSBOLAP_BICS_SERVICES======CP" or "CL_RSBOLAP_BICS_SERVICES======CM003"
"HANDLE_UNCAUGHT_EXCEPTION"
Question: info object master data can't use more than a attribute time dependent???
i use in BI 7.0 level 14
thanks for your help
regards,
JoyHi Chandamita Sarmah,
I copy error code to you from line 1 to line 28
METHOD handle_uncaught_exception.
data:
l_r_program_error TYPE REF TO cx_rsbolap_program_error.
data: lBExDebug type rs_bool.
GET PARAMETER ID 'BEXDEBUG' FIELD lBExDebug.
if lBExDebug = rs_c_true or CL_RSTT_TRACE=>GET_TRACEMODE_CURRENT_TRACE( ) = rstt0_c_tracem
Break-point for debugging, e.g. during running a trace
break-point. "#EC NOBREAK
endif.
Subcall?
if P_RFC_CALL_DEPTH > 1.
Forward the exception
subtract 1 from P_RFC_CALL_DEPTH.
DATA: l_r_x TYPE REF TO cx_no_check.
TRY.
l_r_x ?= i_r_exception.
CATCH cx_root.
CLEAR l_r_x.
ENDTRY.
IF l_r_x IS INITIAL.
RAISE EXCEPTION TYPE cx_rsr_propagate_x
EXPORTING
previous = i_r_exception.
ELSE.
RAISE EXCEPTION l_r_x.
ENDIF.
endif.
All exceptions should have been caugth -> X-Message
Thanks a lot for your help
Joy -
Error while creating Attribute In BPM Object
Hi,
I am getting error while creating attributes in BPM Object.I am not able to open BPm object. while opening I am getting Below error.
Please suggest.
java.lang.StringIndexOutOfBoundsException: String index out of range: 28
at java.lang.String.charAt(Unknown Source)
at fuego.type.TypeFactory.createFromName(TypeFactory.java:482)
at fuego.type.TypeFactory.forNameLazy(TypeFactory.java:263)
at fuego.lang.CollectionTypeDescription.getIndexTypeRef(CollectionTypeDescription.java:146)
at fuego.compiler.type.TypeRenderer.renderArrayType(TypeRenderer.java:355)
at fuego.compiler.type.TypeRenderer.renderType(TypeRenderer.java:261)
at fuego.compiler.type.TypeRenderer.renderArrayType(TypeRenderer.java:344)
at fuego.compiler.type.TypeRenderer.renderType(TypeRenderer.java:261)
at fuego.compiler.type.TypeRenderer.render(TypeRenderer.java:106)
at fuego.compiler.type.TypeRenderer.render(TypeRenderer.java:94)
at fuego.compiler.type.TypeRenderer.render(TypeRenderer.java:78)
at fuego.designer.XObjectComponentStructurePanel$CellTypeRenderer.getText(XObjectComponentStructurePanel.java:612)
at fuego.designer.XObjectComponentStructurePanel$CellTypeRenderer.getText(XObjectComponentStructurePanel.java:605)
at fuego.ui.peer.swt.SwtTable$SwtTableModel.getColumnText(SwtTable.java:956)
at org.eclipse.jface.viewers.TableColumnViewerLabelProvider.update(TableColumnViewerLabelProvider.java:70)
at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:135)
at org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(AbstractTableViewer.java:386)
at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:466)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2026)
at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:695)
at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:633)
at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:620)
at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1433)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1368)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1330)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1431)
at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:536)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1390)
at fuego.ui.peer.swt.SwtViewer.repaint(SwtViewer.java:59)
at fuego.ui.peer.swt.SwtColumn.setLabelProvider(SwtColumn.java:89)
at fuego.ui.Column.setLabelProvider(Column.java:82)
at fuego.designer.XObjectComponentStructurePanel.buildUI(XObjectComponentStructurePanel.java:299)
at fuego.designer.AbstractEditor.build(AbstractEditor.java:542)
at fuego.designer.AbstractEditor.init(AbstractEditor.java:133)
at fuego.designer.XObjectComponentStructurePanel.<init>(XObjectComponentStructurePanel.java:126)
at fuego.eclipse.studio.multipageeditor.BPMObjectMultipartEditor.createStructurePage(BPMObjectMultipartEditor.java:581)
at fuego.eclipse.studio.multipageeditor.BPMObjectMultipartEditor.addDefaultPages(BPMObjectMultipartEditor.java:464)
at fuego.eclipse.studio.multipageeditor.ExtendedMultiPageEditorPart.createPages(ExtendedMultiPageEditorPart.java:399)
at fuego.eclipse.studio.multipageeditor.eclipse.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:253)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:774)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:673)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:634)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2737)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)
at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2557)
at fuego.eclipse.ui.DefaultEditor.open(DefaultEditor.java:65)
at fuego.eclipse.studio.EclipseWorkbench.createEditorFromResource(EclipseWorkbench.java:529)
at fuego.eclipse.studio.EclipseWorkbench.createEditor(EclipseWorkbench.java:297)
at fuego.designer.action.OpenCatalogNodeAction.open(OpenCatalogNodeAction.java:91)
at fuego.designer.action.OpenCatalogNodeAction.run(OpenCatalogNodeAction.java:55)
at fuego.eclipse.ui.EclipseAction.run(EclipseAction.java:180)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)When you say you're having trouble "opening" the BPM Object, is it possible you instead mean you're having trouble expanding the BPM Object?
Just a guess, but if you're having trouble expanding the BPM Object I'd suspect that the object's xcdl contents might be corrupted. You might want to consider exporting and saving a backup of the project and then try deleting the object from the Project Navigator. Rebuild the BPM Object once you've deleted it.
Dan -
Overriding attributes in ABAP objects
Hello,
I currently want know if it is possible to override attributes in ABAP objects. i know it is possible with methods. I have extend a previous class functionality and want to change the refrence type of an attribute from the parent class, but only on the child. Is this possible in ABAP object or even in normal object oriented techniques.
Thanks
BrendanHi,
ususally you can achive this with other technics. You can e.g. use the class hierarchy for this:
The attribute is of type REF_SUPERCLASS. Within the superclass it should be working when you set subclasses of REF_SUPERCLASS as attribute.
Another way is to use interfaces as reference type for your attribute.
Please refer to [ABAP Objects|http://help.sap.com/saphelp_nw70/helpdata/EN/ce/b518b6513611d194a50000e8353423/frameset.htm]. Especially the chapters about Inheritance and Interfaces.
Regards Rudi -
How to change sql expression of SQL-Calculated Attribute of view object ?
Hi
jdev 11.1.1.5
I have a view object with a SQL-Calculated Attribute (sumAnalytic) how can I change sql expression of this attribute in runtime?
for example in application module method??Hi Mr Timo
Thanks for your reply but I do not need dynamic vo because I can not change all of my vo
I only need to change expression of SQL-Calculated Attribute of view object in run time.
For this I set expression in view object something like this 'select 2 from dual' and in run time in my AM method I get the vo query and replace 'select 2 from dual' with something like 'selet sum(amnt) over (partition by 1)' and set new query.
But I think the better solution must exist
Thanks -
Language attributes for business objects ERC_CDCY
Hello,
I need to activate TREX index ERC_CDCY from our e-recruiting system using SES_ADMIN transaction.
When I activate it, I receive error message UNCAUGHT_EXCEPTION (CX_SY_OPEN_SQL_DB) at the
relational index level (Relation of candidacy).
I opened a message with SAPnet and got the following answer:
Indexes are only created in english compared to others systems that contains indexes in both languages (EN, FR). We could not find any french attributes for business objects ERC_CDCY which is required (at least 7 words) to index it in french language.
Do you know which transaction or SPRO menu path I could use to maintain de language attributes and the 7 words?
Thanks for you help
HugoHello Huga,
About maintaining the language in E-Rec you can have a look at the table
V_T77RCF_SELANGU, there you can maintain the different language.
The exception you are getting might be coming from the TREX side. please check the following notes:
1260684 SQL statement terminates: "Too Complicated SQL
1249465 TREX 7.1: Installing TREX for Embedded Search
Best Regards,
Deepak. -
How to make the attribute of type object private
Hi All!
How to make the attributes of type object private ?
regards
Sanjeeb Bose
Kolkata IndiaSanjeeb,
Object encapsulation can be enforced at your client/mid-tier API level (e.g., Java, C++).
Regards,
Geoff
Hi All!
How to make the attributes of type object private ?
regards
Sanjeeb Bose
Kolkata India -
Creating an empty signature field in Acrobat Pro X
I want to make an empty signature field in Acrobat Pro X, so that Acrobat Reader users can later sign it. I know how to enable that last part ("extended PDF Reader"), but don't know how to make an empty field.
Is a blank signature field what I need to create if I want my document to be signed by someone else? I am just the editor of the document. I will not officially sign the document. The signature will come from a managment postion. Everytime I try to create a blank signature field though Adobe wants to sign the document with my personal signature.
-
I want to have a book printed from Aperture 1.5.4, but when I press the 'Buy Book' button, a dialog pops up:
"*Empty text field detected in book*
The book you are about to order contains an empty text field.
How do you wish to proceed? Cancel/Continue"
That's all very nice, to give me a warning like that, but how on earth am I going to find one invisible text field in a 50-page book full of colour photos??
Does anyone have a hint? How problematic is it to leave the text field in? Common sense dictates that an empty text field should not be visible in the printed book either, but knowing Apple's fickleness in book matters... can I be sure? I can generate and check the PDF of course, but I don't know if that's sufficient proof.
Thanks!prauz wrote:
I want to have a book printed from Aperture 1.5.4, but when I press the 'Buy Book' button, a dialog pops up:
"*Empty text field detected in book*
The book you are about to order contains an empty text field.
How do you wish to proceed? Cancel/Continue"
That's all very nice, to give me a warning like that, but how on earth am I going to find one invisible text field in a 50-page book full of colour photos??
hi, prauz
sounds like there is a text box (unfilled) and you haven't typed nor pasted text into it.
it's not that the text field is invisible, it's there yet to be selected and filled in with your information. so it is visible. have another looksie at it, look for the default letters or "Title Information Here"...
victor -
How to put validation between attributes at View Object level in BC4J
Hi,
Is it possible in BC4J to put validation between attributes at View Object level?
I know that I can do it at Entity Object level in validateEntity method, but I have several View Objects connected with one Entity Object and don't want to have the same validation logic for all View Objects.
Thanks for any help!It returns errorWhat error does it return?
John -
How to create a user using XML and specifying addional attributes that are objects
I'm trying to create a user using XML and specifying some attributes that are objects and not sure how to do it. How would I set the DirectoryUserAcl to Public?
Here's the xml file:
<?xml version = '1.0' standalone = 'yes'?>
<SimpleUser>
<UserName>mike2</UserName>
<Password>abc123</Password>
<AdminEnabled>false</AdminEnabled>
<HomeFolderRoot>/home</HomeFolderRoot>
<HasContentQuota>false</HasContentQuota>
<DirectoryUserAcl> ??? </DirectoryUserAcl>
<DefaultAclBundleAcl> ??? </DefaultAclBundleAcl>
<HomeFolderPolicyBundleAcl> ??? </HomeFolderPolicyBundleAcl>
</SimpleUser>I figured out the answer:
<?xml version = '1.0' standalone = 'yes'?>
<SimpleUser>
<UserName>mike2</UserName>
<Password>abc123</Password>
<AdminEnabled>false</AdminEnabled>
<HomeFolderRoot>/home</HomeFolderRoot>
<HasContentQuota>false</HasContentQuota>
<DirectoryUserAcl classname="SystemAccessControlList" refType="name">Public</DirectoryUserAcl>
</SimpleUser>
null
Maybe you are looking for
-
Project server 2010 don't respect the 'Choose an account' option
We have in our company Project Server 2010. We use to create the 2 URLs accounts for all users through the Create Accounts and choose the 'Choose an account' option so the users can select weather to work offline ("Computer") or from one of the URLs.
-
A while after switching from automatic synching to manual updating of my iPod, I started to get the 'cannot read or write to the disk' error messages when I tried to go back to automatic updating. But not at first, only when I got to about 5gigs wort
-
HP Officejet 6500A won't photocopy or print
Hello everyone and thank you in advanced if you are able to help me resolve my issue. I put a paper face down and was hoping to get a copy of it. The printer goes through all of the motions of 'printing' ie, ink sounds like it is moving back and fo
-
Ibooks keeps crashing on startup
Hi everyone, i have a strange issue with iBooks, everytime i try to use it crashes on startup, is this a known issue and is there a fix? my crash report is below if it helps Process: iBooks [21770] Path: /Applications/iBooks.app/Co
-
Best way to extend FXO to a remote site???
Team, I have a customer who is looking for the best way to simply extend 4 fxo lines from a location to their location. There is an ethernet connection to their location from the location containing the FXO lines. I know we can do this by putting in