cancel
Showing results for 
Search instead for 
Did you mean: 

Text in Activity

Former Member
0 Kudos

Hi,

I am trying to create an activity using BAPI BAPI_ACTIVITYCRM_CREATEMULTI. Am successfully able to create the activity.

There is an internal table TEXT, which is used to handle the text like note, preparations....

I have handled this internal table, but even though the activity is successfully created, am not able to see the text in the NOTES.

Parameters like tdid, tdspras,.... has been handled properly. But there is no parameter for TDOBJECT in the standard structure defined.

Do i need to handle this TDOBJECT parameter to create the text.

Can anyone suggest how to hanlde TDOBJECT parameter or else how to handle this TEXT table.

Thanks & Regards,

Karthik.

Accepted Solutions (1)

Accepted Solutions (1)

Wolfgang_Mayer
Active Participant
0 Kudos

Hi,

TDOBJECT would be CRM_ORDERH for activities, however, it's not necessary to set it.

Have you tried to set the change flags in table TEXTX?

Take a look at the below attached coding.

Regards

Wolfgang

-


  • Text

ls_text-ref_handle = '1'.

ls_text-ref_kind = 'A'.

ls_text-tdid = 'Z001'.

ls_text-tdspras = 'D'

ls_text-tdformat = '*'.

ls_text-tdline = 'Text'.

ls_text-mode = 'A'.

APPEND ls_text TO lt_text.

  • TextX

CLEAR: lt_textx, ls_textx.

ls_textx-ref_handle = true.

ls_textx-ref_kind = true.

ls_textx-tdid = true.

ls_textx-tdspras = true.

ls_textx-tdformat = true.

ls_textx-tdline = true.

ls_textx-mode = true.

APPEND ls_textx TO lt_textx.

Former Member
0 Kudos

Hi,

Thanks for your reply, i had solved it, the problem was with the guid, when i dont handle to ref_guid, it throws me Authorization error. I corrected it and now am able to see the notes in the activity created.

Regards,

Karthik.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Karthik,

You have resolved the text determination problem, and am in the midst of setting it up for activities.

Have not worked with text termination, so please help on a step by step process.

Need to create a note in an activity, but should not be editable once safe, another note can be added if in change mode, so a log of all notes is required from one view.

Please help if you can, running CRM version 4 for add-on service utilities.

Kind Regards

Ahmed

gerd_hotz
Contributor
0 Kudos

Hi experts,

does anybody know how to create a note to an acitvity ?

It is possible to create an activity with BAPI_ACTIVITYCRM_CREATEMULTI,

but I am not able to create an note:

Text

ls_text-ref_handle = '1'.

ls_text-ref_kind = 'A'.

ls_text-tdid = 'Z001'.

ls_text-tdspras = 'D'

ls_text-tdformat = '*'.

ls_text-tdline = 'Text'.

ls_text-mode = 'A'.

APPEND ls_text TO lt_text.

  • TextX

CLEAR: lt_textx, ls_textx.

ls_textx-ref_handle = true.

ls_textx-ref_kind = true.

ls_textx-tdid = true.

ls_textx-tdspras = true.

ls_textx-tdformat = true.

ls_textx-tdline = true.

ls_textx-mode = true.

APPEND ls_textx TO lt_textx.

I have to set the ref_guid of the ls_text but which ref_guid ?

The ref_guid of the activity ? a new ref_guid ?

Thanks Gerd

Former Member
0 Kudos

Hi Karthik,

You have resolved the text determination problem, and am in the midst of setting it up for activities.

Have not worked with text termination, so please help on a step by step process.

Need to create a note in an activity, but should not be editable once safe, another note can be added if in change mode, so a log of all notes is required from one view.

Please help if you can, running CRM version 4 for add-on service utilities.

Kind Regards

Ahmed