cancel
Showing results for 
Search instead for 
Did you mean: 

Create an Activities

Former Member
0 Kudos
125

Hi All

I am trying to create a new Activity with the BAPI u201CBAPI_ACTIVITYCRM_CREATEMULTIu201D, does anyone knows which are the required parameters?.

Does the BAPI create the GUID?

If it does not create the GUID, how can I create it?

Regards

Rob

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

please see note 935047 if you want to generate GUID.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Hena, Venkat

Thank you

Regards

Rob

jothivenkatesh_m
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

You can actually create your own guid by calling FM GUID_CREATE which will create the GUID for you. But it is not advisable to call this FM, because it might lead to inconsistency mainly when dealing with this type of scenarios.

Since you are using FM BAPI_ACTIVITYCRM_CREATEMULTI, place from where the call is given to this FM, guid would have already got created.

For e.g, in one instance this FM is called from a class, CL_CRM_FASTENTRY_ACTIVITY which has a method CREATE_ACTIVITY. In this method before function call is given to BAPI_ACTIVITYCRM_CREATEMULTI FM, all the guids are filled and sent via the parameters.

The above example is a common scenario, since i donot know your exact scenario, i am recommending that the GUID to be created from the code logic present previously.

If you are using this FM and there is a situation where you need to fill up the GUID, you can use GUID_CREATE FM, as i have mentioned in the beginning of my reply.

Regards,

Venkat