cancel
Showing results for 
Search instead for 
Did you mean: 

User defined Query for Warehouse availability Stock Query

millicentdark
Contributor
0 Kudos

Dear Experts,

I want a user defined query for SAP Business One version for HANA that will show the warehouse stock availability in the Sales Quotation document and can be copied to Sales order document without giving error: "invalid number value"

I want this so that I can show before adding sales order the available stock in the default warehouse of the item.

Six is a UDF i created to handle the substraction seen below in Sales Quotation;

SELECT T0."OnHand" - T0."IsCommited" FROM OITW T0 WHERE T0."WhsCode" = $[$38.24.11] and T0."ItemCode" = $[$38.1.11];

I used the above query but I get an error when I copy to sales order and I want to add.

Sales Order UDF

Error when adding

Validation Query to avoid adding when Qty is more than Available which is my UDF "Six"

Please treat this as urgent. Please test in SAP Business One version for HANA environment.

Regards

Justice

Accepted Solutions (0)

Answers (3)

Answers (3)

kothandaraman_nagarajan
Active Contributor
0 Kudos

No, i have removed ; from your query. Please try again

millicentdark
Contributor
0 Kudos

Still getting same message in SO when I am adding.

millicentdark
Contributor
0 Kudos

Hello Nagarajan,

I used the same query in my question and I explained further the error I was getting.

Please attend to it again.

Regards

Justice

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Try this FMS,

SELECT T0."OnHand" - T0."IsCommited" FROM OITW T0 WHERE T0."WhsCode" = $[$38.24.11] and T0."ItemCode" = $[$38.1.11]

Regards,

Nagarajan