Filling Worflow container with objects (OOAD)
Hi Gurus,
I have created a workflow,which has abap objects as container element. Can anyone let me know how can I fill the container element with object..I have tried with marcos as mentioned in the library..but not container is not filled ..plz advice....
Create a variable for the object reference. Use the following command to do this:
DATA <Object> TYPE SWC_OBJECT.
Create the object reference. Use the following command to do this:
SWC_CREATE_OBJECT <Object> <ObjectType> <ObjectKey>.
Write the object reference into the container using the following macro instruction:
SWC_SET_ELEMENT <Container> <ContainerElement> <Object>.
Thank you
- Senthil Bala
BalusC -- The line that gives me my NullPointerException is when I call the "DisplayProduct()" method. Its a dumb question, but with NetBeans how do I find out which reference could be null? I'm not very familiar with how NetBeans works with finding out how to debug. Any help you can give me would be greatly appreciated.The IDE is com-plete-ly irrelevant. It's all about the source code.
Do you understand anyway when and why a NullPointerException is been thrown? It is a subclass of RuntimeException and those kind of exceptions are very trival and generally indicate an design/logic/thinking fault in your code.
SomeObject someObject = null; // The someObject reference is null.
someObject.doSomething(); // Invoking a reference which is null would throw NPE.
Similar Messages
-
When a movie clip contains an object with a z value, I can not edit the object in place, it goes into a seperate window.
This changes the vanishing point relative to the movieclip instead of the stage (allong with everything else).
This makes it very hard to keep track of where the movieclips will end up when actualy playing the animation.I should have explained my situation a little better. I have a machine that's made up of a number of parts, some of them are fairly large and some are quite small. When a user clicks on a part, I want to center that part on the screen and then move whole machine toward the screen until the selected part either fills the screen (for the larger parts) or the part bumps up against the front clip plane (for the smaller parts).
I didn't think of checking for a collision with the ViewPlatform's TG, thanks for mentioning that. I wasn't sure how the ViewPlatform's location relates to the clipping plane, but I'll dig into it. I'm still learning how the ViewingPlatform, the image plate, and the clipping planes all relate to each other. -
How can I fill a table of objects from cursor with select * bulk collect???
Hi All, I have a TYPE as OBJECT
create or replace type dept2_o as object (
deptno NUMBER(2),
dname VARCHAR2(14),
loc VARCHAR2(13));
I can fill a table of objects from cursor with out select * bulk collect...., row by row
declare
TYPE dept2_t IS TABLE of dept2_o;
dept_o_tab dept2_t:=dept2_t();
i integer;
begin
i:=0;
dept_o_tab.extend(20);
for rec in (select * from dept) loop
i:=i+1;
dept_o_tab(i):=dept2_o(
deptno => rec.deptno,
dname => rec.dname,
loc =>rec.loc
end loop;
for k IN 1..i loop
dbms_output.put_line(dept_o_tab(k).deptno||' '||dept_o_tab(k).dname||' '||dept_o_tab(k).loc);
end loop;
end;
RESULT
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON
But I can't fill a table of objects from cursor with select * bulk collect construction ...
declare
TYPE dept2_t IS TABLE of dept2_o;
dept_o_tab dept2_t:=dept2_t();
begin
dept_o_tab.extend(20);
select * bulk collect into dept_o_tab from dept;
end;
RESULT
ORA-06550: line 6, column 39;
PL/SQL: ORA-00947: not enough values ....
How can I fill a table of objects from cursor with select * bulk collect???create or replace type dept_ot as object (
deptno NUMBER(2),
dname VARCHAR2(14),
loc VARCHAR2(13));
create table dept
(deptno number
,dname varchar2(14)
,loc varchar2(13)
insert into dept values (10, 'x', 'xx');
insert into dept values (20, 'y', 'yy');
insert into dept values (30, 'z', 'zz');
select dept_ot (deptno, dname, loc)
from dept
create type dept_nt is table of dept_ot
declare
l_depts dept_nt;
begin
select dept_ot (deptno, dname, loc)
bulk collect
into l_depts
from dept
for i in l_depts.first .. l_depts.last
loop
dbms_output.put_line (l_depts(i).deptno);
dbms_output.put_line (l_depts(i).dname);
dbms_output.put_line (l_depts(i).loc);
end loop;
end;
/ -
How to use a scaled object(MC) to fill the background with the new properties
So lets say i have a stage 300 to 200 and all object that i have are for this dimensions.Also have an pattern function that fills the background.
But the user is thinking of resizing the stage to lets say 1024 to 480 (he switched from a phone to a tablet).And now the scale of the objects in the tablet screen are more than 3times before(when seen on the Phone)
How do i save the current new size object and use it in the creation of the new background (the 1024x480).
currently i have this :
public static const GAME_ORG_WIDTH:uint = 300;
public static const GAME_ORG_HEIGHT:uint = 200;
public function MainClass_road() {
addEventListener(Event.ADDED, init);
public function init(e:Event):void{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, setUpScreen);
public function setUpScreen(ev:Event):void{
stage.removeEventListener(Event.RESIZE, setUpScreen);
if(stage.fullScreenHeight > stage.fullScreenWidth){
gameStageWidth = stage.fullScreenWidth;
gameStageHeight = stage.fullScreenHeight;
}else {
gameStageWidth = stage.fullScreenHeight; // 480
gameStageHeight = stage.fullScreenWidth; //1024
rescaleRatio = gameStageWidth / GAME_ORG_WIDTH;
//rescale every object, ie:
myC.scaleX = myC.scaleY = rescaleRatio;
//start filling the Background with the pattern
tileBgF();
and then I use the while loop for filling the screen/background
public function tileBgF(e:Event=null):void {
var bgClip = MyC;
var i:int = 0;
var j:int = 0;
while (bgClip.x < stage.stageWidth) {
bgClip = MyC;
while (bgClip.y < stage.stageHeight) {
bgClip = MyC;
tileLayer.addChild(bgClip);
bgClip.x = bgClip.width * i;
bgClip.y = bgClip.height * j;
j++;
j = 0;
i++;
addChildAt(tileLayer,0);
why does it give me
Line 52
1120: Access of undefined property MyC.
in public function tileBgF
and further more.After filling the background/screen with the pattern , how do i save it all like one big bitMap so i can use /add it after time without doing all the checking of screen and things again.and is it better to use
stage.fullScreenHeight
in the while loop or leave it like it is ,or its irrelevant -
Fill a table with a genil object
Hello,
I will fill a custom table with the class CL_CRM_GENIL_GEN_TABLE_OBJ. Could anyone explain me how to fill a table with this class?
Thank and regards,
HarrisHello,
Thank you very much so far.
I followed the instructions in the above link.
I'm a little bit confused how to fill the table with values. The class CL_CRM_GENIL_GEN_OBJ offers me the method "Save". I can imagine, to use this method to fill my table with values.
Could anyone describe how to proceed if I want to fill my table.
Thank you very much so far.
Best regards,
Harris -
Run-time error '1004' -- Method 'Container' of object '_Workbook' failed
Dear All,
One of our users is getting the following Microsoft Visual Basic error while running the report S_ALR_87013614.
Run-time error '1004'
Method 'Container' of object '_Workbook' failed.
I have searched the forum posts for help. But I only found some details related to Run-time error 1004 related to some excel file security but not related to "Method 'Container' of object '_Workbook' failed".
Could anyone please tell me how this error can be eliminated for the user?
Regards,
Lakshmi.Dear Arpan,
We too observed a few PIDs along with the one that you have mentioned but they make no difference. Some users who has the PID G_RW_DOCUMENT_TYPE set with some value are getting the report.
Upon further searching we are assuming that it could be an issue with the Microsoft applications or macro settings of the user. But not sure about it.
Regards,
Lakshmi Venigala. -
Background Execution Problem-Docking Container with 2 ALV Grids in one scre
Hi Friends,
I have created 2 ALV Grids in one screen - one below another using DOCKING CONTAINER.
The objects are 'g_dock_cont' and 'g_dock_cont1'.
I am getting the foreground output as expected with 2 ALV Grids.
While executing in background (F9), I am getting only output of first ALV grid. Second ALV is not getting displayed in BACKGROUND(F9) mode.
How to solve this.
FORM create_objects.
* Materials with data
IF g_dock_cont IS INITIAL.
IF sy-batch NE 'X'.
*CREATE THE OBJECT FOR DOCKING CONTAINER
CREATE OBJECT g_dock_cont
EXPORTING
side = cl_gui_docking_container=>dock_at_top
extension = 300.
ENDIF.
*CREATE THE OBJECT FOR ALV GRID
CREATE OBJECT g_alvgrid
EXPORTING i_parent = g_dock_cont.
wa_layout-grid_title =
'Materials with Data'.
ENDIF.
IF NOT I_DETAIL[] IS INITIAL.
CALL METHOD g_alvgrid->set_table_for_first_display
EXPORTING
IS_VARIANT = WA_VARIANT_STX
IS_LAYOUT = wa_layout
CHANGING
it_outtab = I_DETAIL
IT_FIELDCATALOG = LIT_FIELDCATALOG[]
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
others = 4
IF sy-subrc <> 0.
ENDIF.
ENDIF.
*MATERIALS WITHOUT DATA
IF g_dock_cont1 IS INITIAL.
IF sy-batch NE 'X'.
*CREATE THE OBJECT FOR DOCKING CONTAINER
CREATE OBJECT g_dock_cont1
EXPORTING
side = cl_gui_docking_container=>dock_at_bottom
extension = 300.
ENDIF.
*CREATE THE OBJECT FOR ALV GRID
CREATE OBJECT g_alvgrid1
EXPORTING i_parent = g_dock_cont1.
wa_layout1-grid_title =
'Materials without Data'.
ENDIF.
IF NOT I_MARA[] IS INITIAL.
CALL METHOD g_alvgrid1->set_table_for_first_display
EXPORTING
IS_LAYOUT = wa_layout1
CHANGING
it_outtab = I_MARA
IT_FIELDCATALOG = i_fieldcat[]
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
others = 4
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDFORM. " create_objects
Regards,
Viji.Hi,
What i was saying is that you need to code again for background mode of execution.
AT END OF SELECTION.
IF SY-BATCH EQ 'X'.
PERFORM DISPLAY1.
PERFORM DISPLAY2.
In DISPLAY1 use REUSE_ALV_LIST_DISPLAY to display data from outtab1.
In DISPLAY2 use REUSE_ALV_LIST_DISPLAY to display data from outtab2.
For example : execute this report in background mode.this will not execute in online mode.
After execution you will get two spools one for KNA1 and one for LFA1 data. Spool can be controlled via IS_PRINT structure.
report zrbackground.
data gt_lfa1 type standard table of lfa1.
data gt_kna1 type standard table of kna1.
start-of-selection.
select * from lfa1 into table gt_lfa1 up to 10 rows.
select * from kna1 into table gt_kna1 up to 20 rows.
end-of-selection.
if sy-batch eq 'X'.
perform display_lfa1.
perform display_kna1.
endif.
*& Form DISPLAY_LFA1
text
--> p1 text
<-- p2 text
form display_lfa1 .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
i_structure_name = 'LFA1'
tables
t_outtab = gt_lfa1
exceptions
program_error = 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.
endform. " DISPLAY_LFA1
*& Form DISPLAY_KNA1
text
--> p1 text
<-- p2 text
form display_kna1 .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
i_structure_name = 'KNA1'
tables
t_outtab = gt_kna1
exceptions
program_error = 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.
endform. " DISPLAY_KNA1
Please let me know if its not clear or you need more info.
Thanks,
Abhishek
Edited by: abhishek sinha on May 8, 2009 7:42 PM
Edited by: abhishek sinha on May 8, 2009 8:45 PM -
PDS Creation with Object Dependency
Hello Gurus,
I´ve written a function to run BAPI_PDSSRVAPS_SAVEMULTI in order to create PDS with object dependency (Super BOM). The PDS created by my function looks good in CURTO_SIMU, but it is not respecting the characteristic dependency during PPDS Heuristic. If I take a PDS generated in ECC with the exact same attributes, the heuristics explodes the components correctly. When I run the getlist bapi, it shows both ECC created and function created with all tables (pds_header, pds_component,) filled with the same content. Though, one PDS works and the other doesnt. I am clueless.
thank you a lot.
Cheers
RafaelMainly due locking issues. Added some logic to wait.
-
Delete Duplicates from internal table with object references
Hi
How can I delete duplicates from an internal table in ABAP OO based on the value of one of the attributes?
I have created a method, with the following code:
LOOP AT me->business_document_lines INTO l_add_line.
CREATE OBJECT ot_line_owner
EXPORTING
i_user = l_add_line->add_line_data-line_owner
i_busdoc = me->business_document_id.
APPEND ot_line_owner TO e_line_owners.
ENDLOOP.
e_line_owners are defined as a table containing only object references.
One of the attribute of the object in the table is called USER. And I would like to do a "delete ADJACENT DUPLICATES FROM e_line_owners", based on that attribute.
How can do this?
Regards,
Morten NielsenHello Morten
Assuming that the instance attribute is <b>public </b>you could try to use the following coding:
SORT e_line_owners BY table_line->user.
DELETE ADJACENT DUPLICATES FROM e_line_owners
COMPARING table_line->user.
However, I am not really sure (cannot test myself) whether <b>TABLE_LINE</b> can be used together with SORT and DELETE.
Alternative solution:
DATA:
ld_idx TYPE sy-tabix.
LOOP AT e_line_owners INTO ls_line.
ld_idx = syst-tabix + 1.
LOOP AT e_line_owners TRANSPORTING NO FIELDS FROM ld_idx
WHERE ( table_line->user = ls_line->user ).
DELETE e_line_owners INDEX syst-tabix.
ENDLOOP.
ENDLOOP.
Regards
Uwe -
Version 4 Error: Expected Container, found Object Reference
We're in the process of upgrading our sequences from 3.5 to
4.0 and for the most part, everything is seamless. However, there is one situation I’ve found
that throws a RTE in 4.0 but works fine in 3.5.
When calling SetPropertyObject on an object reference, the following
error is thrown:
Parameter 'newValue': Expected Container, found Object Reference.
-17308; Specified value does not have the expected type.
Attached is a sequence snippet illustrating this
behavior. The last step should assign
the variable in Parameters with the name in TempStr (“Fred” in this example) to
the first element in the TraceObjRefs array (an array of object references).
What is really confounding is that this works as expected in
3.5. Any insight as to what changed or
what’s the best way to work around this?
Attachments:
AliasBreak35.seq 46 KBWe are seeing something similar in TS 4.1.
We have a container with subproperties which are also containers (of the same type actually). Technically, this is an array, we are using the container to be able to address by name. When I extract one of the sub-properties either by GetPropertyObject or by GetNthSubproperty and then try to assign it to a container of the same type, I get the error "Expected container, found object reference".
I attached a sequence with some experiments, using the NI_Limits type and found a solution: the Evaluate method seems to actually copy the values from the source container to the target; but only when it is not called as "PropertyObject.Evaluate()" but stand alone.
But I did not quite understand the mechanics of the aliases. In the sequence, I create an alias, as indicated in the previous posts. Then I can apparently not change that alias again. I used the "Data" member in the NI_Limits container to differentiate between the individual containers.
After the second SetPropertyObject, the value stays the same as before. But when I then change the value in one of the source objects, the other changes with it.
So I am not quite clear what an alias actually is and what its effects are.
Regards
Peter
Attachments:
TestObjRef.seq 6 KB -
Can't figure out why colors don't totally change when you select type with curser? It looks like it has by looking at it, but when you highlight the area after the old color is still there. It happens with objects to. Driving me NUTZ. Help!
Select the text, and open the Appearance palette (Come on guys, text highlight is irrelevant, it happens to objects too says the OP), and see what's listed there. For a simple text object, there should only be a line item "Type", followed by "Characters", and when double-clicked the Characters line item expands to tell you the stroke and fill color. For a basic object, there should be a fill and/or stroke.
What happens sometimes, is that you end up adding extra strokes/fills to objects or text, and the appearance palette is where that will be noted. Especially when you are dealing with groups, and/or picking up a color with the eyedropper, you may inadvertently be adding a fill or stroke on top of something. You can drag those unwanted thingies from the Appearance palette into its own little trash can. -
Generate error list with object detail
Dear All,
I have two way (multimaster ) Replication but due to some reason it generated many errors during replicate data so to resolve errors, I want to generate error list (Report) with object details instead viewing them one by one. please guide
ThanksWhat do you mean with generate error list (Report) with object details ?
You can get all the errors from DEFERROR view.
There are columns DEFERRED_TRAN_ID and CALLNO.
You can join this columns with DEFCALL (DEFERRED_TRAN_ID and CALLNO).
Joining this two views will provide information about the objects and transaction type involved in the call.
DEFCALL.PACKAGENAME contains the reference to the table_name.
DEFCALL.PROCNAME contains information about the transaction type.
Example:
select e.deferred_tran_id,
e.callno,
e.origin_tran_db,
c.packagename,
c.procname
from deferror e, defcall c
where e.deferred_tran_id=c.deferred_tran_id
and e.callno=c.callno(below are the links to the 10gR2 docs containing information about DEFERROR and DEFCALL views. If your database is different version, than search http://tahiti.oracle.com for version specific documentation)
DEFERROR
http://download.oracle.com/docs/cd/B19306_01/server.102/b14227/rardeftranviews.htm#sthref2599
DEFCALL
http://download.oracle.com/docs/cd/B19306_01/server.102/b14227/rardeftranviews.htm#sthref2595
Cheers!
Message was edited by:
tekicora -
Filling a tree with the result of calls to a document/wrapped soap1.1 webservice
Hi,
I'm having trouble with filling a tree with the result to
calls to a document/wrapped soap 1.1 webservice.
I first declared the webservice in the mxml file as it was in
the examples and tried to call it with no luck. The fault was it
wasn't finding the document type for the call's unique parameter. I
figured out the solution to this, I added a method in the
webservice declaration having a single element named the same as
the required parameter, and inside it, the "actual" parameters,
bound to variables defined elsewhere.
The reason for wanting the tree to be filled programatically,
is the potential whole contents of the tree can be about 1.000.000
nodes. Huge.
quote:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" applicationComplete="initM()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.controls.treeClasses.TreeListData;
[Bindable] public var aParentId:String = null;
[Bindable] public var aLevel:Number = 0;
]]>
</mx:Script>
<mx:WebService id="lws" wsdl="
http://myServer/myContext/myPortURI?WSDL"
useProxy="false" makeObjectsBindable="true">
<mx:operation name="getNodes" resultFormat="object">
<mx:request>
<getNodesElement>
<parentId>{aParentId}</parentId>
<level>{aLevel}</level>
</getNodesElement>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:Tree x="0" y="0" width="326" height="100%"
id="layoutTree" enabled="true" labelField="nodeName">
<mx:dataProvider>{lws.getNodes.lastResult}</mx:dataProvider>
</mx:Tree>
<mx:Script>
<![CDATA[
public function initM():void {
lws.getNodes.send();
return;
]]>
</mx:Script>
</mx:Application>
So, here's the problem:
1.- In both Java2 and .NET, I've been able to produce sets of
proxy classes from the webservice wsdl, these include a proxy class
for the service port and a set of classes for both the call
parameter types and the call result types. I have not found yet a
way to do the same with flex2, so I wonder, can I produce the
required classes for dealing with such a webservice in an automatic
way with flex2?
2.- The second problem, is I haven't found a way to make a
webservice call in sychronous mode, and I can't seem to find a way
to set the parameters for the subsequent calls to the webservice.
Is there a way to make a call to such webservice programatically? I
mean, I've been able to make the first call I need programatically,
but what if I end up making 2 or more simultaneous calls? I can't
rely on setting the `variables defined elsewhere` before each call,
because of possible concurrency issues (calls will be long after
the 2nd level of the tree), so I wonder if there's a way to make a
call to such webservice (document/wrapped, soap1.1) passing it the
parameters programatically. If so, can I just put the parameters or
do I have to produce the complete enclosure? If I have to produce
also the enclosure, any hint on how to do so? I will need to pass
different parentId, level pairs probably triggered by tree events.
3.- the other problem, finally, is Tree looks quite different
to me than the Java2 one. In java2, I can easily produce a changing
model for the tree wich will even handle the calls to the
webservice as needed (triggered by the tree itself), making it a
`live model`. If there is a way to produce the same behaviour in
flex2, I haven't found it yet. Sure, I've only downloaded the trial
version yesterday, so I may have overlooked some docs or blogs.
Any hints would be appreciated, specially on programatically
modifying the tree, and making calls to the webservice changing the
parameters every time.I would re-post to the Flex Data Services forum.
-
Hi
I created object library containing some Objects and property classes.While implementation of the objects(using smart class) and property class (using property palette) to canvas or LOV,some properties not appeared to be inherited after applying smart class or property class.
These are specially BG color and FG color.But it is working fine with some object and not working with some others.
Can any body help me in figure out the problem.
I am using Form builder 10g.
Thanks in advance
Mandeepi did not mean the ruler and the grid.
There is a "forms property" called Coordinate System.
You find it under the physical node in the property palette of your form module.
What is the Coordinate System and important, what is the Real unit? -
Database SID contains user objects belonging to system user dbo
Hi,
I started a Java AddIn installation for NetWeaver 2004.
ABAP stack is on SP12.
Win2003 Server SP2
MS SQL 2005
SAPInst is stopping with error <b>Database <SID> contains user objects belonging to system user dbo</b>.
I can't find anything in the log files or in SMP that is guiding me into the right direction...
Any hints??
Thx,
MichaelHi Michael,
You can use the stored procedure sp_check_sap_login to check and verify your db-logins as per note # 610640 .
Afterwards you can use the script "user_change.sql" which is included in the attachment of note # 551915 to change the objects from 'dbo' to 'sid'.
This may help narrow down the cause at least hopefully.
Regards, Mark
Maybe you are looking for
-
Hi Frnds, I'm working on ODI 10g. JDK - 1.6 Version. I downloaded Sqljdbc4 jar file and placed it in Oracledi\drivers And, i was successfully able to connect to ms sql server 2000 DB i.e. able to insert data server with In definition tab - i gave dat
-
Is there a way to open photoshop cs6 in 32-bit mode on a windows 7 64-bit system.
I was wondering if there is a way to open photoshop cs6 in 32-bit mode on a windows 7 64-bit system, because photoshop won't recognize the pen pressure on my graphics tablet (yiynova msp19u) I read that some users got it to work in 32-bit mode on mac
-
ITunes 14.1.1 won't open.
I am running Lion on my macbook and keep getting the error "The iTunes application could not be open. An unknown error occurred (13005)." I have my itunes library on an external hard drive. I frequently sync my iphone along with syncing my photos in
-
How can I replace my iphone?
I got my iphone 5 in December 26 so it's still under the 1 year warranty. My power button stopped working and I'm thinking of getting my phone replaced. I'm just wondering how will they re connect it to my server provider? And will it cost extra?
-
Hello! I wish to know how to disable all menus and toolbars for using Acrobat X as well as right click of the mouse. I embed a pdf and have a print button associated with the menu of the web page. Any help would be very appreciated. Regards Ian