FM to get purchase requisiton created for Sales order in APO

Hello experts,
I want to know is there any FM or BAPI exists in APO to get Purchase requisiton created for a sales order created in R/3 using sales order number? and FM or BAPI to get the sales order config data. if the mapping of sales order and purchase requisition is in Table, Please mention those tables also.
Many thanks,
Senthil

Hi,
       Please see the below link for useful SCM BAPIs....
http://wiki.sdn.sap.com/wiki/display/SCM/SCM+BAPIs
For sales order config data, BAPI_SLSRVAPS_GETLIST2  is available.
Regards,
Saurabh

Similar Messages

  • How settlement rule will be created for Sales order with cost object

    Dear Experts,
    We are using product cost by sales order with valuated stock. In addition we are not using COPA
    We also consume some materials at sales order level and at the end of month we want to do the result analysis and settlement for the same amount. In this case can any on explain how system will behave regarding settlement of sales order cost and what entries will get pass in the system.
    In our case we have done below activities...
    we have created sales order,
    All production order activities completed till final GRN including month end activities
    Material consumption against sales order
    Result analysis executed
    At the time of sales order settlement, system throwing error (Sender doesn't have valid receiver, please create settlement rule for sender object)
    Then i checked in sales order there sales order settlement rule not defined.
    I guess this settlement rule need be generated by system automatically. If not, please let me know the process of it.

    HI kishore
          the reason is that sale order always carry the revenue  and production order and production period carry the cost .
       cost you can settle to the Material and even management want  to be settle the cost to material only in production order OR period
    but in sales order  when u sell the product it carry the revenue not the cost and management want see and analysis based on profitability segment are profit center level .
    Prerequisites
    If CO-PA is active, the system generates a settlement rule when you create the sales order. The settlement rule determines whether data is settled to other objects or other areas in Controlling. In accordance with this settlement rule, the relevant data is settled to CO-PA.
    If CO-PA is not active, create a settlement rule. This settlement rule that you create manually normally contains a G/L account as a receiver (such as 399999). You can also settle costs and revenues or results analysis data to objects with revenue.
    You can also settle the cost of sales calculated in results analysis to a fixed asset or a cost center. To do this, you must add to the allocation structure the results analysis cost elements under which the cost of sales is updated to the order.
    The settlement rule includes a distribution rule for the sales order item. The distribution rule is made up of a settlement receiver, a settlement share, and a settlement type:
    The settlement receiver (such as profitability segment or G/L account) specifies the object to which the actual costs and revenue of the sales order item are settled. The settlement receiver can be proposed through the settlement profile.
    The settlement share defines the percentage or the equivalence numbers used to distribute the costs to the individual settlement receivers. The settlement share for sales order items is usually 100%. A settlement share of 100% is preset in the system.
    The settlement type specifies full settlement of the sales order item. This ensures that all the data on the sales order is available for results analysis.
    Settlement still takes place in each period. The revenues and the cost of sales are transferred to CO-PA by period, and the work in process and the reserves are transferred to FI.

  • Deletion Purchase requisition created by sales orders

    Hi gurus,
    in my SAP system there are purchase requisition created by schedule line from sales orders. For different reasons the sales orders were deliveried and billed with stock free and not with customer stock.
    When I try delete de purchase requisition, because the sales order is completed, the system alarms a message that is not posible to delete in purchase requisition else in sales order. But the sales order is completed and we don't touch it.
    Any idea to delete this purchase requisitions?
    Thank you, I will revvard all answers..

    Hi ,
    We can not delete the purchase requisition if there is any subsequesnt documents created against this.
    If you want to delete the same then reverse the delivery then delete the delivery and then delete the purchase requisition by using the guide lines given in below path.
    www.passhe.edu/.../ME52N%20-%20Delete%20a%20Purchase%20Requisition.pdf
    Hope it helps.
    Regards,
    Pasapula.

  • Purchase items report for sales orders - very important

    Hi Folks,
    Could you please guide me on how to create a report of "items purchased" for a particular "sales order". if i am able to include various fields of items purchased, like....quantity, item description, vendor name, item price, etc., it will be very useful.
    This report is required for a client, who assembles machines in a "make to order" scenario, and most of the BOM child items are "purchase items".

    Hello Krishna,
    Few things to note:
    Is the PO created from the SO.  Is YES, then you could use the base document ref at the POR1 table.
    OR
    Are the BOM components defined with a default vendor in the Item Master and if YES are the components always purchased from the same vendor.
    I am trying to see how to establish the relationship of the items between the PO and SO.
    Please give me the details and I could guide you further
    Thanks
    Suda

  • How to find out the list of Production orders created for sales orders

    Dear All,
    Our company wants to generate a report for a List of Materials sold out in a particular Product Hierarchy. Along with that we want to know the list of Production orders created for the sales orders.
    How to identify the production orders which are created based on Sales orders.
    Kindly suggest.
    Regards,
    Mullairaja

    Check these threads
    [Sale Order & Production Order|Sale Order & Production Order;
    [Re: Linking Production Order against a Sale Order MRP run|Linking Production Order against a Sale Order MRP run;
    thanks
    G. Lakshmipathi

  • Accounting No not Created For Sales Orders when Processed thru Credit cards

    Hi Experts,
    I was able to successfully post FI document through Billing document in SD.
    The Problem is encountered when a Sales Order is created
    for Credit Card customers.
    When the sales order is created the credit card information we are prompted with an error message Payment terms is a required field for G/L Acc so and so...
    The payment terms field in the posting key 01 is marked required and the same field for the reconcilation account is optional. However this config has not created any problem for the Non credit card sales orders.
    If any one has faced the same problem. Please help me out in this issue.
    Thanks,
    Chaitanya

    Hi Friends,
    Please refer SAP OSS Note 119047.
    In the OSS Note they have mentioned..
    Pass the payment terms to the field
    xaccit-zterm = '0001'. in the User Exit.
    Program : LV60BF0C,
    Customer Function '002'.
    Include File ZXVVFU02.
    SE 37:- EXIT_SAPLV60B_002
    Still I don't understand why SAP doesn't support payment terms for Credit Card. But when a Sales Order is  created without credit card the field xaccit-zterm  has a value.
    Thanks,
    Chaitanya K

  • Stock booking for sales orders using APO gatp

    Hello Experts,
    We are having similar case as YR, for which I'm searching for a solution. > (Putting this in a separate thread so that I can reward points)
    We have certain sales orders (which are created on portal) for which we need to book stocks. These orders have different ord type. We want to give priority to these sales orders against existing/upcoming stocks. (For these orders, no customer master exists, kind of one-time).
    Requirement is - Portal orders are placed according to the updated stock on portal (frequent run programs). But at the time of actual delivery creation, it happens that no stock available for the order and existing stock 'robbed' by other sales orders/deliveries meanwhile. We want to give 'portal orders' more priority than other normal orders/STOs.
    We have receipt elements in Purchase orders only and no production orders. Also, portal orders are not subjected for gatp check, once the order is saved, a sales order is triggered & created in ECC (XI/PI) against dedicated Plants/Warehouses.
    We have gatp and trying to find solution for it. Could you please guide how to book stocks for these 'priority orders' against existing unrestricted-use stock & against upcoming purchase orders?
    Thanks a lot!

    Hello Babu,
    Thanks for your inputs. I would like to get into more details of what you mentioned about delivery priority. In my case, any customer places online order on webportal (based on current stock on portal which we frequently update through programs) and once the order is saved, a Sales order is created in ECC for a "one time customer" (there are hardly 2-3 customers for the e-orders), for which gatp check happens and stock is assigned as per availability and delivery date is assigned. So basically issues are
    1. Order in ECC should be placed with successful gatp check & confirmation - chances are of stealing stocks in between the 'time gap' of stock update on portal & order placing till order creation in ECC with gatp check >> for this we are working on stock update programs.
    2. Once delivery date is assigned to the order after successful gatp check, during the time of delivery creation, there are other STOs which steal stocks & create outbound deliveries before the portal order. Here we want to stop the 'robbing'.
    So looking at this aspect, could you please elaborate the point of -
    "Since you have a different sales document type, why don't you assign a higher delivery priority to these orders during ATP check ? You can influence the default delivery priority that comes from customer master to a very high delivery priority just before the ATP check ( use field catalogue user exit ) and pass the high delivery priority to APO"
    And how can we use field cataloguser exit?
    And ya, we may not need ROC, as there will be no one ready to 'Donate' But thanks for highlighting the option as well..
    Thanks

  • Create Std Sales order and APO upgrade

    Hi Gurus,
    I have a test case on  "Create sales order (ZSLR)" for which the expected result is" Sales order creation and APO upgrade". I am supposed to write the test steps for the above test case.
    Please guide me the test steps on how to do the "APO Upgrade" for a std sales order.
    Appreciate your help and suggestions .

    Hi Marc,
    The ECC sales order display depends on the availability of integration
    model and active ATP fields maintained in ECC material master
    In APO, the product view display is controlled in Order view
    customisation at APO under PPDS
    Regards
    R. Senthil Mareeswaran.

  • Planned material price in case of production order for sales order (MTO)

    Hi,
    In case of production orders created for sales order, the planned price for a component (BOM) material gets picked as per following:-
    1. If there is no entry in EBEW for the component (that is, there is no previous GR for the component) for that sales order, then plan price is picked up on the basis of planned costing variant.
    2. In case there is an entry for the component in EBEW (there has been a previous GR for the component with reference to the sale order) then the plan price for the component is taken from the EBEW table (first GR price) and system ignores the costing variant.
    The above is as per my observation. Please validate if this is correct or not.
    The requirement is that even if there has been a previous GR for the component (there is an existing entry in EBEW) the system should take the plan price on the basis of costing variant and not from the EBEW table.
    How can this be achieved? Is there a user exit that can force the system to read the costing variant before looking into the EBEW table?
    BR
    Abhi

    Hi Ajay,
    Yes i had considered it but I'm not sure If it will help.
    Because the main problem here is that system is ignoring the costing variant itself and instead picking the price from EBEW table. So changing the costing variant (validation variant) may not help.
    Moreover i don't want to valuate with my own strategy. I want the plan price to be equal to standard price of material from material master. Basically MBEW instead of EBEW.
    Any clues?
    BR
    Abhi

  • Deleting list for sale order

    Hi Guru’s
    How can get the deleting list for sale order?   
    Useful answer duly rewarded back.
    Regards,
    Devendra

    Hi Devendra,
    General Sales order will be deleted form the database after archiving.
    Step for Archiving:
    Sales Order is archived and deleted by the Archiving object know as SD_VBAK.
    If you just want to delete the sales order with out thinking of saving to archive server then please follow the path:
    1.GOTO SARA ---> Click Customizing -> click Archiving Object specific customizing (Technical settings)> In delete jobs mention start automatic --> Leave other settings as per the standard save and close it.
    2. Click write --> Mention Variant name -->Click on Maintain --> Select all the sales orders that you want to archive and delete --> Mention sales organinsation under which you have created --> Select Production Mode --> Click on Attributes --> Mention meaning of that attribute it could be any text --> Enter and save.
    3. Click on Spool parameters --> mention the output type --> Enter now you can see green signal light
    4. Click on Start date --> Click on Immediate --> Save.
    5. Execute or click F8 and see the job.
    6. After some time you can see the data is archived and deleted form the database.
    Hope this will help you in deleting the sales order form the database.
    Please Note: It is bit complicated you should take help of SAP Archiving consultant.
    -Thanks,
    Ajay
    Message was edited by:
            Ajay Kumar
    Message was edited by:
            Ajay Kumar

  • Error while creating the sales order with billing reference

    hi alll
    i am getting error while creating the sales order with billing reference.The line items are coming in grey.I am not able to change the items as well as the quantity field.Can u guide me
    cheers
    shalsa007........

    Dear SAP SD 007
    I can confidently tell that an enhancement or an user exit has been applied in your scenario
    You have to check that
    Normally when creating a sales order with respect or referring billing documents the qty will be in editable mode and it is standard problem
    Your people has solved the standard problem by enhancement
    Usually OR--LF-PGI----F2 (SAY THE QTY IS 25 UNITS)
    Now you are creating returns order with reference to F2 in the return order type Re there is a standard issue that user can edit the qty to 30 from the original 25
    To solve this only your people have used userexit
    Line items and qty greyed out means definately there is some enhancement or user exit applied
    You have to check that
    Regards
    Raja

  • Wrong short text for sales order item

    Hi guys,
    I have an issue for the short text for sales order item. It is werid that I get the different short text depends on how we enter the material. If we only enter the material #, we get the short text for sales order item from material master data. If we enter the material #, plant and storage location, we get the short text for sales order item from customer material infor record. However, the customer material infor record is only maintained for inter-compnay transaction. System should not pick it for third-party transaction.
    I found a code in FV45PFAP_VBAP_FUELLEN:
    Bei Primärbedarfen ist MAAPV-ARKTX nicht relevant
        if vbak-vbtyp ne vbtyp_pbed.
          vbap-arktx = maapv-arktx.
        endif.
    Kundenmatinfo hat höhere Priorität
        if knmt-postx ne space.
          vbap-arktx = knmt-postx.
        endif.
        if da_arktx ne space and
           svbap-tabix = 0 and
           vbapin-matnr = vbap-matnr.
          vbap-arktx = da_arktx.
        endif.
    But it is nothing customized. Who can tell me what is wrong here?
    Thanks,
    DL

    Hi,
    Text coming from source (MMR, CMIR etc.) is being "pulled" via the access sequence. Check the Text analysis in your sales order in Tab Texts, at item category level.

  • Business Object Template for SALES ORDER

    hi all,
              how to get the business object template for sales order..iam able to get template for business partners but unable to get for sales order.... i have tried all the codings given, by still iam getting a error like
    <?xml version="1.0" encoding="utf-8" ?>
    - <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
    - <env:Body>
    - <env:Fault>
    - <env:Code>
      <env:Value>env:Receiver</env:Value>
    - <env:Subcode>
      <env:Value>-1</env:Value>
      </env:Subcode>
      </env:Code>
    - <env:Reason>
      <env:Text xml:lang="en">General Error</env:Text>
      </env:Reason>
    - <env:Detail>
      <Command>GetBusinessObjectTemplate</Command>
      <SessionID>DC703486-75R0-AD4D-97D1-0E80D8195155</SessionID>
      </env:Detail>
      </env:Fault>
      </env:Body>
      </env:Envelope>
    my coding for getting business object template for sales order is
    <WebMethod()> Public Function GetBusinessObjectTemplate(ByVal SessionID As String) As Xml.XmlDocument
            Dim n As SBODI_Server.Node
            Dim s, strXML As String
            Dim d As Xml.XmlDocument
            d = New Xml.XmlDocument
            n = New SBODI_Server.Node
            strXML = "<?xml version=""1.0"" encoding=""UTF-16""?>" & _
            "<env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">" & _
            "<env:Header>" & _
            "<SessionID>" & CStr(SessionID) & "</SessionID>" & _
            "</env:Header><env:Body><dis:GetBusinessObjectTemplate xmlns:dis=""http://www.sap.com/SBO/DIS"">" & _
            "<Object>oOrders</Object>" & _
            "</dis:GetBusinessObjectTemplate></env:Body></env:Envelope>"
             s = n.Interact(strXML)
            d.LoadXml(s)
            Return (RemoveEnv(d))
        End Function

    Hi,
    I need to pass object key or object type to a function module 'SAP_WAPI_WORKITEMS_TO_OBJECT'. This function module returns the worklist details(workflow inbox). In worklist details i need to use the field for workitem id.
    Regards,
    Gautham

  • Integration model for sales orders failing repeatedly

    Integration model for Sales Orders to APO is failing and in the CIF the error says "Customer requirement G BR 0082372353 900010 0000: liveCache problem, retu".
    This error appears everytime you we run the integration model and it says in the Job log; ABAP/4 Processor: SYSTEM_CANCELED.
    Note that this is "not" manually stopped but it still gives this error.

    Hi Kailash,
    Run /SAPAPO/SDRQCR21 in apo for the part contained in your delivery document, which is failing. While running the report, check the radiobutton, Build the requirements from Doc.Flow table. This will remove the inconsistencies remaining in the requirement table on R/3 side.
    Try this and let us know, if you could succeed.
    Regards
    Sanjeev

  • Purchase order created from sale order ( third party)

    Hi...
    In third party sale, when sale order is created in SAP system will automatically creates Purchase requisition which can be converted into Purchase order,
    My requirement is i need to identify against which sale order the above purchase order is created, do this purchase order has any reference of sale order.
    Is there any way where i can track the purchase order number entered while cretion of sale order in the purchase order generated after creation of sales order.
    Suggestion will be worth rewarding.
    Regards
    SARFARZ

    Hi
    I think you are little bit confused.The PO number entered while creating the Sales order is nothing but the customer Purchase order.This we may receive in different forms.Hard copy or Mail etc.We will give this number as a reference in sales order.
    Where as for third party orders, depending on the schedule line category (SD), PR will be generated.This will PR will be converted in to PO.In PO item detail, you can find account assignment tab, where you can find the sales order number.
    If you want to link customer PO to the SAP PO, then you need to link the two tables.
    Regards
    Ramakrishna

Maybe you are looking for