Application Development and Automation 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: 
Read only

FUNCTION MODULE??

Former Member
0 Likes
801

HI all,

By using which function module we can get rescently created sales document number...

Regards,

Kishore.

1 ACCEPTED SOLUTION
Read only

michael-john_turner
Active Participant
0 Likes
709

Try BAPI_SALESORDER_GETLIST.

MJ

5 REPLIES 5
Read only

michael-john_turner
Active Participant
0 Likes
710

Try BAPI_SALESORDER_GETLIST.

MJ

Read only

Former Member
0 Likes
709

you can write a smiple select statement based on creation date and time.

select max( erdat )

vbeln

from vbak.

endselect.

Regards,

ravi

Read only

0 Likes
709

SD_SALES_DOCUMENT_READ

SD_SALES_DOCUMENT_SAVE

tell me the exact usage of these two.

Regards,

Kishore

Read only

Former Member
0 Likes
709

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

Read only

Former Member
0 Likes
709

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