Please correct if I am wrong

Hi,
I am trying to maintain the users accounts but not sure that my approach is okay according to international standards or not?
create table users_payment(
p_id number(9) primary key,
co_id number(9) constraint usrs_payment references users(co_id),
payment_date timestamp(0) default sysdate,
duration number(3),/**1 is for one month upto 12 months**/
expire_date timestamp(0) default sysdate, /**Java JDBC code will update users_payment_info set expire_date=add_months(expire_date,3);**/
confirmed number(3),/**confirmation from 2 checkout. if paid=1 not_paid=0**/
status number(2)); /**I written a trigger here to auto change: if confirmed=1 && expire_date<today_date then set status 1 else 0**/
create sequence users_payment_seq
start with 1 increment by 1;
create or replace trigger users_payment_trig
before insert on users_payment
referencing new as new
for each row
begin
select users_payment_seq.nextval into :new.p_id
from dual;
end;
CREATE OR REPLACE TRIGGER users_payment_trig1
   BEFORE INSERT ON users_payment
   REFERENCING NEW AS NEW
   FOR EACH ROW
BEGIN
   IF :NEW.confirmed = 1 AND :NEW.expire_date < SYSDATE THEN
      :NEW.status := 1;
   ELSE
      :NEW.status := 0;
   END IF;
END;Thanks & best regards

This is a Java forum, not an SQL forum. Find a forum for the DB in question please.

Similar Messages

  • It is unclear the advantage to pre-ordering the new iPhone 5. What I have read is that it will ship on the 21st? If so the only way to get one on the 21st is go stand in line. Please correct me if I am wrong.

    It is unclear the advantage to pre-ordering the new iPhone 5. What I have read is that it will ship on the 21st if you pre-order? If so the only way to get one on the 21st is go stand in line. Please correct me if I am wrong.

    if you don't have time to stand in line or don't want to risk getting there too late and leaving empty handed from the apple store preordering will guarantee you one but possibly in a slightly longer timeframe

  • 61 062 & date comes after end of valid factory calendar. (Please correct)

    Hi Experts,
    I am Getting the Error in Creating Purchase Order:
    Error Message No. 61 062 & date comes after end of valid factory calendar. (Please correct)
    Please suggest.
    Regards,
    Ashok

    I got a Solution For this. Actually User has Maintained Wrong Planned Delivery time in PIR for the Same it was Behaving like that.
    Thanks

  • Error Message: The syntax of the value for prompt 'p_phone_num' is incorrect. Please correct the syntax and try again.

    Post Author: helpwithcr
    CA Forum: General
    " The syntax of the value for prompt 'p_phone_number' is incorrect. Please correct the syntax and try again."
    I am getthing this error while I tried to pass the value from an oracle package to the web when the the crystal report viewer kicks in.
    I found the source of the error. Its just a paranthesis that I used with the phone number inside the function.... The function looks like this
    function phone_number
    return varchar2
    is
    begin
    return '(123) 456 - 789';
    end phone_number;
    I really dont want that paranthesis to go. Its the format that everyone wanted. But they dont want that to be static on the report also
    Please help
    Thanks
    helpWithCr

    Sir, you are a legend!!! 
    Many thanks for putting me on the right track... 
    Here's where I went wrong and how I fixed it.
    First I installed the Azure Pack: MySQL Extension on the MySQL server.
    This was wrong, it needs to be installed on the WAP server/s.
    So I installed the extension on the WAP server and it still didn't work.
    So I uninstalled the extension from the MySQL server and it still didn't work.
    So I also installed the MySQL Connector/Net on the WAP server and it worked.
    This eventually fixed it. 
    What I will say is that in the documentation it doesn't mention installing the MySQL Connector/Net from the web platform installer on the WAP server (unless I have completely missed this)?
    Thanks again :-)
    Microsoft Partner

  • Warning: An error occurred during tax calculation. Please correct the problem or contact your system administrator.

    Hi All
    We are creating POs from interface program "Import Standard Purchase Order Program". Only for few of the POs, we are encountering the error 'Warning: An error occurred during tax calculation
    . Please correct the problem or contact your system administrator.'
    This error is happening for few PO's, other POs with same vendor, ship to and bill to location created successfully by the program
    Any inputs on how to resolve this error is greatly appreciated.
    Regards,
    Brajesh

    Hi Hussein,
    Thank for the prompt response.
    We have already applied the patch related to doc 1272684.1.
    Below are the environment detail.
    Database: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Application : 12.1.3
    Diagnostic tool output :-
    INTERFACE_
    TRANSACTION_ID
    INTERFACE_TYPE
    COLUMN_NAME
    PROCESSING_DATE
    TABLE_NAME
    ERROR_MESSAGE_NAME
    ERROR_MESSAGE
    100148
    PO_DOCS_OPEN_INTERFACE
    09-Aug-2013
    PO_HEADERS_INTERFACE
    PO_PDOI_TAX_CALCULATION_ERR
    Warning: An error occurred during tax calculation. Please correct the problem or contact your system administrator.
    Log file :-
    +---------------------------------------------------------------------------+
    Purchasing: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    POXPOPDOI module: Import Standard Purchase Orders
    +---------------------------------------------------------------------------+
    Current system time is 09-AUG-2013 21:09:04
    +---------------------------------------------------------------------------+
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    STANDARD
    N
    INCOMPLETE
    12805
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    To get the log messages for PDOI, please use the following id to query against FND_LOG_MESSAGES table:
    AUDSID = 12076063
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    +---------------------------------------------------------------------------+
    Executing request completion options...
    Output file size:
    69
    +------------- 1) PRINT   -------------+
    Printing output file.
                   Request ID : 55116524
             Number of copies : 0
                      Printer : noprint
    +--------------------------------------+
    Finished executing request completion options.
    +---------------------------------------------------------------------------+
    Concurrent request completed successfully
    Current system time is 09-AUG-2013 22:27:42
    +---------------------------------------------------------------------------+
    Brajesh

  • XML page cannot be displayed cannot view XML input using XSL style sheet Please correct the error and then click the REfresh

    XML page cannot be displayed cannot view XML input using XSL style sheet Please correct the error and then click the REfresh

    Is the error message displayed in Firefox or in IE, or in a customized window that doesn't identify the browser?
    ''If it displays in Firefox:''
    It's possible that the Troubleshooter doesn't work correctly unless IE is your default browser. You could test that possibility by having IE make itself the default and testing the Troubleshooter again.
    ''If it displays in IE or embedded in another Microsoft application:''
    In a web search I found these suggestions:
    (1) Reset your Internet Explorer settings, according to http://answers.microsoft.com/en-us/ie/forum/ie8-windows_7/cannot-view-xml-using-xsl-style-sheet/ccfe80c6-c0db-4594-a7e3-475f9eac0e85
    (2) Try the System File Checker, according to http://ask-leo.com/why_do_i_get_the_xml_page_cannot_be_displayed_after_running_a_microsoft_troubleshooter.html
    Any luck?

  • Error in net price calculation, item 000010 (Please correct)

    Hi
    Can you tell me error and correction for the same ? It occurs during creation of Std.PO. whom RM1000 prcing procedure is assigned.
    Error in net price calculation, item 000010 (Please correct)
         Message no. 06213
    Diagnosis
         Possible causes:
         o   The net price is negative.
             Check the prices and conditions entered.
         o   An error has occurred during currency translation.
             Check whether the foreign currency is defined in the system.
         o   The unit of measure of an item is not allowed.
             Check the units of measure entered.
         o   An internal error has occurred during the price determination
             process.
             A mandatory condition type is not defined in the system. Please
    In the analysis under item details condition tab I got message 301 as Acess 0002 12 is missing.
    Acess seq. 0002 is assigned to condition type PB00.

    I know this thread is very old but I had the same issue and found the solution.
    Enter the SubTotal in the pricing scheme for condition P101 (in my Case 9 - Copy values to KOMP-BRTWR (gross value)).
    Than it works for my case.
    Hope this helps.

  • Why icannot export pdf file from other app to ibook (after update today)?. Please correct my problem. iPad 2, iOS 5.0.1

    Why icannot export pdf file from other app to ibook (after update today)?. Please correct my problem.
    iPad 2, iOS 5.0.1

    Why icannot export pdf file from other app to ibook (after update today)?. Please correct my problem.
    iPad 2, iOS 5.0.1

  • HT201401 my iphone screen has got line please tell me what's wrong with my phone

    i have bought recently iphone 5s from apple store but now my iphone screen has got line please tell me what's wrong with my phone

    It is not working cprrectly.
    Take it back.

  • G/L account 156116 cannot be used (please correct)

    Dear all,
    When i create a PO from a PR (of Third party sale process), i get an error:
    G/L account 156116 cannot be used (please correct)
    Message no. ME045
    Diagnosis
    Comparison of the field selection strings from the G/L account 156116 and the account assignment category X reveals that there is an incompatible combination of field selections for the field selection group 'CO/PP order'.
    The G/L account field selection is stored in table T004F; that for the account assignment is stored in table T162K.
    Pls give me your suggestion.
    Thanks,

    > G/L account 156116 cannot be used (please correct)
    > Message no. ME045
    Go to FS00 and Select your Account and In Create / Bank / Interest Tab Double Click on Field Status group and Check the Business area Field is Set to Optional Entry. (If its set Dont Change any thing)
    Now Go to OME9 and Select your Account Assignment X and Double Click and Check the Business area is set to Optional Entry. (If its Not Set then Change the Same and Save)
    Logic is Both Business area Settings should be Same.
    Regards,
    Ashok

  • Pretty much confirmed interactivity between Word/Acrobat Mac vs. Same on PC is completely hosed in certain situations...Please tell me I am wrong!

    I've pretty much confirmed that the interactivity between Word/Acrobat Mac vs. Word/Acrobat PC is completely hosed in certain situations...Please tell me I am wrong!
    Situation: two workgroups need to work with each other sharing and editing word and pdf files for complex documents containing a TOC, list of figures, etc.
    Problems reproducible on many machine types and configs:
    1. WORD FILES: TOCs do not retain hot links within a doc that has been touched by a mac, and then re-saved as a PDF with the intent to have a linked TOC with chapter heads.
    2. PDF FILES: that have been touched by a mac, for example to edit the document properties, will loose all TOC function as in problem #1 above.
    In short, this rots for mac users who have to share/edit these files with PC brethren.
    The only solution that I found for mac users is this:
    Do your thing in Word 2008. Then have a PC version of Word and PC version of acrobat installed on a virtual drive like Parallels or VMWare, etc. Delete your TOC using MS Word for Windows, reinsert a new one, and then use the PC distiller installed into word by Acrobat Professional to create a new PDF that will be cross-platform functional.
    I had a meeting with the Mac users to explain this work around and they looked at me like I was crazy, and they pretty much said go pound sand, we don't care if the TOCs are linked or not.
    Well, I may be exaggerating there a bit, but NO ONE was happy with this solution, including myself. Our BIG question is "Is anyone going to fix this problem in the shortterm?!?" And it's Microsoft and Adobe both that seem to have some responsibility here...with an emphasis on Adobe, as it's clearly not just an MS isssue, as you can totally destroy a working TOC in a PDF file by just editing the file properties on a mac. Arg...
    I also find it frustrating that Adobe does not have a forum for cross-platform specific issues, which to me seems consipiritory. Ha!
    Message was edited by: hero jig

    ~graffiti wrote:
    PjonesCET wrote:I have word from people that know from Microsoft support, Say Adobe is talking hot air.
    Sure you do Phil.
    I follow the Microsoft office Mac. Word forum and excel Forum as much or, more so even than the Forums here.
    And All the experts say its a smoke screen.
    You can go and look at bio of all the people  by MS to answer questions and what their field of Expertise. Most have impressive credentials in their field. Many write professionally Documents, books and other such.

  • Cannot view XML input using XSL style sheet. Please correct the error and..

    Hi All,
    Scenario XML to IDOC.
    The interface determination decides whether to create IDOC X or IDOC Y based on a xml segment value.
    I have an error in the SXMB_MONI:
    <!--  Interface Determination
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="IF_DETERMINATION">CX_ID_PLSRV</SAP:Code>
      <SAP:P1>Problem evaluating a condition: Exception CX_SWF_RLS_RULE occurred (program: CL_SWF_RLS_CONDITION==========CP, include: CL_SWF_RLS_CONDITION==========CM00Q, line: 160).</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error when determining the inbound interface: Problem evaluating a condition: Exception CX_SWF_RLS_RULE occurred (program: CL_SWF_RLS_CONDITION==========CP, include: CL_SWF_RLS_CONDITION==========CM00Q, line: 160). Problem evaluating a condition: Exception CX_SWF_RLS_RULE occurred (program: CL_SWF_RLS_CONDITION==========CP, include: CL_SWF_RLS_CONDITION==========CM00Q, line: 160). Exception CX_SWF_RLS_RULE occurred (program: CL_SWF_RLS_CONDITION==========CP, include: CL_SWF_RLS_CONDITION==========CM00Q, line: 160). Exception CX_SWF_RLS_OPERAND_MISSING occurred (program: CL_SWF_RLS_COMPARISON=========CP, include: CL_SWF_RLS_COMPARISON=========CM002, line: 63). Exception CX_SWF_RLS_OPERAND_MISSING occurred (program: SAPMSSY1, include: , line: 0). Exception CX_SWF_EXP_EVALUATE occurred (program: CL_SWF_EXP_EXPRESSION=========CP, include: CL_SWF_EXP_EXPRESSION=========CM027, line: 38). Exception CX_SWF_EXP_EXPRESSION occurred (program: CL_SWF_EXP_EXPRESSION=========CP, include: CL_SWF_EXP_EXPRESSION=========CM01Z, line: 520). Exception CX_SWF_EXP_EXPRESSION occurred (program: CL_SAI_SWF_RULE_ENGINE========CP, include: CL_SAI_SWF_RULE_ENGINE========CM00S, line: 42). Problem extracting values from the Payload: Check line 2 column 1 of the XML document</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    From the SXMB_MONI, the inbound message payload is truncated with an error:
    - <ProductIdentification>
      <GlobalProductIdentifier />
    - <PartnerProductIdentification>
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    The following tags were not closed: Pip3B12ShippingOrderConfirmation, ShippingOrder, ShipmentLineItem, isContainsHazardousMa...
    ">   <GlobalPartnerClassificationCode />
      <ProprietaryProductIdentifier>000000000000101369</ProprietaryProductIdentifier>
      </PartnerProductIdentification>
      </ProductIdentification>
    - <QuantityInformation>
    - <confirmedQuantity>
      <ProductQuantity>1.00</ProductQuantity>
      </confirmedQuantity>
    I've checked that the xml format is OK.
    As a matter of fact, if I try to resend the xml file from directory, the message is processed correctly and the payload shows all the xml file.
    Thanks.
    Daniele
    Edited by: Daniele*Verdone on Feb 1, 2010 11:22 AM
    Edited by: Daniele*Verdone on Feb 1, 2010 11:23 AM

    Hi Suraj,
    That option is not available in FTP mode..
    This option is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.
    Yes, you're right !!
    Are you sure that the message is not getting picked in half-way
    Now, at this time, I can't see the XML data in the CC monitoring because the tool shows only the recent polling execute in the last 10 minutes. If the error recurs, I will check the payload of CC.
    How can I solve the problem with reading incomplete file (FTP mode)?
    ...Meanwhile I will try with Full cache refresh.
    Thanks
    Daniele

  • Flash player License not readable, please correct download link

    Hi, just wanted to download the latest version of Flesh player (Version 11.9.900.152), but the license which I shall agree to solely appears in Arabian language (see: http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/legal/licenses-terms/pdf/Fla sh%20Player_11.0.pdf). Please correct the link leading from
    http://www.adobe.com/legal/licenses-terms.html to the license. Thank you. 

    So you click on the download links at http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#mai n-pars_header (under the heading Progess bar hangs...), and nothing happens?

  • Scope of list ALV not defined (please correct) in rm06bkps program

    hi experts,
    i have to add some fields in me5j t-code, for this i have copied the standard program as z prog. But at time of execution it gives an error
    "Scope of list ALV not defined (please correct)
    Message no. ME287"
    At the time of debugging i found gf_factory object is not filled, but im unable to trace that variable
    even i have searhed the same on SDN but the quetion is not answerd.
    please help me out ASAP.
    waiting for ur valuable replies..
    thanks in advance
    Neha

    i got the problem
    in fm
    ME_REP_GET_TABLE_MANAGER  -->   l_factory(object) -->im_service(variable)
    l_active = l_factory->is_active( im_service = l_service  im_scope = im_scope ).
    im_service  variable has programe name, im_scope has "ALV" . then it execution goes in case statement where it checks the im_service with standard prog name.
    as in case im_service has zprog, so it doesnt go to any when case and hence the prob.
    any sugesstion..?????
    Neha

  • Error AA168 Ord.dep.start date not allowed in dep.area 60 (Please correct)

    Hi experts,
    We upgraded to ECC6 from 4.7 version last month.
    For some assets we have start deprecation date filled for area 60 with deprecation key LINV.
    We would like to modify deprecation key to 0000 but we have error "AA168 Ord.dep.start date not allowed in dep.area 60 (Please correct)"
    Have you any idea to resolve this issue.
    Thank you in advance
    Kind Regards.

    Dear Shankar
    here is what i have in transaction
    001     01/01/02/02          01     01     02     02
    002     01/01/01/01          01     01     01     01
    003     01/06/02/02          01     06     02     02
    004     06/06/02/02          06     06     02     02
    i do not anderstand any thing in this transaction
    Can you help me resolving this issue?
    Thanks in advance.
    Kind regards

Maybe you are looking for

  • I get the message "rnpag has stopped working" followed by "firfoxx has stopped working", what can I do to get firefox working again?

    Over the past few months firefox has been crashing unexpectedly but just today it crashed and will not reopen even after shutting down and restarting my laptop. The message that appears when I start my laptop and again when I try to open firefox is "

  • Cannot get through to CHAT to cancel

    I have been trying to cancel creative cloud for days now.  The "chat" button wouldn't show at all unless I go through a search on google and end up somewhere in the forum with a link. Even then, when I click onto that link for the chat form, I get on

  • Dialog Instance Installation - Error while connecting to DB

    Hi All, We have installed a WAS 640 SP15 and successfully running a Portal EP6.0 (SP15) on the same. Now, we wish to install a dialog instance on the same for load balancing the Portal on the same Hardware/Server. During the DI installation in the ph

  • Application hangs on setVisible call in Solaris 8

    I have a Swing application that I am having trouble with. The swing part of it is simple enough, however it does use a C++ API with JNI. It all works perfectly on Linux. However in Solaris 8 the application hangs on the call to either myFrame.pack ()

  • Webdynpro ABAP Scenario

    Hi, Can we develop a WD ABAP application on system1(ECC 6.0) which has to access standard,custom infotypes on system2 (ECC5.0) process/update them. Can we use EP 6.0 to display the WD ABAP application as an iVIew. Edited by: SDN User on Nov 13, 2008