cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SQL Query

Former Member
0 Likes
967

Good day, I have an issue with the SQL query results. I created a table where in all related item transactions in SAP will insert to this table. Here's the Column of my created table.

From this table, i wanted to create a report that shows only the remaining quantity of the item on its specific date, warehouse and location. Here's my second query:

I wanted that the issued item should offset the quantity of the first line item of 5 then if it exceed, it will go to the second one then third and so on. The date is the problem why its hard to get my requirement. Is there any one who knows how to resolve this issue? I really need your help.

I don't need any work around in SAP, I just need to do it in SQL query. Please help.

Thank you!!..

Regards,

Ardie

View Entire Topic
Former Member
0 Likes

This is my expected result: