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: 

BAPI To list sales orders which are delivered but not invoiced

Former Member
0 Kudos

Hi all,

Is there any bapi to list sales orders which are delivered but not invoiced.

I tried using BAPI_SALESORDER_GETLIST but it does not solve the purpose.

Regards

Senthil

5 REPLIES 5

manthanraja
Active Participant
0 Kudos

hi senthil

bapi_salesorder_getstatus

did u try the above mentioned bapi .. ??

CALL FUNCTION 'BAPI_SALESORDER_GETSTATUS'

EXPORTING

salesdocument =

  • IMPORTING

  • RETURN =

  • TABLES

  • STATUSINFO =

BR

Manthan.

0 Kudos

Hi manthan,

thanx for the reply

can u elaborate on this bapi,

how to get the exact status.

regards

senthil

0 Kudos

In VBUK table we have a field LFSTK which stores the delivery status ... you can use the bapi and check for this field status .. which will give you whether it is delivered or not ...

regards

M

0 Kudos

Hi Senthil,

I do not think there is a BAPI that can specifically list orders that are delivered and not invoiced.

If your requirement is only to list orders as given above them do a select on VBUK/VBUP depending on the header/line item requirements.

Not sure on why you need a BAPI to do the above, if it is required for an external system you can always code the above in a RFC.

Note: As i do not have access to a SAP system not sure if there are any import parameters on the BAPI_SALESORDER_GETLIST with which you can specify the specific status of the documents you want to fetch, read the documentation of the BAPI that should help too.

Regards,

Chen

arpit_shah
Contributor
0 Kudos

Hi,

You can use VF04 tcode for getting billing due list.

or can use VBUK & VBUP table for status.

u hv to check Delivery Status = 'C' and billing status ne 'C'

Regards,

Arpit