Customer and PO number combination check in sales order

Dear SD Gurus,
Apart from the config within VOV8, is there a further check that can be done during sales order creation that can trigger an error message (not just warning) if a particular customer and PO number combination is entered?
Thanks in advance,
Alvin

Hi,
In VOV8 you can only Check whether the purchase order number already exists or not.
If you want to do any other check like you said based on customer & PO number combination then follow steps below:
Ask your ABAPER to
1: Create a Z-table where you can store the required Customer No & PO No combinations.
2: Write a code to check the PO no & Customer No entered in Sales order with the entries in the Z-table & throw an error if there is no match.
This code needs to be written in the User exit Save_document_prepare by your ABAPER.
3: This will work at time of Save & not a point of entry. The result will be same "error msg will be thrown"
regards
Edited by: Innovation is key on Feb 28, 2011 6:08 PM

Similar Messages

  • Number Range issues with sales orders in CRM and R/3

    Hi,
    We are currently using CRM4.0. I have sales orders created in R/3 and they are replicated into CRM.  These sales orders can only be created in R/3.  I have given them a number range of 0000000001 and 0005899999, however we have reached the number 0005899999 so we increased the internal number range for the sales orders in R/3 to 0009499999, however we forgot to update the number range for the corresponding sales transaction type in CRM so we are getting the following error in CRM:
    +Enter a business transaction number between 0000000001 and 0005899999
    Message no. CRM_ORDERADM_H532
    Diagnosis
    You have attempted to enter a transaction number which is not allowed for the transaction type.
    Procedure
    Enter a number between  &1 and &2. Make sure that you issue a number which has not already been issued.+
    We have now updated the CRM number range to match that in R/3 to 0000000001 and 0009499999 but we are still getting the error above on our existing sales orders in CRM.  I thought that increasing this number range it will remove the error but when I open sales orders in CRM the error is still there. 
    Is there any way to remove this error message?  Any tips or advice would be much appreciated.
    Please note we've already checked the post Re: Number Range Problem and note 427289.
    Kind Regards
    JoJo

    Hi Sirisha,
    The solution depends on the exact issue you are facing.
    The CRM Sales Order is created OK, but you only see the error when you open the Sales Order?
    If this is the case, then you can follow the steps below:
    1. Find the Message ID and Message No for the error message
    2. Use Program - CRM_MESSAGES_DELETE to delete error messages from the error producing Sales Orders.
    Let me know if this is not the issue you are facing.
    Regards,
    Nelson

  • Credit check in Sales order and available stcok

    Dear all,
            Now we have credit check in sales order, i found that only when i release credit control in VKM4, available stock will be reduced. How can it reduce available stock in the time when i save a sales order not matter it have or not pass credit check ??
          Thanks in advance!!

    The Price procedure has a subtotal ("A" ?) this is what's reported as Credit. Move this to an area that includes the taxes and you should be all set

  • Credit check at sales order level?

    Dear experts
    I want to set credit check at sale order level with following conditions
    consider open deliveries for credit exposure
    consider billing documents for creadit exposure
    do not consider any open orders
    Also if oldest items are open for more than 7days then block the sale order creation
    e.g suppose customer is having credit limit Rs.100000/- and open deliveries against this customer is having the value Rs.50000/- i.e. credit exposure is Rs.50000/-. In this case system should block the new sale order created of value more than Rs.50000/-
    plz suggest the configuration steps
    regards
    kailash

    dear friend
    For i am already having the same setting but still my scenario is not working. i will explain my scenario again
    suppose customer is having credit limit Rs.100000/- and open deliveries against this customer is having the value Rs.50000/- i.e. credit exposure is Rs.50000/-.
    In this case system should block the new sale order created of value more than Rs.50000/-
    But with the said settings purpose is not getting solved.
    my settings are;
    In OVA8 ;
    Update: 000015
    Static check: TICK
    Status: TICK
    open deliveries: TICK
    Plz suggest
    kailash

  • Partial Delivery when the complete delivery flag is checked in Sales Order

    We do the ATP check in APO when we create a sales order in R/3. We have "complete delivery" flag checked in Sales Order. But when we create batch orders say may be of 20, one of 20 is confirming with partial delivery.
    We thought the issue is with ATP locking and we increased the re-attempts, but invain. We still have this partial confirming problem.
    Appreciate your co-operation.
    Thanks,
    Sarath.

    Have you maintained the following setings in R3:
    Material Blocks in R3:
    MenuPath: SAP Customizing Implementation Guide ® Sales and Distribution ® Basic Functions ® Availability Check and Transfer of Requirements ® Availability Check ® Availability Check with ATP Logic or Against Planning ® Define Material Block For Other Users
    Global Settings in APO for Availability Check:
    MenuPath: SPRO>APO>GATP>General Settings>Maintain Global Settings for Product Availabilty 
    Questions for you:
    (1)R3--Does the Availability CHecking Group you are using for your material and the initiator-A has the block checked.
    (2)APO-- Has the TQA box checked in the global settings for Availability in APO
    (3)Also what happens when AVAILABILITY CHECK is done manually for one of the partial confirmed order with Complete Delivery indicator set.
    Regards
    Kumar Ayyagari
    null

  • Clearing the the street,Postal code and city in partner tab at sales order

    Hi Experts,
    I have a requirement like in sales order header or Item, In partners tab, when they are selecting the particular partner function like CR and the customer number is 500, and if they press enter then automaticaly it fetches the name,street,postal code and city at the right side for that entry. My requirement is like for particular customer 700, they want to hide the customer address in that Partner tab while sales order creation VA01. If they select the partner function CR and customer 700, after pressing enter, it shouldn't fetch the automatic address of that customer. They just want the customer name and remaining fields like street,postal code,city should be blank.
    Can you please let me know how to reach this requirement ate sales order creation or change level in partner function tab.
    I test these exits EXIT_SAPLV09A_001 to EXIT_SAPLV09A_004 but no use. Let me know possible ways to achieve this?
    Any idea on these?
    Thanks in advance ,
    Edited by: dolly B on Jan 18, 2010 11:36 AM

    Hi,
    This is happening because you have not maintained your data in sales order.
    Billing document takes the reference of order and delivery document for taking the data.
    Now if you donu2019t maintain your partner function in order nor in delivery then it wont be determine in billing document.
    If you want ZZ to shown in billing document then you have to make that function visible in sales order.
    While creating sales order it will take it from customer master data but when you are creating billing it wont search in customer master data it will search in sales order only.
    You can do one thing make that function non modifiable in partner determination procedure.
    So it cant be change in sales order.
    But I want to know why you want that should not be visible in sales order.
    Hope so I will be correct with my explanation.
    Regards
    Raj.

  • Credit check at sales order

    Hello Experts,
    I have few questions regarding the credit check in FI-AR credit mgmt and SD.
    Currently we have a credit check in AR credit mgmt during the delivery order creation. But the management has decided to crap this and to put a credit check at sales order level.
    Can someone tell me if there is any business process change in doing this?
    Whats the concept of Horizon in dynamic check?
    Can someone clarify the concept of Business Partner in SAP FSCM credit mgmt?
    Any help in this regard is highly appreciated and duly rewarded.
    Regards,
    Sriram

    hi,
    pl check this :
    [Credit management|http://www.sap-img.com/sap-sd/credit-management.htm]
    Dynamic Credit Limit Check with Credit Horizon
    The customer's credit exposure is split into a static part; open items, open billing, and delivery values (see above), and a dynamic part, the open order value. The open order value includes all undelivered or only partially delivered orders. The value is calculated on the shipping date and stored in an information structure according to a time period that you specify (days, weeks, or months). When you define the credit check, you can then specify a particular horizon date in the future (for example: 10 days or 2 months, depending on the periods you specify). For the purposes of evaluating credit, you want the system to ignore all open orders that are due for delivery after the horizon date. The sum of the static and dynamic parts of the check may not exceed the credit limit.
    regards
    sadhu kishore

  • Bottom/base price check in Sales order processing

    Hi
    In my company we are using process Sales Order > DO > Billing. Same pricing procedure for sales document types and billing types. No pricing procedure for DO. Our management wants to implement bottom price check in sales order processing e.g there must be one sale price on which sale invoice will be booked and there must also be one static price maintained and system will check after all taxes and discounts calculation that net value should not be less then bottom price.
    Currently we are using user exit in enhancement MV45AFZZ. Our ABAPER has written logic in this of following scenario. We have maintained commercial price in ZCOM condition type and bottom price in ZBAS condition type. Lets take and example
    ZCOM = Sale price= 500
    ZDIS = Discount = 100
    Net value/Amount for credit check 500-100 = 400
    ZBAS Bottom price = 450
    In above scenario system should not allow to save sale order/billing document and give error "Sale price is below bottom price" Then user will change the discount from 100 to 50 and Net value will be then 450 and system will allow to save sale order/billing document.
    I want to to do this in Pricing procedure pricing routines. Please tell me is it possible with calculation types? Im wondering if we can do this in enhancement then we must write the same logic in VOFM pricing routine and we can control this from there too. In our current ABAP check everything is working fine but I just want to minimize the use of ABAP checks and enhancements and control the things from functional side not from ABAP.
    Please let me know if someone need more clarification or someone have any productive suggestions in this regard. If there is any other solution it will be highly appreciated.
    Thanks in advance.

    Similar functionality is already there, where if the net price of an item differs from "Customer expected price" (conditions EDI1/EDI2) then SAP automatically pushes the order into incompletion. You can ask the developer to see how EDI1 is used in the pricing logic.
    However, the condition EDI1 is used to check if the item value is different to Customer expected price in case of EDI orders and is not standard for your requirement. But you get my drift, that you can have your own condition in the pricing procedure that will fetch the base price value and can be used in the logic to show an error message (to stop order processing) or push into incompletion log similar to condition EDI1

  • Credit check in sales order

    Hi all,
    Credit limi check at sales order is working fine, while i am creating a sales order it is giving popup if limit is high then system is giving error message and it is not allowing to save the document. If i save with less quantity and again VA02 with same sales document it is allowing the values if it is above credit limit.
    Can anybody suggest where do i check and give the controls
    Kindly revert back,
    Thanks,
    MSRP

    Dear Magge,
    This is the standard SAP behaviour. Please refer to SAP Note 706034.
    As per this note
    "This is required due to the following:
    During creation, the credit managment checks a document with "OK". For a
    later change of the document, the credit check is "not OK". Since the
    reaction "Error message (Error)" is set in the Customizing, the system
    could not save the document.
    Due to this, the system cannot set the credit status "not OK" for the
    document, in order to prevent follow-up activities. Therefore the system
    displays a warning message instead of the error message, so that you can
    save the document and thus set the credit status (blocked). The document is
    blocked now for follow-up activities."
    We faced the same issue in our project and found we cannot change the Warning message to Error as it is hardcoded as warning. Hence we used USER EXIT and gave the logic that if this warning message is called when in T code VA02 then throw Error Message.
    Hope this will be helpful.
    Regards
    Mayank

  • Bypass static creidt limit check during sales order simulation BAPI

    Hello All,
    We have standard static credit limit check activated.. But, we donot want this to be checked while simulation of standard sales order BAPI... i.e. the check should remain,,, but we have a requirement that the customer should be allowed to see the result of his desired sales order's simulation, even if his credit is zero, for which we are using the bapi BAPI_SALESORDER_SIMULATE,, problem is that the BAPI performs the static credit limit check and returns with static credit limit exceed error,, is their any way to bypass this check during sales order simulation only...????
    any help in this regard would be highly appreciatable..
    thanks

    I don't think it is feasible, unless you want to do a core modification of SAP code. Also simulation would work differently than the real order, it wouldn't be a good simulation, would it?
    Have your SD consultant thought about using an inquiry or quotation instead?

  • Deactive post code check in sales order

    Hi all
      We have one customer ,but  this customer need us change ship-to-party  address and postal code in sales order header().
    but our system  will check the country code and postal code.
    How can I deactive post code check in  sales order ???
    thanks

    Hi,
    Postal code checking for country is a global setting in SAP, and many settings are depends upon it. But if you still want to change it you can modify it at country level.
    Go to SPRO >> SAP Netweaver >> General Settings  >>  Set Countries  >>  Set-Country sepcific checks   here select the country and modify it as you want.
    but still i ll advice you to do not change these settings as it will affect as client level.
    better you change Customer master address data as client wants and re enter re enter the customer code in sales order.
    Regards,

  • Availability check of sales order in planning strategy 40

    Dear friends,
    Kindly help me this query:
    From online SAP help in Demand Management, it said in planning strategy 40:
    "An accurate availability check is performed according to ATP (available to promise) logic during sales order processing. The system checks whether sufficient planned independent requirements have been planned to cover the sales order....  If there is insufficient coverage of components (the sales order quantities exceed the planned independent requirement quantities), the sales orders cannot be confirmed"
    According to above paragraph, I think that availability check of sales order is carried out against PIR, if PIR quantity cannot cover sales order quantity then order will not be confirmed, it also means stock on-hand will not be included in availability check. However, my testing reveal a different conclusion: sales order is confirmed against stock on-hand, not PIR. My questions are:
    1/ in planning strategy 40, how does system carry out availability check for sales order?
    2/ how to interpret above help from SAP?
    I got that help from this link: http://help.sap.com/saphelp_erp60_sp/helpdata/en/cb/7f9b7043b711d189410000e829fbbd/frameset.htm
    Many thanks for your clear answers.
    Regards,
    Duc.

    Dear duc pb ,
    In 40 its only ATP that works.
    you can do another test ,
    Create PIR 15 quantity.
    Create a stock of 10 quantity.
    and now create a sales order firszt of quantity 30, as both of the above after combining cant fullfill this demand, save order run MRP.
    system will create orders against PIR (15)  and remainibnbg quantity of sales order (5)
    run one more test, by creating PIR 15 quantity , no stock and a sales order of with quantity 10.
    share your findings.
    Thanks
    Ritesh

  • AVL  Check in Sales Order

    Dear Fnds,
    When iam using Configurable material in Sales order, Avl Check is not Carrying out.
    Configuration is: I maintained Avl check in Material master 02(_individual Requirement_)
                    Strategy group is 025
                    In this Strategy Group Req type is KEK and Class is 046.
    In Sales Order if I click on Scope of Check  ,Avl Check is :02 and Checking Rule is :A(SD order).
    What Could be the Problem.
    Thanks in advance
    Regards
    raj.

    Checking rule is always picked by the system automatically through some internal controls too
    If for a material the checking group assigned in availabilty check in MMR is 01 then during sales order system will pick combination 01 and A that is SD sales order
    During delivery system will pick combination 01 and B that is SD delivery
    If the sales order item category is marked with special stock indicaor as E in VOV7 during sales order system will pick combination 01 and AE
    If the sales order item category is marked with special stock indicaor as W in VOV7 during sales order system will pick combination 01 and AW
    If the item cat is marked with with special stock indicaor during delivery the system takes BE or BW depending up on the special stock indicaor
    So ultimately the special stock indicaor in VOV7 controls the whole thing
    That E,Q,V and W they are all special stock indicators which you can see in VOV7
    Dear Venky
    How you are concluding that system is not performing Availabilty check
    In MTO scenario the production itself is triggered after saving the sales order or based on the sales order only
    The normal behaviour is even if the stocks are not there the system will confirm schedule lines and allow delivery and allow picking and will catch you only in PGI
    This is controlled mainly by the strategy group
    So for you if the system is not confirming the quantities then you have to take the help of your PP colleagues to check your strategy group
    Performing availability check in sales order in MTO scenario doesnot carry any meaning
    MTO is make to order and after order only we are making the stocks or producing the stocks
    Regards
    Raja

  • Changing Availability Checks in Sales orders

    hi there,
    Can i easily change the Availability Check in a sales order?
    i have 5 sales orde rtypes, and I sometimes want to change the Availability Check, how can i manage this?
    thanks

    There are three types of availability checks
    1. Availability Check with ATP Logic or Against Planning
    2. Availability Check Against Product Allocation
    3. Rule-based Availability Check
    For ATP logic, the Checking group and Checking rule combination determines the availability check parameters. The checking group is maintained in the material master, and not to Sales order type. Hence you can control by having different groups attached to different materials.
    If you have Advanced Planner Optimiser (APO) then you can use the Rule based availability check. You can attach a Business transaction to a Sales document type and thus control the availability check in sales order level also.
    Refer the below extracts:
    <b>Define business transaction</b>
    Path : spro -- img -- sd -- BF -- Av chk and TOR --- Rule based availabilty check
    In this step you can define the business transactions. These transactions must also be available in the APO planning system. Here the availability check control is carried out for the transactions.You can find the business transactions in the APO planning system (Field BPROC) under:
    Global ATP -> Settings -> Rule-based ATP -> Conditions -> Assign rule strategy.
    <b>Assign business transaction to sales order type</b> t code VOV8
    In this IMG activity, you assign the actions you defined previously to the order types. This activates the availability check settings for this order type, that were maintained in the APO planning system.
    Regards,

  • Availability check on Sales order creation

    Dear Gurus,
    I'm trying to set the availablity check on Sales order creation VA01. I need to do this on saving the order. it there an SPRO for this. please help me out on this occation.
    many thanks..

    Hi
    If there is a stock of 1000 in unrestricted and if you have included sales requirements in OVZ9 (made a tick sales requirements in inward and outward movement) then if you create a order customer X with 100 quantities of that same material stock will be reserved for that customer X with 100 quantities
    But if you check in MMBE there wont be any reduction still it will be 1000 only
    If that order is delivered and pgi done then only In MMBE stocks will become 900
    To have a very proper reservation for that customer it is better to go to  t code MB1B movement type 412 E and that will reserve stocks for him with proper material document(reserving for sales order)
    If you do that unrestricted becomes 900 and sales order stocks become 100 in MMBE
    In case 1 there is chance of your 100 quantities can be reallocated to another customer thro back order processing
    In case 2 it is not possible it will be for that order only
    Or if you create delivery and dont do PGI then stocks will be reserved for that delivery
    But to have stocks reduced from MMBE you have to do PGI
    Regards
    Raja

Maybe you are looking for

  • Error message when trying to open Messages.

    Just upgraded to Mountain Lion (10.8) yesterday. Messages won't open. Reports "An Internal Messages error occurred. There was a problem with Messages. You need to quit and open Messages again." Console shows: 7/29/12 8:53:41.594 PM Messages[834]: [Wa

  • How do I make a bootable hard drive clone of my main disk in my mac pro?

    Hi everyone, How do I make a bootable hard drive clone of my main disk in my mac pro? My main drive has bad sectors and I want to replace it. Thanks in advance

  • Problem displaying itab with reuse_alv_grid_display

    Hi experts! I passed non-conform entries from itab_upload to itab_test. I do not find any syntax error and I do not get a short dump, but the table which appears on the screen does not contain any data, but empty columns ( with the right title ). I a

  • The white backround is showing in my transparent gif.

    Ok so I have all the publish settings set to transparent and the symbols themselves have no backround, but the image is still coming up as if it has a background. There is like a big white box in the back of it. How do i fix this? None of my symbols

  • Pidgin, suddenly not working with danish keys?

    Hi all. Has something changed in the recent version of Pidgin? Cause suddenly my danish keys: Ø Æ Å doesnt work in Pidgin, actually it seems my intire DANISH keyboard is a US/UK model in Pidgin, but only in Pidgin? Everything works fine i consol/any