cancel
Showing results for 
Search instead for 
Did you mean: 

How to assign an attachment to a service call object?

shuqair_samer
Explorer
0 Kudos

Hi All,

Regarding the service call object:

SAPbobsCOM.ServiceCalls SC = (SAPbobsCOM.ServiceCalls)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oServiceCalls);

// ServiceCallID is the Service Call ID
// AttachmentKey is the key saved in attachment table ATC1
SC.GetByKey(Convert.ToInt32(ServiceCallID));
SC.AttachmentEntry = AttachmentKey;  // There is no AttachmentEntry property in service call object
int ErrCode = SC.Update();
The problem here that there is no AttachmentEntry property in service call object to assign the attachment. I know that there is a way to assign attachment to service call activity but I want to add attachment directly to service call document
Is there another way to implement that?
Your quick help is really appreciated
Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member185682
Active Contributor
0 Kudos

Hi Shuqair,


There is a property AttachmentEntry on the ServiceCalls. I use SAP B1 9.1 PL 12.

What is the version of your DI API?


Best regards,

Diego Lother


View Diego Lother's profile on LinkedIn

shuqair_samer
Explorer
0 Kudos

Hi LOTHER,

Thanks for your help

My SAP version is SAP B1 9.1 PL05

in which Patch level the property has been created?

Regards,

shuqair_samer
Explorer
0 Kudos

Thanks alot LOTHER

It works on the new PL

former_member185682
Active Contributor
0 Kudos

Hi Shuqair,

Sorry, I don't know exactly in which Patch Level this property was released.


Best regards,

Diego Lother


View Diego Lother's profile on LinkedIn

edy_simon
Active Contributor
0 Kudos

Hi Shuqair,

As a matter of fact, it is already available on your 9.1 PL5,

Note the DI Help version on Diego's screen grab, 910.150  is 9.1 PL 5.

Try to remove your DI API reference, clean your project and re-reference your DI API.

Regards
Edy

Answers (0)