Retrieving Sales Orders from Pricing Conditions

I need to retrieve pricing condition number KSCHL from tables A906, A908, A966, A967 and A997 based on Sales Contracts (VBAP-VGBEL). However all the above tabels do not have a Sales contract reference. Some have while some have MATNR and KUNNR.
Can anyone suggest a FM or a BAPI that can get me the price condition numbers related to a Sales contract.
Thanks in advance.
regards,
Soumya

Hi there,
Give us some more feedback what your purpose is ...
Do you want to get information about existing orders or do you want to create new ones based on contracts, etc...
Without knowing your purpose it is quite hard to answer this one ...
Thx
Steven

Similar Messages

  • Block Sales order if pricing condition changed manually (no delivery)

    Hi,
    Requirement is to block sales orders for review by a manager if pricing condition amount is changed manually. Only a manager  should be able to review and release the sales order for billing. There is no delivery, item is service.
    Thanks

    Hi,
    This can be achieved as follows:
    1) SAP Standard updates the field KOMV->KSTEU for respective price condition type as soon as its changed Manually.
    2) Through enhancement automatically delivery block should be set at Sales Order Header, for which User (Sales End User) should not have rights to change.
    3) Respective Sales Manager should receive a mail regarding the same.
    Point '3' can be done manually i.e user will request respective Manager to do the needful.
    RB.

  • Sales Order VA01 pricing/condition scales

    Hello,
    we have set up scales (in transaction VK11) for some conditions on header level
    (this means e.g. for the sales order type, not on material level).
    But it seems that the standard considers the pricing/condion scales only on item level.
    example:
    VK11
    set up scale for freight cost
    if net-price is higher or equal to 50.- Euro than reduce the freight cost to zero.
    sales order
    item 1            net-price  20.- Euro
    item 2            net-price  30.- Euro
    -> The freight cost is not reduced because the net-price per item is not equal to 50.-
    But we want that the freight cost is reduced to 0 because the total amount of the net value of the sales order is equal to 50.-
    Is there a standard setting to have this system behaviour in the sales order entry?
    Which user exit can we use instead?
    Thank you very much for help.

    Hi,
    This can be achieved as follows:
    1) SAP Standard updates the field KOMV->KSTEU for respective price condition type as soon as its changed Manually.
    2) Through enhancement automatically delivery block should be set at Sales Order Header, for which User (Sales End User) should not have rights to change.
    3) Respective Sales Manager should receive a mail regarding the same.
    Point '3' can be done manually i.e user will request respective Manager to do the needful.
    RB.

  • Sales Order Header Pricing Conditions

    Hi All,
    I am using BAPISDORDER_GETDETAILEDLIST function module to get the pricing conditions. I am able to see Item Pricing Conditions in the ORDER_CONDITIONS_OUT  table but not able to find the Header Pricing Conditions.
    Please let me know how to fetch header pricing conditions. Is there any other FM which can do it?
    Thanks
    Jit

    Hello,
    Try these FM's.
    SD_SALES_HEADER_READ
    SD_SALES_ITEM_TABLES_READ
    SD_SALES_PRICING_INFORMATION
    MRM_DBTAB_KONV_READ
    RV_KONV_SELECT
    Please check out the Function module RV_INVOICE_DOCUMENT_READ.
    Here you need to pass on the invoice no. In the output it shall give you details in invoice header and item levels, price, document status. You will get the net amount as well as the tax. Then you need to add the net amount and the tax to get the total amount
    Regards,
    Vasanth

  • How to stop sales orders from contracts from qualifying for Rebates.

    We have set up rebate agreements for customers and they are working as expected.
    Now our sales people want to start using contracts for some special deals for certain customers and products. But they DO NOT want these sales orders from these contracts to qualify for rebates.
    Does anybody know how we can set this up or if it is at all possible?

    Hi Zoya,
    I got one more idea and so try it out.If it sounds foolish please ignore.Instead of going for userexits its better you go for a different sales order type whenever you refer to a contract.And make sure you assign a different pricing procedure which does not contain the condition type BO03 at all.Ofcourse this new sales document should have a different document pricing procedure.
    Regars
    Ravi Kiran

  • User exit to update the incompletion log in sales order for pricing error

    Hi experts,
    I have to check the some mandotory pricing conditions in sales order, if that conditions are not exist in sales order then i need to show the information message as well as i need to update it in incompletion log of sales order. (incopletion log we can see on menu bar 'EDIT' or ctrl+F8 on main screen of VA01). So that user can save the sales order but it will be in incomplete status.
    I have completed it upto showing the information message using user exit 'MV45AFZZ', but after this i don't know how to update it in incompletion log of sales order for pricing. I tried to update in tables VBUK-UVPRS, but i am not getting the desired result.
    Please anyone can tell me how to update it. In which user exit i can update the incompletion log.
    Thanks and Regards,
    Vicky.

    Hi Vinod,
    I am sending you my code please check it,
       if TKOMK-SPART = 10.
        if XKOMV is not INITIAL.
          clear v_JEXP.
        READ TABLE XKOMV with key kschl = 'JEXP'.
        if sy-subrc = 0.
          check XKOMV-kwert = 0.
          message i003(ZT) with 'Value should not be 0 for conditioin type JEXP'.
          v_JEXP = 'X'.
        else.
          message i003(ZT) with 'Maintain the mandatory Conditioin type JEXP'.
          v_JEXP = 'X'.
        endif.
        if v_JEXP = 'X'.
      XVBUV-MANDT = sy-mandt.
      XVBUV-POSNR = '000010'.
      XVBUV-TBNAM = 'VBAP'.
      XVBUV-FDNAM = 'PRSOK'.
      XVBUV-FEHGR = 20.
      XVBUV-STATG = '06'.
      XVBUV-FCODE = 'PKON'.
      XVBUV-SORTF = 9999.
      XVBUV-LFDNR = 0000.
      XVBUV-UPDKZ = 'I'.
      append XVBUV.
        endif.
    endif.
    endif.
    Please suggest something to solve this.
    Thanks and Regards,
    Vicky.

  • Replication of BP and Sales order from CRM to R/3

    Hello everyone,
    I have a peculiar condition in my hands.The requirement is to replicate 10 business partners from crm to R/3 ,then the next 4 Business partners need not be replicated and then the next three replicated..How do we do this kind of replication....
    One thing more regarding the replication of sales order.When we save a sales order in CRM,is it automatically replicated to R/3 or do we need to release it manually??
    If yes,then if we do not want to replicate the sales order from crm to R/3,then what will we do?
    Consider that all the middleware settings are configured and working fine..
    Puneet

    Hi Bokhal,
    Please consider my answer from your recent thread dealing with apparently the same issue :
    Hi Bhokal,
    For filters in uploads please consider below:
    For Filtering the BP-upload, use the Administration Console
    (tx. SMOEAC) in the corresponding subscription of the "All Business
    Partners (MESG)" publication assigned to the R/3 site.
    Some publications (and the replication objects they are based on) are
    delivered as type "Simple bulk" which does not give you the opportunity
    to assign criteria values for filtering.
    You might have to re-create the publication. To do that:
    1) First delete the subscriptions "All Business Partners (MESG)" and its
    publications & the replication object.
    2) Recreate the replication object as type "Simple intelligent".
    3) Afterwards you can create a new publication via wizard of type
    "Simple intelligent (msg)" assigned to the BDOC-Type BUPA_MAIN. Then,
    you will be able to select some "filter criteria".
    The reason for deleting the "old" publication is, that you
    are not allowed to assign a BDOC-Type to more than one publication.
    4) But please keep in mind that there is no realignment supported. So
    you should only use fields for filtering, which cannot be changed
    afterwards.
    This is the "simple" solution for filtering on fields. This
    will not provide complex filter criteria.
    If you need this, you shall create a filter function in R/3- and/or
    CRM-Inbound and -outbound.
    If you want to keep the control about the upload trigger, you can add an
    additional module in transaction CRMC_BUT_CALL_FU, position > 200000.
    BUPA_MWX_BDOC_BPS_FILL_CENTRAL. Within this new module, you can delete
    all partners within the complex structure that you don't want to upload.
    Hoping that above will be helpful.
    Best regards
    Christophe Sturzel

  • Creating one Sales Order from Multiple Quotes

    Hello
    We are using SAP CRM 2007.
    I believe in CRM we can create one sales order from multiple quotes. We have a requirement where we need to create one Third party sales order from multiple Quotations.
    I have Item cat for Quotations and Sales Document maintained correctly.
    I also have copy control where ZQUO and ZSAL are maintained correctly. Where I have maintained settings for copying Transactions as well as Item Category.
    But when I go to CRMD_ORDER and retrieve quotes and try to do a follow on doc for sales doc , only the first Quote gets added into follow on document.
    Can someone tell me if I am missing any config?
    Thanks

    hello,
    in sap ui we use control button and select multiple quotes and then
    create the sales order as follow up as we have follow up button.
    Regards,
    Deepa

  • Enable PDF Generation of Sales Order from Opportunity not working

    Hi all,
    we are trying to enable the PDF Generation for Sales Order from Opportunity.
    We´re working on the ERP-HCI Scenario.
    We´ve setup the necessarry configurations (chapter 11.3.11) how described in the document:
    https://websmp201.sap-ag.de/~sapidb/012002523100002166322015E/1502_SAP_C4C_ERP_HCI.pdf
    1. Create Endpoint in ECC for the WS "SalesDocumentPrintPreviewQuery"
    After saving the settings we have an calculated enpoint:
    /sap/bc/srt/rfc/sap/salesdocumentprintpreviewquery/{SAP-CLIENT}/salesdocumentprintpreviewquery/salesdocumentprintpreviewquery
    2. Create a new Communication Arrangement in C4C for the Scenario "Print Preview of Business Documents in SAP Business Suite"
    Question to the following Step:
    Go to Advanced Settings and enter the URL you have captured from SOAMANAGER in the Create Endpoint section.
    Why we use the host and calculated endpoint from the ECC instead of the HCI settings, and maintain in HCI the target host and endpoint?
    The Check Service and Check Connection test was successfull.
    Finally if we try the scenario from C4C (Customers > {Select a Customer} > Opportunity > Sales Document > {Click the link}
    We got a blank new Window, in the C4C UI we get the error "PDF Document could not be retrieved"
    In the ECC > SOA Runtime Error Log i get the following Error!?
    What´s wrong with our config?
    Thanks in advance,
    Fabian

    There is nothing impossible in SAP. After all there is a code behind everything that we see in SAP screens and transactions and that code can be changed according to our requirement. That has always been m firm belief.
    Like I said get hold of your ABAP programmer and write out the spec and he should be able to do it.
    Its news for me that you can generate an automatic PO from a GR so if that is possible then why not this.
    Its not been attempted before.
    Try creating a new Sales doc type and map it to a delivery and see if it works. Much similar to a cash sale and rush order when both docs get generated immediately. Maybe you need to map your copy control criteria too in a way it can be done.Also maybe you need to create a new field called Immediae sales Order like we have an immediate delivery check box in a sales order so that an automatic sales order can be generated when you save a delivery.
    Like I said it needs some coding.
    regards
    Jude

  • BAPI:Create sales order from an existing open sales order for open items

    Dear All,
    Could any one suggest me any BAPI that can create sales order from an existing OPEN sales order for OPEN items. since we are closing all open orders and creating new orders with reference to existing open orders.   please suggest, its would be great help.
    Regards,
    Reddy

    hi suresh,
    we are changing tax procedure from formula to condition based, so this is the reason we have close all the open orders and recreate in TAXINN procedure, it is going to be large number of records( open orders), so....
    Regards,
    Reddy

  • Transfer Sales  Order from client to client

    Hi All,
    I am trying to transfer sales order from one sap to other sap system.Here i am using ale idoc process.In the system there are some sales orders,i need to transfer that to other system.we configured message type and added out put types as ALE and it is sending idoc to other sap system and it is not creating automatically so in debug mode i can run that and creating sales order.Here i am facing some issues like
    1) Condition types like (ZJPR) manual condition type for base and insurance   is not transferring,and i can not see in this in outbound idoc.
    2) Will it create sales order automatically or do we need run manually.
    All valuable suggestions are welcome.if it not a right place then i can move this to ABAP Connectivity.
    Regards,
    Madhu.

    Thanks Madhu -
    Could you please Check that your Distribution Model is setup correctly.You should have Message type ORDERS in your sending and receiving System.
    Sender System
    Receiver System
    If Above setting is not reflected in your system then either create New Distribution model or delete message type from existing Model.-----Add New Message Type-----and distribute model from Sender system.
    Regards
    Amit

  • Change open sales order with new condition schema

    Hi SD Experts,
    I have to change condition type on condition schema. For example, now we have ZPVI (Discount %). I have to change with ZPFI (Discount %). But we have some open sales orders with old schema. Can I correct old sales orders with new condition schema? Is it possible?
    Thank you.
    Gulay Celik

    >
    Shai Sinai wrote:
    > 3) The item categories of document items are assigned to billing plan types. This customization does create separate billing plan for each item, but the billing plans of item are refrenced to the header billing plan (according database field FPLA-RFPLN and screen field RV60F-KFREL), what  means that item's values are not taken into consideration.
    >
    In this case it is obvious that it's not possible to have an item on the same document, which would have a billing plan different from the header. Unless, of course, you are ready to change the existing configuration or create a new item category, which would be independent from the header billing plan.
    If, despite configuration, such entry is possible in VA41/VA42, then you'll have to use BDC instead of BAPI. Unfortunately, BAPIs do not have all the same functionality that might be available in the transaction.

  • Migrate all Open Sales Orders From Legacy System (SAP) To SAP System using

    Hi Experts,
                 I've to Migrate all Open Sales Orders From Legacy System (SAP) To SAP System using Business Objects with a new SALES ORDER DOCUMENT NUMBER referencing the older one.
               I'll get all the required data with field in an excel file.
                 Does any standard transaction exist for it ? Or how to go ahead with it ?
    Thanks and regards,
    Jyoti Shankar

    Hi
    If you are checking for CREATE option then Sales Doc Type
    For more Info goto SWO1 transaction -> BUS2032 --> DIsplay --> Execute --> There SELECT the method which you want to perform... There you can fine the MANDATORY parameters also....
    Or in DISPLAY mode PLACE Cursor on the Required Method and CLick the PARAMETERS button on toolbar...
    That will show the MANDATORY parameters...
    Reward if helpful....
    Message was edited by:
            Enter the Dragon

  • Uploading open sales orders from sap

    hi all,
    i need to upload open sales orders from legacy to sap. pls advice what steps need to be followed for the same.
    1) how we will we download open sales order from legacy and where..... is it to some flat file or some other option is  there . pls tell some options.
    2) how we will uload the sales ordes into sap . thru lsmw or is there some other option ?
    3)  there will be more number of fields in sap than in legacy. i think we need to manully create an excel file and add more fields manually in excel file so that the compulsonry feilds as per sap are present in sap ?
    4) how will availability check happen  in sap after sales order are t/f from legacy ?
    rgds
    pamela

    hi pamela,
    1.a. you need to down load in EXCEL in legact format and convert the same in LSMW format and upload it
    2.a. LSMW - Functionally, BDC, BAPI - Technically. to my knowledge LSMW is better option.
    3.a. first you download to EXCEL file from LEGACY, then align the same to SAP format you can add those fields that are mandatory as per your requriment.
    4.a.You are uploading sales orders in SAP which are showing OPEN status from LEGACY before you uploading the sales orders MM consultant would have uploaded its stock through 561 - dont worry on that, even though if stock is not uploaded also not an issue it will confirm at the later date.
    5.a. we have used LSMW process for our PREVIOUS ASSIGNMENT, before that we tested BAPI for it some how it was not capturing some fields.
    hope all your queries are solved
    balajia

  • Load Sales Order from Xml file

    Hi,
    I want to load a sales order from xml file. How can I do so? Where I'll get the xml schema for Sales Order or other documents (delivery,invoice etc)?
    Plz reply with code and xml file.

    When I'm going to load SO from xml file, it's showing an error:
    "The connected value 0 was not found in table Uasge of Nota Fiscal".
    What is this table for? Which attribute is related with this table?
    How can I find out that?

Maybe you are looking for