Urgent:deleting relationship from HRP1001

Hello,
Is there any function module with RFC enabled to delete the relationships from HRP1001?
can you please provide me the information ASAP.
Regards,
Soujanya

U can use RH_DELETE_INFTY .. But I don't think it's RFC
enabled ...

Similar Messages

  • Very Urgent: Deleting Batch from STO and Goos Issue reversal  Using BAPI

    Hi,
    I want to delete outbound delivery for particular shipment number and this should be done using BAPI or a FM not using the tcode VL02N.
    I wld be very grateful
    Please List out the BAPI 's or FM that can be used for to perform these listed , with using Tcodes:
    1) REVERSE BILLING DOCUMENT(VF11)
    2) GOODS ISSUe REVERSAL (VL09N)
    3) REMOVE DELIVERY FROM SHIPMENT (VT02N)
    4) DELETING DELIVERY(VL02N)
    5) REMOVE BATCH FROM STO (ME22N)
    Its very urgent..
    Thank you in advance....

    1) REVERSE BILLING DOCUMENT(VF11)
    BAPI_BILLINGDOC_CANCEL
    2) GOODS ISSUe REVERSAL (VL09N)
    BAPI_GOODSMVT_CANCEL
    3) REMOVE DELIVERY FROM SHIPMENT (VT02N)
    BAPI_SHIPMENT_CHANGE
    4) DELETING DELIVERY(VL02N)
    5) REMOVE BATCH FROM STO (ME22N)
    BAPI_PO_CHANGE

  • HT202786 my friend shared a video with me on icloud photo sharing and then she deleted it from her camera roll, how do I save it???(very urgent)

    my friend shared a video with me on icloud photo sharing and then she deleted it from her camera roll, how do I save it???(very urgent)

    DVDs are encoded into MPEG2, which iMovie cannot edit. So you need to convert the DVD back to something else. For highest quality, I recommend that you convert the DVD to Apple Intermediate Codec. There is a free tool called MPEG Streamclip that will do this. You will also need to install the Apple QuickTIme MPEG2 Playback Component.
    Here are the details.
    1) Download and install the Apple MPEG2 QuickTime Component ($20) - available online from Apple.
    2) Download and install MPEG Streamclip from Squared 5 (free).
    3) Start MPEG Streamclip
    4) Insert your DVD into your Mac. If DVD Player or Front Row starts automatically quit those.
    5) Open a Finder window. Navigate to your DVD to the Video_TS folder.
    6) Drag the .VOB files from the Video_TS folder and drop then into MPEG Streamclip.
    7) If MPEG Streamclip offers to fix timecode breaks, say yes.
    8) Use FILE/EXPORT TO QUICKTIME to convert the files to Apple Intermediate Codec (or h.264 if you prefer)
    9a) Optional: You can deinterlace your footage in this step, if you like
    9b) optional: If you know the date and or time of the footage, name your file
    clip-yyyy-mm-dd hh;mm;ss
    (let mpeg streamclip provide the extension). This will provide metadata that iMovie will use to put the event in the right year and month.
    9c) Optional: If you don't want to make one huge clip out of your DVD, you can make smaller clips by using MPEG Streamclip. Move the cursor to the "in" point of the clip, and press i. Move the cursor to the "Out" point of the clip, and press o. Then do steps 8 through 10 and repeat until you have done this for all clips you want.
    10) Save the resulting file in a place where you can find it, like your Desktop.
    11) Open iMovie.
    12) In iMovie, choose FILE/IMPORT/From File and choose the file you saved in steps 8, 9, 10.
    13) iMovie will generate thumbnails and you can edit.

  • My friend shared a video with me on icloud photo sharing and then she deleted it from her camera roll, how do I save it???(very urgent)

    my friend shared a video with me on icloud photo sharing and then she deleted it from her camera roll, how do I save it???(very urgent)

    Welcome to the Apple Community Diane.
    I find that shared video can be troublesome, a few haven't appeared to work as you describe but have done when I've looked at a later date. Hopefully they will work if you give them a bit longer. perhaps it would be a good idea if you make sure they are working before deleting them from the camera roll.

  • Is it possible to delete a relationship from the BP ?

    Hello experts,
    I'd would like to replace a function partner SH (having the same number as the DO) by another  from R3 to CRM5.
    At the begining i have in R3 this partner
    AG 3901007
    RE 3901007
    RG 3901007
    WE 3901007
    In R3 by the transaction VD02, I replace the partner SH by another
    After the modify i have in R3.
    AG 3901007
    RE 3901007
    RG 3901007
    WE 5000000
    When the replication is done in CRM using BDOC, i can see, by the transaction BP
    the new ship to party partner(5000000) .
    The trouble is :
    When customer access to ISA (standard version) to order product, he can select the partner 3901007 as shipping adress.
    By ISA, he should have the partner 5000000 only.
    Is it standard or is it a sap trouble ?
    Is it possible to delete a relationship from the BP ?
    I don't want to delete the BP partner, i just want to delete the relationship when then BDOC arrive in CRM.
    i have found the oss note 596334 497146 757955 too but it doesn't bring me a solution.
    Best regards
    Christophe

    Hello
    When you delete a Partner Function in R/3 the corresponding relationshipdoesn't get deleted in CRM. This is standard SAP behavior and not a
    bug. Reason for this behavior has been explained in Note 490454.
    You can change this behavior by implementing Note 497146. Also check
    the note 682427 which will help you in clearing old data.

  • URGENT:Deletion  of Query from QA

    I want to delete query from Quality system.
    Proposed solution is deleting query in dev and then transporting same to QA.
    I am confused little bit if i use RSZDELETE command will it ask for request or i should simply delete query from query deisgner after assigning it to one request.
    Please provide me inputs regarding same as soon as possible.
    Rahul

    Rahul, you cannot Delete the already deleted Object again in Dev. SO, you are getting that error.
    You may have inconsistencies between Dev and  QAS. Look at the transport log of the Query. In the Log, it will state if the Query is deleted in QAS or it couldn't.
    If you need to re-transport the deletion, don't try to collect the deleted Query again. It won't work. Instead, talk to BASIS and COPY the Transport Request (the already released one with the Query deletion) into a new transport request and move it to BQ3 again.
    Also, sit with basis if neede dand analyze the transport log carefully. It will tell you what you need to know.
    NOTE: IF you are using the same query in workooks, etc in BQ3, it cannot be deleted. This is a problem, so also go to BQ3 and see a where else you are using the that Query different from DEV.
    Good luck
    Uday Chamarthy

  • Capture change of relationship in HRP1001

    How can I capture the change of relationship in HRP1001?
    For example, the relationship of Position and Org Unit change from A003 to A012.
    Appreciate your help.

    Hi Irene, (Sam Lai Min?)
    You can use table T779X.
    I think this table is usually used for workflow, but you can insert your own function module there.
    Example of record you can create in the table:
    E     Business event     1001     Relationships     A025     Is attended by     DEL     CRBP     0     PDRELA_025                                          Y_XXX_EVENT_RULES
    This record means if there was a deletion to a record object type 'E' with relationship A025, it will run function module Y_XXX_EVENT_RULES.
    Check out the example FMs in that table for the import parameters, there is a before and after image parameter that you can use.
    You'd probably use something like UPD instead of DEL.
    Note that I read somewhere, if the primary key of a record is changed, it might be processed as a DEL followed by an INS.
    Regards,
    Kevin

  • Is there any BAPI or function module  to delete entries from a table (VBAK)

    Hi Everybody,
    this is my first thread in SDN...
    my problem follows...
    A report is be created that selects all sales orders created by e-Sales that are more than 20 minutes old and still have a delivery block:
    tables:
    VBAK     sales document: header data
    selection fields:
    VBAK-LIFSK      &#8800;     <BLANK>
    VBAK-ERNAM     =     userID used by e-Sales / IVE
              (EP-BATCH / EAI-BATCH)
    VBAK-ERDAT      <=     Current system Date
    VBAK-ERZET     <=     Current system Time - 20 minutes
    These orders should be deleted from SAP system.
    This report should be scheduled to run regularly every 10 minutes.
    my doubt : is ther any BAPI or Function module to delete entries from a standard table...if no what is the way to delete the enteries from a std table...
    best replies will be rewarded....
    regards
    Reddy

    Hi Vasanth ,
    thanks for your reply.
    i tried in the same manner what u mentioned.
    but how to pass only one parameter to the functionmodule..
    here in this case we have to pass only update flag as 'D'..
    i did the same it giving dump..
    An exception occurred that is explained in detail below.                          
    The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was      
      not caught and                                                                   
    therefore caused a runtime error.                                                 
    The reason for the exception is:                                                  
    The call to the function module "BAPI_SALESORDER_CHANGE" is incorrect:                                                                               
    In the function module interface, you can specify only                            
    fields of a specific type and length under "ORDER_HEADER_INX".                    
    Although the currently specified field                                            
    "INT_ORDER_HEADER_INX" is the correct type, its length is incorrect.              
    my pgm :
    *& Report  YNEW_ORDER_DELETION
    REPORT  ynew_order_deletion.
    TABLES:vbak.
    PARAMETERS:
         p_lifsk LIKE vbak-lifsk DEFAULT '02'.
    SELECT-OPTIONS:
       s_lifsk FOR vbak-lifsk DEFAULT '10',
        s_ernam FOR vbak-ernam,
        s_erdat FOR vbak-erdat,"DEFAULT sy-datum.
        s_erzet FOR sy-uzeit.
    *PARAMETERS:
    p_erzet LIKE sy-uzeit.
       s_erdat like vbak-erdat,
       s_erzet like vbak-erzet.
    DATA:
       BEGIN OF int_final OCCURS 0,
            w_vbeln TYPE vbak-vbeln,
       END OF int_final.
    DATA:
      int_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    DATA: int_order_header_inx LIKE bapisditmx OCCURS 0 WITH HEADER LINE.
    DATA:
      wf_time TYPE sy-uzeit.
    INITIALIZATION.
      s_ernam-low = 'KULKARMA'.
      s_ernam-sign = 'I'.
      s_ernam-option = 'EQ'.
      APPEND s_ernam.
    s_ernam-low = 'EAI-BATCH'.
    s_ernam-sign = 'I'.
    s_ernam-option = 'EQ'.
    APPEND s_ernam.
    wf_time = sy-uzeit - 1200.
    p_erzet = sy-uzeit - 1200.
    p_erzet-low = wf_time.
    APPEND s_erzet.
      int_order_header_inx-updateflag = 'D'.
      APPEND int_order_header_inx.
    START-OF-SELECTION.
      SELECT vbeln FROM vbak
                       INTO TABLE int_final
                       WHERE lifsk EQ p_lifsk
                         AND ernam IN s_ernam
                         AND erdat IN s_erdat
                         AND erzet IN s_erzet.
      IF sy-subrc = 0.
        LOOP AT int_final.
          CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
            EXPORTING
              salesdocument         = int_final-w_vbeln
      ORDER_HEADER_IN             =
        order_header_inx            = int_order_header_inx
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      NO_STATUS_BUF_INIT          = ' '
            TABLES
              return                      = int_return
      ORDER_ITEM_IN               =
      ORDER_ITEM_INX              =
      PARTNERS                    =
      PARTNERCHANGES              =
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
      SCHEDULE_LINES              =
      SCHEDULE_LINESX             =
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
        ENDLOOP.
        LOOP AT int_return.
          WRITE:/ int_return-type,
                  int_return-id,
                  int_return-number,
                  int_return-message.
        ENDLOOP.
      ENDIF.
    please help me ..its a very urgent issue to be solved...
    am waiting for ur reply...
    regards
    gangareddy

  • How to delete records from dynamic internal table.

    Hi Experts,
    Need urgent help!!!
    Issue is with Dynamic internal tables.
    Below is code written by me :
    FORM select_query USING Lw_tabnam
                      TYPE  t682i-kotabnr.
      DATA :  lw_line  TYPE REF TO data,
              lw_line1 TYPE REF TO data.
        CREATE DATA Lw_line    TYPE (lw_TABNAM).
        ASSIGN      Lw_line->* TO   <WA_tbl>.
        CREATE DATA LW_LINE    TYPE STANDARD TABLE OF (Lw_tabnam)
                               WITH NON-UNIQUE DEFAULT KEY.
        ASSIGN      Lw_line->* TO <TBL>.
        SELECT * FROM  (Lw_tabnam)
                 INTO CORRESPONDING FIELDS OF TABLE <TBL>
                 WHERE (t_keys).
    Endform.
    code is working fine.
    here even the table name and where condition are dynamic,everything is fine upto this point.
    Now i have to delete some record from <TBL> based on some conditons.
         for ex : ( here lc_fieldname is KUNNR)
          loop at t_kunnr.
              lw_tabix = sy-tabix.
            Read table <tbl>
                    with key (lc_fieldname) = t_kunnr-kunnr ASSIGNING <wa_tbl>.
            If sy-subrc = 0.
            *Delete
            delete <tbl> from <wa_tbl>
    delete <tbl> index  lw_tabix.
            Endif.
         Endloop.
    The above delete statement doesn't work ,even we can't use index as it gives a syntax error " something related to "index is not allowed in standard table or hash table.
    Can you help me ab't how to delete records in Dynamic internal table?
    Other option that i am thinking of is to create a static table of type dynamic table.
    means, data itab type standard table of <tbl> .I know the syntax is wrong ,however is there any way to do this?
    Thanks in advance ,
    If you have any suggestion ab't this then do let me know.
    bye,
    Gaurav.

    Hi
    I wrote this code and it works fine:
    DATA LW_TABNAM(10) VALUE 'LFA1'.
    DATA : LW_LINES TYPE REF TO DATA,
           LW_LINE  TYPE REF TO DATA.
    FIELD-SYMBOLS: <TABLE> TYPE TABLE,
                   <WA>    TYPE ANY.
    CREATE DATA LW_LINES TYPE TABLE OF (LW_TABNAM)
    WITH NON-UNIQUE DEFAULT KEY.
    ASSIGN LW_LINES->* TO <TABLE>.
    CREATE DATA LW_LINE TYPE (LW_TABNAM).
    ASSIGN LW_LINE->* TO <WA>.
    DO 10 TIMES.
      APPEND INITIAL LINE TO <TABLE>.
    ENDDO.
    SY-TABIX = 4.
    DELETE <TABLE> INDEX SY-TABIX.
    WRITE SY-SUBRC.
    I hope it help you
    Max

  • Delete records from multiple table

    Hi,
    I need to delete records from multiple tables using a single delete statement. Is it possible ? If so please let me know the procedure.
    Kindly Help.
    Thanks,
    Alexander.

    Hi Tim,
    Syntax of DELETE statement does not allow for multiple tables to be specified in this way. Infact, none of the DMLs allow you to specify table names like this.
    Technically, there are other ways of deleting from multiple tables with one statement.
    1. "Use a trigger":
    What was probably meant by this is that you have a driving-table on which you create a on-delete trigger. In this trigger, you write the logic for deleting from other tables that you want to delete from.
    This does mean a one-time effort of writing the trigger. But the actual DML operation of deleting from all the tables would be simply triggered by a delete on driving-table.
    2. Dynamic SQL:
    Write a PL/SQL code to open a cursor with table-names from which you want the data to be deleted from. In the cursor-for loop, write a dynamic SQL using the table-name to delete from that table.
    3. Using Foreign-Key constraint with Cascade-Delete:
    This I feel is a more 'cleaner' way of doing this.
    Having to delete data from multiple tables means that there is some kind of parent-child relationship between your tables. These relationships can be implemented in database using foreign-key constraints. While creating foreign-key constraint give the 'on delete cascade' clause to ensure that whenever data is deleted from parent-table, its dependent data is deleted from child-table.
    Using foreign-key constraint you can create a heirarchy of parent-child relationships and still your DELETE would be simple as you would only have to delete from parent-table.
    IMPORTANT: Implementing foreign-key constraints would also impact other DML operations that you should keep in mind.

  • Delete data from table

    hi gurus,
    i am new to abap.
    i am create a report using
    select-options: apoid,
                           material,
                           location to.
    parameters:      days .
    user want to delete entries from the DB table
    from system date to behind 5 days left entries
    for ex. as today is 25.06.2008 he wants data in DB table
    of only 20.06.2008 to 25.06.2008
    if other data from left these dates are deleted.
    and also in output shows the
    2.     Report output should contain :
    a)     Number of entries selected for deleting from table
    b)     Number of entries deleted from the table table
    c)     Number of entries remaining in the table table
    i am do some coding
    plz help me in this case
    TABLES: zapolp22.
                          INTERNAL TABLE                                 *
    TYPES: BEGIN OF it_output,
           ordid           TYPE ZAPOLP22-ordid,       "APO order id
           schedid         TYPE zapolp22-schedid,     "APO schedule line id
           matnr           TYPE zapolp22-matnr,        "Material Number
           locto           TYPE zapolp22-locto,  "APO Destination location
           lfmng           TYPE zapolp22-lfmng,        "Delivery quantity
           lfdat           TYPE zapolp22-lfdat,        "Shipping date
           locfr           TYPE zapolp22-locfr,     "APO Supplying location
           rqmng           TYPE zapolp22-rqmng,        "Required quantity
           rqdat           TYPE zapolp22-rqdat,        "Delivery date
           prckz           TYPE zapolp22-prckz,  "Data element processing
           blkstk          TYPE zapolp22-blkstk,       "Blocked Quantity
           oppdelqty       TYPE zapolp22-oppdelqty,    "Cumulative order qty
           zzapologmod     TYPE zapolp22-zzapologmod,   "Logistic Model
           zzflagurgent    TYPE zapolp22-zzflagurgent,  "APO Urgency Flag
           zzapottype      TYPE zapolp22-zzapottype,    "APO Transport Means
           zzndays_l_time  TYPE zapolp22-zzndays_l_time,"Lead Time Transport
           END OF it_output.
    DATA : itab1 TYPE STANDARD TABLE OF it_output." WITH HEADER LINE.
    DATA : itab  LIKE LINE OF itab1.
                  SELECTION SCREEN / PARAMETERS                          *
    SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME.
    SELECT-OPTIONS: s_ordid FOR zapolp22-ordid,
                    s_matnr FOR zapolp22-matnr,
                    s_locto FOR zapolp22-locto.
    SELECTION-SCREEN END OF BLOCK a1.
    PARAMETERS: p_days LIKE sy-datum.
                                DATA
    DATA: days TYPE i.
                       START OF SELECTION                                *
    SELECT mandt
           ordid
           schedid
           matnr
           locto
           lfmng
           lfdat
           locfr
           rqmng
           rqdat
           prckz
           blkstk
           oppdelqty
           zzapologmod
           zzflagurgent
           zzapottype
           zzndays_l_time
    FROM zapolp22 INTO itab
    WHERE ordid IN s_ordid  AND
           matnr IN s_matnr  AND
           locto IN s_locto.
    ENDSELECT.
    p_days = sy-datum - days.
    DELETE zapolp22 FROM itab.
    IF sy-subrc = 0.
      WRITE:/ 'DEleted'.
    ENDIF.
    gururs plz help me its urgent.
    thanks
    jayant

    His employer may be aware he's a newbie.  He should of course be looking to his colleagues to help.  But at least he's made an attempt.  Martin is right though - this isn't a problem that requires a guru - it's a beginner task.
    For starters try FROM zapolp22 INTO TABLE itab and remove the ENDSELECT.
    Then LOOP AT itab...ENDLOOP.
    READ the ABAP help for any keywords you don't understand.  And DON'T use itab as a name for your internal table.  Use a MEANINGFUL name.  like t_apo_data.
    matt

  • Problems in deleting relationship in PO13

    Hi,
    I am facing a problem when performing following steps. Please give you valuable comments regarding any solution.
    Step1: sm30 Payroll Period & Year - Verified values
    Step2: PO13 Clear position for Transfer , go to maintain position
    In this step under Current Plan and a current period, I am selecting the Relationships option. Then I have selected Delete Infotypes. Then, Screen: Delete Relationships Delete
    Error : Change for person xxxxxx extends too far into  past.
    The Diagnosis is :
    You are working with active integration between the PD and the HR Master
        Data Management. You must consider the effects of your transaction on  
        Human Resource master data.                                            
        The entries cannot be updated because, otherwise, it would be necessary
        to make changes for the specified personnel numbers, which date too far
        back into the payroll past.                                            
        The earliest retroactive accounting period for the payroll subunit to  
        which the person belongs is defined in T569V. The earliest personal    
        retroactive accounting date is read from infotype 0003. The more recent
        of these dates is determined.                                          
        Only changes which occurred AFTER this date can be carried out.
    Please assist me regarding what steps need to be followed for resolution.
    Regards,
    Prasun Podder

    Hi Akshay,
    Thanks a lot. This is a good option. But in this situation, I will not be able to able to use the program RPUTRBK0 as the 'Earliest RA Date' should be prior to the 'Earliest Masterdata Change Date' which is different for different Pnr. No.
    So, I am actually thinking of putting the Earliest RA Date as the Date of Joining of the employee and for this have to run the LSMW.
    Any suggestion from your side is appreciated.
    Thanks & Regards,
    Prasun Podder

  • JPA: trouble removing a 1:M cascade ALL relationship from entity

    I have an entity A, with a OneToMany relationship to entity B, and cascade set to ALL.  Entity B has a ManyToOne relationship to A.  In my scenario I create a new instance of B to a detached instance of A, and I add it to the 1:M of A and set the M:1 on B.
    Then I'd like to merge the changes on A using EntityManager.merge(A).  However, before I do that I need to remove a different (old) instance of B from A, and then merge my changes so that my new instance of B is persisted.
    I've tried a couple different scenarios and get different results (none favorable):
    1.  First lookup the instance of B I want to remove via EntityManager.find(id), and then call EM.remove(B).  And then I call EM.merge(A) on the instance of A with my new B.  I get the following IllegalArgumentException during the merge:
    java.lang.IllegalArgumentException: Cannot fulfill merge operation: Relationship >>outputElementInstances<< of the target entity {com.sap.eventus.wire.entity.EvtWireInstance(id=85e83543-45d1-49cd-bb90-8688699ca0d4)} has been modified
    The relationship it's talking about is actually a different (but related) one that was affected when the old instance of B was removed.  It seems reasonable that JPA has determined that my instance of A with the new B is no longer in sync with the database and is complaining that a relationship has been changed.
    Any ways around that?
    2. I also tried simply removing B from A's 1:M, and setting B's M:1 to null, and then merging in hopes that would trigger a delete on the old B.  However the old B is not removed.
    I was expecting this to trigger a delete, however, I realize that there are other relationships from B to other objects (such as a 1:M cascade ALL) that I did not remove which I suspect might cause JPA to not delete the old B.  Is this true?
    3. And finally I tried 1 & 2 together, first calling EM.remove(old B), and then removing the old B from A and then merging, which yields the following IllegalStateException:
    java.lang.IllegalStateException: Relationship >>wireInstance<< of entity {com.sap.eventus.wire.entity.EvtElementInstance(id=08ca6253-1385-45dd-9173-978ee298b55f)} contains the new entity {com.sap.eventus.wire.entity.EvtWireInstance(id=c9fbd4e7-5575-4cc9-9b7d-2a8549c43574)}
    Which is another different (but related) relationship off of object B.
    Basically, after all this, my question is: what is the correct way to remove a 1:M relationship and add a new one?  Simple enough, however I do not want to remove the old 1:M, re-query to get the new updated parent object and then add the new 1:M, as it's a fairly involved in creating and adding the new 1:M and it must be done BEFORE removing the old 1:M.
    Thanks!

    Hi Derek,
    I understand your task as follows:
    You are having three entities A, B_old and B_new. Within one transaction you want to do the following:
    - remove B_old from the database
    - remove B_old from the 1:n relationship A.bs
    - persist the B_new
    - add B_new to the 1:n relationship A.bs
    - set the n:1 relationship B_new.a to refer to A
    well, I suggest that you do this without a merge:
    - em.remove(B_old)  // you have to do this explicitly as JPA 1 does not have automatic orphan removal
    - A.bs.remove(B_old)
    - em.persist(B_new) // also, you have to make sure that the entities related to B_new are managed upon commit
    - A.bs.add(B_new)
    - B_new.a = A
    I hope this works.
    Regarding your observations:
    1. The error message is not self-explaining. We have got to improve it ;-).
    2. You have to remove the B_old explicitly as JPA 1 does not have automatic orphan removal. 
    3. This message should be self-explaining. Maybe there is one of the relationships EvtOutputElementInstance.wireInstance or EvtInputElementInstance.wireInstance still referring B_new. You'll surely find out.
    Regards,
    Adrian

  • Deleting relationship/transaction

    hi experts
    I need one clarification, in production system i had created one new relation called for ex:- SDN contact person and maintained this relationship to some organization after some months if i delete this relationship from production system what will be impact on existing org's which had this relationship
    and in the same way i had created one Business transaction called ex:- sample order and then i  create orders making use of this transaction then after some months if i delete this from production system then what would be impact on existing orders
    i know that generally we will make it inactive rather than deleting,but i want to know what will be the consequences we will face if we delete and existing relationship/transaction from system
    Please share your knowledge if any one have encountered such a scenario
    Regards
    Vinay

    Hi venkat
    i know that it will cause data inconsistency but for knowledge sake i want to know what will happen if we delete that particular relationship/transaction code for example can i view the order which had been created by making use deleted transaction code
    It is just for knowledge i know that it is not a good practice
    regards
    vinay

  • Deleting records from ztable??

    hi there....
    i have arequirement to delete records from a ztable using coding .....
    i hav tried the delete command but its not working properly.
    can anyone suggest a proper method for this....
    urgent requirement.... useful ans wil be rewarded.
    regards'

    DELETE { {FROM target [WHERE sql_cond]}
           | {target FROM source} }.
    PARAMETERS p_carrid TYPE sflight-carrid.
    DELETE FROM sflight
    WHERE  carrid = p_carrid AND
           fldate = sy-datum AND
           seatsocc = 0.
    PARAMETERS p_carrid TYPE sflight-carrid.
    TYPES: BEGIN OF sflight_key,
             mandt  TYPE sflight-mandt,
             carrid TYPE sflight-carrid,
             connid TYPE sflight-connid,
             fldate TYPE sflight-fldate,
          END OF sflight_key.
    DATA sflight_key_tab TYPE TABLE OF sflight_key.
    SELECT carrid connid fldate
           FROM sflight
           INTO CORRESPONDING FIELDS OF TABLE sflight_key_tab
           WHERE carrid = p_carrid AND
                 fldate = sy-datum AND
                 seatsocc = 0.
    DELETE sflight FROM TABLE sflight_key_tab.

Maybe you are looking for