Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Business Object Repository

Former Member
0 Kudos

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,

10 REPLIES 10

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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,

0 Kudos

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

0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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.