cancel
Showing results for 
Search instead for 
Did you mean: 

Help with BAPISDORDER_GETDETAILEDLIST

Former Member
0 Kudos

Hi friends,

I'm using BAPISDORDER_GETDETAILEDLIST to obtain sales order status in header and items. However status BILLSTATUS, FSAK type, in structure ORDER_STATUSHEADERS_OUT has a blank and quering VBUK table, too; when I use transaction VA03 ---> Status overview, I see Billing Status : Fully invoiced.

Quering table TVBST, with TBNAME = VBUK, FDNAME = FSAK, I see the following values:

' ' = Not relev for bill

A = Not invoiced

B = Partially invoiced

C = Fully invoiced

Obviously, BAPI return Not relev for bill (space).

What's wrong In BAPI EXECUTION? Can anybody help me?

Jairo Cortés

Edited by: Jairo Cortes on Apr 28, 2010 9:27 PM

Edited by: Jairo Cortes on Apr 28, 2010 9:30 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi,

If billing is not created with reference to Order, (ie, bill created with reference to Delivery), Billing status field in VBUP will be always not relevant. Check the function module RV_DOCUMENT_HEAD_STATUS_TEXTS for extracting Header status information.

Regards

Vinod

Former Member
0 Kudos

Hi Vinod,

Thanks, your explanation is very clear: However, if I use FM RV_DOCUMENT_HEAD_STATUS_TEXTS return same result in column FKSTA_BEZ. In this case I will build a wrapped to BAPISDORDER_GETDETAILEDLIST and by code update this status.

Am I working in correct way?

Greetings

Former Member
0 Kudos

Yes, you can proceed with this method. Anyhow status over view in VA02/VA03 is based on both header & item status as well as the document flow.

Regards

Vinod

Answers (0)