04-22-2006 6:51 PM
Hello All,
I created a BOR and i want to set its attribute from an abap program. does anyone know how to do it? i need it ASAP.
thanks in advance,
04-22-2006 7:46 PM
Hi,
I am sure you would have created methods for the business object you have created. In the method you specify which ABAP function module you want to trigger.
Regards,
Ravi
Note : Please mark the helpful answers
04-23-2006 6:42 AM
Hi Amine,
Welcome to SDN.
You perform actions, such as create, update, or delete on the attributes by calling the methods of the object.
the methods of an object represent the actions you take with objects attributes.
You can refer to http://www.sapgenie.com/abap/bor.htm
This link shall answer your query.
Regards,
Tanveer.
Please mark helpful answers.
04-23-2006 2:16 PM
hello All,
thanks for your answers but it seems that i was not clear enough. i have created a BOR with all necessary methods and attributes. i would like to call the methods within this BOR from an ABAP program. can i have a code example to create an instance of BOR and to call its methods.
Thanks in advance,
04-23-2006 2:48 PM
May be this can help.
It has some code samples as well.
<a href="http://www.sapgenie.com/abap/bapi/example.htm">http://www.sapgenie.com/abap/bapi/example.htm</a>
<a href="http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html?track=NL-141&ad=489276">http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html?track=NL-141&ad=489276</a>
Hope this helps
Cheers
VJ
04-23-2006 4:35 PM
Hi,
Thank you for your answers but I want to trigger a business object from a ABAP program. Is there a way to do it.
Thanks in advance,
Mohammed Amine El Fekhar
04-23-2006 6:28 PM
Hi
Create the instance of the Business object in ur ABAP program.
Data: yobj type Ybo. "Ur Business Object Class
Create: yobj.
Now by using yobj->ymethod u can cll any method of this class.
04-24-2006 5:38 AM
Hi,
Check the following function module
SWA_CHECK_BOR_CONTAINER_DATA
SWA_CHECK_CONTAINER_MODIFY
SWA_CHECK_PD_CONTAINER_DATA
CCM_BOR_WRAP_CONTAINER_GET
CCM_BOR_WRAP_CONTAINER_SET
CCM_BOR_WRAP_CONT_GET_ELEMENT
CCM_BOR_WRAP_EXECUTE
CCM_BOR_WRAP_INTERFACE_GET
CCM_OP_BOR_CREATE_OBJECT
CCM_OP_BOR_GET_OBJECT_ANALYZE
CCM_OP_BOR_GET_PROPERTY
CCM_OP_BOR_GET_TABLE_PROPERTY
CRM_CIC_OP_BOR_CREATE_OBJECT
CRM_CIC_OP_BOR_CREATE_OBJ_REM
CRM_CIC_OP_BOR_GET_OBJECT_ANAL
CRM_CIC_OP_BOR_GET_PROPERTY
CRM_CIC_OP_BOR_GET_TABLE_PROPE
Function group
SWCD
FKKCFC
SWEI
Regards,
Sameena
04-24-2006 5:52 AM
Hi,
First of all , attributes of an BOR Object has to be set at the time of creation of this object and not once the object is already created.
If you want to get the same in ABAP program, You can use Object macros like SWC_GET_PROPERTY .
e.g. SWC_GET_PROPERTY <Object> <Attribute> <AttributeValue>
About you next question: what do you mean by triggering an object from ABAP program? Do you want to create an instance of an object?
If so, You can use macros like SWC_CREATE_OBJECT for the same.
Hope ths helps you to start off.
Regds,
Akshay
04-27-2006 5:08 PM
Thanks for your ansewrs but i want to set attribute in my BO would you plz give me code example who set attributes of a BO it is urgent
Thanks in advance
Amine
05-07-2007 6:19 AM
Hi Amine,
I am in need of such a functionality now. Were you able to find a solution for the same?
Thanks a lot in Advance for your help,
Vinod.