Error message if duplicate invoice

HI ,
        im using Badi       INVOICE_UPDATE for giving erROR  msg   but old invoive values not comming  so validation not working
METHOD if_ex_invoice_update~change_before_update.
Start of addition by
BREAK-POINT.
  IF   s_rbkp_new-bukrs EQ s_rbkp_old-bukrs
   AND s_rbkp_new-budat EQ s_rbkp_old-budat
   AND s_rbkp_new-xblnr EQ s_rbkp_old-xblnr
   AND s_rbkp_new-waers EQ s_rbkp_old-waers
   AND s_rbkp_new-lifnr EQ s_rbkp_old-lifnr
   AND s_rbkp_new-RMWWR EQ s_rbkp_old-RMWWR.
   MESSAGE ID 'ZI' TYPE 'E' NUMBER '047' .
  ENDIF.
ENDMETHOD.

I used below inside badi   is working fine
DATA i_bsak TYPE TABLE OF bsak  .
DATA i_bsik TYPE  TABLE OF bsik .
Invoice validation ********************
check for duplicate check in vendor open items
SELECT  * FROM bsik INTO TABLE  i_bsik
WHERE bukrs EQ S_RBKP_NEW-bukrs
AND lifnr EQ S_RBKP_NEW-lifnr
AND xblnr EQ S_RBKP_NEW-xblnr
AND waers EQ  S_RBKP_NEW-waers
AND bldat EQ  S_RBKP_NEW-bldat
AND wrbtr EQ  S_RBKP_NEW-rmwwr
AND shkzg EQ 'H'.
IF sy-subrc EQ 0.
  MESSAGE E047(ZI) WITH S_RBKP_NEW-belnr S_RBKP_NEW-xblnr.
ELSE.
check for duplicate check in vendor cleared items
  SELECT * FROM  bsak into TABLE i_bsak
  WHERE bukrs EQ S_RBKP_NEW-bukrs
  AND lifnr EQ S_RBKP_NEW-lifnr
  AND xblnr EQ S_RBKP_NEW-xblnr
  AND waers EQ  S_RBKP_NEW-waers
  AND bldat EQ  S_RBKP_NEW-bldat
  AND wrbtr EQ  S_RBKP_NEW-rmwwr
  AND shkzg EQ 'H'.
    IF sy-subrc EQ 0.
      MESSAGE E047(ZI) WITH S_RBKP_NEW-belnr S_RBKP_NEW-xblnr.
    ENDIF.
ENDIF.

Similar Messages

  • OBA5 : Error Message for duplicate entry

    Hi
    In Tcode OBA5 - i enter F5 as Apllication area and i select new entries - i Enter 117 - and i Enter E before i save.
    but when i go to MIRO to check if there is an error message for duplicate entry, i find just a Warning Message !
    Please did i forget any thing ? please advise.
    Thank You,

    Hello,
    OBA5 should be enough, but you must remenber that the following fields must be identical for duplicate invoice check:
         Company code                           (BUKRS)         
         Vendor number                           (LIFNR)         
         Currency                                    (WAERS)         
         Reference number                       (XBLNR)         
         Amount in document currency      (WRBTR)         
         Document date                           (BLDAT)         
    Note 305201 is also helpful.
    Cheers

  • Error message control for invoice w/o PO in SRM

    Hi,
    Anyone  know how to setup error message if invoice value limit is above e.g. 10000 USD? Invoice will be entered without PO.
    There will be no PO but invoice will be created and user should get error message if total invoiced value is above 10000 USD.
    We are in SRM_SERVER5.5 with SP 06.
    If anyone came across during IMS setup, please help me on it.
    Thanks in advance.
    Regards,
    Rahul Mandale

    Hi Atul,
    Thanks for your useful answer.  I am getting error message while creation of invoice. But problem is that it is throwing message for all invocie, need to consider  if condition of  'GROSS_AMOUNT >= 1000 USD. During creation of invoice, it should throw msg 001 (YIMS) which I have configured as my exception in  IMS when fulfills the condition.
    I am sending code for 'CHANGE' and "CHECK'  BADI.
    Can you check and suggest the correction? Where I need to put this conditon for pop up of error while gross_amount >= 1000  while creation and change of invoice??
    Thanks in advance.
    regards,
    Rahul
    <b>method IF_EX_BBP_DOC_CHANGE_BADI~BBP_IV_CHANGE.</b>
    DATA:   ls_header               TYPE bbp_pds_inv_header_d,
              lt_messages             TYPE TABLE OF bbp_smessages_badi,
              ls_message              TYPE bbp_smessages_badi,
              lf_dummy                TYPE c,
              lf_gross_amount         TYPE BBP_IV_AMOUNT,
              i_guid                  TYPE BBP_GUID .
    get data of the invoice from guid
      CALL FUNCTION 'BBP_PD_INV_GETDETAIL'
        EXPORTING
          i_guid   = i_guid
        IMPORTING
          e_header = ls_header.
      IF ls_header-GROSS_AMOUNT >= 1000.
    CLEAR ls_message.
        ls_message-msgty       = 'E'.
        ls_message-msgid         = 'YIMS'.
        ls_message-msgno     = '001'.
    APPEND ls_message to lt_messages.
        EXIT.
      ENDIF.
    <b>method IF_EX_BBP_DOC_CHECK_BADI~BBP_DOC_CHECK.</b>
    Data        ls_message TYPE bbp_smessages_badi.
    *To create  custom message
        clear ls_message.
        ls_message-msgty = 'E'.
        ls_message-msgid = 'YIMS'.
        ls_message-msgno = '001'.
        append ls_message to et_messages.
    endmethod.

  • Error message: 1021: Duplicate function definition.

    Hi All,
    First let me start by saying that I know next to nothing about Flash.  I have inherited a website maintenance project that has a Flash rotating image banner.  I have managed to get the images to fade-in and fade-out correctly, but now I need to make these images clickable - linking images to pages in the website.  I have read many posts here and have reviewed the video tutorials.  I have been able to get the first image clickable using this AS3 action:
    mars_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
    function buttonClickHandler(event:MouseEvent) :void {
            navigateToURL(new URLRequest("http://somewebsite/mars.php"));
            trace("I'm clicked");
    However, when I attempt to make another image clickable by using a different instance of a button I get the error message:
    1021: Duplicate function definition.
    I have a separate instance of a button with this AS3 action:
    jupiter_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
    function buttonClickHandler(event:MouseEvent) :void {
            navigateToURL(new URLRequest("http://somewebsite/jupiter.php"));
            trace("I'm clicked");
    Obviously I'm not understanding how I'm supposed to do this so that I don't create a duplicate function definition.  Any help would be most appreciated.

    excuse me , I have a question i hope that you help .. ( im new in here )
    we were asked to create an interactive application on flash in two languages..
    so i created two different fla files same exact codings ... i was wondering how can i combine them so the viewer can be able to choose the language from a button ?
    when i try to combine them i get lots of errors of duplications in the actionscript
    PS : MY MAIN PAGE INCLUDES A CAROUSEL with images ..
    I was thinking of saving one of the fla  as a movie and then add it some how to the second fla and combine it with a button but i can't figure it how..
    i hope i was clear enough.. but is there any possibility to help me please ?!
    when i tend to change names or something it creates error.. ( IM NOT A PRO IN AS3 ) and when i dublicate the scenes it give duplication errors.. WHAT IS THE SOLUTION ??
    this is the code of the actionscript in the main page.. ( the carousel's code i took from someone ) and i used it on my project
    import com.ccanvas.carousel.*;
    var centerX:Number = stage.stageWidth/4;
    var centerY:Number = stage.stageHeight/4;
    var carc:Carousel = new Carousel(centerX, centerY, 256, 75, "icons.xml");
    carc.addTooltip(new tooltip); // use 'tooltip' movieclip for item tooltip
    addChild(carc); // add carousel to stage
    function down(event:MouseEvent):void {
    trace(event.currentTarget.toolText); // simple click interaction
    function destroyCarousel(event:MouseEvent):void {
    carc.destroy(); // remove all item in carousel as well as tooltip
    function removeNextItem(event:MouseEvent):void {
    if(carc.numOfItems > 2) {
      carc.removeItem(2); // remove the item next to the remove item icon
    create.addEventListener("mouseDown", createCarousel);
    function createCarousel(event:MouseEvent):void {
    if(carc.CREATED == false) {
      // recreate the carousel
      carc = new Carousel(centerX, centerY, 256, 75, "icons.xml");
      carc.addTooltip(new tooltip);
      addChild(carc);
    }/* Click to Go to Scene and Play
    Clicking on the specified symbol instance plays the movie from the specified scene and frame.
    Instructions:
    1. Replace "Scene 3" with the name of the scene you would like play.
    2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
    Tools_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene);
    function fl_ClickToGoToScene(event:MouseEvent):void
    MovieClip(this.root).gotoAndPlay(1, "Toolse");
    }/* Click to Go to Scene and Play
    Clicking on the specified symbol instance plays the movie from the specified scene and frame.
    Instructions:
    1. Replace "Scene 3" with the name of the scene you would like play.
    2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
    games_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToGames);
    function fl_ClickToGoToGames(event:MouseEvent):void
    MovieClip(this.root).gotoAndPlay(1, "Gamese");
    }/* Click to Go to Scene and Play
    Clicking on the specified symbol instance plays the movie from the specified scene and frame.
    Instructions:
    1. Replace "Scene 3" with the name of the scene you would like play.
    2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
    Identity_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToIdentity);
    function fl_ClickToGoToIdentity(event:MouseEvent):void
    MovieClip(this.root).gotoAndPlay(1, "Identitye");
    }/* Click to Go to Scene and Play
    Clicking on the specified symbol instance plays the movie from the specified scene and frame.
    Instructions:
    1. Replace "Scene 3" with the name of the scene you would like play.
    2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
    Reviews_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_13);
    function fl_ClickToGoToScene_13(event:MouseEvent):void
    MovieClip(this.root).gotoAndPlay(1, "Reviewse");
    }/* Click to Go to Scene and Play
    Clicking on the specified symbol instance plays the movie from the specified scene and frame.
    Instructions:
    1. Replace "Scene 3" with the name of the scene you would like play.
    2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
    Facts_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_20);
    function fl_ClickToGoToScene_20(event:MouseEvent):void
    MovieClip(this.root).gotoAndPlay(1, "Factse");

  • Customizing error message of duplicate record

    HI All,
    I need to customize an error message of duplicate record inserting in a field of unique-constraint. I want to show the message in an alert. How can i do this?
    Arif

    Hi,
    you can use ON-MESSAGE trigger and check the error code then display your custom error message
    Regards,

  • Error message "A duplicate file name was specified"

    Every time I open iTunes or attempt to make a purchase, I get the error message "A duplicate file name was specificed. There was an error in the iTunes Stores. Please try again later."
    It started when I tried to download a book a few days ago.
    I do not have any plugins installed, so there are none to remove/disable. I'm running the most recent version of iTunes (11.0.5) for Windows 7 (64-bit). I tried clearing the iTunes cache to no avail.

    Try and unchecking Manually manage music and videos on the summary page in iTunes. To get there, just go to ____'s iPod, scroll down, and it should be there. You can then check any other boxes (or uncheck) that you think might help you. That box might have automatically checked itself after the update. Also, make sure you have the latest version of iTunes by going to the apple in the top left hand corner, and clicking software update.

  • Error message of Excise invoice has no matchin lines while capturing excise

    hi CIN gurus
    I ma facing a problem Whil capturing excise at depot. error message appearing as Excise invocie no matching lines.
    This problem occurs even after entering appropriate internal number in J1IG.
    And this problem is occuring randomly .
    This occurs for STOCK TRANSFERS FROM DEPOT TO DEPOT.
    CAN ANYONE COME OUT WITH SUGGESTION
    rgds
    BJ

    Hi,
    Refer to SNote Note 1382678 - Pop-up to select Excise Invoice in J1IH/J1IIN cancellation.
    Symptom
    While cancelling outbound Excise Invoice through the transaction J1IH or J1IIN, system always picks up the first excise invoice even when multiple excise invoices are present with same excise number and year.
    Regards,

  • Error message A/P invoice

    Hi All,
    Why the following error message appears when you trying to create an A/P Invoice.  in the Vendor field as soon as you select a vendor code the error message appears is as follows:
    Error message   " No Matching Records found 'Holiday Table' (OHLD) (ODBC-2028)
    What could be the reason?
    Thanks
    SV Reddy

    Thanks every one for your suggestions.  the problem is sovled now.  Actually in the Administration module, company information window the holiday was setup with another year and this holidy year is not displayed in the BP master window because the holiday table was renamed to a different name before you select something in the business partner master data.  so when i tried to raise invoice then this holiday table selected for BP master data is not matching with the holiday setup table in thecomapny initialisation window.  the first holiday table with the BP is exist in the system and the second holiday table in the company initialization window is not exist in the system (since it is renamed).  Now I have deleted the holiday table in the company initializationwindow and changed it to one which is avaialble in the business one system.  it is working fine now.,
    thanks
    SV Reddy

  • Error message when posting invoice : Day-end closing not defined

    Hi,
    In our training environment we migrated from FAGLFLEXT to FMGLFLEXT and activated fund management.
    Now when posting an invoice the system provides an error message: "FQ252 Day end closing not defined".
    There is no configuration related to F845 but we are prevented from posting the document due to this error message.
    Any idea of where this could come from and of what need to be done to prevent this from happening?
    Rgds
    Sophie

    Hi Sophie,
    Can you check if you have entries in either PSO43 or PSO43USER tables (can be accessed via F8O2 transaction)?
    Regards,
    Eli

  • Error Message for Cleared Invoice Cancellation

    How to explore if standard SAP functionality exists to configure either a soft or hard error message be delivered when an attempt is made to cancel a cleared invoice (VF11).
    If standard SAP do not support how would I achieve this functionality, through enhancement? If so please guide me.
    Thanks & Regards,
    Victor

    Dear Victor,
    Try this,
    This may possible through copy control settings between delivery and billing document.
    Go to VTFL transaction select your delivery type and billing type then go in to the item details by selecting itemcategory here you maintain copying routine 29 -Cancel Header Clear. in Copying requirements field.Through maintainimg this routine, you cannot cancel the billing document
    if the Accounting Document is cleared for that billing document.
    I hope this will help you,
    Regards,
    Murali.

  • R11:RECEIVED ERROR MESSAGES FOR AP INVOICE APPROVAL IN ORACLE WORKFLOW

    Hi All,
    We have this error:
    ### Detailed Problem Statement ###
    Received the following error messages in sysadmin notifications:
    Event Error Name: 100
    Event Error Message: ORA-01403: no data found
    Event Error Stack: HZ_DQM_SYNC>REALTIME_SYNCH(oracle.apps.ar.hz.DQM.realtimesync,
    30665979B704AE043C0A81404B04A)
    Event Error Name: WFE_DISPATCH_RULE_ERR
    Event Error Message: [WFE_DISPATCH_RULE_ERR] ENAME=oracle.apps.ap.payment EKEY=10001
    RULE=ap_payment_event_wf_pfg.rule_function SQLCODE=100 SQLERRM=ORA-01403: no
    data found
    Event Error Stack: WF_Event.dispatch_internal()
    In addition, during the set-up of Oracle Approvals Management, there was no available list of
    values in the Notification Style in the workflow configurator page.
    Action Plan
    =======
    1) Confirm if the workflow is customized in any way.
    2) Confirm whether you are able to select global preferences for the other invoices approval, meaning are you
    getting the list of values for the other invoices.
    There are no workflow customizations. We are trying to implement it to AP invoice
    approval only.
    Can you instruct me on how to test this one? I thought I could only select the global preferences from the workflow configuration window. And there are no distinction as to which invoice approval
    process it is applicable. Where could I select the global preferences for other
    invoices approval?
    Thanks a lot

    thanks hussein , but still we can not see LOV values even if we inserted data manually...:(
    But it has improved and we moved on to another error which is:
    *****received the error message:3120: Activity 'APINV/52822' has no performer
    ### Problem description or inquiry details ###
    Received the following error message:
    Error Message
    3120: Activity 'APINV/52822' has no performer.
    Error Stack
    Wf_Engine_Util.Notification_Send(APINV, 115191_1, 52822, APINV:APINV_MRA) Wf_Engine_Util.Notification(APINV, 115191_1, 52822, RUN)
    Encountered the following:
    No list of values in the notification style field in the global configuration region in the Workflow Configuration Page
    Please note that we could not update the workflow configuration page using the forms because there
    is no list of values to select in the above-mentioned field. We just recently
    changed the workflow administrator role from SYSADMIN to KCAALIM to reduce
    changing of user log-in. We have previously used the sysadmin user log-in to
    access the workflow configuration page. there was still no list of values for
    the notification style. we changed the wf admin role to kcaalim using the sql:
    udpate wf_resources set text = 'KCAALIM' where name like 'WF_ADMIN_ROLE';
    Commit;
    Hence, changing of wf admin role and user log-in (to sysadmin) won't help (just in case you would advise me to do so) since we tried it
    already.
    ### Responsibility and navigational paths to reproduce ###
    1. set-up the AME for ap invoice approval.
    2. test an actual transaction.
    3. when the list is generated, set-up workflow for AP approval.
    when setting up the configuration page, there is no list of values available for the notification style. hence the workflow
    configuration could not be updated.
    4. Run the required programs (i.e., synchronizations)
    5. run the approval workflow from the developer studio page.
    6. review the status from the Status Monitor page.
    7. The error message appears
    8. payables, create a sample invoice.
    9. validate and initiate approval.
    10. review the approval history to find out the required approver. (the approver's name appears with 0 amount of approval)
    11. check the notifications in the required approver's worklist.
    12. there are no notifications sent.
    Text continued in next action...
    **** screen shots availble >http://rapidshare.com/files/176008682/error_-noperformer.doc.html
    Thanks again...

  • Error Message in Excise Invoice

    Hey
    When I a creating a Excise Invoice wrt  Billing(T code J1IIN) , When I am saving the invoice, I am getting an Error message as follows
    Not Enough Balance for utilisation
    Message no. 8I578
    Diagnosis
    The balance in the Account is not enough to carry out the current transaction.
    Procedure
    You need to increase the balance by either taking credit or depositing into PLA.
    Even though i have maintained in the SPRO settings  >Logistics general>Taxs on Goods on Movement>India>Bussines Transactions>Utlization>Maintain Minimum balance for Excise Accounts
    Can any body help me how to resolve this error message. An immediate response would be appreciated.
    Cheers
    Guruprasad

    Hi Guru,
      First of all have you posted any incoming excise invoice.
    Secondly check whether the transactions are being calculated as per the calcualation procedure.
    The transaction you are using is to update the register.
      Reward points if it helps.
    Regards
    Karan

  • Error message in Logistic Invoice verification.

    Hi.
    When I am doing Invoice verification with reference to purchase order. I am facing a error message as
    "Tax code V1 country IN does not exist in procedure ZAXINN
    Message no. FF713
    Diagnosis
    You entered a tax code, which is not defined for the country of the company code to be posted to in the tax calculation procedure.
    System Response
    Procedure
    Check and, if necessary, correct the entry."
    In spite I have assigned the calculation procedure to the country and created the tax code in the transaction code FTXP.
    Can any body help me how to resolve this error message. An immediate response would be appreciated.
    Cheers
    Guruprasad

    Hi Guru,
    For This error Pls find out the Folowing.
    1)Any Purchase order history is there or not if it is there check previous Tax code.
    2)Check Authirization.
    3)Check PO tax code and MIGO tax code.
    4)Check validity Period.(This is not the reason)
    Even Though  U maintain all Basic settings, this error is comming in Some time when some GUDBUD.
    Pls Check all relate objects then ur Problem will solved.
    Thanks,
    Raghu

  • Error message in incoming invoice

    This is the error message that's appearing when I am trying to do an incoming invoice for parts and the message is "allowed posting dates 05/2007 04/2007 and 12/2006. Can anyone tell me how I can change this?

    Hi Harini
    I will suggest you to take help of FI people before making any changes in MMPV.
    Here very clearly it is shown that you are trying to post the invoice in a period which is not open. at any time you can post only in two periods ..current period and previous period. so check which period is open and what date you are entering while posting invoice.
    regrds
    Yogesh

  • Error message when doing invoice verification.

    Hi Gurus,
    During doing invoice verificition with delivery notes.Im getting a error message that level F1 belong to cash postion,source symbol PSK.Plz any body can help me to solve it
    Thanx

    Hi
    Planning level  belongs to the cash position, which means you can only use it for G/L account line items.
    Levels are defined and allocated to a source symbol in view V_T036. The source symbol is allocated to the cash position or the liquidity forecast in view V_T039.
    Please check these Tables using Transaction SM30

Maybe you are looking for

  • SharePoint Foundation 2010 - StoreMan.aspx page not reporting proper metrics

    The configuration of my farm: Sharepoint 2010 Foundation - up to date on all service packs. SharePoint Offers an Application Page (_layouts/storman.aspx) which enables the user to view the Size usage of files throughout a Site collection.  Currently

  • Linking between swf's - file size problem

    I"m building a presentation & have two separate swf's. One is about 80 mb, the other is 40 mb. When I tried to export the larger one, I got a warning that it exceeded 16k frames. I figured out how to work around that. But now I need to integrate both

  • How do I get iPad mini to see Time Capsule?

    I just bought an iPad mini.  I am trying to get it to connect to my Time Capsule.  My laptop sees the Time Capsule.  My iPad sees my Time Capsule.  My iPad mini says No Air Port base stations found.  Air Port Utility will keep searching. Thanks in ad

  • Best practice: "Turning off" concurrent programs

    We have a number of concurrent programs that are no longer used. In addition to application-side setup, some concurrent programs have corresponding files on the operating system that are no longer required; others have database code that is no longer

  • Trouble displaying PDF's

    I'm experiencing trouble displaying PDF's from www.naga.net/Pages/naga.htm (specifically http://www.naga.net/Docs/NAGA43%20Registration%20Form%20R2.pdf and http://www.naga.net/Docs/TBR%20Transportation.pdf It works in Safari!