I am trying to convert a working VBScript that creates a new sales order into a PHP script. I cannot find any documentation or examples using PHP with BOI but I wanted to see if anyone here knew what might be going on. Everything in my script works perfectly, except for one very important line - and that's where I try to get the next available sales order number. I've tried everything I can think of but it always returns an empty string. The script looks like this: $oPVX = new COM("ProvideX.Script"); $oPVX- Init("\\\servername\sage\mas 200\Version45\MAS90\home"); $oSS = $oPVX- NewObject("SY_Session"); $user = 'user'; $pass = 'pass'; $r = $oSS- nSetUser($user,$pass); $company = 'ZZZ'; $r = $oSS- nSetCompany($company); $module = "S/O"; $date = "20140808"; $r = $oSS- nSetDate($module, $date); $r = $oSS- nSetModule($module); $r = $oSS- nSetProgram($oSS- nLookupTask("SO_SalesOrder_ui")); $o = $oPVX- NewObject("SO_SalesOrder_bus", $oSS); $orderNo = ""; $r = $o- nGetNextSalesOrderNo($orderNo); --- This is the line that is the problem $r = $o- nSetKeyValue('SalesOrderNo$', $orderNo); $r = $o- nSetKey(); $r = $o- nSetValue('ARDivisionNo$', '00'); $r = $o- nSetValue('CustomerNo$', '0000001'); $r = $o- oLines- nAddLine(); $r = $o- oLines- nSetValue('ItemCode$', '41000'); $r = $o- oLines- nSetValue('QuantityOrdered', 2); $r = $o- oLines- nWrite(); $r = $o- nWrite(); $r = $o- DropObject(); $o = null; The method returns a 1 like it is successful, but no value is placed into $orderNo. If I set $orderNo = "1234567" it works perfectly. No error is returned until I try to use the $orderNo variable in the next line, then I get a message: Error #12: File does not exist (or already exists) File: CU_Options Any ideas?
↧
Forum Post: BOI - New Sales Order
↧
Forum Post: Bank Reconciliation postings from General Ledger no in summary form
In all the years of working with SAGE 100 ERP and Bank Rec the one question most common is why isn't the entry a summary entry to bank rec instead of single line entries. Example a transaction journal entry either debits or credits post each line instead of as a summary. Standard answer is each item has to clear as if it was on the bank statement one check at a time. Now Banks are summarizing entries on statements and customers want the module to do the same. Exploring options......
↧
↧
Forum Post: Saving new record in Sales Order Detail after BM Options Selection
I'm running into an issue that seems to only happen after selecting BM Options for an Item. I have a UDF in SO Details that I would like to save a value. I am firing the script on Table-Post-Write. Here is the setValue part of the script: retVal = oBusObj.SetValue("UDF_COMPLETE_PART_NO$", strPartNo) msgBox("Return Value = " & retVal) ' Always returns True if retVal = 1 then retVal = oBusObj.Write() ' Never returns True msgBox("Return Value = " & retVal) end if The SetValue always returns a 1, so it's getting set but the value doesn't appear in the UDF when I move to the next line. If I go back and change the Quantity Ordered, it saves the value. Any feedback would be greatly appreciated.
↧
Forum Post: Adding User Names to Crystal Reports
I am trying to figure out how to add Sage User names to custom Crystal Reports that the users run in Sage.
↧
Forum Post: UDT Key Field - Auto Increment
On MAS 4.5.07 Is/Can the key field in a UDT be defined as auto-increment? Or is it my responsibility to code around the key for uniqueness? Many thanks
↧
↧
Forum Post: Error "Module P/R is not on file" when running Financial Reports
We have recently upgraded from MAS 90 v4.40 to Sage 100 ERP Standard 2013 PU5. When trying to Run General Ledger Reports Financial Reports, we are getting the error "Module P/R is not on file". We don't have Payroll installed and never have. How can we get around this?
↧
Forum Post: Crystal formula to change check amount to text with leading zeros and no decimal point but need it taken out 2 decimal places
I have the below formula to add leading zeros to check amount for length of 10 however it prints the decimal point and I need it to not print that. So for example if the check amount is 100.50 I need it to return 0000010050 and currently it is returning 0000100.50 replicatestring ("0",10-Length(cstr ({AP_CheckHistoryHeader.CheckAmt},2,"")))+cstr({AP_CheckHistoryHeader.CheckAmt},2,"")
↧
Forum Post: Handle to PO line from Receipt of Goods?
I'm trying to get a handle to the lines of a particular PO, from within a script attached to the PO Receipt of Goods' Pre-Write event. I was able to get the handle to the PO header service object using this: SET oPO = oBusObj.AsObject(oBusObj.GetChildHandle("PurchaseOrderNo")) But can't access the lines. Usually, I would do something like this: SET oLines = oSession.AsObject(oPO.Lines) But I'm getting an error saying that the PO object doesn't have that property. (I tried oPO.oLines too). If anyone can help me out with this, it would be greatly appreciated.
↧
Forum Post: ErrorMessage: Input string was not in a correct format
Hello, After I run a job it shows that all the inserts and updates were failed. Almost all the error message (which I could see in 'Transaction Errors') say that 'Input string was not in a correct format'. I want to know how can I get to know this error is related to which field? Thanks!
↧
↧
Forum Post: Sage100 Advanced Upgrade
Preparing from upgrade from Sage100 Advanced v.4.4 to Sage100 Advanced v.2014. Is there any potential problem in loading v.2014 on the same server in order to perform conversion testing and form design? Was not sure if I could have two versions of Sage100 Advanced running on same server? Thanks.
↧
Forum Post: Importing Customer Sales Item History
Hello Sage Community, Could anyone tell me which tables are used in populating the Customer / Item List? I am looking to import my prior systems history using VI but can’t figure out which specific tables need to be addressed. I have looked at AR_CustomerSalesHistory, CI_ItemTransactionHistory, IM_ItemHistoryByPeriod, SO_LastPurchaseHistory and SO_SalesHistory and can’t say for certain which combo will work the best. Any assistance would be greatly appreciated. Thanks
↧
Forum Post: RE: Importing Customer Sales Item History
Get use to some disappointment. You MIGHT not be able to import into the summary tables because of the two update fields that record who updated the file and at what time and date the record was updated. Now you can import into the ItemPriceCode file which holds the pricing by customer info.
↧
Forum Post: RE: Bank Reconciliation postings from General Ledger no in summary form
This can be closed thank you all for responding.
↧
↧
Forum Post: RE: Journal entry for Company A was posted to Company B?! Very Concerned
I disagree, especially when our General Journal registry report indicates the entry was posted for Company A. All of our companies have distinct colors. I just talked with a Sage support rep; I'm going to try to emulate the issue in the Test Companies. we suspect that it might be an enhancement we have; (Multi-company general journal)
↧
Forum Post: Can anyone help with an issue in an unsupported (mas200 4.2) version? Error #47 in POWUGA Line 1230
Error occurs when trying to update the variance register in Receipt of Invoice. Designer Doors ERROR INFORMATION LISTING Application Date: 07/31/2014 User: BLW / brenda System Date: 08/12/2014 / 12:12 pm Page: 1 Error #47: Substring reference out of string Program: POWUGA Line: 1230 General Information File: providex.ddf providex.ddf Channel: -552 Key: Last Channel Opened: 32752 Last Channel Accessed: 1 Application: Purchase Order (4.20) L/M Level: 4.20 Bytes Free: 30,186,199 Serial Num: 0660-001-1504634 Program Stack 09020E:\BEST\MAS90\po\POWUGA 02010E:\BEST\MAS90\soa\SWERRM 07072E:\BEST\MAS90\Home\lib\_winproc 08520E:\BEST\MAS90\soa\swerrm Open Files Chan File 0 SUNFISHbrenda(Terminal ID) 1 POL P/O Receipt/Inv Variance Sort File 2 PO1 Purchase Order Entry Header File 3 PO2 Purchase Order Entry Line Detail File 4 IMA I/M Product Line File 5 IMC I/M Warehouse Code File 20 PO0 P/O Parameters 33 SUNFISHbrenda1.002 34 SUNFISHbrenda1.010 35 SUNFISHbrenda1.011 36 WO3 Work Order Operation Detail 37 SUNFISHbrenda1.013 38 WOB Operation Code Master File 32753 GL_SourceJournal.M4T 32757 GL_SourceJournal.M4T 32758 SY_RoleSecurity.M4T 32759 SY_UserSecurity.M4T 32760 SY_Task.M4T 32761 SY0CTL System Control File 32762 SY_RoleSecurity.M4T 32763 SY_UserSecurity.M4T 32764 SY_User.M4T 32765 SY_Task.M4T 32766 providex.dde 32767 providex.ddf Public Programs Program Bytes SWPLIB 23,098 SWPLIB 23,098 SWGPIH 9,898 SYREPT 13,858 SYHEAD 22,017 SWTEXT 2,265 Designer Doors ERROR INFORMATION LISTING Application Date: 07/31/2014 User: BLW / brenda System Date: 08/12/2014 / 12:12 pm Page: 2 SY_FILE.PVC 13,870 SY_SESSION.PVC 5,373 SY_CONSTANT.PVC 20,700 SYCOMP 8,575 _MSGLIB 564 _WINPROC.SAD 9,473 SWPLIB 23,098 _WINPROC.TBL 14,800 _WINPROC 24,987 _WINPROC.DSP 31,484 _INFO 13,988 SY_PERSONALIZE.M4P 7,631 CM_CUSTOMIZER_SVC.PV 24,975 CM_NOMADSLINK 2,616 SWERRM 18,710 COLOR.DSP 2,516 SWCLIK 2,460 SWERRM 18,710 SYERRM 13,387 SWSQL2 26,177 SY_UI.PVC 18,690 SWPROG 917 SY_LOCALEINFO.PVC 15,633 SY_PRM 17,269 SWPROM 6,581 GLWPFA.PVC 6,835 SY_OPENOBJECT.PVC 2,115 SY_COMMON.PVC 6,941 SY_SERVICE.PVC 22,751 GL_FISCALYEAR_SVC.PV 4,002 GLWPFA 5,715 SYDEFN 6,503 SWFILE 14,249 IM_IM1EMBEDDEDIO 3,031 AP_VENDOREIO 1,596 AP_EMBEDDEDIO 10,774 GLWUVE 4,549 GLWURO 2,904 POWUGA 18,828 SY_EMBEDDEDIOCOMMON 14,744 SY_HOTKEY 3,127 SWDATE 5,484 SY_SECURITY.PVC 11,977 DATABASE.PVC 12,194 PVXDB.PVC 7,499 SY_SESSION.PVC 5,373 SY_PASSWORD.PVC 4,613 SY_CONSTANT.PVC 20,700 SY_SESSION_001.PVC 3,541 Designer Doors ERROR INFORMATION LISTING Application Date: 07/31/2014 User: BLW / brenda System Date: 08/12/2014 / 12:12 pm Page: 3 Global Flags %sys_ufid = 101 %sys_session = 1 %sys_original_fid$ = %system_32 = 1 %sys_windows_version = 502 %sys_yr2000_default = 30 %sys_system_option$ = YNNN %sys_winprt_default$ = *WINPRT*;\\DDFILE\Kyocera FS-3640(Accounting)
↧
Forum Post: RE: Saving new record in Sales Order Detail after BM Options Selection
I found the error and corrected it and now it works like a charm. Thanks for your insight Natasha!
↧
Forum Post: RE: Adding User Names to Crystal Reports
I want to know who the user is that printed the report.
↧
↧
Forum Post: Receipt of Goods and Invoice discrepancies
Hello, I am looking for a solution to a receiving issue. We have has instances of receipt of invoice transactions happening with the goods being received. We are trying to see if we can locate and correct any other inaccuracies that we may have in Sage 100. We are looking for a report to run that shows instances of either the invoice being received and not the goods or the goods being received and not the invoices. Any help or direction would be greatly appreciated. Thanks!
↧
Forum Post: RE: Can anyone help with an issue in an unsupported (mas200 4.2) version? Error #47 in POWUGA Line 1230. Error occurs when trying to update the variance register in Receipt of Invoice.
I'll channel my "inner Big Louie" here - What does your reseller say about this error?
↧
Forum Post: RE: Receipt of Goods and Invoice discrepancies
Check out the Purchases Clearing report under Purchase Order| Period End
↧