Skip to Content

Add additional attachment in Document


I am using SAP B1 V9.0 PL07

I have GRPO and attached document using my add-on

I want to add additional Attachment in GRPO with my add-on

add document with same OPDN.AtcEntry /OATC.AbsEntry

let me know if any one tried to attach multiple documents

Nilesh Shah

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2014 at 09:11 PM


    Try the below:

    int _attachentry = 1; //put here the actual OPDN.AtcEntry
    Attachments2 oAttach = oCompany.GetBusinessObject (oAttachments2);
    if (oAttach.GetByKey (_attachentry) )
         oAttach.Lines.FileName = "filename";     //put here actual file name
         oAttach.Lines.FileExtension= ".ext";        //put here actual file extension
         oAttach.Lines.SourcePath= "path";        //put here actual file path

    I never tried it for an existing document though.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.