To throw error message on line item

Hi Experts,
  I am using the user exit MV45AFZZ_MOVE_FIELD_TO_VBAP of sale order and it is getting triggered when we press 'ENTER' after filling the line item details of a sale order.
  In my requirement i have to check some conditions on the line items and have to throw error message on that particular item sothat the user can delete that item and can proceed with the remaining.
  But i am not able to throw error message on the particular item.
  Please help me to throw error message on the particular tabstrip corresponds to the item. 
Thanks in Advance,
Shaju

You can try this fm
                CALL FUNCTION 'DD_POPUP_TO_CONFIRM_CANCEL'
                     EXPORTING
                          textline1    = text-902
                          textline2    = text-903
                          title        = text-901
                          start_column = 25
                          start_row    = 6
                          defaultpos   = 'C'
                     IMPORTING
                          answer       = cancel_rc.
                CASE cancel_rc.
                  WHEN 'A'.
                  WHEN 'C'.
                    LEAVE PROGRAM.
                  WHEN OTHERS.
                ENDCASE.
Based upon user inputs you can handle conditions (CANCEL_RC) accordingly.

Similar Messages

  • New error message :duplicate line item

    Hi,
    We have to add a new error message so that when we try to add a duplicate line item in our qty contract
    1.     we should not be allowed
    2.     we should get a error message u201Cduplicate line item not allowedu2019
    How to achieve this
    Thanks
    Arun

    Search this forum for "USEREXIT_SAVE_DOCUMENT" and "USEREXIT_SAVE_PREPARE".

  • Error message: Missing line item for CO-PA characteristic line 0000000001

    Hello, when posting is being done in automatic we are getting the following error message RW621 : 'Missing line item for CO-PA characteristic line 0000000001' and the document is not being created. I've filled in correctly the cost center / profit center for the line items. Any idea on why i'm getting this message?

    Hello Prashanth ,
    there are 2 structures I think you should fill
    CRITERIA (ref structure BAPIACKEC9 )
    VALUEFIELD( ref STRUCTURE  BAPIACKEV9) in  BAPi_ACC_DOCUMENT_POST
    hope this helps...

  • Error: No Actual Line item were selected (Message No. KB420)

    Hi All,
    I have created order in KO01 and posted the transaction in F-02. And assigned the same order in KH01.
    And, now i am trying to Actual cost of line items for order in KOB1, i am getting below error
    "Error: No Actual Line item were selected (Message No. KB420)"

    HI,
    Thank you for the reply.
    Madce necessary changes internal order and assigned the correct cost element.
    issue got resolved. Thank you

  • FI Archiving - System error: Customer/vendor line item not on OI basis

    While archiving FI Documetns using object FI_Documnt, I am getting message System error: Customer/vendor line item not on OI basis for few non archivable documents. Is it like these also open items and can not be able to archive them. Or what is the root cause of these error message.
    Regards,
    Shailesh

    Hi Adisha,
    This error pertains to the accounting fundamentals and SAP does not have anything to do with this....you ask yourself that if you were not using SAP and simlar problem came your way what would you have done...this has no solution...
    Either you wait for the next invoice with big amount but which seems bit impractical..
    In this we really need to consult the Accounting Standards to see what it could allow.
    Regards,
    Chintan Joshi

  • Error Message while adding Item in Item Master Data- [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting the nvarchar value 's008 01' to data type int. (CINF)

    Dear Experts
    I am getting the following error message while adding item in Item Master data. I have modified the following SBO_SP_transactionNotification in SQL server after that could not able to add the item
    ALTER proc [dbo].[SBO_SP_TransactionNotification]
    @object_type nvarchar(20),                      -- 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'
    --    IF @OBJECT_TYPE = '59' AND (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U')
      BEGIN
       IF EXISTS(
        SELECT T0.Price FROM IGN1 T0
        where  IsNull(T0.Price, '0') = '0' and T0.DocEntry = @list_of_cols_val_tab_del)
       BEGIN
        SELECT @ERROR=1,@ERROR_MESSAGE='Please insert the price !'
      END
    end
    -- Select the return values
    select @error, @error_message
    end

    Hi Rathna,
    Just put the SP like this, without the -- before the IF. A -- marks the line as a command therefore you need to uncomment and it will work.
    IF @OBJECT_TYPE = '59' AND (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U')
      BEGIN
       IF EXISTS(
        SELECT T0.Price FROM IGN1 T0
        where  IsNull(T0.Price, '0') = '0' and T0.DocEntry = @list_of_cols_val_tab_del)
       BEGIN
        SELECT @ERROR=1,@ERROR_MESSAGE='Please insert the price !'
      END
    end
    Hope it helps

  • When I turn on my computer I get the following error messages: Insecure Startup Item disabled. "Library/StartupItems/HP IO" has not been started because it does not have the proper security settings. Also for HP Trap Monitor.  How do I fix these?

    When I turn on my computer I get the following error messages:
    Insecure Startup Item disabled. "Library/StartupItems/HP IO" has not been started because it does not have the proper security settings.
    Insecure Startup Item disabled. "Library/StartupItems/HP Trap Monitor" has not been started because it does not have the proper security settings.
    How do I fix these?

    Library/LaunchAgents: com.promethean.activmgr.plist
    Library/LaunchDaemons: com.microsoft.office.licensing.helper.plist, com.promethean.activhardwareservice.plist
    Library/StartupItems: HP IO folder - HP IO, Resources, StartupParameters.plist
    HP Trap Monitor folder - HP Trap Monitor, Resources, StartupParameters.plist
    These are the system extension errors
    "/System/Library/Extensions/AppleGraphicsControl.kext"
    "/System/Library/Extensions/AppleGraphicsControl.kext/Contents/PlugIns/AppleMux Control.kext"
    "/System/Library/Extensions/AppleGraphicsControl.kext/Contents/PlugIns/ApplePoli cyControl.kext"
    "/System/Library/Extensions/BJUSBLoad.kext"
    "/System/Library/Extensions/EPSONUSBPrintClass.kext"
    I do not know what any of these do or how to fix them.  I have run multiple disk permission repairs & disk repairs.  The startup & system extension errors continue to come up.
    I even followed the directions to move HP IO & HP Trap Monitor to the trash, run disk permissions repair, put back in folder, then restart - and still am getting error message.

  • Message "No Line Items Selected"

    Hi friends,
    I am getting a message "No Line Items were selected" while executing CJI4.
    Or even when in the transaction CJ40/CJ41, I am going thru ....Extra>Line Items.......
    I have even implemented a note but still the same message is coming.
    I couldnot figure out what "Line Items" the system is asking for.
    Pl. help me out.
    Abhra Bose
    9930459159

    Refer to this note if applicable to your SAP pack: Note 1130282 - CJ40/CJ41: Plan line items not displayed.
    1. Check planning profile assigned to your project definition.
    2. Check Primary C.Element Grouping defined in the profile for Hierarchial Cost Planning. (if not defined use T.code CJR2 to build WBS detailed planning)
    3. Check Number Range assignement for Detailed Planning for the controlling area and transactions assignment to intervals.
    4. User Status maintained for WBS elements must allow "write plan items" business transaction.
    Hope it all helps.
    NChakoo
    Edited by: NAKUL CHAKOO on May 27, 2009 9:56 PM

  • Sync throws error message -48 (unknown error)

    Synch throws error message and then does not synch music.

    I'm having this same problem. In my case the library file is on my main internal hard drive, but is partitioned to the e: logical drive. Permission should not be a problem.

  • I'm trying to copy pics from my pc to Iphone4s and am getting an error message - cannot copy item - the device has either stopped responding or has been disconnected.  please tell me what to do to enable me to transfer the pics

    i'm trying to copy pics from my pc to Iphone4s and am getting an error message - cannot copy item - the device has either stopped responding or has been disconnected.  please tell me what to do to enable me to transfer the pics

    Are you syncing the photos using Itunes?
    When you plug your phone into your PC, in Itunes under the picture tab you can sync photo and then choose the photos.
    Look here more detailed instructions
    http://support.apple.com/kb/HT4236

  • When I try to copy pictures to my iphone 4s I get this error message: Cannot copy item. The device has either stopped responding or has been disconnected. Any help?

    When I try to copy a photo from my computer (windows 7) I get this error message: Cannot copy item. The device has either stopped responding or has been disconnected. Any help for this?

    Are you syncing the photos using Itunes?
    When you plug your phone into your PC, in Itunes under the picture tab you can sync photo and then choose the photos.
    Look here more detailed instructions
    http://support.apple.com/kb/HT4236

  • Remittance challan creating-error no tax line item

    hi
    while creating remitance challan it showing error '' no tax line item exist''
    tax line item showing open item that too i have posted in last month first1.8.2008.to day i am creating challan but it is showing that error
    thank you
    sowmya

    Hi
    I hope you've checked the business place entered in J1INCHLN. If yes, then check what is the recepient type filled in your Vendor masters ? May be the recepient type you are typing in J1INCHLN is different from that of the vendor master
    regards
    Parag  Bhargava

  • IOS8 Multi Folio - Error message "Cannot install item"

    We're a UK publisher using Enterprise Editions to produce multi folios. We publish v27, to target iOS6+7. On updating to iOS8 and opening our app in Newsstand, and trying to download an edition, we get the Error Message "Cannot Install Item". I've read through the various threads and can't see a definitive solution. Interestingly the two Adobe mag apps I have on my Newsstand (CMO & Inspire) show up the same error. Many thanks.

    You need to rebuild your app as v31 or v32 and resubmit.
    For details on iOS 5 access refer to this blog post from last year:
    Support for DPS Apps in iOS 7 and iOS 5

  • VA01 - Need to display an error popup message on line item check

    Hi All,
    I'm working on a user exit (report MV45AFZZ, form routine USEREXIT_FIELD_MODIFICATION).
    I already have all the logic necessary - the one final piece that is left is to display an error pop-up message if the line item quantity is less than a certain number.
    The pop-up should display when the enter key is pressed in the quantity field. Also, the pop-up should display if the SAVE button is pressed.
    I tried using
    MESSAGE 'Please increase quantity' TYPE 'E'.
    This worked, but unfortunately it caused VA01 to terminate when I click off the pop-up. This is strange, since type 'E', unlike type 'A', should not do that.
    I also tried POPUP_TO_INFORM, but that's just an informational message which does not prevent saving.
    Any ideas ?
    Regards,
    Roman D.

    You can try this fm
                    CALL FUNCTION 'DD_POPUP_TO_CONFIRM_CANCEL'
                         EXPORTING
                              textline1    = text-902
                              textline2    = text-903
                              title        = text-901
                              start_column = 25
                              start_row    = 6
                              defaultpos   = 'C'
                         IMPORTING
                              answer       = cancel_rc.
                    CASE cancel_rc.
                      WHEN 'A'.
                      WHEN 'C'.
                        LEAVE PROGRAM.
                      WHEN OTHERS.
                    ENDCASE.
    Based upon user inputs you can handle conditions (CANCEL_RC) accordingly.

  • Error 'No client line items'

    Hi,
    After the upgrade from 4.6c version to ECC6 in the include LFIPIF00 the call transaction statement is throwing an error message 'No client line items'.This is because of the note 811562 is implemented at this statement.
    In 4.6c version the error is not populated.
    Is there any alternative to prevent this error or any other sap note available?
    << Moderator message - Please do not promise points >>
    Regards,
    RK.
    Edited by: Rob Burbank on Oct 25, 2011 9:34 AM

    hi,
    check whether this sap note can help
    1127049 New deferred tax: DEFTAX025 when posting down payment clr. 18.01.2008
    913805 Error FF891 or DEFTAX025 when posting FI-Documents

Maybe you are looking for

  • Fixed Asset Add-On

    Good day! Hi All! I am currently loading fixed asset to SAP Business One 8.82 PL 13. I followed the setup procedure. But when I am trying to load the text (tab delimited) format of the template I have, I am getting an error (Please see attached file)

  • IPod Nano Drawing Too Much Power From USB Port

    My daughter plugged her iPod into the USB port of our iMac today, something she has been doing for months and months, and yet this time she was greeted with an error message telling her that something was drawing too much power from the USB port, so

  • [Help] Get Text Between words!

    Hi, I wanna to Get Text Between words, I'm tring to something like this , can anyone help please ? <?php $data = "<a target='_blank' href='http://www.mysite'>Engineering</a><des>Description</des>          <a target='_blank' href='http://www.mysite'>A

  • How to resume partial download of adobe CS6,can't find the file on mac

    hi , i was downloading adobce cs6 purchased yesterday but could only download 4gb out of 4.8gb. when i am again trying to resume the same download i cant find the file on mac in downloads folder. dont want to download all over again. Any suggestions

  • AirPort Express compatiblity with Zoom ADSL X6

    I am running my home network from a Zoom ADSL X6. It's running as a DSL Modem, Router and Wireless Router. How do I get an AirPort Express to run off of this Wireless Router?