FM/BAPI/Method for Sales Order Costing

Hi,
I need the FM/BAPI/Method for Sales Order Costing.
Which is calculating at run time while process of Sales Order Costing
Can any one please help me out.
Thanks
Chinni
Edited by: Tirumula Rao Chinni on Mar 10, 2010 3:04 PM
Edited by: Tirumula Rao Chinni on Mar 10, 2010 3:35 PM

Vinraaj, thank you very much for your advice and the time you've spent for the ask.
I am searching for whether there is any SAP offered FM. Therefore, I did not think to check the background (code side) of the process by debugging.
There is not any documentation about the FM that you have offered, in the system.
So , I can not be sure about the usage of it, too.
Thank you very much.

Similar Messages

  • BAPI/RFC for Sales Order or Warehouse Order that retrives VBAK,VBAP,VBEP

    Hi,
       Is there any BAPI/RFC for Sales Order or Warehouse Order that retrives VBAK,VBAP,VBEP and VBPA tables for specified inputs.
       The BAPI or RFC should return the Sales Order details with tables VBAK,VBAP,VBEP and VBPA.
       Rewards if useful.
    Thanks,
    Mich

    Try creating an RFC calling FM: SD_SALES_DOCUMENT_PREFETCH with required details for Header, Item, Schedule and Partners.
    Below code can give you idea in handling the FM.
    PARAMETERS: p_vbeln TYPE vbeln_vl OBLIGATORY.
    CONSTANTS: c_x TYPE char01 VALUE 'X'.
    DATA: st_view TYPE order_view,
          i_vbak_key TYPE TABLE OF sales_key,
          i_vbak TYPE TABLE OF vbak,
          i_vbap TYPE TABLE OF vbapvb,
          i_vbep TYPE TABLE OF vbepvb,
          i_vbpa TYPE TABLE OF vbpavb.
    START-OF-SELECTION.
      MOVE c_x TO : st_view-header,
                    st_view-item,
                    st_view-sdschedule,
                    st_view-partner.
      APPEND p_vbeln TO i_vbak_key.
      CALL FUNCTION 'SD_SALES_DOCUMENT_PREFETCH'
        EXPORTING
          i_sales_view  = st_view
          i_memory_read = 'A'
        TABLES
          i_vbak_keytab = i_vbak_key " List of Sales Orders to extract
          fxvbak        = i_vbak     " Header
          fxvbap        = i_vbap     " Item
          fxvbep        = i_vbep     " Schedule Lines
          fxvbpa        = i_vbpa.    " Partners

  • Function module which uses both BAPI's for sales order create and change

    Please name the function module which uses both BAPI's for sales order create and change.
    BAPI_SALESORDER_CREATEFORMDAT2
    BAPI_SALESORDERCHANGE

    Yup.
    you must write a piece of code for this.
    with if else condition.first check if SO is exsist than use second FM to change it else create new SO from first FM.
    logic somethig like this.
    Amit.

  • Standard reports for Sale Order costing

    Hi all
    Can anybody Please tell sale Order costing reports.
    Thanks
    Sandeep

    for doing mass sales order costing use CK55
    or for individually in VA02 -->Extra --> costing.
    & for report use KKAC.
    rgds
    Arpit.
    Edited by: Arpit Shah on Jan 1, 2008 2:34 PM

  • Costing Sheet in requirement class for Sales Order costing

    Hi Experts,
    Could you please explain me the necessity of costing sheet in requirement class configuration.
    There is a field for costing variant in requirement class. I hope costing sheet can be taken from that costing variant.
    So what is the purpose of costing sheet in requirement class and could someone explain me the use of that field in requirement class.
    What happens if the costing sheet in requirement class and costing sheet in costing variant mentioned in requirement class does not match.
    Thanks.
    Edited by: DSK on Dec 18, 2011 3:21 PM

    Costing Variant is assigned to Requirement class
    Requirement class is assigned to Requirement type
    Requirement type is assigned to Planning Strategy
    Planning strategy is assigned to strategy groups
    Strategy group is assigned to MRP3 tab in Material Master
    System picks the costing sheet in requirement class
    In this way product will be costed for Make to Order sale order costing.
    Srinivas

  • Please give some inputs for Sales order costing

    please give some inputs for Sales order costing

    Dear Chandu
    If you use the valuated sales order stock, the actual cost of goods manufactured is updated to the sales order item (item in an inquiry, quotation, or sales order) under an inventory change cost element.
    If you use the nonvaluated sales order stock, the actual cost of goods manufactured is updated to the sales document item under a settlement cost element or a source cost element.
    Sales and administration costs are updated under a separate cost element.
    Thanks
    G. Lakshmipathi

  • Purchasing condition for sales order costing

    I am trying to add a condition to a purchasing document calculation schema that retrieves the sales order cost for a configurable material.  I am using account assignment of M for this purchase order and have tried several settings in a conditin type.  But no cost is ever found.  Has anyone ever tried this?

    Hi Arpit,
    1. Go to t-code SWO1.
    2. Click Settings -> Delegate.
    3. Delegate the BO YBUS2032 to the BO BUS2032.
    In workflow perform the following steps:
    1. Go to t-code SWDD and open your workflow template.
    2. Go to Basic Data (cap sign button at the top of the screen) or click Ctrl + F8
    3. Go to Start Events tab.
    4. In the Object type enter your BO name BUS2032 (not YBUS2032), in Event of object enter the BO event.
    5. Click on 'B' i.e. Binding Defined, click on generate automatic binding. It would automatically generate the appropriate binding for the workflow. You can also alter the binding as per requirement.
    6. Click on 'C' i.e. Start Condition. A dialog would open, select the appropriate start condition for the workflow. Use the attribute that you created and make the start condition. Check the condition before saving (recommended).
    6. Click on 'A' to Activate the binding and start condition. All 'A', 'B' and 'C' would get green.
    7. Save the changes made and activate your workflow.
    Hope this helps!
    Regards,
    Saumya

  • Valuation Strategy for Sales Order Costing

    We are currently using valuated sales order stock in ECC 6.0. The "without valuation strategy field" on the requirements class is not checked. However, the valuation strategy varies for a material and for a sales order. Sometimes it is using valuation strategy 2 - cost from the production order cost estimate - which is desired and other times valuation strategy 3 - cost from the standard price field in the material master - which is not desired. When is the valuation strategy determined for a production order for valuated sales order stock?

    Costing Variant is assigned to Requirement class
    Requirement class is assigned to Requirement type
    Requirement type is assigned to Planning Strategy
    Planning strategy is assigned to strategy groups
    Strategy group is assigned to MRP3 tab in Material Master
    System picks the costing sheet in requirement class
    In this way product will be costed for Make to Order sale order costing.
    Srinivas

  • Table for Sales order Cost Est?

    Cost estimate data for sales orders used to be kept in KEKO and KEPH -
    Now that we've upgrade to 5.0 - there are only product cost estimates.
    Anybody know the tables for sales orders?
    thanks

    Dear Althea,
    please check with this tables.
    VBAG                           Sales Document: Release Data by Schedule Line in Sch.Agrmt.
    VBAK                           Sales Document: Header Data                               
    VBAP                           Sales Document: Item Data                                 
    VBBE                           Sales Requirements: Individual Records                    
    VBBS                           Sales Requirement Totals Record                           
    VBDATA                         Update data      
    Regards
    Mangal.

  • Is there any BAPI available for sales order creation with reference?

    Hi Experts,
    My requirement is to create sales order with reference for order type.
    Now my billing document number already contains the two items
    one is correct and another is zero quantity.
    I want to create order with reference of billing document but not with zero quantity item.
    Which BAPI I should use and what to pass to ignore zero quantity item?
    Regards,
    RH

    Hi Ronny,
    Try using BAPI_SALESORDER_CREATEFROMDAT2
    Regards,
    Shraddha

  • To create BAPI Wrapper for Sales Order Creation

    Hi Experts,
    I'm working upon MI 7.1 to create mobile application for creation of sales order.
    I've to create Sales Order BAPI Wrapper (Getlist, Get Detail & Create) using Standard BAPI's (BAPI_SALESORDER_GETLIST & BAPI_SALESORDER_CREATEFROMDAT2).
    Kindly guide me for how to proceed with the above. Which all other BAPI's do I require except above?
    PS: I was trying to call standard BAPI's but while executing the BAPI Wrapper it asks about Customer No. & Sales Org. then only I'll get the output.
    my requirement is I should get list of all the sales order's existing in the Back-end, once I execute the BAPI Wrapper.
    Romi

    Hi,
    if it comes to bapis on the backend, there are not so many changes from MI7.0 to MI7.1 as in the UI for example. So you still need the backend adapters like GETLIST/GETDETAIL/CREATE as they where necessary in 7.0.
    If you need an example on how these should look like - do you have a full blown backend available? Have a look if you can find the following BADIS in SE37 in the backend: MAM30_050_GETLIST. If you can find this one, have a look how it is working. That one should help you to get an idea on how the replication is working and how the complete stuff works. The create should be straight forward development then.
    You furthermore can have a look into the URL mentioned aboveand as well in the complete MI7.0 dokumentation if you take it just to get a general idea on how the stuff works. But the URL mentioned above should be enough in a normal case.
    Regards,
    Oliver

  • To create BAPI Wrappers for Sales Order Creation

    Hi Experts,
    I'm working upon MI 7.1 to create mobile application for creation of sales order.
    I've to create Sales Order BAPI Wrapper (Getlist, Get Detail & Create) using Standard BAPI's (BAPI_SALESORDER_GETLIST & BAPI_SALESORDER_CREATEFROMDAT2).
    Kindly guide me for how to proceed with the above. Which all other BAPI's do I require except above?
    PS: I was trying to call standard BAPI's but while executing the BAPI Wrapper it asks about Customer No. & Sales Org. then only I'll get the output.
    my requirement is I should get list of all the sales order's existing in the Back-end, once I execute the BAPI Wrapper.
    Romi

    Hi,
    if it comes to bapis on the backend, there are not so many changes from MI7.0 to MI7.1 as in the UI for example. So you still need the backend adapters like GETLIST/GETDETAIL/CREATE as they where necessary in 7.0.
    If you need an example on how these should look like - do you have a full blown backend available? Have a look if you can find the following BADIS in SE37 in the backend: MAM30_050_GETLIST. If you can find this one, have a look how it is working. That one should help you to get an idea on how the replication is working and how the complete stuff works. The create should be straight forward development then.
    You furthermore can have a look into the URL mentioned aboveand as well in the complete MI7.0 dokumentation if you take it just to get a general idea on how the stuff works. But the URL mentioned above should be enough in a normal case.
    Regards,
    Oliver

  • Creating GetList Bapi Wrapper for Sales Order

    Hi All,
    I am not at all into CRM, but there is some problem I have which is related to it.
    In the Sales-TeleSales transactions, I create a sales Order.
    Now there is much data that is there which is linked to this Sales Order like
    1)     Telesales
    2)     Item
    3)     Sold-to-party
    4)     Product
    5)     Quantity
    6)     Req-del-date
    7)     Currency
    8)     Region
    9)     Country
    10)     Net Value
    11)     Discount
    12)     Tax amount
    13)     Gross Value
    14)     Partner
    I need to create a BAPI Wrapper to get all the Header and Detail data.
    I am thinking of finding a BAPI or a Function Module which does this job and calling it in my BAPI Wrapper.
    Now I want you people to tell me the Appropriate BAPIs or FMs which will do this job for me.
    I need almost all these fields to be returned by my Bapi Wrapper.
    Please ask for Clarifications...
    Lookin forward to responses...
    Ankur

    Hi Ankur,
           You can Call the FM : CRM_ORDER_MAINTAIN within your BAPI wrapper.
    For testing purpose there is a Standard Report on this FM , Report name : 'CRM_TEST_ORDER_MAINTAIN'.
    Hope this will be helpful to you
    Regards,
    Anand.

  • Simulation in Bapi/FM for sales order is locking tables

    Hi
    We want to use bapi BAPI_SALESORDER_CHANGE or FM SD_SALESDOCUMENT_CHANGE to simulate the effect on prices of a sales order. We must do this during the printing of the sales order. This bapi/FM is locking the sales order tables during the simulation mode. As we are printing from the sales order, the sales order is already locked so we get the error: V1 042 Sales document xxx is currently being processed. Does anyone have a solution to avoid this lock or an alternative to simulate the price from a sales order?
    We need to use the simulation of the sales order to capture all manual changes in the sales order pricing.
    Kind Regards

    Hi,
    FM BAPI_SALESORDER_SIMULATE gives the same pricing data as  BAPI_SALESORDER_CHANGE. you do not need to change an existing document to get the pricing data. Just simulate the creation of a new order.. th prices should be the same as long as you send the same data.
    Dev.

  • How to fetch data for sales order costing

    Hi All,
    How to fetch data for VA03 --> Extras --> Costing having cost element details.
    Thanks
    Gaurav

    Hi Gaurao ,
    There is no such function module  to extract data  in one column   , you have to  Convert all the columns data    in one column
    for period   .
    regards
    Deepak.

Maybe you are looking for

  • Dialog instance error

    Dear all, System details: iseries, v5r3m5, sap r3ex4700 sr1, kernel(u) 640. Requirement: I installed dialog instance on windows 2003 server. Work process does not start. Log is attaced here. I have updted the patch also. Can anyone advise me. Thanks

  • Drop Downs in ISR Adobe forms

    Hi, Pease respond to my qns regarding drop-downs. 1. Is it not possible to provide a blank value in the drop list at index 1. when i tried to provide in the ADD_values method, due to the standard scripting for drop down, it gets removed. I tried chan

  • Procedure needed 4 changing the sequence order

    For example, there are ten employees. The first employee’s id will be 1. The second employee says his id he wants to be 14. For the third employee, the employee id should come in sequence, i.e it should assign 2 by default, if he have not requested a

  • Seeburger AS2  set up

    Hi All   I have  a problem for seeburger bia spoke, i am using a seeburger bis  spoke tool for AS2 adapter moniterning, whan i send a file to bis spoke than i got a error code........ *Error details errorText=java.net.ConnectException: Connection tim

  • Something Interesting...

    I want to create a window similiar to windows explorer. That would contain a split pane. and the left component of splitpane would be a component with a close button. Is there any built in method to have a component with close button? I used to Inter