SALES ORDER CAN NOT BE LESSER THEN POSTING DATE

Hi everyone
Can any one tell how can I restrict sales delivery date less then posting date. Like if user create a sales order on 22,03.14 then delivery date should not be before 22.03.14. I saw in system if I enter sales delivery date before 22.03.14 then system accept the date

Hi,
Try this:
IF @transaction_type in ('A') AND (@OBJECT_TYPE='17')
BEGIN
If exists (SELECT t0.docentry FROM ORDR T0 WHERE T0.[DocDueDate] < T0.[DocDate] and  T0.DocEntry =  @list_of_cols_val_tab_del)
Begin
SET @error = 10
SET @error_message = 'Not allowed to enter delivery date less than posting date'
End
End
Thanks & Regards,
Nagarajan

Similar Messages

  • Required delivery date in sales order shoud not be less than the inhouse pd

    Customer Requested Dates (CRD) entered in orders are often shorter than Product form wise lead time. 
    Logic to be configured in SAP : SAP should capture the CRD as per the lead time of Products or Date entered by sales persons (whichever is later).
    Required delivery date in sales order shoud not be less than the inhouse production lead time.
    Please help.
    Regards

    IMG - Sales and Distribution - Basic Functions - Availability Check and Transfer of Requirements - Availability Check - Availability Check with ATP Logic or Against Planning - Carry Out Control For Availability Check
    Here select the combination of your Availability Check & Checking Rule.
    Under Replenishment Lead TIme, you need to put a Tick Mark in the Check Box of "Check without RLT"
    This will make sure that system considers either the Requested Delivery Date or actual Material Availability Date, which ever is earlier.
    Hope this helps.
    Thanks,
    Jignesh Mehta
    Edited by: Jignesh Mehta on Nov 9, 2011 12:18 PM
    Edited by: Jignesh Mehta on Nov 9, 2011 12:23 PM

  • Sales order can not delete if it is free goods inclusive qty.

    Dear sir,
    I am unable to delete the sales order in the system.
    This sales order has Free Goods items. Total order qty is 100 pcs.  Main item has 98 pcs and sub item 2 pcs are free sending to customer with 0.00 net value.
    When I deleted sales order only main item with qty 98 can be deleted. but sub item for 2 pcs can not deleted and below msg. appears.
    Item 000021 may not be deleted (free goods inclusive quantity)
         Message no. V1724
    Can anyone please help in this regard. How to deleted sales order with free goods inclusing qty. Any copy control setting.
    Please advise
    nain b chand

    Dear Durga Sana
    No sir, I have deleted first main item. then  second time tried to delete together and third time tried to delete from sales document then delete both  but could not delete  and same  msg. is appearing.
    Further please note this is return order created with reference of billing document.
    We have created return order but now not need to further process.
    Hence we want to delete this return order. In this case sub item as free goods can not delete and msg as marked above is appearing.
    Any solution for this free goods item please SAP experts?
    regards/nain b chand

  • Billing date in sales order should not be modifiable to backwards dates

    hi gurus
    I have a requirement where in few users while creating a sales order , they should not be able to modify the billing dates to previous dates . So that particular field shd not be modifiable . Could use some help here .
    Regards
    JNM

    Dear JaganNM,
    While creating the billing document in VF01 the billing date will be changed manually by the user.
    This change will not applicable in sales order.
    Once you save the billing document you can't change the billing date in sales order ,it will be graded out.
    Before saving the billing document only the date can be changed in sales order.
    Let me know if you have any further clarifications.
    Thnaks&Regards
    Raghu.K

  • Sales order values not coming in copa report can been seen in ke24

    hi
    i have did sd and billing and actual settlement through va88
    i can able to values in ke24 actual line items.
    but when i cant able to see values in ke30 copa report aganist sales order characteristic
    and aganist record type A values are not flowing in copa report.
    please help me.
    thanks
    kareem

    hi ajay,
    i have again prepare actual line items report from ke94 ,ke91 and executed report ,
    here for that particular sales order values are flowing through record type C but not flowing for record type A.
    sales order is not displaying for record type A.
    and for that c only revenue and  and  raw material cost is flowing.
    thanks
    kareem

  • Sales order does not allow make-to-order production

    Dear Friends,
    I am trying to do do planned order for sales order in MD50 it was showing the error message as
    "Sales order does not allow make-to-order production"
    Can any one solve this
    Shakthi

    Hi Shakthi,
    It is also possible to set the priority for Requirement Type determination like
    0 Material master strategy, then item category and MRP type
    1 Item Category and MRP Type
    2 as 1, with check for allowed requirement type.
    The transaction for this is same as "Requirement Type Determination :
    Sales and Distribution --> Basic Functions --> Availability Check and Transfer of Requirements --> Transfer of Requirements --> Determination Of Requirement Types Using Transaction
    Look for "Source".
    In this transaction, Please, check "Requirements".
    Please, make sure of the following 2 things :
    1. If you do not set an indicator for maintaining the requirements class: Transfer of requirements is not carried out, irrespective of the specification you make at schedule line level for the transaction.
    So it is necessary to mantain the setting first at the Requirements Class. As mentioned in my earlier posts, the requirement class for the material can be found out from Planning Strategy / MRP3 view --> Main strategy (defined in the strategy group) --> Requirement Class for Customer Requirements.
    The IMG path for "Define Strategy" is Production --> Production Planning --> Demand Management --> Planned Independent Requirements --> Planning Strategy --> Define Strategy.
    2. Once the "Requirements" indicator is set in Requirement Class, the requirements indicator at the Schedule Line decides whether or not you require transfer of requirments for the relevant transaction.
    I hope this should solve your problem.
    Regards,
    Sandeep

  • MTO Sales order is NOT a COST OBJECT

    Hi All,
    I'm working on MTO process and i have some question.i would like to clarify MTO process.
    If we are using Valuated MTO process and Sales order is NOT a COST OBJECT
    1.Are we going to run material cost estimate for MTO materials?
    2.How can i configure or make Sales order is NOT a Cost Object?
    3.If Saleso order is not a cost object,how production order process will work from controlling point of you?are we going calculate WIP on production order and WIP is settled to sales order or FI/PCA?
    4.Once production order is complete,Goods Receipt will post to Inventory or Sales order stock?
    5.Once production order is complete,we are going to calculate variance on production orders?
    Any help is appreciated...
    Thanks,
    Anusha

    Hi,
    When the MTO is created from sales end it will create the Planned order then it will convert to Production or Process order.
    Once the production do GR or confirm Produced QTY the stock will go to Sales stock not to inventory stock.From there the sales can do PGI to customer.once PGI has done the account entry for the customer account will take place automatically.
    Once the production completed the Production order need to calculate for the variance & the Settlement need to be done for the production order against the Material which you produced & sale to customer.The difference & variane amount will post to Price difference & moved to Product cost of the material automatically & COPA entry will be done automatically.
    The MTO Material need to run for the Cost estimate also.
    The WIP can be calculated & difference can be posted against the production order & the material which you produce.
    The Process is same as the Make TO Stock scenario.Only the difference is the Production will get generate automatically when the MTO order get created & the stock will post to sales stock automatically.Rest the CO part is same as MTS scenario.
    Regards,
    Raj

  • How to link Sales Order with Service Contract and then with Install Base?

    Hi Friends,
    1) I would like to know the integeration process from sales order to Service Contract and then with Install Base.
    2) I couldn't see anything enabled in Service Tab in Order Lines, its grayed out. Is there any set up/profile option to get it enabled?
    3) How can we create AR invoice from Service Contract?
    Please let me know if anyone has idea on this.
    Thanks in Adavance,
    Vara

    Dear Sid,
    Thanks for your promt response.
    Let me explain you what I did.
    1) I have booked a Bill Only sales order which has one order line, mentioned it as Service Item and provided the same details in Service Tab in Order lines. Now Line status is "Fulfilled"
    2) Then Submitted Workflow Back Ground Process for OM Order Lines and it has created an AR Invoice and closed the line
    3) And then submitted "Service Contracts Order Capture Integration Program" from SErvice Contracts Responsibility and it completed normal.
    4) Now I went in to Launch Contracts Window and queried with the sales order but couldn't see any contract created
    5) Then I went in to Reprocess Order Window and found this order shows an error message as "Referenced Product not present in the Installed Base", then I tried to reprocessed it, but the same error message again.
    Here I have few doubts:
    1) Are the AR invoice and Service Contract Billing Invoices same?
    2) In above scenario AR Invoice has been created, I would like to do the billing from SErvice Contracts and need to create an Invoice in AR? how can I do that?
    because as you explained in one of my questions earlier, A Single Invoice can be created for the whole duration of the contract. I want to do that and trying for the same.
    3) Regarding the above error message, how can I resolve it and create the service contract against that Order?
    Thank you so much for your helpful answers.
    Regards,
    Vara

  • Sales order does not extract plant information from material master data

    Hi experts,
    I have created a sales order. However, the plant in the shipping tab can only be manually entered.
    I have made the check:
    the customer material master data does not have the plant info.
    the customer master data does not have it either.
    It is defined in the material master data: sales:general/plant
    But the sales order did not extract this information. Why does this happen?
    Thank you in advance.
    Best regards,
    Fan

    Hello Friend,
    As right stated by you,
    The Plant will be copied from the master data to the sales order, if not it should be manually entered
    The Sequence System will search for the Plant is as follow..
    1. Customer material infor record, If it was not maintained then it will search in
    2. Customer master, if the entre was not maintained in the SHIPPING TAB
    3. Finally it will search in the Material master in the Sales organisation data 1 in the field DELVERING PLANT field.
    So please search whether the entry was maintained in that field at the sales:sales organisation data 1.
    This might be the issue.
    Please revert if you want further details
    regards,
    santosh

  • Sales order changes not updated in change log

    Hello Gurus,
    In my project, the sales orders have default delivery block. Only authorised people can remove the block. The list is maintained in a Z Table. Recently for one sales order the delivery block was removed automatically and the delivery happened in the background(user's version). The Change log in the sales orders do not have any details of the changes to delivery block. My questions are,
    1. how to identify the details of the changes in delivery block(who removed the block)
    2. Any other place to find out the changes to the order in addition to the change log.
    3. If change log in sales order is not having the details, can we find the details in table CDHDR
    Please help me to solve the problem.
    Regards,
    Kishore

    Hi
    Please go to VA03 transaction and then go to Environment and select the changes (Display Document changes), put the document No then Execute the same.You could able to see changes carried out in the document.(Table VBAK and Field LIFSK)
    Regards,
    Jaiprakash.P.T

  • Sales order does not appear in MD04

    Hello,
    One of my sales order is not appearing in MD04. I found out that in the sales order, the requirment type is missing.Is this could be te resaon for sales order not to appear in MD04.
    2nd question) why requiremment type is not there in sales order. In my case, there is no entry in the item cat and mrp type table but in the strategy group in material master, the requirment type exists. so why the system is not showing requirment type in sales order by picking it up from the strategy group. in the item cat +mrp type table, the source is kept as "0", which means the system should pick the requirment type from strategy group . so why it is not picking if it is defined in straetegy group ?/
    Question 3) or is it that the sales orders appear in MD04 only after MRP run but then why other sales orders are apearing before MRP run.
    regards
    sachin

    Hi sachin,
    what planning strategy group is your are using.
    I assume plan stg grop is 20.
    Normal settings for 20 Paln stg grop in material master.
    1.Item category group (such as NORM) on the Sales Organization screen
    2. Set Plan stg = 20 at Mrp View.
    Requierment type fo customer requirement  = KE  assigned  for planning strategy 20 at customizing.
    For 20 plg stg  requiremnt type is   customer requirement type only.
    with above settingsif create sale order it will appear at Md04 before MRP run.
    u can see the customer requ type at "procurement tab "of sale order.
    For planning of material u have to maintain valid MRP type at Mrop view.
    i am not clear about ur second question.
    please comeback
    Regards
    Pradeep

  • How to check whether MRP run has been executed for a sales order or not

    Dear Experts,
    In Strategy:20, Make to Order scenario, I have run MRP for sales order in T Code:MD50,
    then how can I check whether MRP run has been executed for a sales order or not.  Is there any report where I can find some indication?
    Thanks and regards,
    Vikas

    Dear,
    In MTO scenario with Planning strategy group 20 in material master .
    After sales order is created, Run MRP , then planned order will be created then go to planned order details in MD04 or MD12 you will get sales order number in assigment tab.
    or check the Table PLAF field  PALTR ,and field name KDAUF its sales order, for all created planned order.
    Regards,
    R.Brahmankar

  • Sales order qty not updated in copa

    Hi Gurus,
    My client has activated Costing based COPA.
    We have activated Incoming sales orders with option
    Transfer with date of deliery/scheduled billing date.
    When We are posting sales order we are able to see a copa document with record type A.
    In that document we want to see the Sales order quantity or delivery quantity, delivery date fileds.Please let me know what all the value fields We need to assign.
    Do I need to write any derivation rule for incoming sales arders also.
    we are able to capture the  total price, material etc from the sales order in COPA document.We need only sales order qty or Delivery qty or delivery date to be updated in COPA document.
    Please suggest me
    Regards
    Chaitanya

    Hi Chait,
    Pl check whether your client has assigned SD Qty Fields to COPA Quantity fields in KE4M. Sd quantity fields are FKIMG- Billed Quantity, KWMENG-Order Quantity and the same shall be assigned to ABSMG-Sales Quantity. If not, please maintain the same. Otherwise, we need to look for some other work around solution.
    Trust this resolve your problem!
    Cheers!

  • Sales order qty not confirmed when delivery done with partial qty

    Hi Guru's
    Need your help............
    We have issue in drop shipment scenario process. Sales order created with 10 line items from CRM and order released from CRM and replicated order to ECC and backend created PR also. After that user set reject status for all items so that PR line items also deleted, again user released rejection status for all items and line items updated in the same PR with different line item number for materials then PO & GR also done in ECC and stock also allocated for sales order line items but still sales order qty not confirmed in CRM sales order. 
    I checked all configurations regarding availability check but could not found.
    Example:
         Sales order line item qty: 4            -      2 qty confirmed (delivered).
         For remaining qty (2 items)I have done GR. After GR It is allocated to sales order but it is not confirming the order quantity.
    plz help me to fix this issue?
    regards
    sai

    Hi,
    Please check In ERP transaction OVZJ, for the sales org, distribution channel, and division that is being used in the affected sales orders, set the Avail. Check Rule to 'E'. Then retest the issue, as this might help.
    Regards
    Gavin

  • How to disable line items of sales order ie not editable

    Hi All,
      I want to diable line items of BOM when using it in sales order, Can any one tell me how to do it and which USER EXIT or BADI i have to use it for.
    Regards,
    Sudhakar.A

    Hi,
    You have to write your code in this Include : MV45AFZZ
    Here i have diabled the components of BOM...change the code accordingly.
    IF ( sy-tcode EQ 'VA01'
             OR sy-tcode EQ 'VA02' ).
        loop at xvbap where pstyv eq 'ZABC'.
          if not vbap-uepos is initial.
            if sy-subrc = 0.
              screen-input = 0.
            endif.
         endif.
        endloop.
      endif.
    Here Xvbap is like Internal table
    VBAP is strucure.
    Regards,
    Sudhakar Reddy.A

Maybe you are looking for