cancel
Showing results for 
Search instead for 
Did you mean: 

How to COUNT target group in ABAP code

Former Member
0 Kudos

Hello,

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?

Regards

Radek

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

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.

Sincerely,

Alain Gauthier