Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sales Order Query

amit_jha1
Explorer
0 Kudos

Hi All,

I need to write a query, that gives me the Open sales order for a financial calendar year, which is easy enough because I can write a query for the sales order with open line status, but the problem I need to find out if any of those open orders or closed or cancelled have deliveries or Invoice attached to it.

It will be really helpful if some one can help me with this.

Kind regards,

  • SAP Managed Tags:
2 REPLIES 2

rob_ariaans
Contributor
0 Kudos

Table VBFA contains the document flow for SD documents. Alternatively, tables LIPS and VBRP contain fields VGBEL and VGPOS where reference documents are stored for delivery / invoice line item.

  • SAP Managed Tags:

0 Kudos

Hi Rob,

Thank you very much for your reply.

I forgot to mention this is for SAP B1, not sure it I can see those tables there.

Kind Regards,

  • SAP Managed Tags: