Hi All,
Everytime I try to set the key, failed but its working on other MAS Version (Sage 100 Standard ERP 2015 - Version 5.20.3 - Providex)
retVAL = oIM_TE.nSelectNewBatch(BatchNo, "N", "Created by Auto Import") '--> Good
TransactionType = "6"
retVAL = oIM_TE.nSetValue("TransactionType$", TransactionType) '--> Good
retVAL = oIM_TE.nGetNextEntryNo(NextEntryNo) '--> Good
retVAL = oIM_TE.nSetKeyValue("TransactionType$", TransactionType.ToString()) '--> Good
retVAL = oIM_TE.nSetKeyValue("EntryNo$", NextEntryNo.ToString()) '--> Good
retVAL = oIM_TE.nSetKey() 'This Line is failing. - it created the record and return 0
Error '<<== sLastErrorMsg = "Missing or invalid Header"; sLastErrorNum = "CI_LineEntry_Header"
if I keep going I can add a new line but when I tried to save (retVAL = oIM_TE.nWrite()) it I get "its not Editable"
any thoughts!
Thanks in advanced