Sales Order date validation against Contract Date

Dear All,
We are creating Contracts with validity period from date to enddate.
With reference to contract, the sales orders date should be validated. However the present scenario is  validating with warning message. How it will be converted to error message and should not be allowed to create sales order.
Sudheer

Hi Ashwin,
for the contract the field RV45A-KWMENG is calculated dynamically based on the quantities of the subsequent orders made.
In contrast to this for a sales order the field VBAP-KWMENG is the actual sales order quantity filled in the order. All this happens in SAPFV45P/ Include FV45PFAP_XVBAP_LESEN
Bei Kontrakten wird die Abrufmenge angezeigt (logic for sales order quantity determination within contract).  IF VBAK-VBTYP CA VBTYP_KONT AND
     TVAP-ETERL IS INITIAL.
    IF VBAP-KZFME IS INITIAL.
      RV45A-KWMENG = XVBAPF-ERLMENGE * QUAN_1 * VBAP-UMVKN / VBAP-UMVKZ.
    ELSE.
      RV45A-KWMENG = XVBAPF-ERLMENGEV * QUAN_1.
    ENDIF.
    IF RV45A-KWMENG LT 0.
      RV45A-KWMENG = 0.
    ENDIF.
  ENDIF.
Hope it helps.

Similar Messages

  • Sales order creation:  validations on input data in BDC

    HI,
    i am using document type, sales org, distr chan, division, Custommer po num, incoterms1, payment terms, material, quantity, plant, item category, partner role, partner number.
      kindly let me know what validations i need to make on these before uploading.

    try with this.
    BAPI_SALESORDER_SIMULATE and see the documentation.
    No BDC.
    Regards
    Prabhu

  • Is there a way on CONVERSION to create a sales order with a scheduled ship date in the past?

    Is there a way on CONVERSION to create a sales order with a scheduled ship date in the past?
    Customer wants to maintain the original scheduled ship date on converted ordered, but the scheduled dates is defaulting to sysdate for past due shipments on converted orders.

    Hi Friend,
    As of now there is no functionality to display SSD,RD,PD backdated, max it can be sys date, not lower then that.
    Regards
    Shyam
    Please see following Metalink Note ID for all in One solutions
    Oracle E-Business : All In One Metalink Note ID's
    If you are happy with the Document, please mark as Helpful by doing so this will provide assistance for other people looking for answers to their queries.

  • Can not open sales order balance from BP master data

    Hello All,
    for a particular customer i am not able to open the sales order balance field in BP master data.
    It is showing the amount but the orange arrow does not appear.
    can any one please tell me why i am not able to drill down into Sales order field in BP master data?
    Thanks in advance.
    Prachi Kulkarni.

    HI Gordon,
    All the users are getting this issue for the particular customer.
    even my self (super user) also not able to drill down into the sales order field.
    we have assigned Professional Licenses to all the users.
    Thanks,
    Prachi.

  • Sales order with reference to contract using IDOC_INPUT_ORDERS

    Hi all,
    I had the requirement to create sales order with reference to contract based on some validations of idoc values and then passing the modified idoc data table to IDOC_INPUT_ORDERS. I have completed the coding till the modification of data in a new function module ('Z') and then calling the IDOC_INPUT_ORDERS FM inside that. Now my problem is while creating the sales order, the bdc for Txn VA01 is not populating those values to screen fields which I want to populate. I could find out that some modifs needs to be done in some user exit for reference to contract case.But finding difficulty in getting the exact place to make the modifications. Any pointer to this problem would be highly appreciated.
    Regards,
    Divya

    Hi,
    This issue is been resolved.
    One of my friend helped me with resolving this issue..
    Once the below mentioned configurations were done on SPRO, the Sales Order was created with reference to Contract and the Qty was reflected when tried to create a new Order referring the same contract.;
    u2022     SPRO --> SD  -->Sales  --> Sales Documents  --> Sales Document Header  --> Define Sales Document Types  --> Field : Outline agreement message; from blank to u201CBu201D.
    u2022     SPRO  -->SD  -->Sales  --> Sales Documents  --> Sales Document Header  --> Maintain Sales Document Types for AFS  --> Field : Outline agreement message; from blank to u201CAu201D

  • How to avoid sales order creation for expired contract

    Hello,
    Is there any way to prevent creation of sale order reference to expired contract?
    Please suggest.
    Thanks,

    Hi,
    As Shadu says,  create your own VOFM subroutine using '001' as a model and set it in VTAA. You can see in this subroutine this coding:
    * Check the validity period of the reference document
      if vbak-angdt > 0 and
         vbak-angdt > sy-datlo.
        write vbak-angdt to bp_datum_ausgabe.
        message w008 with bp_datum_ausgabe.
      endif.
    Replace the warning message (it's hardcoded) by other and use the field of date that you need.
    If you need something else, dont hesitate to tell us.
    Regards,
    Eduardo

  • Create a Sales Order with Reference to Contract using IDoc / LSMW  ( AFS )

    Hi Gurus,
    I need to crate a Sales Order with reference to a Contract. I need to upload Sales Orders with reference to contract via LSMW.
    So far, I've been able to create the Sales Order with ref to contract. But, the Sales Order Quantity is not getting deducted from the Original Qty in Referred Contract ( When try to create another Sales Order referring to the same Contract.) When a Sales Order is created manually, this is working fine.
    Please tell me if I've missed some parameter which stopping it create the link to exact schedule line ( Sizes level )
    The Details of the IDoc which is been created via LSMW are as follows;
    Message Type: ORDERS
    Basic Type     : /AFS/ORDERS05
    Process Code : ORDE / DELO
    ( Tried with both process codes.  But the Identification is the same for both: IDOC_INPUT_ORDERS )
    *_In Header;_
    Segment : E1EDK02  - IDoc: Document header reference data *
    Qualifier : '043' - Vendor Contract Number ( Tried with ' 005' - Customer Contract, but it's not working )
    Contract Order is mapped for field BELNR
    *_In Item;_
    Segment : E1EDP02  - IDoc: Document Item Reference Data *
    Qualifier : '043' - Vendor Contract Number ( Tried with ' 005' - Customer Contract, but it's not working )
    Contract Order is mapped to field BELNR
    Line Item of the Contract is mapped to field ZEILE
    I also tried passing the Schedule line of Contract in Segment :  E1J3P01 AFS IDoc: Doc.item general data
    to following fields;
    J_3AETENV
    J_3AVGETE
    /AFS/UETENR
    Still its not getting updated in the VBEP also..
    Please help me with regard to this. Points will be awarded for your valuable contribution.
    Thanks.

    Hi,
    This issue is been resolved.
    One of my friend helped me with resolving this issue..
    Once the below mentioned configurations were done on SPRO, the Sales Order was created with reference to Contract and the Qty was reflected when tried to create a new Order referring the same contract.;
    u2022     SPRO --> SD  -->Sales  --> Sales Documents  --> Sales Document Header  --> Define Sales Document Types  --> Field : Outline agreement message; from blank to u201CBu201D.
    u2022     SPRO  -->SD  -->Sales  --> Sales Documents  --> Sales Document Header  --> Maintain Sales Document Types for AFS  --> Field : Outline agreement message; from blank to u201CAu201D

  • Error while creating sales order with ref to contract

    while creating sales order, with refernce to contract system is giving a message
    Configuration not possible for material : Reason 3 --> Help
    Message no. V1360
    and the message is as follwed can any one explain
    Diagnosis
    This may have been caused by one of the following:
    1. The configuration profile for the material allows or requires the bill of materials to be exploded during order processing. However, a plant has not been specified in the item.
    2. The configuration profile of the material allows or requires the bill of materials to be exploded during order processing, but the order quantity in the item must be greater than 0.
    3. A configuration profile has not been maintained
    or
    A configuration is not permitted for the material
    or
    4. The configuration profile of the material allows or requires the bill ofmaterials to be exploded during order processing. However, the system could not determine a date because important data is missing from the item (see incompletion log).

    Hi
    I think you have both Variant configuration and BOM.
    Pls ensure the following.
    1. BOM masterdata is maintained for the variants
    2. Variant configuration is configured correctly
    Configuration profile is created for the material
    Knowledge base object and run time version are available
    3. Maintain materials as not relevant for delivery or dont give delivery quantity as 0
    Once you are sure that these are in proper shape, you can start creating order. The problem wont come.
    Reward points if it helps you.

  • Creating sales order with reference to contracts

    Hi Gurus,
    I am creating a sales order with reference to a contract.I am making sales order sold-to-party as release order.
    so my Contract sold-to-party and the sales order sold-to-party are different but both belong to same sales area. In the above case i am able to create sales order.
    In other case though my Contract sold-to-party and the sales order sold-to-party are different but if they both belong to different sales area, i am unable to create a sales order.It says no contracts exits for sold-to-party.
    i made both the customers as partners .
    Any guidance on this is fully rewarded with points.

    Each and everytime your both SOLD-TO should be in same sales area.
    Enhance the  Contract sold-to-party's customers sales area specific data in XD02 so, it could come in to sales area of the Order's Sold-to-party.
    Regards,
    Naimesh Patel

  • Doubt in creating a sales order with reference to contract

    Hi all,
    when I create the sales order with reference to contract, in the table VBFA, the field PLMIN is set to zero some times and set to '+' some times. May I know whats the functionality behind this. Any pointers on this will be helpful.
    Regards,
    A.Rathinaprakash

    Hello A.Rathinaprakash,
    This is an Indicator which indicates the quantity or value in the target document(means Sales order) has a negative effect, positive effect, or no effect at all on the quantity still to be completed in the source document(means contract).
    Example from the Help file..
    In sales documents, for example, you can expect the following results:
    Quotation   -> Sales order: positive effect
    Contract    -> Return: negative effect
    Sales order -> Sales order: no effect
    In billing documents, for example, you can expect the following results:
    Delivery    -> Invoice: positive effect
    Delivery    -> Cancellation: negative effect
    Delivery    -> Pro-forma invoice: no effect
    Hope it helps..
    Regards,
    HP

  • Sales order with reference to contract

    Hi experts,
    I'll like create a sales order with reference to contract.
    In VA01, when I select "create with reference", system visualize a pop-up windows opened in offer view.
    Is it possible open that pop-up windows in contract view as default?
    Thanks to all.
    Angelo

    Hi,
    If you want it automatic at creation of order then go to VOV8
    Select your order type >>> Details >>> Under transaction flow Tab
    Message: Mast.contr - C (Check & baranch directly to selection list)
    Now when ever you create sales order for perticular customer & material, sytem give pop up screen, for this part open contract is available along with contract number,copy it directly.
    Kapil

  • Problem with creation of Sales Order with reference to Contract

    Hi,
    I have a problem when creating Sales order with reference to Contract , shipping condition was not copied. Is there any existing copy routines suitable to accomodate this?
    Thanks!

    your functional team can help you in finding one.

  • Sales Order not Valid During Vendor Clearing

    Hi,
    When I'm clearing vendor open items (both normal & special GL transactions) i'm getting an error message "Sales Order not Valid". How do I correct this error?
    Thanks,
    Chaikaru

    Hi ,
    As you're saying that the order got saved already with confirmation, you can try re-doing the ATP check on the SO item. If the order item is not present in SCM, system will throw an error with the message "APO: Order Doesn't exist".
    You have mentioned that CCR did not detect the inconsistency, have you by any chance selected check box "use VBBE table"?
    You can try resending all the Sales Orders to SCM by running Initial Supply (report RIMODINI) for Sales Order Integration Model., monitor the queues in /SAPAPO/CQ. Alternatively, If you're using Inbound queues in SCM, you can only check SMQ2 in SCM and if you're using Outbound queues in ECC, check SMQ1 in ECC to monitor the queus.
    regards,
    Mohan

  • How to create a Sales order with ref to Contract using Function Module

    How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?

    We have a unique situation where we like change the sold-to customer of the sales order
    once order has been created. These orders have been created using either by function module
    BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
    These two processes work abosolutely fine except someone might have change the sold-to
    customer of the ship-to customer of the original sales order. If this the case then the new
    sales order will be created with the old sold-to and with not the new sold-to.
    We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
    the returned parameteres of the BAPIs and they are all successful but sold-to remains the
    same old one.
    Any help would be much more appreciated.

  • BAPI to create Sales Order with reference to contract

    Hi All,
    I am trying to create Sales Order with reference to Contract, but although the
    order gets created, it does not contain reference document information. 
    The BAPI I am using is BAPI_SALESORDER_CREATEFROMDAT2. 
    Would someone know which parameters I have to papulate,or have any other suggestion
    how to accomplish my task? 
    Thank you so much, 
    Mayank

    Hi - Try Filling these three fields in the Item details.
    REF_DOC
    REF_DOC_IT
    REF_DOC_CA
    Reward points if helpful

Maybe you are looking for

  • How to export Date book and Address book from Palm Desktop to Apple iCal and Address Book?

    I have my calendar information and addresses stored in Palm Desktop date book and address book, respectively. I am running Palm Desktop 4.2.1. Everytime I try to export the date book or address book to my desktop using the vCal format, the Palm deskt

  • Best calibration

    What is the best calibration software out there? I have a MacBook Pro and a Samsung 22in monitor, and i need to make them have the same color and saturation. The Samsung, is over-saturated compared to the Mac's screen. So i need something to fix this

  • "Mountain Lion install fails"

    "When i run The OSX Mountain Lion Icon i downloaded from the App Store it always gets to the point when its about to restart but the it keeps saying "please quit the application and try again" Now i've tried Re-Downloading it a lot of times but that

  • Select tag with JavaScript function

    I am using a selectOneMenu tag for navigation. After the selection I use a button to go to the selected page. I would prefer to go to the selected page without using an additional button. I think I have to use a JavaScript function with the attribute

  • AddAdoCommand problems from visual objects

    Post Author: powerneet CA Forum: Other I'm trying to use the AddAdoCommand from Visual Objects. The code is simple: cConnectString:=IVarGet(oTableLink,#connectbufferstring) // resolves in : Provider=SQLOLEDB;;Data Source=(local);;Initial Catalog=200;