06-02-2006 9:01 AM
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
06-02-2006 9:06 AM
You can use FM <b>SD_SALES_ORDER_STATUS_WWW</b> feeding Sales order Number as input.
Enjoy COding,
Thomas.
06-02-2006 9:03 AM
06-02-2006 9:06 AM
You can use FM <b>SD_SALES_ORDER_STATUS_WWW</b> feeding Sales order Number as input.
Enjoy COding,
Thomas.
06-02-2006 9:10 AM
Hello Shehryar,
Use <b>SD_SALES_ORDER_STATUS_WWW</b> Function module.
It helps you.
<b>Thanks,
Venkat.O</b>
06-02-2006 9:18 AM
Thanks Guys.... do u know the status field name is he structure 'VBSTAT_WWW'.
06-02-2006 9:48 AM
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.
06-02-2006 9:51 AM
<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