Application Development and Automation 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: 
Read only

Function module for Open Sales Orders.

Former Member
0 Likes
3,611

Can u any one tell me is there any standard function module to

retrieve OPEN-SALES orders. I tried to debug VA05 but not of use...

Thanks in advance,

Sanjay.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,219

hi,

check the table VBUK for the sales order header status.

VBUP for item status

regards

vijay

Message was edited by: Vijay Babu Dudla

3 REPLIES 3
Read only

Former Member
0 Likes
1,220

hi,

check the table VBUK for the sales order header status.

VBUP for item status

regards

vijay

Message was edited by: Vijay Babu Dudla

Read only

Former Member
0 Likes
1,219

hi

you can get open sales orders from vbuk and vbup

SELECT

A~VBELN

A~GBSTK

B~GBSTA FROM VBUK AS A

INNER JOIN VBUP AS B

ON AVBELN = BVBELN INTO TABLE T_OPENS

FOR ALL ENTRIES IN T_VBELN WHERE A~VBELN = T_VBELN-VBELN

AND A~GBSTK IN ('A','B')

AND B~GBSTA IN ('A','B').

in t_vebeln table is haveing sales orders by user selection you can get it like this

regards,

varma

Read only

0 Likes
1,219

Thank you all for the response. Actually i am aware of this join logic. I was looking for a function module which gives me complete details including the delivery information.

And I found it...

SD_SALES_ORDER_STATUS_WWW

Thank you Sujith for FM details.

- Sanjay