‎2007 Jul 11 12:49 PM
Hi,
I have an instance of a Business Object - with the value of Key Field '1' and one of the Virtual Attribute value as '100'. This has been created using the program1 by user 'user1'.
Now i want to retrieve the same instance by passing the Key Field as '1' by running some other program 'Program2' under user 'User2'.
Is it possible to get the instance of a business object like this. If yes, please let me know the detailed procedure.
Thanks in advance for your kind help and points are definitely awarded for each answer.
Regards,
Goutham.
P.S.: Please let me know if this is not the right forum for this.
‎2007 Jul 11 1:50 PM
Hi,
You can instantiate a business object with the key via SWO1, from here you can also debug teh instantiating, or debugging methods/virtual attributes.
Kind regards, Rob Dielemans
‎2007 Jul 11 12:54 PM
‎2007 Jul 11 1:50 PM
Hi,
You can instantiate a business object with the key via SWO1, from here you can also debug teh instantiating, or debugging methods/virtual attributes.
Kind regards, Rob Dielemans
‎2007 Jul 11 1:58 PM
Thanks Rob for the reply.
But my doubt is: if i have instantiated a business object with a Key Value in one program, Can i access the same instance by using the same key value.
If this is possible, Please let me know how this can be achieved.
Regards,
Goutham.
‎2007 Jul 11 2:29 PM
If you include <CNTN01> in your abap, you can create an object(instantiate BO) by using macro swc_create_object, using macros'swc_get_element for single attributes and swc_get_table for multiline you can retrieve all of the info.
Just check the program of a business object on how to use it, or view the macros in <CNTN01>, also search the workflow forum this has been answered before.
Kind regards, Rob Dielemans
Message was edited by:
Rob Dielemans