cancel
Showing results for 
Search instead for 
Did you mean: 

How can i save attachment file to sap?

Former Member
0 Kudos

Hi all experts,

i create add on file for  Sales Order. in my add on, i also include attachment Tab to let user to attach file from their local to sap database.

What object should i create for attach file to sap database?


Thanks

TONY

Accepted Solutions (0)

Answers (1)

Answers (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Then create a field using Type as db_Memo & Subtype as 'Link'. as follows:

if (Program.oMainSAPDI.CreateField("YourTableName" , "Path", "AttachmentPath1", SAPbobsCOM.BoFieldTypes.db_Memo, SAPbobsCOM.BoFldSubTypes.st_Link, 0, null, null, 2, null) == false)

{

}

It will automatically save the attached file.

Hope it Helps....

Thanks & Regards

Ankit Chauhan

Former Member
0 Kudos

Hi Ankit Chauhan,

I'm not clear about your answer. and i don't know what object for your answer too.

Sorry about that.

TONY

Former Member
0 Kudos

Hi sok kanha,

i got the same your problem , do you solve that ? could you help me plz...

Thanks

Hoang Nghia

,

pedro_magueija
Active Contributor
0 Kudos

Hi Tony,

This question has been answered recently. Have a look here.

Also note that Attachments for Documents object only work in SAP B1 9.0 onward.

Good luck.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn