cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI for Trade promotion create in CRM

Former Member
0 Kudos

Hi All,

I have to create a Trade promotion(tcode - CRM_MKTPL).

Please let me know if any BAPI or any useful function modules exists for Create or Change of the same

Any suggestion or inputs on this will be helpful

Thanks,

Anoop

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Anoop,

Thanks I made TSPEND_ASSIGN_CREATE working but unfortunately this is not what im after. The volumes/Trade spends tab is divided into two sections. The class that you gave me works for the first section but Im looking at the possibilty on how to upload or retrieve the information below that.

I would really appreacite if you can help

Regards,

Elynor

Former Member
0 Kudos

Yes that is working . I am able to create Trade promotion with this class.

I want to trigger the <b>Products</b> tab also, and populate some data to that.Can you please suggest some methods that will be useful for the same .

Thanks in advance

Anoop

Former Member
0 Kudos

Hi Anoop,

I have the same requirement (to upload Deals), would you be able to post some sample codes?

Your help will be highly appreciated.

Thanks in advance!

Elynor

Former Member
0 Kudos

Hi Elynor,

You can create the deals using the class CL_CRM_MKTPL_APPL_BASE.

This is the class which can be used as unofficial API for the Marketing Planner operations.

Call the methods get_instance,and element_create with object type as deal.

Dont forget to call save and commit methods after this.

Then depending upon your functionality there are lot of methods availiable in this class.

Have a look at this

Thanks,

Anoop

Former Member
0 Kudos

Hi Anoop,

Thank you so much for your input. That was very helpful. I was able to create the Deals successfully

I have one problem though, I also need to upload the product & volumes/tradespends. With the product I used method "prod_assign_create" which is ok, but with the volume/tradespends, i have no idea.

Would you know if there's any related class/method or BAPI that may upload the volume/tradespends within deals/trade promotion?

Your help will be higly appreciated.

Regards,

Elynor

Former Member
0 Kudos

Hi,

You can use the method TSPEND_ASSIGN_CREATE for that

Anoop

Former Member
0 Kudos

Hi Anoop,

I have 2 questions:

  • I am using the method mentioned by you to create Trade spend but some how the trade spend values are not getting saved in the Trade promotion ?

  • Can you say me how to create the planning data ?

Thanks,

Sanjay

Former Member
0 Kudos

Hi Anoop,

you should use class CL_CRM_MKTPL_APPL_BASE to work with marketing objects such as Trade Promotions.

1. Call method CL_CRM_MKTPL_APPL_BASE=>GET_INSTANCE to get an instance of this class.

2. Use method CL_CRM_MKTPL_APPL_BASE->ELEMENT_CREATE to create your marketing object (e.g. a Trade Promotion).

Best Regards, Jens

Former Member
0 Kudos

I don't think any such Bapi is available...

You can allways create one in online and run through the save process in debugging. Maybe, if you're lucky, you might find a single function module to create the promotion.

Michael.

Former Member
0 Kudos

Hello anoop,

Can you be more specific.

You can directly create a trade promotion using create new button in Crm_mktpl.

Regards

Rajanikanth

Former Member
0 Kudos

I want to create it from my program and not online.

that's why need a BAPI

Former Member
0 Kudos

Hello,

Maybe this can be helpful for you :

Regards,

Frédéric