As you know the second parameter of the purchFormLetter.update method isn't used at all. No matter if you pass a packingslipId to the update method it isn't used and the packingslip is posted without a packingslipId. The second time you run your code the same day you will get this error.
You have to modify or extent the purchFormletter/purchFormletter_PackingSlip class to make sure the PurchParmTable.Num field is initialized properly with a packingslipId to avoid the problem.
Regards
Thomas
-----Oprindelig meddelelse-----
Fra: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] På vegne af gopala krishna
Sendt: 4. maj 2006 13:42
Til: axapta-knowledge-village@yahoogroups.com
Emne: [Axapta-Knowledge-Village] packing slip number error
hi,
i am trying to post the packing slip thru X++.
i am doing following.
purchFormLetter = PurchFormLetter::construct(DocumentStatus::PackingSlip);
purchFormLetter.update(purchTable,num,
purchFormLetter.transDate(SystemDateGet()),
PurchUpDate::All,AccountOrder::None,false,true);
but its not passing the num field.
when i run this code its giving error
packing slip no '' already used on 5/4/2006
plz help me
thanks,
Gopal
---------------------------------
Yahoo! India Answers: Share what you know. Learn something new. Click here
[Non-text portions of this message have been removed]
Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends.
Yahoo! Groups Links
Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends.
SPONSORED LINKS
Business finance course | Business to business finance | Small business finance |
Business finance consultant | Business finance magazine | Business finance schools |
YAHOO! GROUPS LINKS
- Visit your group "Axapta-Knowledge-Village" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.