- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »
Re: Script to retrieve data in SO Lines
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-27-2012 08:57 AM
Hmmmm, this seems to work for me.
I created a UDF in the SO_SalesOrderDetail table called SalesAcctDesc (UDF_SalesAcctDesc$), and sourced it from the SO_SalesOrderDetail_bus : SalesAcctKey : AccountDesc. I added this UDF_SalesAcctDesc$ to my secondary grid in Sales Order Entry.
Now, when I go into Sales Order Entry, I enter the header information and proceed to the lines panel, and select an item code. This automatically defaults a sales account for me, and my UDF has the description defaulted, and the field is editable.
During Data entry, you are correct this value will not be saved back to the lines of the sales order until you accept the entire sales order. This is true of anything you change on the sales order during data entry.
What are you trying to accomplish? Are you wanting to update the actual GL Account Description with this value?
Elliott
Re: Script to retrieve data in SO Lines
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-27-2012 11:10 AM
Thanks for your help.
Re: Script to retrieve data in SO Lines
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-27-2012 11:37 AM
Ahhh, okay. I do think the UDF mapped to the description will change when the account is changed on the line, however to manipulate the portions of the description you are correct you would need to do that through some post-validation script on the sales account/tax class.
Re: Script to retrieve data in SO Lines
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-27-2012 11:56 AM
Re: Script to retrieve data in SO Lines
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-28-2012 07:25 AM
Elliot, here is the latest. The reason I said the UDF was not working is that I was trying to bring over the TAXCLASSDESC while you were working with the GLDESC. For some strange reason, the GLDESC passes thru to the UDF just fine but the TAXCLASSDESC will not. It will remain empty and only get updated when i manually change the TAX CLASS in SO Lines.
Last weird point, If you select a MISC Item rather than an Inventory Item it all works great the first time.
Thanks for your help. Let meknow if you have any ideas.
Re: Script to retrieve data in SO Lines
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-30-2012 07:20 AM
Hi Kenny,
I see what you mean about the TaxClassDesc. I'm not sure why it isn't set initially for the regular items, but I will look into that. In the meantime, you probably need to put a script on the Post-Validate of the Itemcode, to read the description and set the value into your UDF.
retVal = 0
oTaxClass = 0
Set oTaxClass = oSession.AsObject(oBusObj.GetChildHandle("TaxClass
tc = ""
retVal = oBusObj.GetValue("TaxClass$", tc)
If tc<>"" Then
retVal = oTaxClass.Find(tc)
If retVal<>0 Then
desc = ""
retVal = oTaxClass.GetValue("TaxClassDesc$", desc)
retVal = oBusObj.SetValue("UDF_Whatever$", desc)
End If
End If
Thanks
Elliott
Re: Script to retrieve data in SO Lines
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-30-2012 07:30 AM
Hi Elliot. Thanks for all your help with this. Sounds like this will work. Will try it and let you know. On another note, where is the best place to get more info on the Objects, Classes, Methods, etc within MAS90?
Re: Script to retrieve data in SO Lines
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-30-2012 07:36 AM
kenny,
The best resource is in our help documentation, under file layouts and program information. Via the MAS 90 Desktop, go to Top Level (Sage ERP MAS 90)/ Resources/File Layouts and Program Information. There is a section in there for Object Reference. This gives you an idea of the functions and properties available.
Thanks
Elliott
- « Previous
-
- 1
- 2
- Next »


