Application Development and Automation 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: 
Read only

Call BAPI directly or use bus object types

Former Member
0 Likes
649

Hi,

A quick question.

At a customer, I need to create a targetgroup in a CRM system from an ABAP program

I found that there exists the standard business object type BUS1185, what in fact has several methods which call BAPI functions ( for example BAPI_TARGETGROUP_CREATE )

My question is know what is the best way to create the targetgroup, call the BAPI directly or use the object type ( via include <CNTN01> and the macro's SWC...

Thanks in advance for your advice

Erwin

Hi,

A quick question.

At a customer, I need to create a targetgroup in a CRM system from an ABAP program

I found that there exists the standard business object type BUS1185, what in fact has several methods which call BAPI functions ( for example BAPI_TARGETGROUP_CREATE )

My question is know what is the best way to create the targetgroup, call the BAPI directly or use the object type ( via include <CNTN01> and the macro's SWC...

Thanks in advance for your advice

Erwin

2 REPLIES 2
Read only

Former Member
0 Likes
549

Hi,

Ue BAPI for your requiremnet as

BAPI are RFC enabled FM so that external system can

access BAPI.

Regrads

Amole

Read only

Former Member
0 Likes
549

the only reason for using the BO macro's in regular ABAP programming, is if you want to emulate workflow behaviour, or if extra logic of the business object is needed (for instance if you have to know the content of several (virtual) attributes)). In the last case you also have to instantiate the BO.

Other than that, just use the BAPI.

Kind regards, Rob dielemans