URGENT Date checking even not working !

Using forms Builder 6i.
Trigger POST-QUERY to the payments BLOCK
IF :payments.payment_date IS NULL
AND
Trunc(SYSDATE) > Trunc(:payments.payment_due) THEN
message('TENANT HAS NOT PAID THE BILL YET');
END IF;
I am not sure if i am coding it right, I am trying to check if payment_due field is NULL (blank) AND at the same time current date higher than the payment_due THEN display a message.
I am trying to make the code check the payment_due automatic every time I execute the queries. But it doesent, as i have tried moving the dates around to see if it works.
Any help apprichiated.
Thanks in advance

Thanks for that info.
I almost solved it, except there is one problem with that.
In order to check the field you have to Click on every field/ on them to execute the condition or code.
But how do I make it check automaticly, when I open the form? Like when I press QUERY EXECUTE and to check all of them at the same time.
I assume you need to put this code into a cursor or a loop? I am pretty bad at curors or loops, help would be a real advantage.
Thanks

Similar Messages

  • In FB60, duplicate invoice check does not work if invoice date is different

    In FB60, duplicate invoice check does not work if invoice date is different
    This issue is in FB60 and not MIRO.
    Duplicate invoice check is activated in vendor master.
    I posted an invoice for a vendor with amount $ 100, Reference 1234 Invoice date Nov 01, 2011
    I tried posting for same vendor (and also Co Code) with amount $ 100, Reference 1234 Invoice date Nov 01, 2011. System does not allow. This is fine.
    Now I change only date, from Nov 01 to Nov 02, and system allow posting.
    Why I don't get the error message when date is different ? It should not be treated as a different invoice since invoice reference, amount, Vendor and Co Codes are same.
    SAP documentation says that it checks document date during duplicate invoice check even for FI invoices, then why does it allows in this case.
    Is this a bug ?
    I already tried changing settings in SPRO under LIV, this does not impact FB60 invoice booking.
    Thanks
    Sandeep

    Hi,
    Use BTE - 1110 - (Check on Invoice Duplication) for FB60. Take the help of your ABAPer to make a coding in Function module mentioned in BTE.
    Need to make a copy of the FM and then you can do relevant coding.
    refer the link.
    [http://www.thesapconsultant.com/2006/10/sap-business-transaction-events.html]
    Regards,
    Shridhar

  • Capacity check is not working while creation of Production order

    HI Gurus,
    I want to restict the system that in case of insufficient capacity at the work centers, sysstem should not create the production order. For that i did the setting
    1) Unchecked the tick for the Capacity check & enter the profile SAPSFCG013 in the OPJK for the business functions 1 & 2.& also make the setting for the Release order '3".
    2) Maintain the same profile in the production profile & maintain that profile in the Mat Master
    3) In the CR02, activate the tick for the finite scheduling & uncheck for the can used for several operations.
    But i have creted the production orders & at the time of capacity check system is giving the message " Capacity avaiolable at all the work centers. But i check in the CM50, all the work centers are overloaded at the respective date.
    But i can create & release the p[orduction order.
    Requesting all to give your comments & solutions.
    Regards
    ACP

    ACP,
    ....after confirming all the operations system is allowing me to save
    When you confirm an order, you are by definition saying that the capacity existed for that order (you have just declared to the system that all operatons have been performed, and therefore all capacity was available).  I can't imagine why you would not wish to save that order, since you must somehow post the physical work that has already been done.  Capacity availability check is really only useful when the order to be checked has not yet been executed.
    CM50 displays capacity requirements.  CM50 does not perform the same function as Capacity availability check.  To ensure that all of your orders fall within you capacity constraints, you must perform capacity levelling.  Capacity availability check does not work the same as a Material availability check - don't assume that what you know about a material ATP will be applicable for a capacity ATP.  Read the help on Capacity levelling.  It is not generally possible to stop a manually created production order from being saved, due to any capacity situation, without using an enhancement.
    http://help.sap.com/saphelp_erp60/helpdata/en/60/13e308133a11d3bf550000e83235ee/frameset.htm
    Naturally, you can use enhancements to have the system meet any business requirement that is not met with the standard Cap Availability check.
    Best regards,
    DB49

  • Credit Check is not working while creation of the delivery

    Hi,
    Credit check is not performing while creation of the delivery.
    As per current settings, there is no credit check at SO level. Ideally, system should show an error message while creation of the delivery if credit limit of the customer is exceeds.
    Below is the current OVA8 setting for Delivery group 02.
    It was working fine till last week, but due to some unknown changes in customization or master data, same is not working now.
    Could you please check below settings and suggest if any setting is wrong?

    You talking about the reaction field D am talking about beside to reaction field that is status/Block(check) .
    Status/Block(tick) is used to block the document.
    Where as you reaction field is used to give the either warning or error message based input you are giving
    A and C gives warning message and allow to save the document.
    B and D gives error message and will not allow to proceed further
    Please check this and try system will block the delivery.
    thanks,
    Srinu.
    Message was edited by: Srinu S

  • Oracle date parameter query not working?

    http://stackoverflow.com/questions/14539489/oracle-date-parameter-query-not-working
    Trying to run the below query, but always fails even though the parameter values matches. I'm thinking there is a precision issue for :xRowVersion_prev parameter. I want too keep as much precision as possible.
    Delete
    from CONCURRENCYTESTITEMS
    where ITEMID = :xItemId
    and ROWVERSION = :xRowVersion_prev
    The Oracle Rowversion is a TimestampLTZ and so is the oracle parameter type.
    The same code & query works in Sql Server, but not Oracle.
    Public Function CreateConnection() As IDbConnection
    Dim sl As New SettingsLoader
    Dim cs As String = sl.ObtainConnectionString
    Dim cn As OracleConnection = New OracleConnection(cs)
    cn.Open()
    Return cn
    End Function
    Public Function CreateCommand(connection As IDbConnection) As IDbCommand
    Dim cmd As OracleCommand = DirectCast(connection.CreateCommand, OracleCommand)
    cmd.BindByName = True
    Return cmd
    End Function
    <TestMethod()>
    <TestCategory("Oracle")> _
    Public Sub Test_POC_Delete()
    Dim connection As IDbConnection = CreateConnection()
    Dim rowver As DateTime = DateTime.Now
    Dim id As Decimal
    Using cmd As IDbCommand = CreateCommand(connection)
    cmd.CommandText = "insert into CONCURRENCYTESTITEMS values(SEQ_CONCURRENCYTESTITEMS.nextval,'bla bla bla',:xRowVersion) returning ITEMID into :myOutputParameter"
    Dim p As OracleParameter = New OracleParameter
    p.Direction = ParameterDirection.ReturnValue
    p.DbType = DbType.Decimal
    p.ParameterName = "myOutputParameter"
    cmd.Parameters.Add(p)
    Dim v As OracleParameter = New OracleParameter
    v.Direction = ParameterDirection.Input
    v.OracleDbType = OracleDbType.TimeStampLTZ
    v.ParameterName = "xRowVersion"
    v.Value = rowver
    cmd.Parameters.Add(v)
    cmd.ExecuteNonQuery()
    id = CType(p.Value, Decimal)
    End Using
    Using cmd As IDbCommand = m_DBTypesFactory.CreateCommand(connection)
    cmd.CommandText = " Delete from CONCURRENCYTESTITEMS where ITEMID = :xItemId and ROWVERSION = :xRowVersion_prev"
    Dim p As OracleParameter = New OracleParameter
    p.Direction = ParameterDirection.Input
    p.DbType = DbType.Decimal
    p.ParameterName = "xItemId"
    p.Value = id
    cmd.Parameters.Add(p)
    Dim v As OracleParameter = New OracleParameter
    v.Direction = ParameterDirection.Input
    v.OracleDbType = OracleDbType.TimeStampLTZ
    v.ParameterName = "xRowVersion_prev"
    v.Value = rowver
    v.Precision = 6 '????
    cmd.Parameters.Add(v)
    Dim cnt As Integer = cmd.ExecuteNonQuery()
    If cnt = 0 Then Assert.Fail() 'should delete
    End Using
    connection.Close()
    End Sub
    Schema:
    -- ****** Object: Table SYSTEM.CONCURRENCYTESTITEMS Script Date: 1/26/2013 11:56:50 AM ******
    CREATE TABLE "CONCURRENCYTESTITEMS" (
    "ITEMID" NUMBER(19,0) NOT NULL,
    "NOTES" NCHAR(200) NOT NULL,
    "ROWVERSION" TIMESTAMP(6) WITH LOCAL TIME ZONE NOT NULL)
    STORAGE (
    NEXT 1048576 )
    Sequence:
    -- ****** Object: Sequence SYSTEM.SEQ_CONCURRENCYTESTITEMS Script Date: 1/26/2013 12:12:48 PM ******
    CREATE SEQUENCE "SEQ_CONCURRENCYTESTITEMS"
    START WITH 1
    CACHE 20
    MAXVALUE 9999999999999999999999999999

    still not comming...
    i have one table each entry is having only one fromdata and one todate only
    i am running below in sql it is showing two rows. ok.
      select t1.U_frmdate,t1.U_todate  ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID  AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf 
       from  [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
       on t0.DocEntry = t1.DocEntry
       inner join ohem t2
       on t2.empID = t0.U_empid  where  t0.U_empid between  '830' and  '850'  and t1.U_frmdate ='20160801'  and  t1.u_todate='20160830'
    in commond promt
      select t1.U_frmdate,t1.U_todate  ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID  AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf 
       from  [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
       on t0.DocEntry = t1.DocEntry
       inner join ohem t2
       on t2.empID = t0.U_empid  where  t0.U_empid between  {?FromEmid} and  {?ToEmid} and t1.U_frmdate ={?FDate} and  t1.u_todate={?TDate}
    still not showing any results..

  • My international data roaming is not working in china, why?

    I am currently traveling in mid-east china, but my data roaming is not working. it shows good single bar, but when I try to receive emails (from gmail or AOL account), it gives me error messages. it is very frustrating. it has been 3 days that I can't retrieve emails. I do have voice service though.

    You might need to contact VZW for some trouble shooting help. Unless you are using a 3rd party simcard...then you might have to check with them to make sure their isn't an issue.

  • Use member on data form does not work

    Hello,
    "Use member on data" option does not work on composite Data Form. Business rule associated with composite form.
    Who is resolve this problem?
    Version hyperion: 11.1.2
    Thanks

    I don't have a solution for you but more steps to solve the problem
    You are ultimately on the right track in some ways but break it down into it's components.
    The problem could like in the business rule, the form connection, the variables, even the order of operations could all be in play.
    So I would strip this baby down to its bare bones then build it back up.
    1) Run the business rule. Each one separately and only after the previous ones is complete without variables and without touching the form
    Is it successful: go to 2
    If it isn't successful: trouble shoot the calc and or try running in EAS natively to see if that gives you ideas
    2) Run the calc outside the form but with variables included. Did it prompt you correctly.
    Is it successful: go to 3
    If it isn't. What is wrong with the variable
    3) Now attach it to the form but don't hide the prompts
    Still good go to 4
    4) hide the prompts and run on save
    And if it fails on step four then it's not picking up the right variables in the prompt. And you need to look at why it wouldn't grab the right item.
    This will isolate your problem for you and give you steps to fix it. Ultimately 99% of the time something did change in the structure for example that is impacting the calc. And when you isolate the problem this will reveal itself quite quickly.

  • Check Button Not Working on Portal for BI report

    We have Vendor account group variable when I enter any random value and click on check its not working its not giving message as ' Invalid Input' on Portal ( Variable is single input optional variable) same Check Button Working in RSRT .
    And For all other Infoobjects ( Plant , Profit center) check Buitton is working on Port as well in RSRT.
    Please suggest.

    done

  • Date parameter does not work in SharePoint 2010 report using SQL 2008 Server Reporting Service

    Here is the settings:
    SharePoint 2010 with SQL server 2008 reporting services configured
    When create a report for a SP list using SQL server report builder (3.0) the date parameter does not work.
    The data parameter is set as "date and time" type and field name equals the col name in the SP list
    When run the report, the whatever dates I select, the result is always the same, so the parameters do not take any effect.
    Is any step missing?
    Thanks for any advice !

    Hi ,
    How did you configure you "date and time" type parameter and field name equals the col name in the SP list?
    Have you tested if other type parameter worked?
    Have you tried typing the date format as 20140722 in your date parameter filed before run the report?
    http://whitepages.unlimitedviz.com/2012/02/using-sharepoint-filters-with-reporting-services-parameters-for-personalized-reports/
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

  • Pie chart with two measures and date dimension navigation not working

    Hi Experts,
    Pie chart with two measures and date dimension navigation not working. Any help is appreciated.
    Thanks
    V

    Hi Deepak,
    I had time dimension in the RPD.
    I have stacked bar chart with same time dim like year & month in the report. when I go to legand and set navigation it is working fine. But not with pie chart.
    I am not not sure what is the problem. When I click on Pie chart it is not navigating to the target report. Can it be any other issues..???

  • Power book G4 Leopard 10.5.8. File sharing preference checked but not working after start up until unchecked and the rechecked?

    I hope the title is enough info, please ask. In the mean time I have created an applescript to open preferences/ sharing and uncheck then check the file sharing box. This works but I would obviously prefer it just work normally. I have no corrupt preference files. Perhaps a file is missing? Thank you.

    Greetings Kwnez
    I'm not up to your level of expertise yet. I'm networking and file sharing too, on my Mac Powerbook 1.33 GHz PowerPC G4; OS 10.5.8 Lepoard. At the public library I found by asking the clerk a book Authored by David Pogue. "Mac OS X Leopard the Missing Manual". It (the book) has helped me ask better questions. I'm not saying that your question "
    Power book G4 Leopard 10.5.8. File sharing preference checked but not working after start up until unchecked and the rechecked?
    is hard for me to understand, I went to system preferences and looked at the sharing box. when I clik it it opens up and the first thing I see is my computers name, and under that i see, " Computers on your local network can access your computer at: ...-powerbook-g4-15.local"
    What I'm saying is "Are we on the same Page"

  • Spell Check is not working in MS Office 2007

    Hi All,
    Spell Check option is not working in MS Office 2007 applications like Word and Outlook.
    Surprisingly, when we reply to any email, spell check is working fine, but when we are typing New email, Spell Check is not working.
    OS: Windows XP Service Pack 3
    Gone through Google and modified Registry keys, updated MS Office 2007 hot-fixes, reinstalled MS Office 2007, but nothing worked.
    Could anyone help us on this issue.
    Thanks.

    Step

    Go to Office Button > Word options > Proofing
    > Custome dictionary > Make
    sure CUSTOM.DIC is checked.
    Step

    Click on Office Button | Word Options | Proofing
    | check the 
    "Check spelling as you type" and "Check grammar with spelling" boxes | 
    uncheck the "Hide spelling errors in this document only" and "Hide 
    grammar errors in this document only" boxes | OK.
    Step

    Open a document that has this problem, press Ctrl+A
    to select all 
    of the text 
    Click on Review tab | Proofing: Set Language | 
    language> | uncheck the "Detect language automatically" and "Do not 
    check spelling or grammar" boxes | Default | OK. 
    Click on Office Button | Word Options | Proofing | check the 
    "Check spelling as you type" and "Check grammar with spelling" boxes | 
    uncheck the "Hide spelling errors in this document only" and "Hide 
    grammar errors in this document only" boxes | OK.
    Step
    4
    In your Windows registry, if the key
    "HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Proofing
    Tools\1.0\Override" exists, delete it.
    http://redfireworkz.blogspot.com/2010/10/spell-check-does-not-work-in-office.html

  • I have iPhone 4 and I update it to iOS 7 and when I try to start the personal hotspot it crashed and for sometime my cellular data was also not working then allot a sudden the personal hotspot icon disappeared from my settings

    I have iPhone 4 and I update it to iOS 7 and when I try to start the personal hotspot it crashed and for sometime my cellular data was also not working then allot a sudden the personal hotspot icon disappeared from my settings.
    Has anyone faced a problem like this!!!

    No. If you go Settings App > General > Reset > "Erase All Content and Settings", you will have the same iOS that was on the iPhone when you tapped the Erase button. If you believe your iPhone is Jailbroken, then this will not work. If you use iTunes on computer, this will put iPhone to current iOS which is iOS 7.0.2

  • InDesign CC spell check is not working at all

    I have been using InDesign for around a month now and now my spell check is not working at all. I have tried replacing preferences, changed dictionaries, created new documents with placeholder text and spell check does nothing at all with all of these things. Please Help

    Not all locales come with a dictionary installed for licensing reasons.<br />
    If you do not have the en-US locale then check that you have a dictionary installed (Tools > Add-ons > Extensions) and selected.<br />
    <br />
    You can see which dictionary is selected if you right-click in a text area and open the Languages submenu.<br />
    Also make sure that [X]"Check Spelling" in the right-click context menu has a tick.<br />
    You can also try to toggle the "Check Spelling" item off and on again.<br />
    <br />
    See http://kb.mozillazine.org/Spell_checking and [[Using the spell checker]]<br />
    See also http://kb.mozillazine.org/Dictionaries<br />

  • Spell Checker is not working although it's enabled in the Settings and I've already installed the dictionary

    I'm using the 3.6.10 version of firefox
    Mac OSX 10.5.8
    the spell checker is not working correctly although all the settings needed are correct,
    the dictionary's installed, the Spell checking is enabled from the “Browsing” section of “General” tab under “Advanced” heading .
    but still it only underlines the misspelld words without giving me the probabilities of the right word .
    this problem started to appear after I updated my browser version .
    additionaly there is no "Add dictionary" or anything related to spell checking when I right-click the writing area .

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

Maybe you are looking for

  • How can I run different commands in the same system exec window?

    I want to open a window (cygwin) on my Xp machine and sent commands within that window. I then have to monitor what the responses are coming back into the window that was launched. Any ideas on how to do this? I have been playing with the system exec

  • Connect by Belkin from MBP/Retina to TV

    I just bought a 'connect by bel kin' which transfers video to my HDTV.. I was told it transfers sound as we'll but so far I have not been able to figure this out. I am new to Mac so I do not know where I would look to change that. Any help?

  • Trackpad gesture spaces switch turns screen gray

    After upgrading my AirBook to Mountain Lion, I frequently have an issue where a single finger trackpad gesture to the left or right edge of my screen causes my entire screen to turn gray.  The only way I've found to get my screen (and spaces) back is

  • Got a bad feeling about this...

    hi, just got my first bill after 'upgrading' to option 3 with unlimited calls -my last package had unlimited calls as well. Got my first bill - it had almost doubled. I've been incorrectly charged for for all my phonecalls! Got through to call-centre

  • Could my SCN user be hacked? Received points for unknown activities

    Hi, After some period of inactivity in SCN I just wanted to create another blog. I was wondering about my rewarding points (seemed higher than I remembered. When I looked at the latest points I "earned" I saw several entries about alleged Wiki pages