How Can I create an IMAGE object from another BO
Vincze Árpád
Arpad.Vincze at itelligence.hu
Fri Oct 25 07:50:13 EDT 2002
Hello,
The program part - which gives me the idea -
( start image based workflow ) uses=20
include <cntain>
but as I said i am in another business object and=20
include <object> ... includes <cntn01>
is automatically created, so " I am fearing" to modify it to cntain.
( never the less it seems to me a "dirty" solution)
The problem origin is swc_object type (it is my suspcious )
at the case of cntn01 (object) the swc_object LIKE obj_record
and at the case cntain swc_object like swotobjid.
I am working on ...
Thanks Tim
Regards=20
Arpad
Ps:
I am in SAP 4.0C ...
-----Original Message-----
From: Phillips, Tim [mailto:Tim.Phillips at ser.com]
Sent: Friday, October 25, 2002 1:23 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: How Can I create an IMAGE object from another BO
Hi Vince,
Your code looks OK at first glance.
I'd probably change 'INCLUDE <object>' to 'INCLUDE <CNTN01>' - see if =
that
helps.
Is there a long text for error 1001? - you don't say what message class =
that
is.
If you're still having problems, try doing a debug of the macro if your
level of SAP permits it (later levels don't), in which case you could =
try
running FM 'SWC_OBJECT_CREATE' in test mode through SE37 using your =
values -
you can debug here too.
You might also check that BO 'IMAGE', and any subtypes, are fully
implemented/generated and match up with your code.
Let me know how you get on.
Regards,
Tim
-----Original Message-----
From: Vincze =C1rp=E1d [mailto:Arpad.Vincze at itelligence.hu]
Sent: 25 October 2002 11:56
To: SAP-WUG at MITVMA.MIT.EDU
Subject: How Can I create an IMAGE object from another BO
Hello,
The following program part doesnt work :
INCLUDE <object>.
data: obj TYPE swc_object.
DATA:
BEGIN OF KEY,
IMAGELINKARCHIVEID LIKE TOAV0-ARCHIV_ID,
ARCHIVEDOCID LIKE TOAV0-ARC_DOC_ID,
END OF KEY.
*
KEY-ARCHIVEDOCID =3D ...
KEY-IMAGELINKARCHIVEID =3D ...
=20
swc_create_object obj 'IMAGE' key.
* create object doesnt work !!!!!=20
* why !? it sends error 1001
swc_set_element container 'IMAGE' obj.
Any hints?!
regards:
Arpad
=20
Vincze =C1rp=E1d
itelligence Hungary Kft.
H-1138 Budapest, V=E1ci =FAt 141
Tel.: (+36 1) 452 3822
Fax: (+36 1) 452 3839
Mobil: (+36 20) 9 533 578
arpad.vincze at itelligence.hu
More information about the SAP-WUG
mailing list