Vendor invoice for sales order delivery cost condition type

Dear SAP guru,
We have a scenario where we have added certain delivery cost in the sales order as condition type. There will be an accrual posting out of this condition type. We have defined the vendor code in the condition record.
The question is how to generate an invoice on this vendor with reference to Sales order, as there will not be any purchase order for the delivery cost.
Thanks in advance.
Rama

did you already apply note 1585042
Symptom
You create a Sales Order with multiple third-party items.  The system
automatically generates an MM Purchase Requisition with multiple line
items.  Each of these line items can have a different fixed vendor
(field EBAN-FLIEF).
In the Customizing transaction VOV7, the Sales Item Category (usually
TAS for Third Party) has the field ALEKZ 'Create PO Automatically'
selected.  Therefore, one or multiple follow-on Purchase Orders will
also be created from the Requisition data during the same Sales Order
creation workflow.  The system creates a separate Purchase Order for
each fixed vendor (supplier) found among the Requisition items.
During this ALE PO creation, if one of the Requisition items fails to
successfully create a PO, the next relevant PO created may have an
incorrect vendor in its header.  The vendor in the PO header may not
match the fixed vendor that was designated in the Requisition line item.
Solution
Implement the attached code corrections.   After this correction,
regardless of whether one of the Requisition items fails to generate a
PO, any PO that is successfully created during the process will have the
correct assigned vendor.

Similar Messages

  • Tables for Sales Order,Delivery Doc, Billing Doc

    Hello All,
    Can anyone list the tables that are relevant for Sales Order,Delivery, Billing-Header,Item,Schedule line level as applicable.
    Regards,
    Raj

    Hi Raja Sekhar,
    Customers
             KNA1   General Data
                      KNB1   Customer Master – Co. Code Data (payment method, reconciliation acct)
                      KNB4   Customer Payment History
                      KNB5   Customer Master – Dunning info
                      KNBK   Customer Master Bank Data
                      KNKA   Customer Master Credit Mgmt.
                      KNKK   Customer Master Credit Control Area Data (credit limits)
                      KNVV   Sales Area Data (terms, order probability)
                      KNVI   Customer Master Tax Indicator
                      KNVP   Partner Function key
                      KNVD   Output type
                      KNVS   Customer Master Ship Data
                      KLPA   Customer/Vendor Link
    Sales Documents  
    VBAKUK VBAK + VBUK
                      VBUK   Header Status and Administrative Data
                      VBAK   Sales Document - Header Data
                      VBKD   Sales Document - Business Data
                      VBUP   Item Status
                      VBAP   Sales Document - Item Data
                      VBPA   Partners
                      VBFA   Document Flow
                      VBEP   Sales Document Schedule Line
                      VBBE   Sales Requirements: Individual Records
    SD Delivery Documets
    LIPS   Delivery Document item data, includes referencing PO
                      LIKP   Delivery Document Header data
    Billing Document 
    VBRK   Billing Document Header
                      VBRP   Billing Document Item
    SD Shipping Unit 
    VEKP   Shipping Unit Item (Content)
                      VEPO   Shipping Unit Header
    REWARD POINTS IF HELPFUL
    Regards
    Sai

  • Delivery cost condition type in PO coming as display mode

    Hi Experts,
    In my Purchase order having delivery cost condition types, for ex freight.  For this PO i have done Goods receipt. PO all the delivery costs are showing in display mode. i have reversed the Good receipt.Again also all the delivery costs are showing grey mode in PO.
    I want to make as editable for this PO after reversal of GR. Kindly do the nedful.

    HI makarand  ,
    the condition type you have created is this assigend in Item Level or Header level. Plz check this in Header and item Conditions Tab. If you can assigned Delivery cost condition type in item level than it will changed by item level itself.
    In Header Level it displays in Display Mode.
    Vraj

  • Delivery cost condition types in ECC

    We are going for Ext clasic scenario where SRM POs will be transferred to backend. How to have delivery cost condition types in SRM which will also appear in ECC POs? In SRM condition types, condition category does not have delivery cost option , like ECC.
    I created the same condition type in SRM as in back end, and marked it as statistical in the 0100 pricing procedure, but it does not appear in backend PO , although the pricing procedure in backend has the same condition type as a delivery cost condition.

    Hi
    <u>You can create custom fileds in the Local SRM POs by using SAP OSS Note 672960 and 485891.</u>
    <u>Map the data from SRM system to back-end ECC system using BADIs -></u>
    BBP_ECS_PO_OUT_BADI 
    BBP_PO_INBOUND_BADI
    or some standard SAP function modules can also be used here.
    <u>Other related Information -></u>
    You can change the following credit memo data at header level:
    <b>Unplanned delivery costs</b>
    You can change the unplanned delivery costs.
    <b>Links -></b>
    http://help.sap.com/saphelp_srm50/helpdata/en/e7/72623c6b69bf70e10000000a11405a/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/a4/f1db8a5422408695e1d5265477ecd7/frameset.htm
    <b>Condition types in SRM</b>
    http://help.sap.com/saphelp_srm50/helpdata/en/72/f40f3c98ddaa4ce10000000a11402f/frameset.htm
    <b>Condition Categories in SRM</b>
    http://help.sap.com/saphelp_srm50/helpdata/en/76/d90c3cb8d19347e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/ee/d9df3bbcce4b37e10000000a114084/frameset.htm
    Hope this will help.
    Do let me know.
    Regards
    - Atul

  • Condition for sales order delivery block

    Hi All,
    I am new to Workflow,
    I have created work flow  for Sales order changes, its works fine.
    but my requirement is after that it will check whether sales is block for delivery or not.
    if it is block then only it should send mail.
    Regards,
    Arpit

    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

  • Proforma Invoice for Sales Order

    Hi,
    Currently, SAP will generate all items using the entered SO for Proforma Invoice despite that some items already being created.
    There isn't any suitable user exit to filter those checking on items being generated.
    Please revert if there is any other way in doing it.

    Hi
    My suggestion is to use the copying requirements at the item category level in the copy control in VTFA
    Copy routine is created in VOFM
    KIndly take the help of ABAPER for the Code, example given below
    if vbap-vbeln is not initial.
      select single * from vbfa into wa_vbfa
      where vbelv = vbap-vbeln
      and posnv = vbap-posnr
      and VBTYP_N = 'U'.
      if sy-subrc = 0.
          concatenate 'proforma for sales order ' vbap-vbeln 'and' vbap-posnr 'already generated' into lv_text separated by space.
          message lv_text type 'E'.
      endif.
    endif.
    Regards
    Damu

  • 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.

  • Results analysis for sales orders- actual costs/ revenues - (kka3-kkak)

    Hi, i have a problem when I execute the individual results analysis for sales orders (kka3) I can see actual revenues and actual costs, however when I execute the collective processing (kkak) for the results analysis I don´t see these (actual revenues and costs). Is it normal? How can I see these in the collective processing?

    Could be one of these possibilities:
    1) Controlling Area set is wrong
    2) You're input parameters are insufficient to get that sales order. Check Order Type etc you input in the main screen
    3) The master data is wrong which is not allowing the link to the Sales Order. You would have to check each field thoroughly.
    You will have to probably do a lot of checks before you resolve this. This isn't normal btw....you should see all Sales Orders
    Assign Points if useful....

  • Dynamic Credit Checks - Different Horizon for Sales Order & Delivery

    Hi Experts ,
    had a query . I am testing a scenario for Dynamic credit Check where the Horizon is ZERO for Sales Order & 3 Months Horizon for deliveries. How should the system behave in such a case. What would be the best way to test whether system behaviour is ok as per this expectations.
    Also I would like to know whether "0" horizon for sales order means that system looks into the entiire list of open sales orders or  the horizon of check is only upto the end of the current month . In FD32 the curent date is indiacted as the horizon date. While creating sales orders today I found dynamic block for 0 horizon is only working for sales orders with availabilty date upto 7th July '10 which neither covers the existing month-June & neither full of July. Beyond that there is no dynamic block soccuring.That made me a bit confused .
    Please advice with you valuable inputs.
    Thanking You.

    Hello Sai ,
    thank you for the response. Had already checked note . But this does not speak about the implication "0" M horizon of dynamic credit check . What is coverage for that ?

  • FM for sales order delivery status

    Hi,
    Is there any FM which can return the delivery status for a sales order line item?
    Thanks and regards,
    Madhu

    Delivery Status -- It is for Sales Document -- Means if one or more items of a Sales Order processed it will consider and based on that this status is set (Delivery started for at least one item of Sales Order)
    Overall Delivery Status -- It is based on the Sales Order Items... Means all the items of a Sales Order are processed it will consider and based on that this status is set

  • Maximum no of Line items for sales order,delivery document and billing docu

    Dear friends,
    How many line items we can enter for the following,
    1) a Sales order
    2) a Delivery document
    3) a Billing Document
    Thanks in advance.
    Regards,
    Shrikant

    Hello,
    the maximum limit of line items are as follows
    order-9999
    for delivery and invocie , it is restricted to 999 accouitng line items. since the tranfer to accounting can handle only 999 items , the restriction on delivery and invocie
    ex if there are excise postings, for a single line , there might be 5/6 lines genetrated for each line in invocie , therfore as per this the line in invocie get restricted
    you have a sap note , which offers suggestions to partially over come this
    hope this helps
    Thanks
    akasha

  • Problem in Sales Order with specific condition type.

    Hello Experts,
    I'm facing a problem in sales order creation for a specific condition type.
    the actual scenario is as below,
    We have created a new condition type for special discount.This condtion type is applicable only for specific sales channels.Also the discount percentage has to fetched from a custom table.
    To achieve this I've written a user exit "RV64A999"
    In the FM, i've calculated the subtotal and fetched the discount percentage and calculated the discount amount. After implementing this, the SO were been created properly. for all the line items the discount amount was getting calculated properly.
    But then I added a condition at the top of code in exit that the calculation for the new condition type should happen only for selected sales channels.
    But after adding this condition in code, i'm facing problem. Now when I create/ change any SO, the discount amounts are getting calculated incorrectly. I'm getting discount amount even if the line item subtotal amount is zero (0).
    Any help or pointers reagrding this issue will be very helpful and highly appreciated.

    Hi ..
    Check your config. again or debug the routine code with your ABAPer and find the problem area.
    -Maharshi

  • Warning for header po delivery cost but with only free of cost items

    Dear.
    Do you know If exist a chance to send a warning If I insert in a purchase order a header delivery cost condition type but the items of this po are only free of cost ?
    Thanks.

    Dear Chris,
    As per my knowledge this cannot be done in standard SAP because
    When we create PO line item with Free goods indicator set automatically item conditions tab correctly disappears
    But the header condition tab always will be there because " In a PO you may have 6 line item out of them 3 is free goods and 3 is not " That is the reason Header conditions tab is there.
    But you don't really have to worry because if you have only 1 item with Free goods indicator set and you enter a amount for header freight you will find the field condition value by default Blank and you cannot enter a value there , so no need to worry no postings will be made.
    Now say you have PO with 3 line items (out of which1 with Free goods indicator) and you enter a header freight 100 EUR
    You will find now that field condition value is not becoming blank and the amount 100 EUR is distributed among 2 non free Goods item proportionately.
    Hope it clarifies

  • Urjent-Any function module for finding Sales order, Delivery and Invoic

    Hi Experts,
    I am having selection screen like
    Sales order
    Delivery
    Invoice
    Customer
    If i give sales order
             Delivery and Invoice should pull
    If i give delivery
             sales order and Invoice should pull
    If i give Invoice
             sales order and delivery should pull
    If i give customer
               all customer related data should pull
    Do we have any function modules to meet this reqirement?
    If we have please provide function modules.
    Thanks,
    mahe
    Edited by: Rob Burbank on Mar 30, 2009 4:17 PM
    Edited by: mahahe on Mar 31, 2009 9:12 PM

    You can use VBFA table, right? in the FM also, you can find the same logic, like pulling from VBFA table.
    thanq

  • Invoiced blocked for sales order (configurable material external procurement )

    Hello Expert
    Configurable material external procurement
    Invoiced blocked because ,"Error reading the material cost estimate for sales order "75501"
    Message no. KE292
    Diagnosis
    In Profitability Analysis (CO-PA), the system tried to valuate item
    000010 of sales order 75501 by reading the corresponding product cost
    estimate.
    However, no product cost estimate could be found for this sales order
    item.
    The system accessed product costing for product 10820 using costing
    key 002 as defined in the
    CO-PA Customizing
    settings.
    System Response
    The system cannot process the document any further.
    Procedure
    Check your Customizing settings.
    Note:We can't run cost estimate and releasing it because it's a configurable material  but external procurement. We place a purchse order based on configurable sales orser
    Thanks
    Parves

    Hello Declan,
    Thanks for your reply. Could you please give me the steps for Maintain the
    sales order cost estimate?
    Requirement: Customer service receive order with variant configuration product,
    then MRP Crete PeReq, convert  PO and
    send to supplier .Supplier configure the product and direct delivery to
    customer. Supplier sends an invoice to us. Then we send invoice to our customer
    Thanks
    Parves

Maybe you are looking for