BAPI_SALESORDER_GETLIST

Hi,
I have doubt in this BAPI. There is a statement fbgenmac 'BAPI_SALESORDER_GETLIST' (generate data record) in this BAPI. Can any body explain me what this statement is useful for?
Regards,
Phani

Hi Sivapuram,
   Difference between Macro & Function/Subroutine
During the compilation wherever the macro is mentioned(called) the call is replaced by the Macro definition ( i.e the statements which define macro )
And whenever the function is called during compilation the assembly language code is replaced which will take the control to some other line of code where the function is defined and get the control back to same place right from where the call was made.
Hope this helps!!!
Best Regards,
Pavanmeet Singh

Similar Messages

  • How to retrieve  sales Order details from BAPI_SALESORDER_GETLIST

    Hi Experts,
    I am using Visual Studio 2003 and SAP.Net Connector for Microsoft .NET 1.0.3 .
    I need to get the details of sales order.Following is the code snip.
    protected ConnectorDemo2.BAPIRETURN bapireturn;  /*Manually Added */
    proxy.Connection =  SAP.Connector.SAPLoginProvider.GetSAPConnection(this);
    proxy.Bapi_Salesorder_Getlist("0000000006","","","","","","0001","0",
    out bapireturn,ref bapiordersTable1);
    I already check records in SAP R/3 system for data Cust No=00000006 and Sales Org=0001.
    Please let me know about out parameter and if anyone is having correct list of ref and out parameter.
    Help will appreciated and points will rewarded.
    Thanks
    Sunil Pawar
    Edited by: Sunil Pawar on Nov 26, 2008 1:54 PM

    To Solve the problem I created one custome RFC and call BAPI_SALESORDER_GETLIST in it and my problem get solved.
    This is just work around but still not found why no data when using OUT parameter.
    CALL FUNCTION 'BAPI_SALESORDER_GETLIST'
      EXPORTING
        CUSTOMER_NUMBER             = Z_CUSTOMER_NUMBER
        SALES_ORGANIZATION          = Z_SALES_ORGANIZATION
    IMPORTING
      RETURN                      =
      TABLES
        SALES_ORDERS                = Z_SALES_ORDERS
    Thanks
    Sunil Pawar

  • Bapi_Salesorder_Getlist return no items

    When calling the Bapi_Salesorder_Getlist from .NET Connector but got no items return.
    I can browse the order for customer 1012 in SAPGUI.
    If the problem is caused by the searching parameters?
    Please check the code for me.
    Thanks!
         Orders.SAPProxyOrders proxyorders= new Orders.SAPProxyOrders(cs);
         // call the RFM method on the proxy
         Orders.BAPIRETURN Return0=new Orders.BAPIRETURN();
         Orders.BAPIORDERSTable Sales_Orders=new Orders.BAPIORDERSTable();
         try
              proxyorders.Bapi_Salesorder_Getlist("1012", "", "", "", "", "", "", "*", out Return0, ref Sales_Orders);
         catch(SAP.Connector.RfcCommunicationException exp)
              MessageBox.Show(exp.Message);
              return;
         catch(Exception exp)
              MessageBox.Show(exp.Message);
              return;
                   this.labelResultNumber.Text=Sales_Orders.Count.ToString();

    Thanks.
    Your hint is very helpful.
    Bapi_Customer_GetDetail can read single customer by giving customernumber (Knnum)
    Bapi_Order_GetStatus can also read a single order by giving order number.
    But When calling Bapi_Order_GetList or Bapi_Customer_GetList, it return no Rows.
    The BAPIREAUT.Number is 748, its Message said "No cusomter was found by giving criteria.
    I still suspect the searching parameters is wrong.
    The requirement is to list all the orders of a customer.
    Or could you give me such code directyly.
    Thanks a lot

  • FM  BAPI_SALESORDER_GETLIST obligatory field

    hi gurus,
    regarding about FM BAPI_SALESORDER_GETLIST, im developing a report base on MAT NUMBER for da sales. As client request the report should pull the data from sales quantity by MAT NUM , sales Org and Date in da selection screen. but the problem with  FM BAPI_SALESORDER_GETLIST is, customer Number is a obligatory field. End user just want to see the sales quantityfor each matrial.
    so, how can i skip or avoid using Customer Number field for  'BAPI_SALESORDER_GETLIS'   OR is there any FM where i can get sales quantity  data by using MAT NUM, SALES ORG and DATE..
    oh yeah... i did a coding for this in normal way, but its taking very - very  long time to display from table vbap. if user select mat Num.. it will display very fast. but, if the user execute using only  sales org it will take very very very long time.
    thanks in advance.
    Edited by: MAYAT on Dec 14, 2009 10:53 AM

    hi... the probelm is, its taking very long time to fetch date from da table.... the probelm is end user... end user will only select sales org and execute.
    this concept will take very long to just to display the output. in vbap table, there are more thna 5 million of data. thats why im looking for FM, to make the report more efficient.
    thanks...
    regs mayandi

  • Is it better to use bapi_salesorder_getlist than select statements?

    hi experts,
    in terms of performance, which is better in getting a list of salesorders is it better bapi_salesorder_getlist or select statements?
    for bapi_salesorder_getlist, i will not get all of the fields so i would still use select.
    Message was edited by:
            maui bayog

    Hi,
    If ur requiremetn is specific and can be solved using bapi_salesorder_getlist then only use it, otherwise, use select stament which is more useful for reports as it gives o/p as required and not a predefined limited output.  Now u may get sufficient fields but , in future if requirement will change then for small change u may be in problem.
    Bapis are very userful for specifc and limited tasks.
    Jogdand M B

  • SALESORDER - beginner question (BAPI_SALESORDER_GETLIST)

    Hi all,
    Sorry for my dummy question now:
    I have to change salesorder with BAPI's. With the BAPI BAPI_SALESORDER_GETLIST I read the salesorder, the input Parameter are CUSTOMER_NUMBER and SALES_ORGANIZATION.
    I have to read all salesorder, which are the correct step to define the CUSTOMER_NUMBER and the SALES_ORGANIZATION ?
    It is correct to read all CUSTOMER_NUMBER trough the table BSID ?
    Many thanks : )

    Hello David
    If this is your requirement then the selection is ok. However, sales orders are stored in table VBAK:
    VBELN = Sales Document
    KUNNR = Sold-to party
    Regards
      Uwe

  • Similar to BAPI_SALESORDER_GETLIST but selects on VBAK-VDATU

    Hi is there a SAP ECC BAPI that selects sales orders similar to BAPI_SALESORDER_GETLIST but instead uses VBAK-VDATU (Req. delivery date) for date selection and not on VBAK-AUDAT (document date) as with the current behavior of said BAPI?

    Hi Jan,
    Our main constraint for creating a new function module is the fact that we have a change freeze in SAP ECC and we need to get the sales order data using RFC from SAP APO. Creating the new function module is simply not an option right now and we have to be able to get the information from SAP standard functionality.

  • Error in BAPI_SALESORDER_GETLIST

    Hi Folks,
                 I am working on  BAPI_SALESORDER_GETLIST  from VB.
    I have taken mandatory parameters as CustomerNumber and Sales Organization.
    While I am executing this in VB I am getting the following error
    Parameter CustomerNumber of Method GetList is not a valid Structure!You should use plain datatypes.
    How to resolve this.
    Thanks in Advance.
    Siva.

    Hi Siva,
    Refer these lines given in the Documentation:
    Mandatory entries:
    You must enter the relevant customer number in the SALES
    parameter and the requested sales organization in the SA
    parameter.
    Optional entries:
    You can restrict the selection by entering certain crite
    you can display all the orders for a certain material or
    particular time period (MATERIAL or DOCUMENT_DATE and DO
    paramters). You can also find a certain sales order usin
    purchase order number (PURCHASE_ORDER parameter).
    Data:
    w_num Like BAPI1007-CUSTOMER,
    w_org like BAPIORDERS-SALES_ORG.
    CALL FUNCTION 'BAPI_SALESORDER_GETLIST'
      EXPORTING
        CUSTOMER_NUMBER             = w_num
        SALES_ORGANIZATION          = w_org
    Regards,
    Sravanthi

  • BAPI_SALESORDER_GETLIST Problem

    I am unable to understand whats going wrong, when I runs BAPI BAPI_SALESORDER_GETLIST from SAP Frontend with parameters
    CUSTOMER_NUMBER = "9994310"
    SALES_ORGANIZATION = "3000"
    MATERIAL = ""
    DOCUMENT_DATE = ""
    DOCUMENT_DATE_TO = ""
    PURCHASE_ORDER = ""
    TRANSACTION_GROUP = "0"
    PURCHASE_ORDER_NUMBER = ""
    It gives me 5 results in to SALES_ORDER table, but when I passes same parameter to this BAPI via .Net application it   gives me 0 records in the SALES_ORDER table.
    I tried passing DOCUMENT_DATE, DOCUMENT_DATE_TO in yyyyMMdd format in .net still no result.
    Here is my .Net source code.
    Dim conn As String = ConfigurationSettings.AppSettings("SAPConnectionString")
    SalesOrder1.ConnectionString = conn
    Dim vBAPIReturn As New SAP.Connector.BAPIRETURN
    Dim sales_Orders As New BAPIORDERSTable
    SalesOrder1.GetList("9994310", "", "", "", "", "", "3000", "0", vBAPIReturn, sales_Orders)
    DataGrid2.DataSource = sales_Orders.ToADODataTable
    DataGrid2.DataBind()
    What could be possible reason?
    Help will we greatly appriciated.
    Regards,
    Nitin

    A little more info on this topic after I struggled with it also...
    Here is some sample code that works:
    SalesOrder proxyorders= new SalesOrder(SAPConnString);
    BAPIRETURN Return0=new BAPIRETURN();
    BAPIORDERSTable Sales_Orders=new BAPIORDERSTable();
    proxyorders.GetList(null, null, null, strDate, null, null, null, null, out Return0, ref Sales_Orders);
    Note that arguments to the BAPI call must be null - not "*" as described elsewhere in these threads.
    This call allows you to get all customer orders for a date in the form of a strongly-typed Sales_Orders object.
    Any argument in the BAPI call can be null.
    With this information you can then also get specific customer details with another BAPI call:
    string strSalesOrg = Sales_Orders[c].Sales_Off;
    string strCustomerID = Sales_Orders[c].Sold_To;
    Customer proxycustomer = new Customer(SAPConnString);
    BAPIRETURN Return1=new BAPIRETURN();     
    BAPIKNA101 Customer_Details = new BAPIKNA101();
    proxycustomer.GetDetail(strSalesOrg,out Customer_Details,out Return1,null,null,null,strCustomerID);
    Took me a bit to sort it out but hope it helps...

  • Sales Order uplaod from JAVA to SAP R/3

    Hi all,
    My cousin is working on uploading Sales Order Document
    from java server to R/3.
    for that he is having a code from JCO jar.
    the below is the file from which one can upload his SO details from JAVA to R/3.
    But in this program he is  just able to upload one Item detail for one Sales document.
    but requirement is to upload 'n' item details for one Sales document.
    Here is the Java code.
    @author pega
    TODO To change the template for this generated type comment go to
    Window - Preferences - Java - Code Style - Code Templates
    Created on Jun 24, 2004
    To change the template for this generated file go to
    Window>Preferences>Java>Code Generation>Code and Comments
    package com.sap.satyam.salesorder;
    import java.sql.Timestamp;
    import java.util.Calendar;
    import com.sap.mw.jco.IFunctionTemplate;
    import com.sap.mw.jco.IRepository;
    import com.sap.mw.jco.JCO;
    public class SalesOrder {
         static final String SID = "R3";
         static final String errorID = "E";
         IRepository repository;
         //String orderNumber = orderCreation("M-01","3000","0002",3,"ST");
         int counter;
         public SalesOrder()
                   try {
                        // Add a connection pool to the specified system
                        JCO.addClientPool(SID,            // Alias for this pool
                                             10,            // Max. number of connections
                                             "800",           // SAP client
                                             "develop",  // userid
                                             "bslabap", // password
                                             "EN",         // language
                                             "172.18.33.20",    // host name
                                             "00");
                        // Create a new repository
                        repository = JCO.createRepository("MYRepository", SID);
                   catch (JCO.Exception ex) {
                        System.out.println("Caught an exception: \n" + ex);
         //     Retrieves and sales order Create
         public void createSalesOrder(String PO_NO, String MAT,String RQTY,String CUSTMAT, String SOLD_NAME, String SOLD_STREET,String SOLD_COUNTRY, String SOLD_POST_CODE,String SHIP_NAME, String SHIP_STREET,String SHIP_COUNTRY, String SHIP_POST_CODE)
              try {
                   // Get a function template from the repository
                   IFunctionTemplate ftemplate = repository.getFunctionTemplate("BAPI_SALESORDER_CREATEFROMDAT1");
                   JCO.MetaData so_metadata = new JCO.MetaData("BAPI_SALESORDER_CREATEFROMDAT1");
                   // Create a function from the template
                   JCO.Function function = new JCO.Function(ftemplate);
                   // Get a client from the pool
                   JCO.Client client = JCO.getClient(SID);
                   // Fill in input parameters
                   // Header
                   JCO.ParameterList input = function.getImportParameterList();
                   JCO.ParameterList tables = function.getTableParameterList();
                   JCO.Structure input_header = input.getStructure("ORDER_HEADER_IN");
                   // Item details
                   JCO.Table table_item = tables.getTable("ORDER_ITEMS_IN");
                   //JCO.Structure input_item = table_item.getStructure("ORDER_ITEMS_IN");
                   // Partner details
                   JCO.Table table_partner = tables.getTable("ORDER_PARTNERS");
                   // Populate the header details
                   input_header.setValue("ZAD5","DOC_TYPE"); // Document Type
                   input_header.setValue("3000","SALES_ORG"); // Sales Organization
                   input_header.setValue("10","DISTR_CHAN");  // Distribution Channel
                   input_header.setValue("00","DIVISION");  // Distribution Channel
                   input_header.setValue("20041212","REQ_DATE_H");// can be changed in yyyymmdd (Requested date)
                   input_header.setValue(PO_NO,"PURCH_NO_C");// can be changed ( Customer PO Number )
                   //Populate the item detalis
                   table_item.appendRow();
                   table_item.setRow(1);
                   table_item.setValue("000010","ITM_NUMBER");
                   table_item.setValue("AA01","PO_ITM_NO");// can be changed
                   table_item.setValue("IAD-SC3000","MATERIAL");
                   table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
                   table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
                   table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
                   table_item.appendRow();
                   table_item.setRow(2);
                   table_item.setValue("000020","ITM_NUMBER");
                   table_item.setValue("AA01","PO_ITM_NO");// can be changed
                   table_item.setValue("IAD-SC3000","MATERIAL");
                   table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
                  table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
                   table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
                   //Populate the Partner details
                   // Sold to Party
                   table_partner.appendRow();
                   table_partner.setRow(1);
                   table_partner.setValue("AG","PARTN_ROLE");
                   //table_partner.setValue("0000002007","PARTN_NUMB");
                   table_partner.setValue("0000100067","PARTN_NUMB");
                   table_partner.setValue(SOLD_NAME,"NAME");  // can be changed
                   table_partner.setValue(SOLD_STREET,"STREET"); // can be changed
                   table_partner.setValue(SOLD_COUNTRY,"COUNTRY");
                   table_partner.setValue(SOLD_POST_CODE,"POSTL_CODE"); // can be changed
                   // Ship to party
                  table_partner.appendRow();
                   table_partner.setRow(2);
                   table_partner.setValue("WE","PARTN_ROLE");
                   table_partner.setValue("0000100067","PARTN_NUMB");
                   table_partner.setValue(SHIP_NAME,"NAME");// can be changed
                   table_partner.setValue(SHIP_STREET,"STREET"); // can be changed
                   table_partner.setValue(SHIP_COUNTRY,"COUNTRY");
                   table_partner.setValue(SHIP_POST_CODE,"POSTL_CODE");// can be changed
                   // Call the remote system
                   client.execute(function);
                   // Print return message
                   JCO.Structure ret = function.getExportParameterList().getStructure("RETURN");
                   System.out.println("BAPI_SALES_ORDER_GETLIST RETURN: " + ret.getString("MESSAGE"));
                   // Get table containing the orders
                   //JCO.Table sales_orders = function.getTableParameterList().getTable("SALES_ORDERS");
                  JCO.Field sales_order = function.getExportParameterList().getField("SALESDOCUMENT");
                   // Print results
                   String so = sales_order.getString();
                   String message = ret.getString("MESSAGE");
                   String message_type = ret.getString("TYPE");
                   if  (message_type.equalsIgnoreCase("E"))  {
                        System.out.println("Error in Sales Order Creation:" + message);
                   else{
                        System.out.println("Sales Order " + so + " Created Succesfully");
                   // Release the client into the pool
                   JCO.releaseClient(client);
              catch (Exception ex) {
                   System.out.println("Caught an exception: \n" + ex);
         //     Retrieves and sales order Create
          public void listSalesOrders()
               try {
                    // Get a function template from the repository
                    IFunctionTemplate ftemplate = repository.getFunctionTemplate("BAPI_SALESORDER_GETLIST");
                    // Create a function from the template
                    JCO.Function function = new JCO.Function(ftemplate);
                    // Get a client from the pool
                    JCO.Client client = JCO.getClient(SID);
                    // Fill in input parameters
                    JCO.ParameterList input = function.getImportParameterList();
                    //input.setValue("0000002007", "CUSTOMER_NUMBER"   );
                    input.setValue(      "3000", "SALES_ORGANIZATION");
                    //input.setValue(         "0", "TRANSACTION_GROUP" );
                    //input.setValue("PO_NUMBER_JAVA01","PURCHASE_ORDER_NUMBER");
                    // Call the remote system
                    client.execute(function);
                    // Print return message
                    JCO.Structure ret = function.getExportParameterList().getStructure("RETURN");
                    System.out.println("BAPI_SALES_ORDER_GETLIST RETURN: " + ret.getString("MESSAGE"));
                    // Get table containing the orders
                    JCO.Table sales_orders = function.getTableParameterList().getTable("SALES_ORDERS");
                    // Print results
                    if (sales_orders.getNumRows() > 0) {
                         // Loop over all rows
                         do {
                             counter++;
                              System.out.println("--" + counter + "--
                              // Loop over all columns in the current row
                              for (JCO.FieldIterator e = sales_orders.fields(); e.hasMoreElements(); ) {
                                   JCO.Field field = e.nextField();
                                   System.out.println(field.getName() + ":\t" + field.getString());
                              }//for
                         } while(sales_orders.nextRow());
                    else {
                         System.out.println("No results found");
                    }//if
                    // Release the client into the pool
                    JCO.releaseClient(client);
               catch (Exception ex) {
                    System.out.println("Caught an exception: \n" + ex);
         public static void main(String[] argv) {
              SalesOrder so = new SalesOrder();
              so.createSalesOrder("PO_NUMBER_JAVA02", "","0000000020000","121-223-2332-1231", "SOFTWARE SYSTEME GMBH-WE", "STREET-SH","US", "53125","SOFTWARE SYSTEME GMBH-WE", "STREET-SH","US", "53125");
              //so.listSalesOrders();     
    >>>>Please if any of SDN users can help in resolving this issue. It will be very helpful to my cousin.

    Before:
    //Populate the item detalis
    table_item.appendRow();
    table_item.setRow(1);
    table_item.setValue("000010","ITM_NUMBER");
    table_item.setValue("AA01","PO_ITM_NO");// can be changed
    table_item.setValue("IAD-SC3000","MATERIAL");
    table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
    table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
    table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
    table_item.appendRow();
    table_item.setRow(2);
    table_item.setValue("000020","ITM_NUMBER");
    table_item.setValue("AA01","PO_ITM_NO");// can be changed
    table_item.setValue("IAD-SC3000","MATERIAL");
    table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
    table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
    table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
    Try to add:
    //Populate the item detalis
    table_item.appendRow();
    table_item.setRow(2);
    table_item.setValue("000020","ITM_NUMBER");
    table_item.setValue("AA01","PO_ITM_NO");// can be changed
    table_item.setValue("IAD-SC3000","MATERIAL");
    table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
    table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
    table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
    table_item.appendRow();
    table_item.setRow(2);
    table_item.setValue("000020","ITM_NUMBER");
    table_item.setValue("AA01","PO_ITM_NO");// can be changed
    table_item.setValue("IAD-SC3000","MATERIAL");
    table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
    table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
    table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
    Regards.

  • What is the Function MOdule that returns the fields in database table order

    Hello Folks
      I have a dynamic internal table with fields ( which are not in order). I want to display them in the order of which they are present in the database table? Is there any function module that returns the fields in database order?
    FAQ. Please search before posting your question.
    Edited by: Suhas Saha on Oct 10, 2011 10:19 PM

    Hi,
    You can use this BAPI.
    <b>BAPI_SALESORDER_GETLIST</b>
    Reward if useful.
    Regards,
    Vimal

  • Current month open sales orders

    Hello Experts,
    I have requirement to build a custom report to calculate open sales order quantity and its count for current month. I know we can use VBBE for open quantity and VBUP for the status to capture the count, however how can i add the logic to get the required information for the current month. Is there a function module or BAPI available which can be of any help, i have to consider the performance issue too, if i were to use multiple tables. Please advise
    Thanks
    Rahul

    HI Rahul,
    There is a standard BAPI available for listing Sales Orders.
    <b>BAPI_SALESORDER_GETLIST</b>
    However to meet your requirement of <b>OPEN sales orders</b>, you will have to modify this BAPI to suit your purpose. You can give appropriate logic to you ABAPer with reference to tables VBUK,VBUP, etc. This means that you will have to create a new Z-BAPI, keeping the above BAPI as the core.
    Once this is done you can wrap Z-BAPI in a transaction code or a program/ report, so that it is ready to use by business.
    Selection Variants can be used to default the date range as 01/MM/XXXXX to 31/MM/XXXX.
    Hope this will prove of some help to you..
    if yes then ..pls reward liberally
    Sachin Bhonsle

  • How to create a Sales Order using BAPI_SALESORDER_CREATEFROMDAT1 in VC

    I am new to Visual Composer.
    I read the tutorial and created a Model which fetches the Sales Orders from the R/3 using <b>BAPI_SALESORDER_GETLIST</b>, every thing worked fine.
    I am trying to create a sales order in R/3 using <b>BAPI_SALESORDER_CREATEFROMDAT1</b>, following are the steps I did:
    1)Create a model
    2)Drag a model element(iView) on to the designer
    3)Double click the iView and Drag the function <b>BAPI_SALESORDER_CREATEFROMDAT1</b> on to the iView Designer
    Now my question is, for <b>BAPI_SALESORDER_CREATEFROMDAT1</b> there are some mandatory fields as mentioned in the document.
    1. Mandatory entries:
    ORDER_HEADER_IN :
    DOC_TYPE     Sales document type
    SALES_ORG    Sales organization
    DISTR_CHAN   Distribution channel
    DIVISION     Division
    ORDER_PARTNERS..:
    PARTN_ROLE   Partner functions, SP sold-to party
    PARTN_NUMB   Customer number
    ORDER_ITEMS_IN..:
    MATERIAL     Material number
    REQ_QTY      Order quantity in sales unit
    I can pass the values of structure <b>ORDER_HEADER_IN</b> from a input form but how should I pass mandatory values for tables <b>ORDER_PARTNERS</b> and <b>ORDER_ITEMS_IN</b>.
    Ideally I should have one form where I can send all the mandatory items in the form.
    Thank you,
    Vamsi

    Hi,
    how did you return the materials in the Table View. I tried to do it, but it only returns one material?
    Regards,
    Matthias

  • BAPI or Function Module to get open orders and open quotation details

    Hi,
    I have requirement to get all the open orders(as in VA05) and all the open quotations( as in VA25) for a sold-to-party. Could you please let me know if there are any BAPIs or Function Modules for the same.
    Thanks,
    Surekha.

    Hi,
    Check if the below helps:
    1.  BAPI_SALESORDER_GETLIST for VA05
    2. BAPI_QUOTATION_GETDETAILBOS for VA25.
    Regards,
    Vivek

  • FM to get sales order details with billing document .

    hi ,
    is there any standard FM or BAPI to get the sales order details with input as billing document ?
    i have the billing document number now i need to get the sales order number and its details ..
    is that possible ..
    i very well know how to get it by using query, i need standard FM.
    Points will be awarded for sure , if it helps .
    Thanks and regards
    JK

    Here is the list of BAPIs
    BAPI_QUOTATION_GETDETAILBOS
    BAPI_INQUIRY_GETDETAILBOS
    BAPI_SALESORDER_GETDETAILBOS
    SALES ORDER->
    BAPISDORDER_GETDETAILEDLIST Sales Order: List of All Order Data
    BAPI_ORDER_CHANGE_STATUS_GET Change status for order
    BAPI_SALESDOCU_CREATEFROMDATA Creating a Sales Document
    BAPI_SALESORDER_CHANGE Sales Order: Change Sales Order
    BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create sales order, no more maintenance
    BAPI_SALESORDER_GETLIST Sales order: List of all orders for customer
    BAPI_SALESORDER_GETSTATUS Sales order: Display status
    BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order

Maybe you are looking for