Skip to Content
author's profile photo Former Member
Former Member

Call BAPI directly or use bus object types

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2006 at 01:29 PM

    Hi,

    Ue BAPI for your requiremnet as

    BAPI are RFC enabled FM so that external system can

    access BAPI.

    Regrads

    Amole

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 23, 2006 at 03:31 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.