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: 

function for getting status of a document(vbeln)

Former Member
0 Kudos

Hello,

i am creating a report showing the list of sales order. I also want to show the status of each document(vbeln). Is there any SAP function which returns the stauts of a document(vbeln).

Thanks for yur time.

Shehryar

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You can use FM <b>SD_SALES_ORDER_STATUS_WWW</b> feeding Sales order Number as input.

Enjoy COding,

Thomas.

6 REPLIES 6

Former Member
0 Kudos

Did you look at BAPI_SALESORDER_GETSTATUS?

Regards,

Ravi

Former Member
0 Kudos

You can use FM <b>SD_SALES_ORDER_STATUS_WWW</b> feeding Sales order Number as input.

Enjoy COding,

Thomas.

venkat_o
Active Contributor
0 Kudos

Hello Shehryar,

Use <b>SD_SALES_ORDER_STATUS_WWW</b> Function module.

It helps you.

<b>Thanks,

Venkat.O</b>

Former Member
0 Kudos

Thanks Guys.... do u know the status field name is he structure 'VBSTAT_WWW'.

Former Member
0 Kudos

Check the Value range of below domians of structure 'VBSTAT_WWW'

GBSTK Overall processing status of document

LKGSK Overall delivery status for all items for the status.

Cheers,

Thomas.

vinod_gunaware2
Active Contributor
0 Kudos

<b>RV_ORDER_FLOW_INFORMATION </b> Reads sales document flow of sales document after delivery and billing ExampleO

Don't forget also check direct reference documents for the both starting document # and preceding/following document types that you are searching for (For example, if you search delivery for the given SO, check also LIPS-VGBEL and LIPS-VGPOS, if it's possible with regard to performance).

V45A SD Functions for Copying Documents SD_SALES_DOCUMENT_READ Reads sales document header and business data: tables VBAK, VBKD and VBPA (Sold-to (AG), Payer (RG) and Ship-to (WE) parties)

SD_SALES_DOCUMENT_READ_POS Reads sales document header and item material: tables VBAK, VBAP-MATNR

SD_DOCUMENT_PARTNER_READ partner information including address. Calls SD_PARTNER_READ

SD_DETERMINE_CONTRACT_TYPE In: at least VBAK-VBELN

Exceptions: NO CONTRACT | SERVICE_CONTRACT | QUANTITY_CONTRACT

SD_SALES_DOCUMENT_COPY copy Sales Doc into new one with the required Sales Doc Type (VBAK-AUART) for further creating. ExampleO - create subsequent document

SD_SALES_DOCUMENT_SAVE create Sales Doc from the copied document

V45K Sales Order Processing Functions SD_SALES_DOCUMENT_ENQUEUE to dequeue use DEQUEUE_EVVBAKE

V05I SD Index Update SD_PARTNER_READ all the partners information and addresses

V05O SD Data Collection for Dlv Note Printing RV_DELIVERY_PRINT_VIEW Data provision for delivery note printing

SD_PACKING_PRINT_VIEW

SD_DELIVERY_VIEW Data collection for printing called from RV_DELIVERY_PRINT_VIEW, SD_PACKING_PRINT_VIEW

V05N SD Data Collection for Bill Doc Printing RV_BILLING_PRINT_VIEW Data Provision for Billing Document Print