Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Inserting Sales Order Serial Numbers with eConnect

(0) ShareShare
ReportReport
Posted on by

Hi there,

We have Dynamics GP 10 here (probably to upgrade next year) and we use eConnect to generate invoices on a nightly basis.  I have been asked to copy across serial numbers as well but have struggled to find good information on how to do this.  I think I need to use the taIVTransactionSerialInsert class but I don't know what all the fields in there are for (for example is IVDOCNBR the same as SOPNUMBE in SOP10100?).  Below is the bit of c# code to convert a SOPTransactionType object (containing the sales header and lines) to xml which is then passed through to a method called eConnect_EntryPoint.  I assume I do a similar thing for  taIVTransactionSerialInsert.  Does anyone have some more detailed info or examples for this?  Thanks!

 

eConnect = new eConnectType();

SOPTransactionType[] MySopTransactionType = { salesOrder };

eConnect.SOPTransactionType = MySopTransactionType;

serializer = new XmlSerializer(eConnect.GetType());

_memStream = new MemoryStream();

_Writer = new StreamWriter(_memStream);

serializer.Serialize(_Writer, eConnect);

_Writer.Close();

byte[] dato = _memStream.ToArray();

String _stringDoc = Encoding.ASCII.GetString(dato);

Cheers

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: Inserting Sales Order Serial Numbers with eConnect

    Both IVDOCTYP element should have same value.

  • Community Member Profile Picture
    on at
    RE: Inserting Sales Order Serial Numbers with eConnect

    Thanks Hansi, I am making progress.  I found that I need to also create a taIVTransactionHeaderInsert object.  Both have a field called IVDOCTYP which in the msdn site says 1 for adjustment and 2 for variance.  I assume this should be 1?  Also is it the same value (i.e. 1) in the taIVTransactionHeaderInsert object?  Thanks!

  • Community Member Profile Picture
    on at
    RE: Inserting Sales Order Serial Numbers with eConnect

    Yes I think you need to use “taIVTransactionSerialInsert” econnect node to insert serial info.

    Yes IVDOCNBR in “taIVTransactionSerialInsert” node is same as SOPNUMBE.

    Do let us know which other fields mapping details you would like to know.  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans