Netsuite AP aging throug SuiteAnalytics connect - odbc

Hope you have a great day and help me with the problem
I am trying to recreate AP aging through ODBC. Everything is working fine except the Journal transactions.
In Netsuite Saved searches there is a field remainingamount which is not available in connection schema for some reason. We have tried to conctact Netsuite directly but still got no any feedback from them.
There is a field foreignamountunpaid/foreignamountunused in transactionline table I am trying to use right now. And with bills and Expense reports it's working totaly fine.
However, for no reason we have some problems with some of JEs. In some of them there is null value when in the Saved search there is a value for that line.
I tried to analyse why this is happening but it's look totaly random.
So, do you by any chance know if there is a better field for amount remaining I could use throug ODBC connection? Or why some of JEs have null values in those fields foreignamountunpaid/foreignamountunused ?
Thank you in advance.

Found the way to make it work
nvl(nvl(transactionline.foreignamountunpaid, -transactionline.foreignpaymentamountunused),-transactionline.foreignamount)
this column in sql gives you desired result

Related

sql query to find datatypes in teradata

I've never dealt with Teradata database before, I need to find out the data types for a table in Teradata I tried the below queries but none of them worked
describe table tablename; show create table tablename;help table tablename;
When I did show table I realized that it is a view and I tried
show view view name;
help view view name;
none of the above queries gave me the datatypes for the view I'm looking to find out. i googled around and tried my findings none of them worked.
Please help me with the query to find out the data types in teradata.
Thanks in advance
HELP COLUMN mytable.*; resolves views and returns the actual datatypes.
The description of the two character ColumnType can be found in the Data Dictionary manual
The stuff people have already said is great if you need the whole table. However, if you just need 1 specific field and want the result to be readable (without having to dig around in the data dictionary manual), sometimes I find it simpler to just do something like:
Select Distinct TYPE(Fieldname)
from mytable
For many reasons, this isn't the solution you want to use every time but I think it is worth adding to what people have already said.

Create a assistant multi step

I created a assistant to configure a device, each step makes an entry in the corresponding table in the database. So far so good. The problem that I consider is, if the most efficient way, because when I cancel the assistant, the data still stored are not deleted, and do not want this to happen, I want the assistant is canceled, these data are not stored, or are removed. Someone tells me the right way to create an efficient assistant? Thanks greetings.
Thanks greetings.

How to recover the data missing from internal tables(CMPSCOMAPCLASSES) of OWB

We are using Oracle Warehouse Builder in our project.Accidentally,some of the internal tables
data got deleted.The impact is when i open the map in OWB,the canvas in completely blank.I cannot see the tables and transformations applied.However when I right click on the map and execute,it does that perfectly fine.But the code is not visible and neither can I deploy that map.The table whose data deletion caused this was CMPSCOMAPCLASSES.We do not have a regular backup of the databse.Hence cannot recover the data.
Can anybody please help me in getting back the data anyhow.
Appreciate your help.

Excluding records from one table depending of other entries from same table

I got following problem:
I have to correct a report in AX 4.0, which is created with the standard report-framework of AX and I don´t want to rework the whole report for this.
How can I set up the Datasources, so records from Table_A, which have the same Value in Field_A as other records from Table_A have in Field_B, are both not displayed anymore?
I´m driving crazy right now, because I haven´t found any solution for this, while it seems not that complicated.
You should work on the Query associated to the report datasource. But it's difficult to give a more accurate tip without knowing more information about the problem.

BreezeJS: Query filter/where for TIME only, not Date

Oh StackOverflow! I do need thy help.
I wish to execute something similar (and let's say identical for this purposes of this post) to this other question. Specific Time Range Query in SQL Server
Caveat, I want to do this on the client side....
Here's an example search criteria:
3/1/2009 - 3/31/2009
between 6AM-10PM each day
Tues/Wed/Thurs only
Now this is all fine and dandy on the server side. Both SQL or Linq have functions like "DatePart" or Day of Week.
My initial reaction is to look for something hanging off of breeze.FilterQueryOp to construct a composite where clause which would accomplish the same, but I can't seem to figure out how to make the query only recognize date parts. DayOfWeek, TimePart, DayOfYear, and a few others have me completely baffled. Should anyone stumble upon this question, I humbly beg your assistance.
I could always use a SPROC, but then what's the point of using breeze anyways? ;)

Resources