03-15-2010 6:41 AM
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
03-15-2010 6:45 AM
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.
03-15-2010 6:56 AM
Hi manthan,
thanx for the reply
can u elaborate on this bapi,
how to get the exact status.
regards
senthil
03-15-2010 7:02 AM
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
03-15-2010 11:20 AM
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
03-15-2010 6:53 AM
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