cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI _ ACTIVITYCRM _ CREATEMULTI

Former Member
0 Kudos

Dear Experts,

i want to use BAPI _ ACTIVITYCRM _ CREATEMULTI function module for creation of Activity for VistiPlan. Wht are the necessary input fields for this bapi,

plz help me,

Thq

eswar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Reddy,

Actually, i could not get what you told in your last reply. Can you be more clear ?

Can you post the error which you are getting ?

Thanks & Regards,

Vinay

Former Member
0 Kudos

hi animesh,

i m working for Pharma proj, i want a standard bapi for creating the Activities and bapi for getting all activities from CRM, i m using the MI 7.1, it needs standard bapi wrappers only, now i want to create the activity for doctor calls, chemist calls.

help me for finding the standard interfaces for creating and getting the activities, and wht r the necessary input fields for that bapi's.

thq

eswar

animesh_kumar2
Active Participant
0 Kudos

Hi Eswar,

To create an activity with this Bapi you only need to provide the process type in header table and "X" in process type field of HeaderX table. This will create an activity but with error. Now you need to check out what are values you need to provide while creating the activity. Like partner related data you need to provide in Partner table and so on. Check the FM documentation it will help you.

Don't Forgot to call "BAPI_Transaction_commit" after call of above BAPI.

Regards,

Animesh

Former Member
0 Kudos

hi kumar,

s, now i m not getting that error, but unable to create Activity, i want to give the input fields in Header(process_type=0001, catagory-001, description, posting date, createdby).

but it is giving message in return table : A log has been generated for single document,

plz help me wht is the next process and is there any wrong in my inputs

eswar

Former Member
0 Kudos

keep a break point at BAPI_ACTIVITYCRM_CREATEMULTI in the program CRM_CALL_ACTIVITY_INTERFACE line no (490) and execute the progam

selection screen

Transaction Type 0000

Transaction Descr. test activity

Posting Date 11/07/2007

Category 001

Priority 5

Direction 0

Goal

nodate : radio button

Start Date 11/07/2007 02:27:16

End Date 11/07/2007 03:27:16

Time Zone PST

see how the BAPI is filled .

Activity Partner Function 00000009

Owner <i> userid </i> Function 00000022

animesh_kumar2
Active Participant
0 Kudos

Hi,

If the message type is S it means the activity has been created. After calling BAPI Transaction Commit you will be able to see the created activity through CRMD_ORDER Txn.

Regards,

Animesh

Former Member
0 Kudos

hi animesh,

sorry for the late response, by using interface i am able to create the business acitivty and though CRMD_ORDER Txn i m able to see that transaction code,

but i m unable to create through this bapi BAPI_ACTIVITYCRM_CREATEMULTI, i m getting message type S, but it is giving msg : A log has been generated for a single document in the return table . What is that meaning, activity is create or not? how can i find it is created? i didnt found any generated trasaction code in the CRMD_ORDER also.

plz give me any information for completing this Activity Creation.

Regards

Eswar

animesh_kumar2
Active Participant
0 Kudos

Hi Eswar,

Did you called CRM_ORDER_SAVE / BAI_TRANSACTION_COMMIT after calling the activity BAPI ??

Message Type S means a document is created you can see it in created_process.

Now you need to save the created document . after this only you will be able to see it in CRMD_ORDER Transaction.

Regards,

Animesh

Former Member
0 Kudos

hi animesh,

i have used this bapi for commit( CRM_ORDER_SAVE / BAI_TRANSACTION_COMMIT). but i m unable to create Acitivity, i dont know what is prob, i m follwing steps what exactly wht u have said, anyway i l try to create activity, if any prob i l take ur help.

Can u say the wht is the Exact interface(BAPI) for getting the all the list of Activites. BAPI_ACTIVITYCRM_GETDETAILMULTI is the right bapi?? . plz help me to find the list of activities throgh bapi, if it is the right bapi wht r the necessary inputs to get the data.

Regards

eswar

animesh_kumar2
Active Participant
0 Kudos

"unable to create Acitivity :" Can you provide the code so that i can let you know the problem. Just try again with BAPI_ACTIVITYCRM_SAVE + BAPI_TRANSACTION_COMMIT..

Getting List of activities : you can try FM "CRM_SEARCH_BUSINESSACTIVITY".

Regards,

Animesh

Former Member
0 Kudos

Hi animesh,

That is the right bapi as u have sent what exactly i needed for getting the list of Activities , it is very helpful to me, still I AM TRYING TO CREATE THE ACTIVITY, i am unable to see after creating. i l send the details to uwht i m doing , check it once and tell me the prob wht i am doing, now i m trying to creating, i l send wht is the result.

Regards

eswar

Answers (1)

Answers (1)

animesh_kumar2
Active Participant
0 Kudos

Hi,

Have a look at program "CRM_CALL_ACTIVITY_INTERFACE" it will help you.

Regards,

Animesh

Former Member
0 Kudos

hi Animesh,

thq for u r Suggession, now i m an idea to create Acitivity, through transaction i m creating, but through bapi i m unable to create, it is giving PROGRAM ERROR.

plz give me any suggession.

thq