Persistent of same reference twice - hibernate

Hello,
I tried to save an object - (object1) that is contained by 2 different objects (object2 and object3).
first, when i saved object2 - it succeeded and the object was saved (object 2 contains object1)
than, i tried to save object3 (that contains also object1 - the same reference) and it cause
transient object exception.
i also noticed that in the object2 - object1 has id
and in the object3- object1 doesn't have id although object1 is the same reference in both of the objects.
what should i do?
how could i inform object3 that object1 inside of him is already saves and has id..?
Edited by: smackdown90 on Apr 25, 2010 10:11 AM

I tried to think of a way to reword my SQL so that it would only reference the variable once and I came up with:
select product_name,
       product_type,
       to_date(expiry_date, 'DD/MM/YYYY') expiry_date
  from products
where product_name like nvl(#name, '%')
   and product_code like nvl(#code, '%')I thought I had finally found an answer, but the input xsd generated has errors:
<xs:sequence>
      <xs:element name="name" type="/>
      <xs:element name="type" type="/>
</xs:sequence>It seems like it is trying to make the comma after the variable part of the name. It happens if I try and put the input variable inside any function. Am I missing some obvious syntax issue?

Similar Messages

  • Workflow sends the same email twice

    I created in Sharepoint Designer a workflow to send an email when a new item is created, but i recieve the same mail twice at the same time. Can somebody help me?
    workflow:
    email Lukas Kuypers
    then add 30 days to today (save in variable datum)
    then pause to variable datum
    then delete current item
    then stop workflow

    Hi,
    Per my understanding, a custom SharePoint Designer workflow send an email twice when there is only one send email action in it.
    A possible reason is that the workflow has been triggered twice. Sometimes, due to the performance issue of the SharePoint Server, even after a workflow instance is
    finished, the item submitting is still during processing which triggers another workflow instance and send the second email again.
    As a workaround, you can add one step at the end of your workflow to pause the workflow for a few minutes for a test.
    A link about the similar issue with explanation in details for your reference:
    https://sharepointnomad.wordpress.com/tag/duplicate-notifications/
    Feel free to reply if there is any progress.
    Thanks 
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to enter the same cell twice in a formula

    I am studying environmental engineering. we have a lot of complicated formulas that are long chains. In these formulas I need to reference the same cell many times , the problem is when I click on the cell again all it does is rehighlight that cell earlier in the equation. When I do this in excell it works fine. If i type the cell in it works but this can be a hassle. I like working in Iwork because the charts and graphs are nicer but I seem to be finding that some items like this, goal seek, and the fact that you can not extend a polynomiel function forward and back excell is much better than Iwork.

    Same question twice in one day. Hold down the command key when selecting it the second time.

  • How do I use the same photo twice in a slideshow created in iPhoto'11?

    I created a slideshow in iPhoto'11 and would like to use the first slide also as the last slide.
    How can I use the same photo twice?

    Seems you have to duplicate the photo in your Library to add the same picture twice.

  • F110- not able to clear the debit and credit entry with the same reference

    Hi,
    I am not able to clear the debit and credit entry with the same reference in F110 even after having the payment terms as immediate payment, payment method is maintained in document no and vendor master data. Both debit and credit entry is appearing in FBL1N as an open item but it is not appearing in F110.
    In Log message appear as 8 days grace period is existing whereas as payment term is just 0001- immediate payment.
    Kindly advice me what could be wrong.
    Thanks,
    Manya.

    Hi,
    Credit and debit balance in vendor account are not cleared automatically when only vendor line item has payment method and credit memo has not payment method. Also when there is not payment method maintained in vendor master data.
    In such case to avoid payment to vendor when vendor has debit balance we perform debit balance check.
    In second scenario when u2018individual paymentu2019 is selected in vendor master data vendor invoice and credit memo are not cleared automatically in F110.
    To setoff vendor credit and debit balance in F110 you to uncheck u2018individual paymentu2019 check in vendor master data > company code data > payment data.
    Thanks!
    Raju

  • How can I retrieve the same figure twice in report?

    Hi guys,
    If we have the same selection twice in the same report, it only retrieves the figure once (see example below, were the same period has been chosen twice). Is there any setting I can adjust, so it will retrieve the figures for double-selected members also?
    Thanks,
    Dorthe

    Hi Dorthe,
    No issues in my system (BW 7.3, BPC SP12, EPM SP16 patch1):
    B.R. Vadim

  • HT204053 my wife and i have seperate itunes accounts is there a way we can link our accounts to share songs so we dont have to pay for the same song twice?

    When the first ipad came out i set it up and created an itunes account, since then she got an iphone and an ipad and everything was good. I had an android but wanted to try out the iphone. When i set it up ut jumpled all of our contacts, apps, and everythin. it was a mess.
         Since, i purchased and ipad 2 and an iphone and to keep our stuff from combing i used a different computer and created an new apple ID for myself so our info wouldnt combine, I was wondering if i did the right thing or if i should have went about it a different way. I was going to see if there was a way when she purchased a song i could get it. I dont want to pay for the same song twice and only want to share songs. If i cant do this can i copy her library and paste it into my itunes??
    Any help wouldl be greatly apprecieated we both have icloud set up but i cant figure out the best solution.

    Welcome to the world of digital media. Your can't really transfer it. I don't know what the rules are about transferring to your spouse but I do know that in some cases when you die, your heirs cannot inherit your digital media. This is why there is still an advantage to buying the CD since the usage rights belong to whomever holds the physical media.
    A possible workaround is to burn the songs to a music CD with yout account (tracks only without song titles) and then having your wife upload it as a regular music CD onto her account. It's been a while since i've done this so I'm not sure if it would work now.
    Please note that I'm not advocating copyright and/or TOS violations. I'm only suggesting ways to copy music for your own personal use which has traditonally been permitted. I only did this because I wanted to convert iTunes songs to mp3 files so I could burn them onto a data CD for use in my car. It would make sense that since married couples are a joint entity, this would be personal use.
    Also, I'm not a lawyer so don't take this as legal advice.

  • I keep getting calls from non existing area codes and phone numbers.  They are never the same number twice.  How do I stop this?

    About a week ago I started getting phone calls on my cell phone from numbers that do not exist, including the area codes.  I can not report these to the Do Not Call list because the area code is non existent.  I'm getting these calls all the time now and never from the same number twice so there's no point in blocking them.  If I answer I may or may not get a person who has an accent from India so heavy that I can't understand what they are saying.  This is getting to the point where I just want to cry I'm so frustrated.  Anyone else having this issue or does anyone know how to stop it?
    Thank you

    I'm sorry that you are having all these troubles. I have sent you a private message.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • Can I use the same SSI twice in same page?

    Hey all,
    i'm having a problem whereby several SSI's are not showing on my page.
    I'm wondering if it's because the instances that are not showing are the ones called the second time round.
    Before i start posting code etc, i just wondered if it was actually not possible to call the same SSi more than one time on a page.
    I can't seem to find documentation stating this anywhere.
    Thanks in advance,
    Katrina
    Edit 1: I tested using a new unique SSI (i.e. one that wasn't called anywhere else on teh page, and it doesn't show either... so I've started a new thread where i post my code here: http://forums.adobe.com/message/5345250#5345250
    Edit 2: I guess i didn't test properly initially. It seems it is NOT possible to use the same SSI twice on a page...   What a bummer!!!

    This issue was resolved in a different thread where s member supplied the following information...
    t's certainly possible depending on the PHP command which you use as the include directive.
    <?php require_once('includes/include-address.php'); ?> will only include the file once
    <?php require('includes/include-address.php'); ?>  will include the file more than once
    <?php include('includes/include-address.php'); ?>  will include the file more than once
    Each has its own rules and quirks.
    http://php.net/manual/en/function.require-once.php
    http://www.php.net/manual/en/function.include.php
    http://www.w3schools.com/php/php_includes.asp

  • How to restrict the entry of same material twice on the order

    HI,
    How to restrict the entry of same material twice on the order before saving the Order ?
    I do not want my users to enter the same material as two different line items in the order.
    Any inputs wud b appreciated

    Hi Vam,
    For this you need to take the help of an ABAPer . Ask him to modify the user exit and add the logic.
    For user exit please go through the below link it will help you to resolve your issue.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    Regards,
    Krishna O
    Edited by: Krishna O on Jun 3, 2010 12:29 PM

  • End user receving same mail , twice in a day .

    Hi,
    Throu this report , i am sending mail to a user. I the scheuld this program as background job.
    But My problem is end user receving same mail twice a day.I am sure , Program is executed onces in day.
    Plz help me to solve the problem
    REPORT  zplm008_tdr_mail_alert        .
    *DATA DECLARATION.
    DATA: it_ztdr TYPE TABLE OF ztdr WITH HEADER LINE.
    DATA  wa_maktx TYPE makt-maktx..
    *SELECTION SCREEN
    PARAMETER: p_date TYPE sy-datum DEFAULT sy-datum MODIF ID dat .
    *START-OF-SELECTION
    START-OF-SELECTION.
      SELECT * FROM  ztdr INTO TABLE it_ztdr
             WHERE  rlddt  = p_date.
      IF it_ztdr[] IS NOT INITIAL.
        LOOP AT it_ztdr.
          PERFORM send_mail.
        ENDLOOP.
      ENDIF.
    *&      Form  SEND_MAIL
          text
    -->  p1        text
    <--  p2        text
    FORM send_mail .
      DATA: lt_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                       WITH HEADER LINE.
      DATA:   ls_message TYPE char255.
      DATA: lt_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
            lt_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            lt_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
            lt_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            gf_cnt TYPE i,
            gf_sent_all(1) TYPE c,
            gs_doc_data LIKE sodocchgi1,
            gf_error TYPE sy-subrc.
          Adds text to email text table
      lt_message = 'Hi,'.
      APPEND lt_message.CLEAR lt_message.APPEND lt_message.
      lt_message = 'Requested design is released. Pls raise the TPR (If required to be ordered).'.
      APPEND lt_message.CLEAR: lt_message.APPEND lt_message.
      lt_message = 'Details of the released design:'. APPEND lt_message.
      lt_message = '*******************************'.APPEND lt_message.CLEAR: lt_message.APPEND lt_message.
      MOVE : 'TDR No '  TO lt_message.
      lt_message+21(1) = ':'.
      lt_message+22(40) = it_ztdr-tdrid   .APPEND lt_message.
      MOVE  : 'PED Part no '  TO lt_message.
      lt_message+21(1) = ':'.
      lt_message+22(40) = it_ztdr-matnr.
      APPEND lt_message.
      CLEAR: wa_maktx.
      SELECT SINGLE maktx FROM makt INTO  wa_maktx WHERE matnr = it_ztdr-matnr.
      MOVE 'PED Part Description' TO lt_message.
      lt_message+21(1) = ':'.
      lt_message+22(40) = wa_maktx   .APPEND lt_message.
      MOVE : 'PED Part Rev no' TO lt_message .
      lt_message+21(1) = ':'.
      lt_message+22(40) = it_ztdr-matnr_rv .APPEND lt_message.
      MOVE: 'Rnd part No  ' TO lt_message .
      lt_message+21(1) = ':'.
      lt_message+22(40) = it_ztdr-ref_matnr . APPEND lt_message.
      MOVE : 'Rnd Part Rev '  TO lt_message .
      lt_message+21(1) = ':'.
      lt_message+22(40) = it_ztdr-ref_matnr_rv .APPEND lt_message.
      CLEAR: lt_message.
      APPEND lt_message.
      APPEND lt_message.
      lt_message = 'To View the Design:'.
      APPEND lt_message.
      lt_message = '*******************'.APPEND lt_message.
      CLEAR: lt_message.
      APPEND lt_message.
      lt_message ='For Standard gauge, use Transaction: ZPED_TOOLPRINT'.
      APPEND lt_message.
      lt_message ='For Non-Standard gauge, use Transaction:  ZCV04N or CV04N'.
      APPEND lt_message.
    *Send email message, although is not sent from SAP until mail send
    *program has been executed(rsconn01)
    Fill the document data.
      gs_doc_data-doc_size = 1.
      DATA subject TYPE string.
      CONCATENATE 'Design Released for'  it_ztdr-tdrid  'of'  it_ztdr-ref_matnr
            INTO subject SEPARATED BY space.
    Populate the subject/generic message attributes
      gs_doc_data-obj_langu = sy-langu.
      gs_doc_data-obj_name  = 'TDREQ'.
      gs_doc_data-obj_descr = subject .
      gs_doc_data-sensitivty = 'O'.
    Describe the body of the message
      CLEAR lt_packing_list.
      REFRESH lt_packing_list.
      lt_packing_list-transf_bin = space.
      lt_packing_list-head_start = 1.
      lt_packing_list-head_num = 0.
      lt_packing_list-body_start = 1.
      DESCRIBE TABLE lt_message LINES lt_packing_list-body_num.
      lt_packing_list-doc_type = 'RAW'.
      APPEND lt_packing_list.
      CLEAR lt_receivers.
      REFRESH lt_receivers.
    Add the recipients email address
    For SAP mail
    IF NOT GSCR_UNAME IS INITIAL.
      lt_receivers-receiver = it_ztdr-reqnm.
      lt_receivers-rec_type = 'U'.
      APPEND lt_receivers.
    ENDIF.
    For external mail
    IF NOT gs_outtab-reqnm IS INITIAL.
       lt_receivers-receiver = gs_outtab-reqnm.
       lt_receivers-rec_type = 'U'.
       APPEND lt_receivers.
    ENDIF.
    Call the FM to post the message to SAPMAIL
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = gs_doc_data
          put_in_outbox              = 'X'
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = gf_sent_all
        TABLES
          packing_list               = lt_packing_list
          contents_txt               = lt_message
          receivers                  = lt_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
    Store function module return code
      gf_error = sy-subrc.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Get lt_receivers return code
      LOOP AT lt_receivers.
      ENDLOOP.
      PERFORM initiate_mail_execute_program.
        CLEAR:lt_message[] , lt_message , gs_doc_data ,gf_sent_all,lt_packing_list[]
        ,lt_packing_list ,lt_receivers[], lt_receivers.
    ENDFORM.                    " SEND_MAIL
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          text
    -->  p1        text
    <--  p2        text
    FORM initiate_mail_execute_program .
      WAIT UP TO 2 SECONDS.
      SUBMIT rsconn01 WITH mode = 'INT'
                    WITH output = 'X'
                    AND RETURN.
    ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM

    Hi,
    In your code
    You are looping the perform in which you are calling below FM.
    LOOP AT it_ztdr.
       PERFORM send_mail.
    ENDLOOP.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = gs_doc_data
    put_in_outbox = 'X'
    commit_work = 'X'
    IMPORTING
    sent_to_all = gf_sent_all
    TABLES
    packing_list = lt_packing_list
    contents_txt = lt_message
    receivers = lt_receivers
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.
    So keep your FM after the loop.
    Pls. reward if useful...

  • Sender File Adapter picking the same file twice

    We are facing a weird issue with File Sender Adapter
    We are using PI File Adapter ( NFS ) to read files for a NFS folder and
    processing those in PI.Normally it works fine. But for a scenario we
    are noticing it sometimes process the same file twice before archiving,
    thus duplicating the financial postings.
    What we have is :
    File Sender Adapter - NFS, Polling interval 60 secs, and Processign
    mdoe Archive. File name includes Wildcards - JE_Upload*.txt
    what we are noticing is that :
    when it picks up a file, it immediately polls again to check for
    another file, and sometimes the file is not yet archived so it picks up
    and reprocess the same file.
    If you see the message below, both belong to the same file, and it
    picked up the same file again in 12 secs after processing it the first
    time
       Successful 02.11.2009 15:01:00 02.11.2009 15:01:01   APMANUAL     urn:bl:i2g:003:100
    SI_SKF_FIDOC_OB XI Message
       Successful 02.11.2009 15:00:49 02.11.2009 15:00:50   APMANUAL     urn:bl:i2g:003:100
    SI_SKF_FIDOC_OB XI Message
    Anyone seen this behavior before?

    Hi,
    Please check the script which creates file in source NFS Folders. There is possibility that script is making change in file when PI is picking up the file.
    When PI picks the file first time it creates one message ID in system. After that if script is making any change in file without file name change (This need not necessary data change), for PI it becomes new file and new message gets generated in PI for same file.
    This error normally comes when File adapter is not able to archive file succesfully. For eg. file with same name alredy exists in Archive folder.
    File adapter generates the new message id whenfile get modified(eg.change in its length or data change) even though
    the file name is same and when file get change ,XI file adapter thinks that its new file and hence generate the new message id for same file.
    If file has same name and notmodified then XI adapter will not generate new message id and will keep on throw the error till you remove that file with same name from the
    archieve directory.
    -Warm Regards,
    Gouri

  • How to print same layout twice changing only one field dynamically

    I have a report which prints three pages invoice in Dollar currency, I want that same report to print those three pages again but the currency will be changed dynamically based on certain criteria. It means I three pages for Dollar and next three pages for other currency.
    Or if you can help me printing the same report twice(do not want # of copies to be set to 2).
    Please it's urgent.
    Thanks
    Kailash.

    Hi
    Distribution.
    and the pass different currency in distribution.
    Regards
    chaluve

  • Java Application working fine,JSP App. throwing error for same reference

    hi all
    i had written java(window) application and jsp(web) application with the same reference(third party reference)
    Java Application is working fine but when i try run JSP application the following error came up
    java.lang.NoClassDefFoundError: com/documentum/fc/client/DfClient
    could any one help me out of this issue? i am in very need of that one it will be very helpfull to me.
    Thank You
    Regards
    Oersla Afrzoe Ahmed

    hi thanks for reply
    cant i put the reference to the JAR Files(such as classpath e.t.c.,) so that all my JSP Application take a reference from thier?
    is that i have to copy all my jar files physically to al my each individual JSP application web-inf/lib folder?
    how to find out where my particular JSP App. web-inf folder exists?
    Regards
    Oersla Afroze Ahmed

  • Vendor Invoice with Same Reference Number in two fiscal years.

    Vendor Invoice entered in SAP.
    DocumentNum 1600000612  Reference "47026723WA" Vendor Number "637278" Year "2008"
    DocumentNum 1600000667  Reference "47026723WA" Vendor Number "637278" Year "2009"
    We are thinking SAP will not allow/generate invoice with same Reference number. How can we restrict from entering Vendor invoices with Same Reference Number from same Vendor.
    Thanks
    Raghuram

    Restrict it through message control
    Transaction code OBA5
    Message NO.121
    Make it error for batch and online.
    Thanks,
    Ravi

Maybe you are looking for

  • Does Classic report provide facility to make report total to be hyperlink

    Hi , Does Classic report in apex provide provision to make the report-total row editable(hyperlinked) ? if so how to implement that. Acq     WIP     Closed Abc     1     3 Def     2     5 report total :     3     8 Also is it possible to provide more

  • Conditional Mandatory Field in Material Master (Sugg. Needed

    Hi , I am having a requirement where i need to make a particular field to be mandatory for a certain condition in Material Master. Say for a Product Hierarchy i want to make Volume Rebate Group mandatory ( Sales Org 2 View). Please suggest the possib

  • XSLT extension function probelm

    Hi, I have some problems when I tried to migrate from Xalan to Oracle XSLT engine. I have to traverse a huge XML document, the usual XPath is rather slow so we developed a Java class that kept a reference to some of the important Nodes. The XSL looks

  • Urgent: How to map existing java classes

    I created an IDL file where I want to use java.sql.ResultSet. The line is: module CMS { interface Comm { ResultSet search(in string searchString); The ResultSet has to be the ResultSet as in java.sql.ResultSet. I tried to add the following code: modu

  • Problem with wlan connection

    Hi everybody! I installed a new wlan router yesterday. I can access my wlan with all devices (laptops, iphone 3GS...) and also with my new Iphone 4S. But the problem with my 4S is that I can use the internet for some time and then suddenly not anymor