BAPI_SALESORDER_CREATEFROMDAT2 and Sales Contract

We're having trouble with BAPI_SALESORDER_CREATEFROMDAT2 getting a corresponding sales contract price.
For some reason the BAPI can not get a price from corresponding sales contract.There is a statement in the standard SAP program that checks if there is a function call and skips a peice of logic I think is checking for preceding sales document.
I couldnu2019t find any OSS note that will fix this.It seems like a pretty common business scenario. Has anyone run into this before, and if so, how did you fix it?

Hi Friend,
The BAPI does not check preceding document for price.
Please check program is passing proper condition type and price to the BAPI parameter ORDER_CONDITIONS_IN. And also check ORDER_CONDITIONS_INX is getting populted with proper values.
Hope it will help you.
Regards
Krishnendu

Similar Messages

  • Sales Agreements and Sales Contracts

    Hello Friends,
    Could anybody clarify me about what are the key differences between Sales Aggrements and Sales Contracts in SAP CRM 5.0  ?
    Thanks in advance,
    Sridhar Reddy.P

    hi Shridhar,
    A<b> sales agreement</b> is a long-term agreement between business partners in which you can define conditions (for example, prices and terms of delivery) and releasable products. These conditions and products are valid for all contracts or sakes orders that a customer creates with reference to the sales agreement.
    You use sales agreements to offer (better) prices to a particular customer group (business partner type) for a particular list of products, without committing them to particular purchase quantities.
    <b> Sales Contracts</b> are information related to quantity and value contracts. Therefore it delivers data on the target values and quantities of contracts for certain sold-to parties or sales organizations. It contains validity periods and released amounts as well as details about the contract status, for example, whether the contract is open, has expired or been rejected.
    Hope it clears your doubt.
    Regards
    Arun Kumar

  • Create customer and sales contract in one commit

    does anyone know a method to create a customer and a sales contract guaranteeing transactional, using one commit at last of work?
    I use to create a customer the standard class CMD_EI_API.
    Thanks of all.

    Hi Daniele,
    I see people who have one sold-to-party (AG) with several delivery address (temporary). In the SD document, they modify the address  to create a specific address for each SD document. In SAP that will create you an address starting with 999   it's an address only valid for the SD document.
    it's not beautiful, but it works
    regards
    Fred

  • How to restrict Material Class in Sales Contract Doc

    Hi,
    I need to restrict Material Class in Sales order based on Item catagory, Material group4 and Sales contract Document type.
    If the above 3 fields having a particular value then the system should restrict all the other classes of that material and display only a particular class and it's related characteristics.
    If any one come across such a senario then pklease let me know.
    Regards
    Ajay

    Hi,
    You have to make few configuration settings before you actually restrict at the object level. The solution is clearly discussed in the below thread:
    how to restrict material master by material type  t-code MM01
    Hope this helps!!
    Regards,
    Raghu

  • Under /Over Delivery Tolerance with Sales Contract

    Hello All,
    Overview: In our current environment we are creating Sales Contracts, then a Subsequent order from the Sales contract. We change the Sales order quantity to desired amount for the time of delivery which the customer is requesting. Also in customer master (XD02) we have delivery tolerance setup for under and over.
    Question: Since we have tolerance setup for the customer.  At delivery time, we picked less from what the sales order originally had and complete the whole process to billing. Does the remaining quantity go back to the sales contract?  Sales order is still showing "Being Processed" Or is not possible to do that with delivery tolerance setup and Sales Contracts?
    Scenario 1: XD02 - Tol. Over/Under set as 5%. Unchecked box "Complete Delivery", "Partial del. Set to "Blank" and Max Partial to "9" for Customer
    Created Sales Contract for quantity 500 Tons--> Created Subsequent Sales order for 25 Tons.
    Delivery: Picked 22 Ton's. Recieved Message" Underdelivery tolerance of 5.0% has been exceeded".
    Completed shipment and billing.
    Sales order shows "being processed" and remaining qty did not go back to original Sales Contract.
    Scenario 2: XD02 - Tol. Over/Under set as 5%. Checked box "Complete Delivery", "Partial del. Set to "B" and Max Partial to "1".
    Created Sales Contract for quantity 500 Tons--> Created Subsequent Sales order for 25 Tons.
    Delivery: Picked 22 Ton's. Recieved Message" Underdelivery tolerance of 5.0% has been exceeded". Acc. To the partial dlv. Agreement, no subsequent delivery can take place
    Completed shipment and billing.
    Sales order shows "Completed", but the remaining quantity did not go back to the original Sales Contract.
    Is possible to have the remaining quantity to go back to the Sales Contract without going back to the Sales order and change the quantity to what was shipped.  Can this be done via configuration?
    Can anyone please shed some light on this.
    Thank you all,
    Nav

    Hi
    Can this be done via configuration?
    To my knowledge...definitely NO. It is not possible through configurations.
    Regarding the two scenarios...you are delivering quantity less than the lower tollerance. It should not happen and if your business process demands it....there is no meaning of maintaining the tollerance limits for the customer. Since the message is a warning message, you are ignoring it and proceeding with the delivery. This message should be an error message and delivery should not be allowed when the tollerance limits are crossed.
    Thanks,
    Ravi

  • Need Sales Contract No. in Invoice in SMARTFORM

    Hi,
        I need Sales Contract number in Invoice Smartform. I tried to fetch Contract number form VBFA table
    but Contract number is not there but in Sales Document flow for invoice,it is created with reference of  Contract number but there is no Contract number in Table VBFA for that Billing Doc no. Is there any other method to fetch it..I want to fetch Sales Contract number and Sales contract date in Invoice Smartfrom
    Please do needful.

    try this logic
    first select sales order from you invoice number
    select vbelv posnv
    from vbfa
    where vbeln = invoice number
    and vbtyp_N = 'M'
    and vbtyp_V = 'C' .
    Then use these sales order and get records from VBAP, field VGBEL and VGPOS has Sales order contract.
    select vgbel vgpos
    from vbap
    where vbeln = vbfa-vbelv
    and posnr = vbfs-posnr.

  • Creation of Sales Order and Service Contract from Inbound IDOC

    Hi Experts,
    My requirement is to create a Sales Order as well as a Service Contract from one Inbound IDOC. I am getting the Inbound IDOC from a third Party. The message type is ORDERS and Basic Type is ORDERS02. How ever i am using an extension type IDOC which carries all the required data for Sales Order and Service Contract. My requirement is like, to create a Sales Order first.
    I have created a Z FM which is attached to the Process Code and subsequently to the message type. Inside the FM i an calling FM 'IDOC_INPUT_ORDERS' for creation of Sales Order. After that i am changing the IDOC data for the Document Type. I am changing the document type which is responsible for Contract Creation.
    Then I am again calling the FM 'IDOC_INPUT_ORDERS' for creation of Contract with the help of IDOC data. But here the Contract is not getting created. It's getting failed during the Batch input session.
    I need to solve this problem as soon as possible. Please help me. If there are any other options also please share.
    Thanks in Advance.
    Regards,
    Priyabrata

    Actually there is problem with BDCDATA. Inside the FM it's calling transaction with help of BDCDATA. If i am creating a Sales order or contract alone its creating successfully. But when i am trying to create both, it's retuning sy-subrc '1001' after calling the transaction on the second attempt. Is there any problem with BDCDATA like we can't handle with less time gap? Please help and give your inputs.
    Regards,
    Priyabrata

  • What is a table containing sales order and the contract it refers to

    Hi,
    I have a following problem (ECC6.0):
    A sales order is created in VA03 and referenced to a contract. I need to locate the table or tables (or FM) which contains the information of the sales order number and the contract number.
    Problem with VA03 is that I can see both numbers in the document flow screen; i.e. sales order (Doc.no) is xxxxx and the Preced.Doc field contains the contract number. However, this is only an ALV view. I cannot get anywhere from the program SAPMV75F.
    I have checked table VBAK and it contains most of dat but not the link itself as it has any sales document. I need to have an entry containing the link between a given sales order (+item) and the contract.
    Instead of creating with "Create with reference" and select Contract (which you need to refer to),  the system is defined so that contract is used with a hierarchy customer. Debugging of creating did not help as the linking was conducted in the background without activation of debugging screen. I'm not an SD and no experience with contract.
    Help is highly appreciated,
    Pipsa

    Hi,
    The field VBAK-GUEBG is used for valid from and valid to date,
    you can find the Preceding and Subsequent sales and distribution document under table 'VBFA'.
    under SMOD, you can find below exit use for Contract data modification:
    V45W0001 Function module exit for copying sales header data into
    items.
    This enhancement contains the user exit:
    -   EXIT_SAPLV45W_001
    regards
    Vivek.
    Edited by: Vievk Vardhan on Jan 29, 2010 3:13 PM

  • How to include the promotion and sales deal in the value contract ?

    Question : Can a value contract contain other special pricing agreement ?
    If yes, how to include the promotion and sales deal in the value contract ?
    Thanks for your input.
    Oscar

    Hi Oscar,
    I have not worked on this aspect as such but once you create a value contract I think you as well create a promotion and sales deal for the customer with whom you have value contract with in the validity period of the contract and system should pick up data accordingly as the customer is same (Contract) and is within the validity period.
    Pl give feed back.
    regards
    Srini

  • How to extract User status for Sales and purchase contracts

    Hello,
    We need to load the User status linked to sales and purchase contract.
    I think that there is no datasource in BI content.
    What is the better solution ?
    - Enhance a standard datasource like 2LIS_11_VASTH with a status field (This solution is not ok for Purchase contract)
    - Create a spécific datasource to extract this status
    - Others
    Thanks for your help
    Best regards
    Christophe

    Hi,
    In your scenario its better to use generic extractor to get the reqd data. This data can than be stored in a DSO on the BI side.
    And you can look up for the user status using a routine .
    Regards,
    Rahul

  • NEED BAPI FOR  SALES CONTRACT CREATION AND EXTRACTION FOR Trans- PA41& PA43

    Hi All,
    I need the BAPI for T-code PA41 and PA43 for sales contract.
    i would like to extract all the contract details for Contract data contains Table VEDA. And need to create contract.
    Any body please help me out...
    Please give me code if any one have how to do mapping ..
    Thank you,
    Vishnu.

    Hi Vichu,
    Please search on SCN.
    Regards
    Abhii

  • Contracts and sales agreements.

    Hello All,
    I just want to understand what is sales contract and sales agreement.
    How we can set up these in ECC and CRM.
    How we can download these from ECC to CRM.
    Please help me.
    Thanks and Regards
    shanto aloor

    Hi Shanto,
    See documentation http://help.sap.com/saphelp_crm70/helpdata/en/46/377a08b2ea4bee8eb9f47e5c067064/frameset.htm for details on difference between contract and sales agreement - basically sales agreement doesnt have a quantity or value whereas contract do. Agreements are mainly for pricing terms.
    There are standard transaction types for  these WK1 WV in ERP and CRM.
    SALESCONTRACT is the adapter object used to download these - just make sure the filter allows the download and then they will be automatically replicated to CRM during create. An initial load must have been executed first for sales transaction so that the delta load happens automatically.
    Kind regards,
    Vanessa

  • Difference between Sales Contract and Sales Agreement

    Hi,
    I am confuse with contract and agreement. Please let me know what is exact difference between Sales Contract and Sales Agreement, when the sales contract will be used and in which real time situation, the sale agreement will come into picture.
    Please do needful.
    Thanks and Regards,
    Venkat

    Hi Venkat,
    See documentation http://help.sap.com/saphelp_crm70/helpdata/en/46/377a08b2ea4bee8eb9f47e5c067064/frameset.htm for details on difference between contract and sales agreement - basically sales agreement dont have a quantity or value whereas contracts do. Agreements are mainly for pricing terms. These pricing terms can then be brought into the sales/service transaction.
    There are standard transaction types for these WK1 WV in ERP and CRM.
    Hope this helps.
    Kind regards,
    Vanessa

  • Sales contract and sales order

    Hi I would like to use sales contract instead of sales order. currently wbse are linked to sales order. In future WBSE will be linked to contract. Copa is also in place. How this will impact? Is this advisable.
    Kindly advise.

    Hi,
    You can use Contract instead of sales order.If  you assign wbs element the cost will be recorded at project tooo otherwise not,no matters weather it is contract or order.Also there is no impact on COPA.
    Revert for further clarification.
    Amit

  • Link between sales contract and down payment

    Hi all,
    Is there a way to link sales contract with down payment if down payment is created before sales contract?
    Please respond.
    Best Regards,
    AI.

    Hi,
    You can check this to start: Re: Help.. Query for document trail
    Thanks,
    Gordon

Maybe you are looking for

  • Win 7.8 for Lumia

    So, i received from service Lumia, that had problems with some homepages woth messahe, that I have to regularry update software. My surprise was that now I have still "unreleased" win 7.8 on my device (Nokia lumia 800). Why confuse customer and blame

  • What is the most efficient way to use Remove Grain from After Effects on large Premiere Pro project?

    I've tried to use Dynamic Linking both ways but it doesn't the effects don't appear no matter how dramatic I make them. Why couldn't there just be Remove Grain in Premiere Pro so I wouldn't have to go through the headache of figuring this out. I've t

  • CS4 installation incompatible with 10.5.7 ???

    I'm trying to upgrade my edit workstations from CS3 Production suite to CS4.  My machines are all Intel running 10.5.7.  After uninstalling CS3 as instructed I run CS4 installler.  Everytime, my workstation locks up into the forced reboot screen.  I'

  • How to attach a custom transaction to a user menu

    Hi all, I need some help on how to attach a transaction code to a user menu. I've checked the forum but I could not find the exact instructions on how to do it. This is how the user menu should look like: User menu for Ricky Orea '->Manager Catalog C

  • HT202159 I am trying to download iPhoto update after got interrupted - no luck

    I have been trying to update iPhoto 11 when the download got interrupted. Upon trying to resume the download, I got an error message in ted next to update with a messae to try to download from purchases page. Attemted to do that, no luck. Then uninst