I'm new at eConnect. My application needs to add some credit memos to GP. I wrote a C# test program and can post a credit memo but I'm having problems posting a distribution. I've written some code but I'm having problems assigning a a distribution to a array of distributions. I declare the array but when I try an assign a distribution to the array before assigning the array to the distribution array in the credit memo it gives me a syntax error saying the array is unassigned. below is the code. Any help would be appreciated.
creditmemotype.taPMTransactionInsert = creditmemo;
taPMDistribution_ItemsTaPMDistribution[] crdist;
taPMDistribution_ItemsTaPMDistribution apdist = new taPMDistribution_ItemsTaPMDistribution();
apdist.VCHRNMBR = "Test241";
apdist.VENDORID = "BIGSWOIA";
apdist.DISTTYPE = 1;
apdist.ACTNUMST = "23200";
apdist.CRDTAMNT = 100.00m;
apdist.DOCTYPE = 5;
crdist[0] = apdist;
creditmemotype.taPMDistribution_Items = crdist;
*This post is locked for comments
I have the same question (0)