Validation not working when clearing an open item

Hi SAP Gurus,
We have a interesting scenario to discuss with you. We are using Legal Dunning Procedure so once legal action is intiated against the customer notifications are sent to the legal department if payments are received.
Unfortunately this can happen only during the next dunning run which of course can occur in varying time intrevals. Therefore we need a validation to occur if a payment is received from a customer against whom legal action has been initiated.
We tried using the following fields Date of the legal dunning proceedings, Dunning block, Dunning key, Dunning level but are not able to get the validation to work when attempting to clear the open item. These all work when trying to post a new document but fail when trying to clear a open item. Points will be given for helpful answers.
Regards,
Siva

this is the radio button
<af:selectOneRadio value="#{bindings.Gender1.inputValue}"
                                                 label="#{bindings.Gender1.label}"
                                                 required="#{bindings.Gender1.hints.mandatory}"
                                                 shortDesc="#{bindings.Gender1.hints.tooltip}"
                                                 id="sor5">
            <f:selectItems value="#{bindings.Gender1.items}" id="si7"/>
          </af:selectOneRadio>
i use this sample
http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF_Insider_Essentials/ADF_Insider_Essential_YesNoRadio/ADF_Insider_Essential_YesNoRadio.html

Similar Messages

  • Clear_document FM not working to clear customer open item.

    Hi Experts,
    1) I need to develop a report to clear the customer open items, the report has to display whether the Customer open items cleared or not?
         As we do f-30 transaction to clear documents.
       I have developed the report in this ways but its not clearing.
        a) First I have posted the document  through   'BAPI_ACC_DOCUMENT_POST
        I have filled the document in the below way. The Bapi returning OBJ_KEY value also.
    LOOP AT it_data INTO wa_data.
    ****Fill  DOCUMENTHEADER
        wa_docmentheader-doc_type     = 'DA'.   "doc type
        wa_docmentheader-doc_date    =  wa_data-bldat.   "doc. date
        wa_docmentheader-pstng_date  =  wa_data-budat.   "posting date
        wa_docmentheader-comp_code   =  wa_data-bukrs.   "company code
        wa_docmentheader-ref_doc_no  =  wa_data-belnr.   "Reference
        wa_docmentheader-header_txt  =  wa_data-bktxt .  "Header Text
        wa_docmentheader-username    =  sy-uname.        "user name
    ****Fill  ACCOUNTGL Table
        wa_gl-itemno_acc = l_no.
        wa_gl-gl_account = 2909509----" which i marked in the screen second red color(ACCount).
        wa_gl-alloc_nmbr = wa_data-xref2.
        APPEND wa_gl TO it_gl.
        CLEAR wa_gl.
    ****Fill  ACCOUNTRECEIVABLE
        wa_receivable-itemno_acc = l_no + 1.
        wa_receivable-customer = wa_data-kunnr.
        wa_receivable-gl_account = wa_data-saknr.
        wa_receivable-alloc_nmbr  = wa_data-xref2.
        APPEND wa_receivable TO it_receivable.
        CLEAR wa_receivable.
    ****Fill CURRENCYAMOUNT
        wa_currencyamount-itemno_acc = l_no.
        wa_currencyamount-currency = wa_data-waers.
        wa_currencyamount-amt_doccur = wa_data-dmbtr.
        APPEND wa_currencyamount TO it_currencyamount.
        CLEAR  wa_currencyamount.
        wa_currencyamount-itemno_acc = l_no + 1.
        wa_currencyamount-currency = wa_data-waers.
        wa_currencyamount-amt_doccur = wa_data-dmbtr.
        wa_currencyamount-amt_doccur = wa_currencyamount-amt_doccur * -1.
        APPEND wa_currencyamount TO it_currencyamount.
        CLEAR wa_currencyamount.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
    EXPORTING
    documentheader
    = wa_docmentheader
    IMPORTING
    OBJ_TYPE     
    =
    obj_key      
    = lv_obj_key
    OBJ_SYS      
    =
    TABLES
    accountgl    
    = it_gl
    accountreceivable = it_receivable
    ACCOUNTPAYABLE
    =
    ACCOUNTTAX   
    =
    currencyamount
    = it_currencyamount
    return       
    = it_return.
    EXTENSION2   
    =
    endloop.
    2) After posting the document am using Clear_document to clear the document
       am filling the Clear_Document in the below way.
    1. a)get belnr, bukrs, gjahr & buzei from bsid table for invoice and append to T_AUSZ1
        b)T_AUSZ1-BUKRS, 'A', OBJ_KEY+0(10)(which you get from BAPI_ACC_DOCUMENT_POST bapi), posting date, posting date year pass it to T_AUSZ2-BUKRS, T_AUSZ2-AKTIO, T_AUSZ2-AUGBL, T_AUSZ2-AUGDT & T_AUSZ2-AUGGJ and append it.
    2. a)get BELNR, BUKRS, GJAHR, BLART & BUDAT  from bkpf where awkey = OBJ_KEY(which you get from BAPI_ACC_DOCUMENT_POST bapi)
    b) get belnr, bukrs, gjahr & buzei from bsid table where BELNR EQ bkpf-BELNR AND
                          ZUONR EQbkpf-BELNR AND
                          BLART EQ bkpf-BLART AND
                          GJAHR EQ bkpf-GJAHR AND
                          BUDAT EQ bkpf-BUDAT
    and append to T_AUSZ1
    c) T_AUSZ1-BUKRS, 'A', OBJ_KEY+0(10)(which you get from BAPI_ACC_DOCUMENT_POST bapi), posting date, posting date year pass it to T_AUSZ2-BUKRS, T_AUSZ2-AKTIO, T_AUSZ2-AUGBL, T_AUSZ2-AUGDT & T_AUSZ2-AUGGJ and append it.
    delete duplicates from T_AUSZ2.
    3) but am not able to clear the document using Clear_document Function Module
    4)I am able to post the document  through BAPI_ACC_DCUMENT_POST
    5)Please tell me how to clear the document.

    Hi Sunny,
    Please see the following :
    1. Down Payment Received (2500 INR.) F-29
    2. Customer Invoice Posted (2500 INR.) FB70
    3. Clear Down Payment (2500 INR) F-39
    4. Now Run Automatic Clearing (F.13)
    And then check the Customer line item report in FBL5N. It will clear both line items.
    Hope this helps.
    Kind Regards,
    Prakash Kumar

  • Validation not working when application is in portal

    hi i have a stuation where my unique validation are working when i run application as standalone but when i put application in portal is working ,am adding my application in portal by creating ADF JAR and aadd the jar in my portal,am in jdeveloper 11.1.1.6.0

    am doing validation in entity level
    <validation:UniqueKeyValidationBean
        Name="UamOrganisations_Rule_0"
        ResId=".model.entities.UamOrganisations_Rule_0"
        KeyName="AltKey">
        <validation:OnAttributes>
          <validation:Item
            Value="Organisationname"/>
        </validation:OnAttributes>
      </validation:UniqueKeyValidationBean>
    is still not working even if i set immediate=true
    <af:inputText value="#{bindings.Organisationname.inputValue}"
                                      simple="true"
                                      columns="20"
                                      maximumLength="#{bindings.Organisationname.hints.precision}"
                                      shortDesc="#{bindings.Organisationname.hints.tooltip}"
                                      id="it1" autoSubmit="true" required="true"
                                      immediate="true">
                          <f:validator binding="#{bindings.Organisationname.validator}"/>
                        </af:inputText>

  • Validation not working when Issue is modified

    We have picklist field Action on which we have put a field validation which will ensure that depending on the Job title of the logged User, he will be able to select appropriate Action value.
    The problem we are facing is : The validation is not triggered when an Issue is opened and saved without any changes to Action picklist.
    for eg: If User 1 with Role A creates an Issue with Action values as per his Role. Now User 2 with Role B opens the Issue , he is displayed with the Action value saved by User 1. Now if User 2 changes the details of the Issue and doesn't change the Action, the Issue is saved. The validation doesn't work in this case, as Action is not modified.
    Validation is as follows:
    Left([<Action>],4) = Left(JobTitle(), 4) OR Left([<Action>],4) = IIf((JobTitle()="Manager" OR JobTitle()="Executive"),"Fact" ,"xxxx") OR Left([<Action>],4) = IIf(JobTitle()="Executive","Mana" ,"xxxx")
    Also we cannot restrict users using Access control because, if we Restrict Issue modification by making Issues read-only for non owners , then Users cannot add related information like attachments and solutions.
    Any ideas would be welcome in this regard.
    Sandy

    I have a similar situation that I had to create a workflow rule that is triggered "before a modified record has been saved" and the rule looks for a change on record like;
    PRE('<ModifiedTimestamp>')<>[<ModifiedTimestamp>] AND PRE('<Action>')=[<Action>] this checks to see if the record has been modified but the Action hasn't.
    Then you want to have the workflow rule "Update Value" of the "Action" field with the same value that it had at the beginning of the operation, like;
    [<Action>] in the "Value" formula field and ensure the "overwrite existing values" check box is selected.
    In essence you're sending the same value to the "Action" field but it will trigger the Validation rules each time there is any change on the record.
    Let me know if you have questions...
    Dan

  • NavigateToURL() not working when trying to open a file.

    Hi,
    I am working on an AIR Flex application running on the local Windows system.
    Following code works when accessing the file from my local system.
    I want to display a file which is present in a remote server.
    In ActionScript, The below code does NOT work.
    var url:String = "\\<RemoteServerName>\d1\abc.pdf";
    var   request:URLRequest = new URLRequest(url);  
    flash.net.navigateToURL(request,
    "_blank");
    When I am trying to open the file manually, e.g. Start -> Run -> Open (\\<RemoteServerName>\d1\abc.pdf), the document opens fine.
    Please let me know if there are any other way of opening a file from remote location.
    Thank You,
    Sway

    Thanks rkewlani,
    I think I am geting closer for a solution though I am getting a new error after changing the URL.
    My new url:String looks like
    var url:String = file:\\RemoteServerName\d1\abc.pdf;
    var  request:URLRequest = new URLRequest(url);
    flash.net.navigateToURL(request,"_blank");
    Error I get is :
    SecurityError: Error #2121: Security sandbox violation: navigateToURL: app:/XXX.swf cannot access file:\\RemoteServerName\d1\abc.pdf;. This may be worked around by calling Security.allowDomain.
    I added Security.allowDomain("*") to the creationComplete event of the form, Now the error is
    SecurityError: Error #3207: Application-sandbox content cannot access this feature.
    at flash.system::Security$/allowDomain()
    Any help on this.
    Thanks,
    Sway 

  • Temporary Hand Tool is not working when Firefox is open

    Hi guys
    Hopefully some of you can help me with a problem that has annoyed me for quite some time now..
    Quite often my temporary hand tool (accessed by pressing the space bar) is not working which causes me to move objects instead of panning around my  Photoshop canvas. I don't know what causes it, but when I shut down my browser (Firefox 3.6.19) everything returns to normal in Photoshop and I can pan around the canvas again using the hand tool by pressing the spacebar shortcut.
    When I open reopen Firefox I can use the space bar short cut but only for a few minutes and the problem occurs again. The regular hand tool (accessed by pressing H) is working fine all the time.
    This is a shortcut that I use so very much and would really like to know how to fix this issue.
    I'm using Photoshop CS5 and Mac OS X 10.6.8
    Aske

    So Firefox or something loaded in Firefox is eating key events.
    You need to start troubleshooting Firefox.  The first step would be to disable add-ons in Firefox.  Also let the Mozilla folks know that Firefox is causing this (I believe they've had similar bugs before).

  • Drag and Drop not working when Firefox is open

    I kept running into the problem and could not figure out why sometimes i could drag and drop and sometimes i could not.
    I just did some experimenting and found that as long as Firefox is minimized, drag and drop works fine.
    So the application can be open but all the windows need to be minimized.
    here is my firefox info Mozilla/5.0 Firefox/3.0.13

    I am having the same problem glasnostic you are not imagining things.
    I usually have finder set to detailed view mode and intermittently and seemingly randomly drag and drop will not work. I will be moving specific files from folder a to b then, all of a sudden, I click on a file like i did the last 10 and it wont budge. I found that like glasnostic switching to thumbnail view sometimes makes it work immediately. Otherwise just waiting a minute or two and trying again makes it work. This is so bizarre and is driving me crazy.
    I have experienced the same problem while attempting to drag files from finder into itunes.
    It happens to me without firefox open or running.
    The most recent time this happened I had open the following:
    -itunes (8.2.1)
    -Transmission (1.73)
    -ichat (4.08)
    -Safari (4.03)
    -Last.fm (1.542)
    on osx 10.5.8
    I'm using the logitech g5 mouse.

  • Mouse flickers does not work when try to open link in TB

    in received emails-when click on link- mouse flickers and will not work anymore, anywhere. I have to restart computer for the mouse to work.

    Fixed FINALLY-- TB, options, attachments-- the http was set to TD, used the dropdown menu, clicked on Firefox(default) and the thing was fixed. Why was it set to TB instead of Firefox?

  • My camera is not working when ever i open cam apps its stucks.

    After upgrading to iOS7 on IPAD 2 the back camera is not working only get a black screen switing to front camera it works once then freezes

    Have you tried to force quit the camera app? Double tap the home button. Scroll sideways if needed until you see the camera preview, then flick that preview up and off the screen. Then either single tap the home button or tap on the home page preview to exit the mode.

  • Partial payment tab problem when clearing two open items in vendor account

    Dear All,
    I have the problem with partial payment procedure.
    As SAP is presenting the process, partial payment should work as follows (i.e. with vendor):
    1. Incoming invoice is posted -> Credit -100
    2. Credit note is posted  -> Debit +20
    3. Payment (without clearing) is posted to vendor account -> Debit +50
    I'll run transaction F-44 and go to tab "Partial payment".
    I see 3 items (as above).
    I mark Item -100 and +20
    I double click in filed next to -100 and it changes to -20
    An now it should make no posting but only assignemet of one item to another.
    But in my case, if I click "save" icon, it makes postings Debit 20 and Credit -20 on vendor account.
    Is there any possibility that such clearing will not generate any posting but just make assignement of one item to another. Or maybe there is something wrongly configured in the system. At the moment the partial payment makes some kind of residual items.
    Thanks in advance for replay.
    Best regards
    Greg

    Hello,
    Yes, it's right, whenever we clear vendor or custmoer account, the system creates document, but as I remeber from other instalations, the document had header but there was no postings.
    It case described, the system creates posting:
    40       Vendor      20 EUR
    50       Vendor      20 EUR
    This is strange for me. As ther should be clearing document but with no postings.
    Have you got any idea how to configure the system, so partial payment tab in clearing transactions creates clearing document but with no phisical postings.
    Best regards
    Greg

  • Buttons not working when workbook is opened. Error says about macro.

    Hi Gurus,
    I have created a workbook and it was working fine. But now when i open the workbook it throws an error saying " Cannot run the macro Workbookname.button_click. The macro may not be available in this workbook or all macros may be disabled" . What I find surprising is that it was working fine and it suddenly changed like this.
    It can be solved if I toggle between the design and analysis mode in Analyzer. Isn't there any other solution for this. I was wondering how my workbook suddenly changed its behavior. I would really appreciate if anyone could tell me a solution for this issue.
    Thanks in advance,
    Jerry Jerome

    Hi Jerry,
    Iam also facing the same problem ....were you able to get solution ..if yes plz share...
    When I Clikced on Add Macros button in Workbook Settings ,i was able to access the buttons ..but once i close and open the workbook iam again getting the same error..
    Iam not able to Save the Workbook settings afte Clicking on ADD Macros...
    Regards,
    Ravi

  • OnChange Event not working when portlet is opened in Page

    The onChange event is working well in a Portlet. When a user selects a value from an LOV it is updating other LOVs. However, when that portlet is brought into the main page, the onChange event only resets the page. Is there a workaround for this?

    Hi Jerry,
    Iam also facing the same problem ....were you able to get solution ..if yes plz share...
    When I Clikced on Add Macros button in Workbook Settings ,i was able to access the buttons ..but once i close and open the workbook iam again getting the same error..
    Iam not able to Save the Workbook settings afte Clicking on ADD Macros...
    Regards,
    Ravi

  • Buttons not working when slide is open

    I bought my E65 like .. umm.. a week ago, n now when i open the slide " right button, mute button, c button contacts button and the exit button isnt working, n when i close the slide they works only... it has no warranty on it because i bought a used one.. so anyone knows how to solve this problem? its irritating me ..

    Hi Jerry,
    Iam also facing the same problem ....were you able to get solution ..if yes plz share...
    When I Clikced on Add Macros button in Workbook Settings ,i was able to access the buttons ..but once i close and open the workbook iam again getting the same error..
    Iam not able to Save the Workbook settings afte Clicking on ADD Macros...
    Regards,
    Ravi

  • IPhone message tone does not work when app is open

    I no longer get a tone or vibration notification when receiving a text message if the Messages app is open, even after the phone has been put to sleep.
    So, this is what happens: I write a message in Messages and send it, and then press the power button to put the phone to sleep.  If a message comes in reply, the phone does not play an alert tone or vibrate.  But if, instead of pressing the power button, I press the home button first and then the power button, the alert tone/vibration functions correctly.
    I don't have iMessages turned on.  My phone does have a password lock at the home screen.
    (The Mail application may have a similar problem, though I haven't been able to reproduce it on purpose, so it's possible I'm just missing the notification when it happens.)
    Encountered on both iPhone 4S (with iOS 6) and iPhone 5.

    I have Firefox 11.0 and still had to disable Skype Click to Call to get the copy options back in Excel.

  • I just installed Photoshop CC 2014, but Latest version of Bridge will not work when I want to open it from PS

    Any idea why is Bridge latest version not working when trying to open it in Photoshop CC 2014 ? (French version) ? When trying, Creative Cloud app will open to ask if I want to download newest version, which I did numerous times now.
    Thank you
    Guy Deschenes
    Shawinigan (QC) Canada

    Hi Eric,
    Here's how a similar problem was resolved between PS and BR.
    The issue was confirmed by ChunXiaYang at Adobe staff and solution put in the forum discussion on June 19 (no. 13). Here's a copy:
    I have confirmed that this is a known issue before release. And the workaround is to uninstall and reinstall PS 2014. Then Bridge can be launched by selecting 'Browse in Bridge' in PS2014.
    Please try the installation, and let me know whether it works. Thanks!
    It woks just fine since I unistalled and reinstalled PS 2014.
    Guy
    Le 2014-07-17 à 1:13 PM, ericboerner a écrit :
    I just installed Photoshop CC 2014, but Latest version of Bridge will not work when I want to open it from PS
    created by ericboerner in Bridge General Discussion - View the full discussion
    I did this with a fresh install of the entire CC package. As soon as the CC packages updated, CC Bridge broke. Unistalled CC PS, reinstalled again, CC Bridge works, but CC PS updates itself again, and breaks CC Bridge.
    You know... The whole move to CC has been a massive cluster... I've struggled with the CC packages for my entire subscription year, and now I'm 1.5 month away from needing to throw down another $720 for no reason what-so-ever, just so we can Beta test your really screwed up subscription services.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6559164#6559164
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Bridge General Discussion by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

Maybe you are looking for

  • Shared Review Lotus Notes issue

    I'm running Windows XP, Lotus Notes 6.5 and Acrobat Pro Extended 9.2. I want to send a PDF for shared review on a network drive using Lotus Notes to send as attachment.  When I click the "To:" button and enter my Notes password, it comes up by defaul

  • Do all your cases and screen covers for MacBook air 2010-2011 fit the 2012 model

    Do all your cases and screen covers for MacBook air 2010-2011 fit the 2012 model

  • Cannot Convert protected WMA files

    I'm new to iTunes. I have lots of songs I previously downloaded from Dell's MusicMatch. When I attempt to import them I get the error that they are proected WMA files and iTunes cannot convert them. How do I unprotect the files so I can import them?

  • Rich text versus plain text when sending to Outlook

    I've notice some strange behavior with Mail today. I've been sending some attachments to people who use Outlook on an Exchange server. When I send the mail in Rich Text Format, they receive the mail but the text and the signature are included as atta

  • We're stuck on ADSL1, when we need ADSL2+ for 'upt...

    Can anyone help? Have been a BTInternet customer for over 12 years and have recently upgraded the 2mb broadband package to the £24.99 a month 'upto' 20mb package. The changeover was far from straightforward, with mistakes at BTInternet's end, but on