All:
I am creating activities as part of a data load.
One of the requirements is to assign text to a text type associated with an activity journal. However, I am struggling with this last piece of the puzzle.
I have lifted most of my code from the program "CRM_CALL_ACTIVITY_INTERFACE". Unfortunately, the demo program does not include parameters for passing text.
The snippet below is from my workup program.
Any ideas why the text is not making through the bapi?
data: text type standard table of BAPIBUS20001_TEXT_INS,
wa_text type BAPIBUS20001_TEXT_INS,
TEXTX type standard table of BAPIBUS20001_TEXT_INSX,
wa_TEXTX type BAPIBUS20001_TEXT_INSX.
TEXT
wa_text-ref_Guid = wa_header-GUID.
wa_text-tdid = '0200'.
wa_text-tdspras = 'E'.
wa_text-tdline = 'This is my test text.'.
wa_text-tdstyle = 'SYSTEM'.
wa_text-tdform = 'SYSTEM'.
wa_text-mode = 'I'. "guess
wa_text-tdformat = '*'.
append wa_text to text.
wa_textx-ref_guid = 'X'.
wa_textx-tdid = 'X'..
wa_textx-tdspras = 'X'.
wa_textx-tdline = 'X'.
wa_textX-tdstyle = 'X'.
wa_textX-tdform = 'X'.
wa_textx-mode = 'X'.
wa_textx-tdformat = 'X'.
append wa_textx to textx.
CALL FUNCTION 'BAPI_ACTIVITYCRM_CREATEMULTI'
TABLES
HEADER = header
HEADERX = headerx
PARTNER = partner
PARTNERX = partnerx
ORGANISATION =
ORGANISATIONX =
DATE =
DATEX =
TEXT = text
TEXTX = textx
REASON =
REASONX =
OUTCOME =
OUTCOMEX =
STATUS =
STATUSX =
LOCATION =
LOCATIONX =
INPUT_FIELDS =
CREATED_PROCESS = CREATEDPROCESS
RETURN = return
DOCUMENT_FLOW =
JOURNAL = journal
JOURNALX = journalx
MATERIAL = material
MATERIALX = materialx
EXTENSIONIN = lt_extensionin
Thanks in advance.