Sales Order : Unit Price U_MRP it should give Error Message

Hi All,
I am using SBO 2005 B PL 25.
When the user add SO, and select the items and update the field of Unit Price and press Tab it should match Unit Price with one another UDF U_MRP. If Unit Price is > then U_MRP then it should give me error message and cursor should go back to Unit Price.
Is it possible through using SBO_SP_TransactionNotification or any other way.
Best Regards,
Chintesh Soni

Hi Istvan,
I have selected the type of UDF is Units and Total -> Amount.
Below is the full SP_TransactionNotification procedure..
USE [TEST_DB_190808_MRP_Excise]
GO
/****** Object:  StoredProcedure [dbo].[SBO_SP_TransactionNotification]    Script Date: 08/21/2008 18:00:07 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER proc [dbo].[SBO_SP_TransactionNotification]
@object_type nvarchar(25),                     -- SBO Object Type
@transaction_type nchar(1),               -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
@num_of_cols_in_key int,
@list_of_key_cols_tab_del nvarchar(255),
@list_of_cols_val_tab_del nvarchar(255)
AS
begin
-- Return values
declare @error  int                    -- Result (0 for no error)
declare @error_message nvarchar (200)           -- Error string to be displayed
--select @error = 0
--select @error_message = N'Ok'
--     ADD     YOUR     CODE     HERE
IF @transaction_type = 'A' AND @object_type = '17'
BEGIN
If exists
(Select t.Price From RDR1 t
   Where t.Price > t.U_mrp
     and t.DocEntry=@list_of_cols_val_tab_del)
begin
SET @error = 1 --10
SET @error_message = N'Errorr text '
end
END
-- Select the return values
end
With Warm Regards,
Chintesh Soni

Similar Messages

  • Material- chapter ID is not maintained system should give error message

    Dear All
    Requirement is as that while creating the sale order & if the material- chapter id is not maintained then system should give error message saying that the combination is not maintained.
    Client is using the TAXINN procedure.
    I think in TAXINJ it works well.
    Whether it can be done in TAXINN also through SD Module itself.cleint is using the automatic creation of excise invoice.
    Kindly help .
    with regards
    Rohit

    hi rohit,
    For TAXINN procedure system will not throw it as an error.
    if you want it to throw:
    use MV45AFZZ : USEREXIT_SAVE_DOCUMENT.
    say your SAP system to compare  and check for the values in J_1IVCHID-J_1ICHID
    if it is not equal to.
    then throw an ERROR message against it when saving the document.
    balajia

  • Should Give Error Message

    Hi all
    Purchasing organization 001 assigned to company code 001,
    when user want to create Vendor with P.Org 001 and comapny code 002
    the system should give error message
    During Vendor creation ,if the wrong purchase organisation is selected, system is allowing to create the vendor master.
    Even though ,I have done the Setting in the following , the error message is not reflectiog
    1. Message Control for Vendor Master Data
    2.T.code : OBMSG
    3.T.code : OBA5
    Kinldy let me know the steps if possible let me know userexit to solve this......
    Thanks & Regards
    chand

    Hi,
    In the exit FM EXIT_SAPMF02K_001 you have your company code and Purch. Org. in the following fields:
    I_LFB1-BUKRS (Company Code the vendor is being created in)
    I_LFM1-EKORG (Purch. Org the vendor is being created in)
    Having above, you can check in the table T024E ( here you have assignment of Purchasing Org to Company Code) if there is assignment between Purch. Org and Company Code.
    Hope it helps.
    Regards,
    w.

  • When I am making return order on cancelled invoice system should give error

    Experts,
    In this scenario I have cancelled the invoice 1234567 and when I am creating return order with reference to the cancelled invoice 1234567,system is accepting it
    Is there any process where the system should give the error
    Regards
    Kiran

    Hi,
    you should go for enhancement,use the exit MV45AFZZ
    Pass the XVBAK - VGBEL to VBUK - VBELN and check VBUK - VBTYP = N (Invoice cancellation) system throw an error.
    you can specify the message Ex: Return order can not be processed in spite of cancelled invoice.
    take ABAPer help.
    Regards
    Ram

  • Deletion marked material should give error message while creating proc ord

    Hello,
    i had marked the material for deletion through T-code MM06 & saved.
    Now when i'm creating the process order for the deleated material, System is giving only Warning message that " Material XXXX in plant XXXX has been marked for deletion."
    But my requirement is system shold give an ERROR message while creating Process Order for the deleted material.

    Yes Brahman is Right,
    Check the followig..
    Go to OMCQ and change the message category  to E- Error message instead of W- Waring message in Message no M7 127, but
    not  M7 121.
    and check it,
    Regards,
    Pavan idlur.

  • Order Unit Price changeable in ME12

    Hi everybody,
    It is possible to change the field "Order Unit Price" in  ME12  transaction?
    I tried by SPRO without any solution, i read some posts about this topic but I couldnt find any solution ( I tried changing the Variable Purchase Order Unit Active in MM02)
    Thnks,

    Hi Luis,
      It is possible to change the field "Order Unit Price" in ME12 transaction?
    I tried by SPRO without any solution, i read some posts about this topic but I couldnt find any solution ( I tried changing the Variable Purchase Order Unit Active in MM02)
        Purchase Info Record is maintained for a Vendor / Material / Purchase Org / Plant (optional) combination for a certain validity period For Eg. 01/01/2011 to 12/31/2011. If you are trying to update the price for a new validity period for eg : 01/01/2012 to 12/31/2012 then after you have entered all relevant details in TCode ME12, click on Conditions Tab and select New Validity Period and enter the validity dates and new price.
      Hope this helps. Let me know if you have any further clariications.
    Regards,
    Srinivas

  • View sales order net price and relavent putchase order effective price

    I;m using purchase to order sap solution. every sales order has single or multiple purchase orders. I nned to check the putchase order effective price agianst the sales order net price. Can i see both data in sales order, purchase order or any other standard report for this.

    Hi,
    There is no direct way to see sales order net value and purchase order value associated with sales order.
    you can view it by going inside VA02 or VA03 and click on document flow,then SO and P.O net value viewed.
    check t-code ME2K, put sales order number and see
    kapil

  • Sales orders not transfered to R/3 sytem (error IAOM 034)

    Hello,
    When we try to send a sales order from CRM to R/3 an error appears in the CRM document and doesn't create the SO in R/3 system.
    Error message:
    An error has occured in the system WCD200 while copying the document
    Diagnosis
    Errors have occured while transferring the document into another system. Refer to the attached log for error messages.
    Transmission Log
    Characteristics for Controlling object have errors (Notification E IAOM 034)
    Company code is not defined (Notification E F5 165)
    You must enter a company code for transaction (Notification E KI 180)
    Company was not supplied in Function Module interface (Notification E FI 320)
    Characteristics for Controlling object have errors (Notification E IAOM 034)
    Can anyone help me with this issue.
    Best Regards,
    Alexandre Aires

    Hi all,
    I've already solve the problem:
    The item category used in the sales document must be changed to External billing in the configuration of the billing relevance.
    Best regards,
    Alexandre Aires

  • Doing GR for a material type, system should give a message like QI required

    Dear Friends
    While doing MIGO(GR) for a material type, system should give a message like Quality Inspection required
    but Client requirement is not to maintain QM view or Inspection Type 01for  material type
    Any setting required 
    Thanks & Regards
    Gajendranath

    Hi
    Please check user exit QBCK0003 |Extended QM check for goods receipt                        
    Regards
    sujit

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • Playing mp4 audio gives error message "Video can't be played because the file is corrupt"

    Playing a particular mp4 audio file directly from a website link gives error message "Video can't be played because the file is corrupt". However other mp4 audio files from this same website do work correctly. What can I do to get all the the mp4 audio files to play directly from the same website? I must have the correct plugins, etc. since the other files play. This file is not playing from YouTube, is it on the website.
    Thank you for your help.

    What is the link to the site and file in question?
    MP4 files should be handled by Firefox itself, not a plug-in.
    # Click the ≡ Menu Button and choose Add-ons.
    # Click Plugins.
    # Set every plug-in to "Never Activate".
    # Try loading the file again. Is there any difference?
    You have two versions of Flash Player installed. Perform a clean installation of Flash Player as follows.
    # From the following page, save the uninstaller somewhere handy, like the desktop.
    #* [http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html#main_Download_the_Adobe_Flash_Player_uninstaller Uninstall Flash Player for Windows | Adobe Support]
    # From the following page, save the installer for other browsers. If you also use Flash Player in Internet Explorer, also save the ActiveX version.
    #* [http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#main-pars_text_4 Direct downloads of Flash Player for Windows | Adobe Support]
    # Exit all applications.
    # Run the uninstaller.
    # In Windows Explorer, try to open the following folders. If they still exist, delete them manually.
    #* <pre>C:\Windows\system32\Macromed\Flash\</pre>
    #* <pre>C:\Windows\SysWOW64\Macromed\Flash\</pre>
    #* <pre>%AppData%\Adobe\Flash Player\</pre>
    #* <pre>%AppData%\Macromedia\Flash Player\</pre>
    # Restart your computer.
    # Run the installer for other browsers.
    # Run the ActiveX installer if you downloaded it.

  • ITunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 5). I have uninstalled in correct order and reinstalled but still getting same error message. Any help??

    iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 5). I have uninstalled in correct order and reinstalled but still getting same error message. Any help??

    Take a look at iTunes for Windows: "Error 7" message when opening iTunes. Perhaps your .NET Framework needs a repair.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • Premiere Pro stops rendering and gives error message when encounters "RGB Color Corrector"

    Premiere Pro (and also Encore) stops rendering and gives error message when it encounters a clip containing the "RGB Color Corrector" in any clip.  It will process clips without RGBCC, but will stop when it gets to one with RGBCC activavted.  PP will render clips if other effects, such as "Fast Color Corrector", "Color Balance (HLS)", and "Three-Way Color Corrector" are selected. However, these do not have the capabilities that The other color correctors will not do what RGB color corrector does, so I need to have this working to finish a large product that is due to the client.  Please help me..... I am not using the Creative Cloud version, and can't find either a download for the new update from 2013, or a phone number to talk to anyone. 

    Using a Win7 computer with 2.8 quad core processor, 24 gig of ram, Nvidia Quadro 5000 video card.  Don't think I have any plugins.  I looked at one a while back for cleaning up grainy video, but I am not sure I paid for that.  Think I deleted it. 
    Incidentally, someone named Jim on another part of the forum mentioned that this problem has been fixed in the CC version of the program.  I am using the non-CC version because I am 68 years old and only do seminars and documentation video.  Don't need so many bells and whistles, and definitely don't need learning curves every few weeks.  CS6.0.3 works fine for me.  By the way, someone else said that maybe version 6.0.1 might work better and I should revert to that.  Not sure if it is the version i have on the disk upgrade to 5.5 that I purchased in December. 
    As it stands now, I have 7.5 hours of a seminar that is ready to go out the door.  If there is an upgrade I can get from Adobe, maybe you can tell me about it. If I have a setting incorrect in the video output format, maybe I can change that.  So far it just happens with clips in my video that have RGB color correction. 
    Rick

  • ITunes new version doesn't open at all. Gives error message

    I downloaded 7.4.3 version of iTunes and it doesn't open at all. Gives error message. "iTunes has encountered a problem and needs to close."
    I have previous version of iTunes in my spare HD, in the same computer, and it works perfectly fine.
    I have unistalled and re-installed again and again many times including with the help of Apple Support help in the phone and came up with no clues of what's going on.
    How can I get a previous version of iTunes to download to my PC? I have looking for a place on Apple's website where I could probably have my issue resolved, but I found nothing.
    Thank you.

    Thanks to Jim Zack, the problem is solved.
    If you're having this problem, go find the solution at the following page and read Jim's suggestion.
    http://discussions.apple.com/thread.jspa?threadID=1155613

  • In Windows 7, iTunes  gives error message "An iPhone has been detected, but it could not be identified properly. Please disconnect and reconnect the phonon then try again.

    In Windows 7, iTunes  gives error message "An iPhone has been detected, but it could not be identified properly. Please disconnect and reconnect the phonon then try again."
    I have a iphone 4S. It has been activated on Win 7 computer and synced. But overnight this meassage reappears.

    I have same error except that i get it even when my phone is not connected.

Maybe you are looking for

  • My iphone4s is no longer recognised by itune (I can only restore it or configure it as a new iphone)

    Iphone4s IOS 5.0.1 Itune 10.5.1 Mac OSX 10.7.2 I synchronize several idevices (ipad 2, 2 iphone 3gs & 1 iphone 4s) by wifi with itune For a few days, i have troubleshooting regarding the iphone4s synchronisation. By wifi, it doesn't work (no connecti

  • Problem with stacked bar query

    Hello, I tubbing a while on this already and probably the answer is right there. I have table with date,product,qty column and I want a stacked bar with the sum of quantity for each product for a certain period. so period is the label but how can I c

  • New PC Suite 6.7 is available

    Hi Everyone! If you take a look at http://www.nokia.com/pcs you will see that a new version of PC Suite, version 6.7, is now avialable for download. Enjoy! Cheers Karim

  • Non-English Closed Captioning

    Hi there, I need to create closed captions for a video that aren't in English (Bengali and Hindi). Is there a way to add CC that aren't in English in Premiere Pro? In the captioning window the Bengali shows up correctly but on the program monitor the

  • Showing SUM of minutes as hours & minutes

    Hi everyone, I'm using numbers as a timelog (as I see others doing the same). I can't, however, find the solution to my problem in the previous post search. I would appreciate any help anyone can offer, so thank you in advance. I have created a separ