‎2006 Nov 20 11:32 AM
HI all,
By using which function module we can get rescently created sales document number...
Regards,
Kishore.
‎2006 Nov 20 11:37 AM
‎2006 Nov 20 11:37 AM
‎2006 Nov 20 11:37 AM
you can write a smiple select statement based on creation date and time.
select max( erdat )
vbeln
from vbak.
endselect.
Regards,
ravi
‎2006 Nov 20 11:40 AM
SD_SALES_DOCUMENT_READ
SD_SALES_DOCUMENT_SAVE
tell me the exact usage of these two.
Regards,
Kishore
‎2006 Nov 20 11:37 AM
I don't think there is any function module like that.
You can look into VBAK table and created date and time to get the recent document.
Regards,
Ravi
Note - Please mark all the helpful answers
‎2006 Nov 20 11:58 AM
Hi Reddy,
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_SAVE create Sales Doc from the copied document V45K Sales Order Processing Functions
In addition to these other FM are
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_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