ID for oft deleted data

I am created an ad site where people can upload an ad to stay
for two weeks before being automatically deleted. I first thought
of using auto increment to create the product Id, but I realize
that this would cause problems later when their record is deleted.
I need advise on the best way to create an appropriate
product ID in a scenario where the id field will constantly change
(updated). When a record it deleted it ID could be used again.
Thanks

I don't see what problems it would create. But, if you want
to use something else, how about making the field char(35) and
create uuids to get the values.

Similar Messages

  • Table for vendor deletion date

    Hi all,
    I want the table name that stores the vendor deletion date as per xk06 transaction. but not the LFA1 table as it just indicates deletion of vendor.
    thanks in advance,
    prash

    Deletion Date is being not caputered in any table.
    The only possible solution is that If you found deletion flag in any of the obove field then go into CDHDR any input Object as "KRED" and Object Value Vendor number and find the date. Take consideration of CHPOS table also.
    Regards,
    Rajesh koladiya

  • Log table for reservation deletion date and by

    Dear ABAP'ers
    Can anybody share where to find reservation deletion log include when, and by whom.
    I try to search it on CDHDR but it doesn't come up. I try to put reservation number in each "Change Doc Object", "Object Value", "Document Number" field, but it doesn't work.
    Any advice?
    Thank you
    Regards
    Hadi

    Hi,
    have u tries tcode SM12 for log entries, just specify the object name and shall get all the details...
    if still the issue is unsolved, pls let me know!!!!
    thanks
    ravi

  • Flag deletion date for customer

    Hello All,
    I have a requirement to get the flag deletion date for a customer on a sales organization level in a report, maintained in XD03/VD03 -
    Have written the below code.
    The problem with this is that the date is not fetched sometimes for a particular sales org.
    Could anybody suggest?
    Regards
    Varsha

    yes there is a field which stores the last date for a customer transaction
    Regards
    PS: Be clear in your question.

  • Whenever i try to download a rather large file i continue to get the "could not read source file" error. Tried new profile, uninstalling and looking for the compreg.dat file to delete nothing is working. Please help

    whenever i try to download a rather large file i continue to get the "could not read source file" error. Tried new profile, uninstalling and looking for the compreg.dat file to delete nothing is working. Please help

    Did you reinstall CS3 after CC?
    For that matter, doing an in-place upgrade on the OS is always a gamble with Adobe programs. Reinstalling all the versions you need, in order, would probably solve your problem.
    And you shouldn't need to save as IDML after opening the .inx in CC.

  • What's the exact trigger for when updating/inserting/deleting data from one DB to another DB which contains same info?

    Hi guys,
    I have created a copy of the AdventureWorks2012 DB called AdventureWorks2012_new on the same instance.
    I have created the following trigger below but my friend who is a DBA told me that this is not correct and I should be using the inserted table when creating this trigger. I would like AdventureWorks2012_new DB to be updating/inserting/deleting data from
    the same tables that have been updated/inserted/deleted in the AdventureWorks2012 DB. How exactly should I do this for all the tables in the whole database ? What I have written below is just for one of the tables, is there a quicker way to do it for all tables
    in this DB so that it performs the actions mentioned above, automatically ? Help would be greatly appreciated so I can understand how this works, thanks
    CREATE TRIGGER [HumanResources].[tr_HumanResources_AfterUpdate]
    ON [AdventureWorks2012].[HumanResources].[Department]
    AFTER UPDATE
    AS
    BEGIN
    SET NOCOUNT ON;
    UPDATE AdventureWorks2012_new.HumanResources.Department
    SET Name = t2.Name,
    GroupName = t2.GroupName,
    ModifiedDate = t2.ModifiedDate
    FROM AdventureWorks2012.HumanResources.Department AS t2
    INNER JOIN AdventureWorks2012_new.HumanResources.Department AS t1
    ON t2.DepartmentID = t1.DepartmentID
    END

    For insert it's easy:
    CREATE TRIGGER [HumanResources].[tr_HumanResources_AfterInsert]
    ON [AdventureWorks2012].[HumanResources].[Department]
    AFTER INSERT
    AS
    BEGIN
    SET NOCOUNT ON;
    Insert INTO AdventureWorks2012_new.HumanResources.Department
    (DepartmentID, Name, GroupName, ModifiedDate)
    SELECT DepartmentID, Name, GroupName, ModifiedDate
    FROM Inserted;
    END
    I didn't verify column names, so you may need to make sure to use correct column names for that table.
    Setting replication is a bit advanced topic although BOL is clear and you may start here
    http://technet.microsoft.com/en-us/library/ms151198.aspx
    If it will be complicated for you, you can ask extra questions in the MSDN Replication forum.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • I have 2 different iCloud accounts and would like to delete the account where I have purchased paid for extra iCloud data storage.  Can I transfer this additional storage over to my other account?

    I have 2 different iCloud accounts and would like to delete the account where I have paid for extra iCloud data storage.  Can I transfer the data storage over to my other account?  I am trying to get my iCloud and Apple account with same user name.

    You'll have to contact Apple about that.
    Their iCloud support page indicates you cannot merge or transfer iCloud accounts.
    What do you mean by, I am trying to get my iCloud and Apple account with same user name.

  • Customized delta data source for deleting data record in the source system.

    Hello Gurus,
           there is a customized delta data source,  how to implement delta function for deleting data record in the source system?
    I mean if there is record deleted in the source sytem, how to notify SAP BW system for this deleting change by this customized delta
    data source?
    Many thanks.

    Hi,
    when ever record deleted we need to write the code to insert the record in  Z table load this records into BW in a cube with similar structure.while loading into this cube multiply the Keyfigure by -1.
    add this cube in the Multi Provider.The union of the records in the orginal cube and the cube having deleted records will result in zero vale and will not be displayed in report .
    Regards,

  • I just sold my iPhone 4s after doing a reset and deleting data and settings. Is there anyway the buyer can see any of my old photos, texts, or data? I have confidential info for work and family photos and freaked out that they can be found somehow.

    I just sold my iPhone 4s after doing a reset and deleting data and settings. Is there anyway the buyer can see any of my old photos, texts, or data? I have confidential info for work and family photos and freaked out that they can be found somehow.

    No, but if the answer was yes it's a little late to start getting freaked out about it.

  • Table or FM for finding customer deleted date - Distribtn channel specific

    Hi All,
    I need your help in getting table name or any function module which will give the customer delete date.
    I can not use CDHDR table since it only gives the customer number.( Same customer can exist in different distribution channel and i want to know the specific date on which specific distribution channel customer is deleted).
    Note: Deleted date is not available in KNA1 or KNVV.
    Any pointers will be rewarded.
    Thank You.
    Regards,
    Sheeba

    Hi,
    Call FM CHANGEDOCUMENT_READ with parameters
    OBJECTCLASS = 'DEBI'  &
    OBJECTID    = <CUSTOMERID>.
    Output structure EDITPOS will have change document data of all
    customer related tables.
    Regards
    Vinod

  • Error  While  Deleting Data  From ODS

    Hi all,
    We are getting short dump while deleting data from a perticular ODS.
    Part of short dump is--
    trigger Location of Runtime Error
       Program                                 SAPLRSAC
       Include                                 LRSACU75
       Row                                     535
       Module type                             (FUNCTION)
       Module Name                             RSAR_TRANSTRUCTURE_ACTIVATE
    help is desperately required
    Regards
    Srini--

    try to activate InfoSource and later delete data.
    Check if all ODS related objects are consistent and active.
    also pls attached the whole dump for more clarity if this does not work.

  • PO creation for a deleted PR

    Hi all,
    1.How can u restrict the creation of PO for a deleted PR?
    I have made the two system messages  06 076 and 06 400 to 'E'.
    Still it is allowing me to create PO?.........
    2.I created  one  PO with PR,I deleted the reference PR from PO,still PR status is PO created only.I expect the PR status to be Not edited.
    No other POs exist also.
    Can anyone plz help.
    Thanks ,
    Tess

    Dear Tess,
    1. You should not be able to create a PO with reference to a deleted PR.
    2. You can implement a proper BAdi/Enhancement.
    Please check this sample program from other thread to find BADI and enhancement for a given transaction code. You just need to create a custom program in your system by cut and paste below codes.
    REPORT ZTEST.
    TABLES: TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA: FIELD1(30).
    DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS: P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA: WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.
    Alternatively, you can do the following:
    1. For what ever transaction u want the enhancement .. just check for the System-->status (menu) and find out the PROGRAM name....
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for "Call Customer-function " ... and u'll get some search results .. If u get results then u have enhancement in that tcode .....
    4. Then it actually calls a Function module .... copy the Function module name .... go to SE80 (object navigator) click on "Repository Information system" then Customer Enhancements .... Give the Function module name in the "Components" field and click Execute ....
    ull get a list of Enhancements related to that Componene....
    5. Choose which ever enhancement will suit ur business need ..
    6. Go to CMOD... create a project .... assign ur enhancement ... and then code ur logic.... activate ur enhancement in CMOD ....... Ur Buisness need will be solved...
    For a user exit......
    Finding whether there is any User Exit or not for tcode VA42
    1. For what ever transaction u want the user exit .. just check for the System-->status (menu) and find out the PROGRAM name.... ( The program name would be for our scenario "SAPMV45A" )
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for the word "USEREXIT" .... u ll find all the user exits in the search result .. and find ur's then ...
    Reward points if this is helpful.
    Regards,
    Naveen.

  • Can not Delete Data in SEM-BCS

    Dear Expert,
    I do the following steps :
    1. Created Consolidation groups in workbench ( I was not assigned it to anywhere)
    2. Save.
    3. Deleted Consol group above.
    4. WHen i tried to save, There are errors that said "The data model contains inconsistencies. These have to be cleaned up before you proceed." . And then i click button "Full Display" but the result said : "Data is Consistent. SYnchronzation not neccessary".
    How do i delete data in workbench? because i cannot delete master data that i created in workbench.
    Please advice.
    Thanks in advance.

    Hi,
    Actually, yes, you may delete master data in BW and then syncronize them with BCS.
    The name of the infoobject containing master data for cons group you may see in your data basis, on the tab strip showing roles assignment (swithing on the tech names).
    Execute RSA1 t-code. Find in infoobjects, the IO for cons groups, delete its master data.
    SE38 t-code, program name = UGMDSYNC. Choose the cons group IO; set source = your BW system name; set target = local. Execute syncronization.
    After that the data for cons group in BW and BCS will be equivalent.
    Best regards,
    Eugene

  • Open HUB ( SAP BW ) to SAP HANA through DB Connection data loading , Delete data from table option is not working Please help any one from this forum

    Issue:
    I have SAP BW system and SAP HANA System
    SAP BW to SAP HANA connecting through a DB Connection (named HANA)
    Whenever I created any Open Hub as Destination like DB Table with the help of DB Connection, table will be created at HANA Schema level ( L_F50800_D )
    Executed the Open Hub service without checking DELETING Data from table option
    Data loaded with 16 Records from BW to HANA same
    Second time again executed from BW to HANA now 32 records came ( it is going to append )
    Executed the Open Hub service with checking DELETING Data from table option
    Now am getting short Dump DBIF_RSQL_TABLE_KNOWN getting
    If checking in SAP BW system tio SAP BW system it is working fine ..
    will this option supports through DB Connection or not ?
    Please follow the attachemnet along with this discussion and help me to resolve how ?
    From
    Santhosh Kumar

    Hi Ramanjaneyulu ,
    First of all thanks for the reply ,
    Here the issue is At OH level ( Definition Level - DESTINATION TAB and FIELD DEFINITION )
    in that there is check box i have selected already that is what my issue even though selected also
    not performing the deletion from target level .
    SAP BW - to SAP HANA via DBC connection
    1. first time from BW suppose 16 records - Dtp Executed -loaded up to HANA - 16 same
    2. second time again executed from BW - now hana side appaended means 16+16 = 32
    3. so that i used to select the check box at OH level like Deleting data from table
    4. Now excuted the DTP it throws an Short Dump - DBIF_RSQL_TABLE_KNOWN
    Now please tell me how to resolve this ? will this option is applicable for HANA mean to say like , deleting data from table option ...
    Thanks
    Santhosh Kumar

  • Can't Delete Data in One Month in a calculated currency EPM 10 NW

    Good Morning,
    I have an issue with data in my system. We are having issues deleting data from our calculated currencies for the month of January. We load our data to LC and then run currency conversion to populate our USD, CAD, etc report currencies. We run a nightly compression on the data. We needed to adjust some numbers in LC and run currency conversion. When I ran the currency conversion the data in the calculated currencies did not update with the new LC balances. So I tried to delete the data in the calculated currencies and then re run currency conversion for the time period. But when I tried to run the Data Manager Package it did not clear the data. It gives a succeeded message but when you look at the Package Log it shows 0 records cleared. I then tried to upload zero's to the same data intersections and it did not work either. I got a success message but the data did not delete. I have had my BI guys check the back end lock tables and nothing is locked. We don't use work status so there are not any work status locks on that month of data. I don't think it is the Data Manager package becuase I can run the same DM package on any other time period and it works. If anyone has any ideas of things that could be causing this I would really appreciate it.

    I am attaching the FX Conversion Code to this message as well as attaching it. If you have any suggestions I would greatly appreciate it.
    Here is the BADI logic from the FX Conversion BADI
    method if_uj_custom_logic~execute.
      " this badi would be called from finance model as well finance_des model
      data: lt_acct_type_attr type zbpc_t_acct_type_attr,
            lt_pc_currency type zbpc_t_pc_curr.
      get_parameters( exporting it_param = it_param ).
      " category can only be a single base member
      if check_category( ) <> 'X'.
        insert_error_log( ).
        raise exception type cx_uj_custom_logic .
      endif.
      lt_acct_type_attr = get_account_attr( ).
      lt_pc_currency = get_pc_currency( ).
      read_rates_cube( ).
      " gv_app_id is initialized in the init method.
      case gv_app_id.
        when 'FINANCE'.
          process_fxconv_4_finance( exporting it_acct_type_attr = lt_acct_type_attr it_pc_currency = lt_pc_currency ).
          add_plug_4_finance( exporting it_pc_currency = lt_pc_currency  ).
        when 'FINANCE_DES'.
          process_fxconv_4_finance_des( exporting it_acct_type_attr = lt_acct_type_attr it_pc_currency = lt_pc_currency ).
    *      add_plug_4_finance_des( exporting it_pc_currency = lt_pc_currency ).
      endcase.
    *  write_2_cube( ).
    endmethod.

Maybe you are looking for

  • How can I sent a repeating email?

    Greetings all, I want to set up the Mac mini I use in my office at work to send out a reminder every Monday morning to my colleagues via a common email address. I want to remind them to check various things they should be checking at the start of eac

  • How to transfer playlist and music from my itouch to itunes?

    I have all the files in my computer and when i try to sync, nothing happens. Itunes does not update my playlist, my apps and my music. I can only restore what i purchased but i want to restore everything from my itouch. I do not want wish to manually

  • Removing "Unknown Album" from Cover Flow

    Is it possible to remove any albums that don't have names (but are named "Unknown Album" on the iPod) from Cover Flow, but still keep those songs on your iPod? The "Unknown Album" art clutters Cover Flow...I don't mind it in Now Playing but in Cover

  • Document iPhone Settings???

    Hello, I did several searches but did not seem to find anything that answers my question below.  Which was actually a bit of a surprise. . . Is there a way, an app, whatever, that will allow me to document all of my current iPhone 4s settings as set

  • Best tool for on-scree, live annotations?

    I'd like to be able to annotate presentations as I'm giving them. I downloaded OmniDazzle with this in mind. However, there two main problems with it. First, there's no way to toggle to different tools (i.e. from cutout to flashlight) without stoppin