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

How to COUNT target group in ABAP code


I wold like to update TargetGroup with job. But the problem is that after job execution I have to make COUNT on profile set to take new business partners to this target group.

Do you know how to write ABAP code to make COUNT and SAVE?

or maybe you know how to do it other way?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Nov 22, 2007 at 05:56 PM

    Hi Radek,

    I am not I got exactly what you are looking for. However I will try to answer your question.

    Whit in your job you can try to the following:

    1. Read the number of BP in the Target Group (or profile set) with FM <b>CRM_MKTTG_TG_READ (exporting parameter EV_NO_BP)</b>

    2. Do your update

    3. Call again <b>CRM_MKTTG_TG_READ (exporting parameter EV_NO_BP)</b>

    4. Simply subtract the result from step 1 by step 3 ( 1 - 3 = difference in number of BP)

    Should you need more details, please reply with the exact specification details.


    Alain Gauthier

    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.