Zero value key to a referenced table

I have inherited an application and I have upgraded to Oracle Toplink 11g.(not EclipseLink).
I'm getting a problem with updating rows which contain references to other tables which have a zero value for a remote primary key of type int.
I have now created a simplified version of this starting from scratch with just two tables and two classes. (Party and Address)
Both tables have primary keys of type int.
I use the project workbench to map the DB to the classes.
The mappings are simple (direct value mappings for the most part).
With one one-to-many reference. (A Party has an Address, but the same Address can be referenced by many Party).
From the workbench I export the Java source.
I have written some simple tests.
I can create records with values of primary key equal or greater than zero for both tables.
I can associate many rows to one row in the one-to-many mapping.
But, one thing doesn't work.
I'm trying in this case to create a Party record, referencing an existing Address.
If I have a reference from the Party table to the Address table with an address id equal to zero I get an exception on the UnitOfWork.commit, like this:
Exception [TOPLINK-4002] (Oracle TopLink - 11g Release 1 (11.1.1.6.0) (Build 111018)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-00001: unique constraint (PARTIES.ADR_PK) violated
Error Code: 1
Call: INSERT INTO PTY_ADDRESS (ADR_ID, ADR_STREET, ADR_COUNTRY, ADR_NAME, ADR_CITY) VALUES (?, ?, ?, ?, ?)
  bind => [0, street, country, venue, city]
Any other value than zero works fine.
I can supply more detail if it will help, but let me leave it simple for the moment.
Perhaps this is a known problem?
Any ideas?
John D.

Hi anbu,
Are yo referring to the Developer key (stored in the DEVACCESS table) if this is the case, then you can prevent the user to access anything in the DEV environment,whether it is a table or program etc.
But if you are speaking about the Access key we get when changing the SAP Std obj, then you need to get the marketplace,
Hope I am close to what you needed.
Thanks
Srikanth.P

Similar Messages

  • Ms sql - {"The referenced table must have a primary or candidate key. [ FK Name = ForeignKeyB_Details ]"}

    I have a txt file which has all the sqltext in it separated by semi colon .Then I try to run a query one by one like this-
                var conn = new SqlCeConnection(ConnectionString);
                conn.Open();
                var cmdArray = Regex.Split(sqlText, ";");
                var cmd = new SqlCeCommand(null, conn);
                foreach (var text in cmdArray)
                    cmd.CommandText = text;
                    if (!text.Equals(string.Empty))
                        cmd.ExecuteNonQuery();
                    else
                        break;
                conn.Close();
    I get the error {"The referenced table must have a primary or candidate key. [ FK Name = ForeignKeyB_Details  ]"}
    here is part of my txt file-
    CREATE TABLE A
           PrimaryId nvarchar(10) NOT NULL REFERENCES C(PrimaryId),
           UserId nvarchar(20) NOT NULL,
           FirstName nvarchar(30) NOT NULL,
           MiddleInitial nvarchar(1) NULL,
           LastName nvarchar(30) NOT NULL,
           MobileNumber nvarchar(20) NULL,
           PhoneNumber nvarchar(10) NOT NULL,
           PhoneExtension nvarchar(6) NULL,
           FaxNumber nvarchar(20) NULL,
           EmailAddress nvarchar(50) NOT NULL,
      CONSTRAINT PrimaryKeyA PRIMARY KEY(PrimaryId, UserId)
    CREATE TABLE B(
       MarketId int NOT NULL references E(MarketId),
       UserId nvarchar(20) NOT NULL,
       UserFirstName nvarchar(30) NOT NULL,
       UserMiddleInitial nvarchar(1) NOT NULL,
       UserLastName nvarchar(30) NOT NULL,
       PhoneNbr nvarchar(10) NOT NULL,
       Extension nvarchar(6) NOT NULL,
       FaxNbr nvarchar(20) NOT NULL,
       Email nvarchar(50) NOT NULL,
       ShortName nvarchar(10) NOT NULL,
    PublicIdFlag nvarchar(6) NOT NULL references D(publicId),
            CONSTRAINT PrimaryKeyB PRIMARY KEY( MarketId, UserId)
    ALTER TABLE B ADD CONSTRAINT ForeignKeyB_Details FOREIGN KEY(UserId, UserFirstName, UserMiddleInitial, UserLastName, PhoneNbr, Extension, FaxNbr, Email) REFERENCES A(UserId, FirstName, MiddleInitial, LastName, PhoneNumber, PhoneExtension, FaxNumber, EmailAddress);

    Hi,
    Foreign key columns are frequently used in join criteria when the data from related tables is combined in queries by matching the column or columns in the FOREIGN KEY constraint of one table with the primary or unique key column or columns in the other table.
    For more information about the foreign key constraint, please refer to this link:
    http://msdn.microsoft.com/en-us/library/ms175464.aspx
    Here is a similar thread for your reference:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/5a71948b-dfb1-46a5-8688-ccab9317e959/error-message-the-referenced-table-must-have-a-primary-or-candidate-key-fk-name-fktblatblb-?forum=sqlce
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Report export webi to excel with zero values in tables

    All,
    I export a report from Business Objects Infoview and it doesn’t allow for showing data elements of graphs or data tables that correspond to zero value data.
    When I export my report the months with no data drop from the graphs and tables.  I would like the exported version of the report to show zero's in the table and no graph.  My report shows the previous 3 months so if there was no data for Feb and I ran the reprot today it would only show 2 graphs and not 3.
    Any assitance with this issue?
    Thanks,
    John

    Hi,
    There are options for the "save as excel" step .   either a) for formatting ,   or b) for data
    these should help.
    The reason why there are 'undesirable'  rows (also, merged rows / columns) is because your report document has table outlines which have been positioned 'by eye'.
    When the rendering algorythm outputs it content,  it's looking at pixel-level , so the relative position of borders can get messed-up. It's mainly due to slightly sloppy formatting.
    Regards,
    H

  • It is possible to assign value range to non key fields in the table?

    Hi,
    I want to give some range of values to the fields which are non key fields in the table.
    is it possible?
    can anybody tell me the procedure.
    Thanks in Advance,
    venkat

    HI,
    It is higjly possible in case of Z-table. but in standard table you can't make any modification.
    You assign the value range to the domain of field.
    go to SE11 and open the database table.
    Select the Data Element of the fieldto which  you want assign the range.
    Click on its domain .
    click on Value Range tab.
    Set the range.
    Regards,
    anirban

  • How to update zero to a column value when record does not exist in table but should display the column value when it exists in table?

    Hello Everyone,
    How to update zero to a column value when record does not exist in table  but should display the column value when it exists in table
    Regards
    Regards Gautam S

    As per my understanding...
    You Would like to see this 
    Code:
    SELECT COALESCE(Salary,0) from Employee;
    Regards
    Shivaprasad S
    Please mark as answer if helpful
    Shiv

  • Multiprovider displays zero value for Key figure

    HI,
    Multiprovider contains 3 cubes, in which one keyfigure (YDAYS) presents in two cubes and assigned to multiprovider from two cubes. But iam getting zero value in the multiprovider level. But in the cube level getting the data. This problem iam getting in testing system.
    When i compated Develoment system and Testing system everything is correct, mapping, assignment .
    Any ideas what might be the problem
    Thanks / Venkata

    Check the report to see if it has any filters that is available in only one of the infoproviders. if thats the case then move the filter and make it restricted.
    Use RSRT to see which infoproviders are being hit when you execute the query. Look in detail. I had the same problem once and careful investigation revealed a filter that was at the report level instead of kf restriction level.

  • Non zero values in the extraction of the planning area

    In our DP implementation we have been trying to extract 2 key figures  from the planning area, one of the key figures might have zero values, when we set the indicator for the non zero values then it only eliminates the records for which both the key figure are zero but that is not what I want. I am trying to have a setting in the data source where we can reject the records even if one of the key figure has zero values.
    Are there any settings for that while we are generating the data source.
    Thanks in advance

    Hi Colin,
    This can be easily solved using a slightly different ABAP routine. You can assign the fields that you need to check into other field symbols and then check the value of those field symbols.
    Here's one possible solution. I based in from the ABAP code you posted.
    field-symbols: <LS_EXTR_BLOCK> TYPE any,
                         <ls_fcst> type any,
                         <ls_hist> type any.
    data: w_pos type sy-tabix.
    loop at ct_data assigning <LS_EXTR_BLOCK>.
    w_pos = sy-tabix.
    assign component '/BI0/9AVCORFCST'
       of STRUCTURE <LS_EXTR_BLOCK> to <ls_fcst>.
    assign component '/BI0/9AVCORHIST'
       of STRUCTURE <LS_EXTR_BLOCK> to <ls_hist>.
    if <ls_fcst> = 0 and <ls_hist> = 0.
      delete ct_data index w_pos.
    endif.
    endloop.
    Aside from the solution above, you can also define the structure of CT_DATA (that's basically the structure of the extract structure of your datasource). You can then assign the contents of CT_DATA to a field-symbol and the delete data using that field symbol.
    Here's an example:
    TYPES:
    TY_DATA_TABLE type table of *PUT THE NAME OF YOUR EXTRACT STRUCTURE HERE*.
    field-symbols:
    <FS_DATA_TABLE> type TY_DATA_TABLE.
    DELETE <FS_DATA_TABLE> WHERE /bi0/9avcorfcst = 0
    and /bi0/9avcorhist = 0.
    You can check the name of the extract structure by viewing table /SAPAPO/TSAREAEX field EXPORT_STRU. You can also see the name of the extract structure in debug mode by looking at the value of the parameter IV_DDIC_REFERENCE.
    Hope this helps

  • Query output help: Display self-referencing table

    Hello,
    I'm trying to display in a cfoutput a self-referencing table.
    I'll start by showing some of the data in the table.
    There are only 3 columns, pl_id (auto increment id pri-key),
    pl_name and pl_parent_id (it's 0 if it's a parent, otherwise it's
    the pl_id value for the parent).
    pl_id pl_name pl_parent_id
    1 Country 0
    2 Food 0
    3 US 1
    4 Japan 1
    5 Hamburger 2
    6 Idaho 3
    7 Florida 3
    8 Cheese 2
    What I'm trying to output is something like this:
    Country - US - Idaho (3 levels here) or
    Country - US - Florida (or if there are only 2 levels like
    the next line)
    Food - Cheese
    I've tried using a cfoutput with a cfloop as well as grouping
    but not having any luck. Could someone clear my clouded head on
    this one?
    thanks much,
    Joe
    ps. Adobe should really use a fixed width font for these
    forums, it's impossible to line up table info!

    JoeNH2k wrote:
    > It would be nice if it were that easy, I (of course)
    tried that. The sort order
    > of the query doesn't matter. The data is not sorted once
    the function runs. The
    > sort has to come after the select box is populated by
    the function. I need to
    > get the data at this point and sort it, probably somehow
    creating a structure
    > or array from this data and sorting that(?).
    >
    <cfset myArr = ArrayNew(1)>
    <cfloop query="qryGetAll">
    <cfset temp = ArrayAppend(myArr,
    "#getNameWithParent(pl_id)#")>
    </cfloop>
    <cfset ArraySort(myArr, "textnocase", "asc")>
    <cfset myList = ArrayToList(myArr, ",")>
    then loop through myList to populate your <select>...
    how about that?
    Azadi Saryev
    Sabai-dee.com
    Vientiane, Laos
    http://www.sabai-dee.com

  • Self referencing table and contraint

    Hi,
    I have a self referencing table, used to store information on projects in an organization. There is a pimary key (modifier) and a foreign key to the modifier field (parentModifier)
    Note: (modifier = project in the organization)
    Basically, the parentModifier cannot be equal to the modifier in the same table, or equal to any of its children, otehrwise you get wierd recursive relationships. Its like saying you cannot be your own father, or one of your children cannot be your father. To get a list of the modifiers the parentModifier cannot be, the following statement can be used:
    select
    modifier
    from
    modifier
    where
    modifier = 'A'
    and
    level >= 1
    connect by prior
    modifier = parentModifier
    start with
    modifier = 'A'
    order by
    level;
    So, now, I guess the way to do this is perform that query in a trigger before each row is being updated, so the pseudo code would be something like:
    BEFORE UPDATE ON modifier
    FOR EACH ROW
    DECLARE
    modifierToChange varchar2(255);
    modifierList ???;
    BEGIN
    select
    modifier
    into
    modifierList
    from
    modifier
    where
    modifier = 'A'
    and
    level >= 1
    connect by prior
    modifier = parentModifier
    start with
    modifier = 'A'
    order by
    level;
    if modifierToChange in modifierList
    return error
    else
    execute query
    end if
    END
    As you can see my PL/SQL is limitied. At the moment I can handle this at the application layer (in php), but if the admin going to SQL Plus and starts to fiddle, they can easy break the system, by setting an invalid relationship.
    I was wondeirng, if anyone could give me some help or advice, it would be fantastic,
    Thanks!

    Having a unique key on mod_id would be enough to make sure the same element is not in the structure more than once. By allowing it to happed you will have all the descendants of the dup element following it when you walk the tree.
    Let's say this is the intended behavior.
    Consider the following test scenario:
    create table modifier (
      mod_id varchar2(10),
      parent_mod_id varchar2(10)
    insert into modifier (mod_id, parent_mod_id) values ('a', null);
    insert into modifier (mod_id, parent_mod_id) values ('aa', 'a');
    insert into modifier (mod_id, parent_mod_id) values ('ab', 'a');
    insert into modifier (mod_id, parent_mod_id) values ('ac', 'a');
    insert into modifier (mod_id, parent_mod_id) values ('aaa', 'aa');
    insert into modifier (mod_id, parent_mod_id) values ('aab', 'aa');
    insert into modifier (mod_id, parent_mod_id) values ('aac', 'aa');
    insert into modifier (mod_id, parent_mod_id) values ('aba', 'ab');
    insert into modifier (mod_id, parent_mod_id) values ('abb', 'ab');
    insert into modifier (mod_id, parent_mod_id) values ('abc', 'ab');
    insert into modifier (mod_id, parent_mod_id) values ('aca', 'ac');
    insert into modifier (mod_id, parent_mod_id) values ('acb', 'ac');
    insert into modifier (mod_id, parent_mod_id) values ('acc', 'ac');
    insert into modifier (mod_id, parent_mod_id) values ('b', null);
    insert into modifier (mod_id, parent_mod_id) values ('ba', 'b');
    insert into modifier (mod_id, parent_mod_id) values ('bb', 'b');
    insert into modifier (mod_id, parent_mod_id) values ('bc', 'b');
    insert into modifier (mod_id, parent_mod_id) values ('baa', 'ba');
    insert into modifier (mod_id, parent_mod_id) values ('bab', 'ba');
    insert into modifier (mod_id, parent_mod_id) values ('bac', 'ba');
    insert into modifier (mod_id, parent_mod_id) values ('bba', 'bb');
    insert into modifier (mod_id, parent_mod_id) values ('bbb', 'bb');
    insert into modifier (mod_id, parent_mod_id) values ('bbc', 'bb');
    insert into modifier (mod_id, parent_mod_id) values ('bca', 'bc');
    insert into modifier (mod_id, parent_mod_id) values ('bcb', 'bc');
    insert into modifier (mod_id, parent_mod_id) values ('bcc', 'bc');
    commit;
    SQL> select lpad(' ', 2 * (level - 1)) || mod_id item
      2    from modifier
      3   start with parent_mod_id is null
      4  connect by prior mod_id = parent_mod_id;
    ITEM
    a
      aa
        aaa
        aab
        aac
      ab
        aba
        abb
        abc
      ac
        aca
        acb
        acc
    b
      ba
        baa
        bab
        bac
      bb
        bba
        bbb
        bbc
      bc
        bca
        bcb
        bcc
    26 rows selected
    Create a function to verify if a mod_id already is parent_mod_id's ascendant or descendant:
    create or replace function exists_in_parents_branch
      i_mod_id in varchar2
    ,i_parent_mod_id in varchar2
    ) return boolean is
      pragma autonomous_transaction;
      v_dummy varchar2(10);
    begin
      select mod_id
        into v_dummy
        from (select mod_id
                from modifier
               where mod_id = i_mod_id
              connect by prior mod_id = parent_mod_id
               start with mod_id = i_parent_mod_id
              union
              select mod_id
                from modifier
               where mod_id = i_mod_id
              connect by prior parent_mod_id = mod_id
               start with mod_id = i_parent_mod_id);
      return true;
    exception
      when no_data_found then
        return false;
    end exists_in_parents_branch;
    Create a trigger that calls the function above for every insert and update
    create or replace trigger biu_modifier
    before insert or update on modifier
    for each row
    begin
      if exists_in_parents_branch(:new.mod_id, :new.parent_mod_id) then
        raise_application_error(-20000, 'Cannot insert or update because of recursive relationship.');
      end if;
    end biu_modifier;
    You are all set.
    Here is a statement that should fail:
    SQL> insert into modifier (mod_id, parent_mod_id) values ('bcc', 'b');
    insert into modifier (mod_id, parent_mod_id) values ('bcc', 'b')
    ERROR at line 1:
    ORA-20000: Cannot insert or update because of recursive relationship.
    ORA-06512: at "RC.BIU_MODIFIER", line 3
    ORA-04088: error during execution of trigger 'RC.BIU_MODIFIER'
    Here is a statement that should succeed:
    SQL> insert into modifier (mod_id, parent_mod_id) values ('aaaa','aaa');
    1 row created.

  • Haulier Self Billing (ERS) produces zero value invoice on RSEG

    Hi,
    I've been looking at this problem for two days now without any joy.  I'm getting zero value invoices that I can find on RSEG.  I suspect that I have corrupt shipments and am trying to compare the corruption on RSEG to files VFKK \ VFKP where the self billing originates from.
    I cannot find how these tables are linked in order to trace the problem back.
    Does anyone know or has anyone else come accross this problem.
    Any help much appreciated
    Many thanks

    Hi,
    Go to, T. Code: VF02 --> Key-in your Invoice No. and click on the green flag (release to accounting), now the system will show the exact error.
    > When I did this, it says:
    An accounting document is not required for this billing document.
    Message Number: VF076.
    Diagnosis:
    The billing document has the net value 'zero' and does not create an accounting document.
    Despite this, the posting status 'C'(Posting document has been created) is set internally for this billing document.
    Alternatively, you may also check with:
    VF02 --> Invoice No. --> Enter --> Header (Menu-bar) --> Environment --> Account Determination Analysis --> Revenue A/C determination
    > When I did this, it just shows as:
    Left Column: Procedure: KOFI00 and Description: Account Determination thatz all.
    Right side: Overview -
    Everything is blank.
    Please help me this................

  • Crosstap report should nullify the zero valued rows

    Hi Experts,
    I am developed a crosstab report using WEBI Rich Client, The report has few records which shows zeros for all corresponding collumns.
    I want to nullify or suppress those zero valued rows and show only those having values.
    How can we sort out this requirement.?  When i use the measure to filter "Not Equal to " , it shows all the table as "Unavailable"
    Regards,
    Suresh

    Hi Suresh,
    You are Working with BI Query Hope so....
    eg: you have three measure like Amount,Qty and cost.
    Take filter For every key figure make it as not equal to "0"
    then by default all the three condition will be having AND function by double clicking that it will change it too OR condition
    Now result you are expecting will come ...
    Try this and check......

  • SharePoint List Form using InfoPath 2010 "Cannot insert the value NULL into column 'tp_DocId', table 'Content_SP_00003.dbo.AllUserData'; column does not allow nulls"

    I am experiencing issue with my SharePoint site , when I am trying to add new Item in List . Error given below :--> 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 SharePoint Server Logging Correlation Data 9gc5 Verbose Thread change; resetting trace
    level override to 0; resetting correlation to e2e9cddc-cf35-4bf8-b4f3-021dc91642da c66c2c17-faaf-4ff9-a414-303aa4b4726b e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 Document Management Server Document Management 52od
    Medium MetadataNavigationContext Page_InitComplete: No XsltListViewWebPart was found on this page[/sites/00003/Lists/PM%20Project%20Status/NewForm.aspx?RootFolder=&IsDlg=1]. Hiding key filters and downgrading tree functionality to legacy ListViewWebPart(v3)
    level for this list. e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.17 w3wp.exe (0x1B94) 0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Starting correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.17 w3wp.exe (0x1B94)
    0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Ending correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.31 w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High System.Data.SqlClient.SqlException: Cannot insert
    the value NULL into column 'tp_DocId', table 'Content_SP_00003.dbo.AllUserData'; column does not allow nulls. INSERT fails. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at
    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
    stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavi... e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015
    08:23:36.31* w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High ...or runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream,
    Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,
    RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand
    command, CommandBehavior behavior,

    Are you trying to setup P2P? Could you explain the process you followed completely? By anychance you create the backup and then created the publication?
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Zero values not taken into account during retraction

    Hello,
    we are having an issue with data retraction.
    When we reset a value to zero, the change in the value is not taken into account and the corresponding value in R/3 remains unchanged.
    There are some posts that say that the function modules UPR_COST_PLAN_EXEC and UPR_COST_PLAN_INIT should be modified in order to populate <xth_data> with zero values, but debug mode shows that the data are read before calling these functions, and the zero values are
    already ignored at this stage.
    Could anyone help me, please?
    Thank you in advance!

    Here is the second method  -
    Regarding your issue:
    Retraction is based on the records of the SEM buffer. Zero records are
    in general filtered in the buffer, so that they cannot be considered forplanning functions that execute the retraction. I regret but this is
    the normal system behaviour in the standard. As workaround, please use adummy key figure that is set to a value <> 0.
    The only way is a work around. If you fill a dummy key figure with an
    arbitrary value, the frame work recognizes this as not 0, even if the
    proper key figure is 0. In that case the 0 retraction would work. So if
    not existing, create an additional dummy key figure to the cube and workon as described.
    For all the of retractions (CO-OM, IM, PS) BPS planning functions are
    used and they run in the general BPS framework. This framework is
    designed to explicitly not process zero records because of performance
    reasons.
    If zero records would be processed, planning functions would run longer
    but they can't deal with those records anyway. Therefore the developmentdecided on the current design, to delete all zero records first, before
    processing them with a planning function. This decision has been
    discussed several times before and it not likely to be changed.
    Regarding SAP note you can check the work aroud I explained can be foundin the oss note 768822 SEM-BPS: Retraction of WBS element w/ Pushback.
    I hope this explains the reason.
    Please kindly confirm the message if your issue is answered.
    Thanks for your support and cooperation.

  • Date Range  - Delete ZERO Values

    Hi All,
         Few days back I had posted Query  Regarding  Date range  where in I enter Proj# from_month, from_year, To_month and To_year.
    The output data for the project must be within this year range.
    suppose I enter proj no. 13381 and
    from_month - 05
    from_year - 2004
    To_month - 04
    from_year - 2005
    This is the Desired Output:
    yearmonth                            plan14
    200406 -
    13381 -
    100
    200407 -
    13381 -
    100
    200409 -
    13381 -
    678
    Right Now the Output what Iam getting is:
    yearmonth                            plan14
    200405 -
    13381 -
    0
    200406 -
    13381 -
    100
    200407 -
    13381 -
    100
    200408 -
    13381 -
    0
    200409 -
    13381 -
    678
    I  Just  want the NON ZERO  PLan14 values.  The PLan14 values  with '0'  should  be deleted .
    Below  is the Jist of the code.
    RANGES: S_GJAHR FOR COSP-GJAHR,
            R_YEAR  FOR COSP-GJAHR,
            R_DATE  FOR PROJ-ERDAT,
            R_MONTH FOR CKML1-POPER,
            S_OBJNR FOR COSP-OBJNR,
            S_KSTAR FOR COSP-KSTAR.
    DATA: MNT_INDX(20)     TYPE C,
          HLD_INDX(3)      TYPE N.
    DATA:  W_MTH(2) TYPE N,
           W_DATE  LIKE PROJ-ERDAT.
    DATA: BEGIN OF ITAB_OUT_TYPE,
            PERIOD(10)       TYPE C,
            PROJDEF(20)          TYPE C,
            PROJ_TITLE(20)        TYPE C,
            STATUS(20)            TYPE C,
            PROJECT_TYPE(20)      TYPE C,
            START_DATE(20)        TYPE C,
            FINISH_DATE(20)      TYPE C,
            CONTRACT(20)          TYPE C,
            CLIENT(20)            TYPE C,
            PLAN14(25)       TYPE  C,
            END OF ITAB_OUT_TYPE.
    DATA ITAB_OUT LIKE ITAB_OUT_TYPE OCCURS 10 WITH HEADER LINE.
    FIELD-SYMBOLS <FS>.
    PARAMETERS FR_MONTH(2) TYPE N OBLIGATORY.
    PARAMETERS FR_YEAR(4) TYPE N OBLIGATORY.
    PARAMETERS TO_MONTH(2) TYPE N .
    PARAMETERS TO_YEAR(4) TYPE N .
    DATA: W_TXT(20)     TYPE C.
      R_YEAR-LOW = FR_YEAR.
      R_YEAR-HIGH = TO_YEAR .
      R_YEAR-OPTION = 'BT'.
      R_YEAR-SIGN = 'I'.
    APPEND R_YEAR.
    concatenate FR_YEAR FR_MONTH  INTO R_DATE-LOW .
      concatenate TO_YEAR TO_MONTH  INTO R_DATE-HIGH.
      R_DATE-OPTION = 'BT'.
      R_DATE-SIGN = 'I'.
      APPEND R_DATE.
    SELECT * FROM COSP
                 WHERE OBJNR = PRPS-OBJNR    AND
                  GJAHR IN R_YEAR     AND
         KSTAR BETWEEN '0000400996'    AND '0000400999' AND
          VERSN = '014'                               AND
          WRTTP = '01' .
          DO 12 TIMES.
            W_MTH = SY-INDEX.
            CONCATENATE COSP-GJAHR W_MTH  INTO W_DATE.
            CHECK W_DATE IN R_DATE.
            PERFORM CONVERT-DATE1 USING W_DATE.
            MOVE HOLDDATE1  TO ITAB_OUT-PERIOD.
            HLD_INDX = SY-INDEX.
            CONCATENATE 'COSP-WKG' HLD_INDX INTO W_TXT.
           ASSIGN (W_TXT) TO <FS>.
        CLEAR ITAB_OUT-PLAN14.
        ITAB_OUT-PLAN14 = ITAB_OUT-PLAN14 + <FS>.
    APPEND ITAB_OUT.
    enddo.
    ENDSELECT.
    I need  all positive values  of  the month  that are in the range.   The Zero values  must be deleted .  How  can i do that.  PLease  do let me  know.
    Thanks in advance
    Dan

    You can do this easily just by deleting all records in one shot.
    delete ITAB_OUT where plan14 = 0.
    You can put that statement after the SELECT...ENDSELECT.
    Or you can not even add them to the internal table at all.  You can check before you APPEND to the table.
    CLEAR ITAB_OUT-PLAN14.
    ITAB_OUT-PLAN14 = ITAB_OUT-PLAN14 + <FS>.
    <b>If itab_out-plan14 > 0.
    APPEND ITAB_OUT.
    endif.</b>
    enddo.
    ENDSELECT.
    Regards,
    Rich Heilman

  • Maintaining Remote key in look up tables for Production data

    Hi,
    me
    SEE in DEV and QA to maintain the Remote key for Look up tables.First i have exported those look up table values and again imported with mapping Remote keys (clone the field and map it to Remote key.). By this i have maintained the Remote keys to all look up tables. Now for Production what should i do. Is it the same process extract all records from production into our desktop and then again import it using IM, clone the field and map it to Remote key.
    1. Is this the right process?
    2. What happens if there are huge data present in production how to proceed furthr then?
    Required your suggestion please.
    Thanks,
    Pradeep

    HI Pradeep,
    I dont see any problem with this method if I am getting it right
    You are updating remote keys by reimporting lookup data, and this way you have multiple remote keys for data in lookup table,right?
    This will help you to automap entries in Import process for different Remote systems.
    I did not get your 2nd point?
    Thanks,
    Ravi

Maybe you are looking for

  • Manage SCUP published updates under WSUS and SCCM.

    After completion of SCUP environment, I published Adobe Flash player update successfully. Some where in blogs it was mentioned that published updates are under 'software library' but under SCCM2007 SP2 I am able to see 'software update' and there are

  • No progress of installation for windows 10 (10041)

    Is there any way to know the progress of installation. The message 'just a moment' is displayed for a long time and the internet connection is being used. The instllation is not progressing. What is the download requirement during installation from i

  • How to run powerpc apps on mac 10.8

    Hi i download and installed Rossta and it did not work but it did installed but how do i by pass the powerpc apps are no longer support of i need to install this software i can't upgrade the software or install osx in virtualbox itired that and it di

  • Measuring Sine wave deformation

    Hi Folks. I am trying to measure the signal deformation coming from a scope. Its a typical sine wave that distorts as the input increases (shown in the attachments). I was initially just going to subtract a known signal from the recieved signal to gi

  • Could not connect from SQLPLUS

    hi guys, i have a problem with my Oracle My Database 10g database is on AIX 5L, I can connect to this database from local and i can connect from others computer, but i have a problem when i want connect from one oh my server which is installed with O