cancel
Showing results for 
Search instead for 
Did you mean: 

Create business activity attachment from idoc

Former Member
0 Kudos

Hi,

Has anyone try creating business activity attachment using idoc type CRMXIF_ORDER_SAVE_M01 with message type CRMXIF_ORDER_SAVE_M?

I manage to post the idoc successfully but the attachment did not appear in tcode CRMD_BUS200016. Anyone know what happen?

There is a header E101CRMXIF_ATTACHMENT_LINK and item under segment E101CRMXIF_BUSTRANS_ITEM. Do I need to populate both segment?

What should be input in the URL field?

Regards,

BB

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Did you find the solution ?

Thanks to share

Regards,

Benoî

Former Member
0 Kudos

Hi,

After checking around we found out that the IDOC cannot attched the files. So we written a program to do the attachment. Use the method below to do it.

CALL METHOD cl_crm_documents=>create_with_file

EXPORTING

FILE_NAME = file_name

DIRECTORY = file_path

  • PROPERTIES =

  • PROPERTIES_ATTR =

BUSINESS_OBJECT = ls_bo

  • PARENT_FOLDER =

  • PACKAGE_ID =

IMPORTING

LOIO = loio

PHIO = phio

ERROR = ls_error

Regards,

BB

Former Member
0 Kudos

Hi,

It works but how can you define the name ? I can't find the attribute.

Thanks,

Benoit