Partner validation- error appearing 3 times

Hi Experts,
I have got the follwoing problem.
We have to implement a check on a partner function regarding the role.
I found the BADI IF_EX_COM_PARTNER_BADI~COM_PARTNER_CHECK
I implemented the the follwoing coding:
method IF_EX_COM_PARTNER_BADI~COM_PARTNER_CHECK .
  DATA: lw_but100 TYPE but100,
  lw_but000 TYPE but000,
  lw_msgno TYPE bal_s_idno,
  lt_msgno TYPE bal_r_idno,
  l_partner TYPE symsgv,
  lw_low TYPE balmsgidno.
  IF is_partner_wrk-PARTNER_FCT = '00000009'.
    SELECT SINGLE * INTO lw_but000
    FROM BUT000
    WHERE partner = is_partner_wrk-external_partner_number
    AND TYPE = '2'.
    IF sy-subrc EQ 0.
      SELECT SINGLE * INTO lw_but100
      FROM but100
      WHERE partner = is_partner_wrk-external_partner_number
      AND rltyp = 'BUP004'.
      IF sy-subrc = 0.
        REFRESH lt_msgno.
        lw_msgno-sign = 'I'.
        lw_msgno-option = 'EQ'.
        lw_low-msgid = '/DS1/A'.
        lw_low-msgno = '139'.
        lw_msgno-low = lw_low.
        APPEND lw_msgno TO lt_msgno.
        CALL FUNCTION 'CRM_MESSAGES_DELETE'
          EXPORTING
              IT_R_MSGIDNO  = lt_msgno
              iv_ref_object = is_partner_wrk-guid.
        l_partner = is_partner_wrk-external_partner_number.
        CALL FUNCTION 'COM_PARTNER_MESSAGE_COLLECT_OW'
          EXPORTING
            is_partner_control = is_partner_control
            iv_msgno           = '139'
            iv_msgid           = '/DS1/A'
            iv_msgty           = 'E'
            iv_msgv1           = l_partner.
      ELSE.
        REFRESH lt_msgno.
        lw_msgno-sign = 'I'.
        lw_msgno-option = 'EQ'.
        lw_low-msgid = '/DS1/A'.
        lw_low-msgno = '139'.
        lw_msgno-low = lw_low.
        APPEND lw_msgno TO lt_msgno.
        CALL FUNCTION 'CRM_MESSAGES_DELETE'
          EXPORTING
              IT_R_MSGIDNO  = lt_msgno
              iv_ref_object = is_partner_wrk-guid.
      ENDIF.
    ENDIF.
  ENDIF.
endmethod.
when I enter a partner with a wrong role, I got the message I have implemented. But the message is appearing 3 times in the errorlog. Can anyone please let me know the reason for this and solution to resolve this.
Regards,
Swetha

Please use the below code for fixing the issue, I encountered similar issue too.
delete message
  CALL FUNCTION 'CRM_PARTNER_GET_DECOUPL_VALUES'
    IMPORTING
      ev_ref_object = lv_ref_guid
      ev_ref_kind   = lv_ref_kind.
  ls_msgidno-sign = 'I'.
  ls_msgidno-option = 'EQ'.
  ls_msgidno-low-msgid ='R1' .
  ls_msgidno-low-msgno = 274.
  INSERT ls_msgidno INTO TABLE lt_msgidno.
  CALL FUNCTION 'CRM_MESSAGES_DELETE'
    EXPORTING
      it_r_msgidno   = lt_msgidno
      iv_ref_object  = lv_ref_guid
      iv_ref_kind    = lv_ref_kind
      iv_caller_name = 'PARTNER'
    EXCEPTIONS
      appl_log_error = 1
      OTHERS         = 2.

Similar Messages

  • Hello !! Because if I talk daily to the dame Person for FaceTime and two are always in the same place, once day face time no prolem speak for another day and I have to use skype for error appearing face time ? Thanks for your answers.

    Hello !! Because if I talk daily to the same Person for FaceTime and two are always in the same place, once day face time no prolem speak for another day and I have to use skype for error appearing face time ? Thanks for your answers.

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime: Set-up, Use, and Troubleshooting Problems
    http://tinyurl.com/32drz3d
     Cheers, Tom

  • TS4002 "Unknown validation error" appears when I'm trying to sign in to mobile me under preferences. I am not receiving incoming email on my mac pro.

    "unknown validation error" appears when I'm trying to sign in to mobile me under preferences. I cannot receive email on my mac pro.

    Mobile Me was withdrawn well over a year ago. If you still see Mobile Me in your system preferences it is because you have an old operating system.
    iCloud has replaced mobile me, but you would need OS X 10.7.2 or better to use iCloud.

  • Validation error appearing for the wrong field

    Hi friends
    i am facing aissue with my application
    I have 3 Field
    1.     Department (Field 1)
    2.     Emp id(Field 2)
    3.     Name(Field 3)
    If i am not giving Field 1 value and trying to save i am getting proper error message.
    If I am giving Field 1 value and not giving Field 2 value , then I am getting error message for Field 2 in Field 1 .
    If am giving Field 1 and Field 2 value and not giving Field 3 value , I am getting the error for Field 3 in Field 1.
    validation in Entity level.
    i am using jdev11.1.1.6.0, adf faces and adf bc.
    Edited by: 964331 on Oct 22, 2012 3:21 AM

    Hi,
    See followings
    https://blogs.oracle.com/workingwithadf/entry/adf-bc_business_rulesvalidation_eovo
    http://one-size-doesnt-fit-all.blogspot.com/2007/08/jdev-11g-new-features-adf-bc-entity_06.html

  • Unexpected Error message appears every time I try to open After Effects.

    A message saying Unexpected Error appears every time I try to open After Effects. I can't use the application as a result.
    ANY IDEAS?????

    Okay, I'm using After Effects CS4. I am on a Mac OSX 10.7.3
    The message "Unepected Error" appears and is then followed by another window which says "After Effects can't continue: unexpected failure during application set up."
    This all began when I was working on a project and left it for about an hour. When I came back to my computer AE had crashed and these are the messages I get when I try to re-start it.
    I've recently switched computers and transfered all the software from the old one to this new one.
    I used to have this same problem when I used AE on my old mac but deleted some files, I think 'Preferences', from the AE folder in Applications and this sorted the problem out.
    'Preferences' don't appear in the AE folder on my new Mac.

  • Validation Errors with adf dialog

    Hi!
    We are using Oracle BC and ADF Faces.
    I'm having some validation problems with a adf dialog.
    The scenario is the following:
    An editing page.
    A field in this page has a LOV.
    The LOV has some search criteria, and a search button.
    When the button is clicked, the results appear on a table. The user selects one and the lov is closed.
    When filling the editing page the Lov is opened.
    When i don't put search criteria in the fields, no validation errors appear.
    If i put one or more search criterias, validations errors of the editing page appear.
    Why is this happening?
    Thanks.

    Please post a link to your site.
    Gramps

  • Report Still Runs When Validation Errors Occur

    Hello.
    I'm using Apex 4.2.1 against Oracle 11gR2 and Oracle App Server (mod_plsql).
    My Set-Up:
    I created an application containing a "classical" type report that is driven by a WHERE clause. I also have two date fields in an HTML region on this same page. These fields are used in the report WHERE clause. And the report is run by clicking a GO button on the page.
    Here's what the WHERE clause looks like:
    where table_date >= to_date(nvl(:P1_BEGIN_DATE, '01-jan-1900'), 'dd-mon-yyyy') and table_date <= to_date(nvl(:P1_END_DATE, '31-dec-2300'), 'dd-mon-yyyy')This is designed so that, if any of the date fields are NULL, then the minimum or maximum date will be used for the query.
    These date fields should always have a value when the report is run, and so, I created two after submit NOT NULL validations, one for each of the date fields. If any of these fields is NULL when the GO button is clicked, an error message appears in the notification area at the top of the page.
    Looking at all this, you might realize (as I do) that the nvl() functions in the above WHERE clause are redundant. After all, the validations are supposed to prevent these date fields from becoming NULL when the report is run. In any case, this set-up does work ok and points out a strange behavior with Apex.
    My Problem:
    If any of these validations throws an error message, the report still runs. In previous versions of Apex, if a validation (or, for that matter, any error) is thrown, the report remains static. The report region does not disappear and the report is not invoked until the user corrects the error.
    If both date fields are filled, I click the GO button and the report correctly returns, say, 100 rows. But when I empty both of the date fields and click GO, the validation errors appear and the report still runs, now returning the maximum number of rows, say, 1000.
    What I've Tried:
    I added a Branch-to-Page with condition "No Inline Validation Errors Displayed" so that the page branches back to itself only when no errors appear inline and I changed the validation error messages to appear inline. This has no effect.
    And if I remove the nvl() functions from the above WHERE clause, then, when validation errors are thrown, the report data is replaced with the "No data found" message. All very disconcerting to my users.
    Does anyone know why Apex reports are still run in presence of validation errors?
    And how do I get around this behavior?
    Thank you for any help.
    Elie

    Hi, Scott.
    Thank you for your help/suggestions.
    I like your first suggestion: creating a DA on the GO button that causes my report region to refresh only if both begin and end date fields are populated. And so, I tried doing this.
    My DA looks like:
    Event: Click
    Type: Button
    Button Name: P1_GO
    Condition: - No Condition -
    Action: Refresh
    Fire When Event Result Is: True
    Fire On Page Load: Checked
    Selection Type: Region
    Region Name: People Count
    Event Scope: Static
    Condition Type: PL/SQL Function Body Returning A Boolean
    My PLSQL Code in Expression 1:
    IF ( (:P1_BEGIN_DATE IS NOT NULL) AND (:P1_END_DATE IS NOT NULL) ) THEN
      RETURN TRUE;
    ELSE
      RETURN FALSE;
    END IF;My P1_GO button was automatically changed to "Controlled by Dynamic Action". And "Execute Validations" for this button is set to "Yes".
    Unfortunately, this DA does not work. When both date fields are filled, clicking the GO button does not cause the report (nor anything else) to refresh. However, if I navigate to another application tab and then return back to my report page, I notice that the report does refresh at that point. But clicking the GO button has no effect.
    And when either or both of the date fields is NULLed, clicking the GO button does not cause my validation error messages to appear.
    By the way, I do agree with your comment about the NVL() functions. As I had mentioned in my original post, I also realize that, with my WHERE clause, checking for NULLs in my date fields is not needed. Still, if users fail to fill these date fields, then it would be useful to remind users that these fields should be populated. This is why having the validation checks are still needed despite my WHERE clause.
    In any case, would you know what I am doing wrong here with this Dynamic Action?
    Also, with respect to my first question, why is Apex causing my report to refresh when validaion errors have occurred? This did not occur prior to version 4.2.
    Thank you very much for any further help/advice.
    Elie

  • BPF: Validation error; CV dimension "ACCT" is not a drive dimension

    HI friends,
    I'm designing one bpf, but validating i'm getting below error message.
    BPF: Validation error; CV dimension "ACCT" is not a drive dimension
    BPF: Validation error; CV dimension "Category" is not a drive dimension
    BPF: Validation error; CV dimension "Entity" is not a drive dimension
    BPF: Validation error; CV dimension "INP_CURR" is not a drive dimension
    BPF: Validation error; CV dimension "PRODUCT" is not a drive dimension
    BPF: Validation error; CV dimension "Time" is not a drive dimension
    what is drive dim  and as already mentioned Location dim ( wth owner property) as driver dim.
    why i'm getting this error?
    Regards,
    naresh

    Naresh,
    What did you do to resolve this?
    Regards,
    Nsk

  • I have installed the agent 10 or 15 times and one installation hasfailed, no error appeared during the installation but I am havinginconsistent issues with my ethernet card not working here and there. Werebooted and can log into Novell client but th

    I have installed the agent 10 or 15 times and one installation has failed, no error appeared during the installation but I am having inconsistent issues with my ethernet card not working here and there. We rebooted and can log into Novell client but the login prompt did not appear for ESM client or the icon was not in the systray. Everything seems to work, besides at times (a couple times today) it terminates his ethernet card/connection. I would re-image his computer but he has several applications and it would take several hours, so I am hoping someone has an idea to fix this issue. So I was trying to figure out why he did not get the prompt to login and why it's not in the systray and it appears to not have completed the install? I checked the add/remove programs, its not listed within their, I also checked the registry and found nothing for endpoint within their, but the files are within c:\program files\novell\zenworks endpoint security.
    I have also tried uninstalling it but that fails due to it "not being installed", and it will not reinstall over itself either.
    I did notice that stuninstdrv.exe is running in task manager. Any help would be great...
    Windows xp sp3
    ESM 3.5.154
    Thanks,
    Andy

    If you are searching the registry, check for the "Senforce" string. It should be at HKLM\Software\Senforce
    Try running the install program for the ZSC with the following command line:
    setup.exe /V"STUNINSTALL=1"
    If you've specified an uninstall password, try this one instead:
    setup.exe /V"STUNINSTALL=1 STUIP=password"" (please note the double quote at the end)
    Let me know if that helped you.
    Daniel
    >>>
    From: Andy_DeWees<[email protected] du>
    To:novell.support.zenworks.endpoint-security-management
    Date: 2/5/2009 12:52 PM
    Subject: I have installed the agent 10 or 15 times and one installation hasfailed, no error appeared during the installation but I am havinginconsistent issues with my ethernet card not working here and there. Werebooted and can log into Novell client but the login prompt did not appearfor ESM client or the icon was not in the systray. Everything seems towork, besides at times (a couple times today) it terminates his ethernetcard/connection. I would re-image his computer but he has severalapplications and
    I have installed the agent 10 or 15 times and one installation has failed, no error appeared during the installation but I am having inconsistent issues with my ethernet card not working here and there. We rebooted and can log into Novell client but the login prompt did not appear for ESM client or the icon was not in the systray. Everything seems to work, besides at times (a couple times today) it terminates his ethernet card/connection. I would re-image his computer but he has several applications and it would take several hours, so I am hoping someone has an idea to fix this issue. So I was trying to figure out why he did not get the prompt to login and why it's not in the systray and it appears to not have completed the install? I checked the add/remove programs, its not listed within their, I also checked the registry and found nothing for endpoint within their, but the files are within c:\program files\novell\zenworks endpoint security.
    I have also tried uninstalling it but that fails due to it "not being installed", and it will not reinstall over itself either.
    I did notice that stuninstdrv.exe is running in task manager. Any help would be great...
    Windows xp sp3
    ESM 3.5.154
    Thanks,
    Andy

  • Every time I start Fire fox an error appears that reads UNABLE TO CONNECT. I believe I accidently hit BLOCK rather then ALLOW. How to I reverse my mistake?

    Every time I start Fire fox an error appears that reads......
    Firefox can't establish a connection to the server at www.yahoo.com.
    * The site could be temporarily unavailable or too busy. Try again in a few moments.
    * If you are unable to load any pages, check your computer's network connection.
    * If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

    A possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox.
    See [[Server not found]] and [[Firewalls]] and http://kb.mozillazine.org/Firewalls

  • I found my brother's old 1st generation iPod. An unknown error 1442 keeps appearing every time I try to restore the iPod.

    I found my brother's old 1st generation iPod. An unknown error 1442 keeps appearing every time I try to restore the iPod.

    Error 23, 28, 29: These errors may indicate a hardware issue with your device. Follow the steps in this article. Also attempt to restore while connected with the white USB Dock Connector cable that shipped with your device, on a known good computer and network to isolate this issue to the device. The MAC address being missing or the IMEI being the default value, (00 499901 064000 0), can also confirm a hardware issue. Out-of-date or incorrectly configured security software can also cause these errors.
    http://support.apple.com/kb/TS3694#error28

  • Error appears: Cannot send message. this message cannot be sent at this time - has been appearing everytime i try to send e-mail for the past week!

    For the past week I have not been able to send both simple and attached messages through my icloud e-mail.
    The error reads: this message cannot be sent at this time.  i have the latest version of Firefox, I have even changed my password in hopes that this would resolve the issue, but alas, it hasn't worked. HELP!

    This is a terrible customer experience for Apple users. I have been dealing with this same issue since April 2012; all used to work just fine and then suddenly -- "Cannot send message" error appears.
    When is Apple going to fix this? I have two iPads and an iPhone but often need to access files from my PC (next time, it'll be a Mac),
    Very frustrating.

  • I am unable to restore my iPhone 4 as it is showing different errors . i have already downloaded it 3 times and every time an error appears.PLEASE HELP

    i am unable to restore my iPhone 4 as it is showing different errors . i have already downloaded it 3 times and every time an error appears.PLEASE HELP

    1234godf wrote:
    Now the errors are not appearing but my iPhone gets disconnected after every 15 minutes . So what do to ???
    Unable to Update or Restore..?
    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...
    Be sure to Follow ALL the Steps...
    But... if the Device has been Modified... this will Not necessarily work.
    Unauthorized modification of iOS  >  http://support.apple.com/kb/HT3743

  • I just bought PSE 11. Serial No. accepted but Error appears, preventing me to install. What is wrong OR, how can I get program installed?  I've tried at least four times!!  Jim H.

    I just bought PSE 11. Serial No. accepted but Error appears, preventing me to install. What is wrong OR, how can I get program installed?  I've tried at least four times!!  Jim H.

    Use the instructions here to completely remove/uinstall all iTunes/Apple software and componenets and then start from scratch.
    http://support.apple.com/kb/HT1923
    B-rock

  • Validation error :JBO-27008 vanishes by pressing submit two times???

    Hi All
    I am developing a web application using ADF BC,struts and jsp with JDEV 10.1.3.
    In my JSP page whenever I create a new record, after submit the desired record is submitted into the read-only table below, but I receive the validation error:
    JBO-27008: Attribute set for MaterialName in view object viewJoinPurchaseComplexUnit1 failed.
    Wondering that when I press the submit button again the error vanishes and my data is inserted into the database.
    I'm wondering why I have to press submit two times and then everything goes right? What is wrong among here? what should I do?

    Frank,
    The view in my BC Tester runs very well. Consider I have a viewJoin which is created by joining 4 view objects and I try to insert in one of them and the other views are reference,updateable. in my jsp page(input form) I have to fill in some reference fields in order to display the user what he has selected from the other page(handeled with javascript). Does this have something to do with the problem? when I do not fill the MaterialName field I do not encounter this problem. I have other fields like MaterialName filled from outside and are reference but they are working fine. Also, I do not have this error when Update, delete, Find/execute, and by create when I change the field materialname to null everything goes fine, but all the other transactions(Update, delete, Find/execute) cripple by that.

Maybe you are looking for

  • Using SYSDATE in a PreparedStatement

    I feel sure this must have done already, but .... I need to use a PreparedStatement to insert rows. The table has a DATE column and I want to use the SYSDATE value. I've tried using setString("SYSDATE") and setObject("SYSDATE") but I'm getting ORA-01

  • Consignment issue order

    Hello Experts, I'm creating consignment fillup order in CRM 5.0 and doing delivery and picking in ECC 5.0. Now when I'm creating consignment issue order with refrence to fillup order I'm supposed to enter the batch number of product at the item level

  • About signing applications

    i searched the forum and the internet and i found the Signsis application that works on the phone. I managed to install it but it seems it doesn't accept the .cert and .key files that came with it ( from the OPDA) which means i have to make a busines

  • Isssue with ScreenShareSubscriber flash 10 lib

    i get n error when i try to use the class  ScreenShareSubscriber flash. it alway showing error  mx.containers.Canvas not found. finaly i open the source i found the following imports in ScreenShareSubscribe.as import mx.containers.Canvas; import mx.c

  • Error using EJB from webapp.

    Hi Im trying to move a j2ee application from BEA to SunOne A 7.0. Im getting an error when using/creating a EJB. But i can use any method on another EJB. I havent set any authority rules at all and the xml file looks the same for both EJBs. This appl