Desicion table with duplicates entries BRFPlus

Hi,
I'm Trying in BRFPlus to make an expresion which could returns me as a
result a table.
I've choosen a Desicion table to determine this.
Example:
For one parameter I need the expresion to returns me a table.
So I created several lines with the same values in input parameters but
diferent values in output parameters.
And when I Start a Simulation the expresion returns me only one line.
Does anybody know which could be the problem?
Thanks, Diego

Hi Carsten when I try to change the attributes (optional for processing or mandatory in column) in the input parameters a dump is raised. Do you know which could be the problem ?

Similar Messages

  • How Can I Export A Table With Its Entries ( values )

    Hi guys,
    How can i export a table with the entries that the table is populated with ??!!
    Best Regards,
    Fateh

    To export a table and its data you can do it a number of ways.. Do you have access to SQL Developer? If not you can do it through the APEX SQL Workshop..
    Under SQL Workshop, Utilities, Data Unload, To text (or XML, whichever you are more comfortable with..).. Select your schema, click next button, select the table, click next, select the columns you want exported (select ALL ITEMS in the select List), click next, on optionally enclosed by I usually enter a " (Sometimes I have long strings in columns), click the include column names checkbox to get the column names at the top of the document, click unload data button..
    To get the ddl (code to build table) Sql Workshop, utilities, generate ddl, create script, select schema, select next, click table checkbox, select next, click the checkbox of table you want to get ddl for...
    Thank you,
    Tony Miller
    Webster, TX
    There are two kinds of pedestrians -- the quick and the dead.
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Update db table for duplicate entries.

    Hi,
    If i want to update a ztable
    i have 3 to 5 different ways.
    1.   UPDATE ztab FROM workarea.
    2.   UPDATE ztable SET field1 = wa-f1 field2  = wa-f2
                   WHERE keyf1 = wa-kf1
                   AND   keyf2 = wa-kf2.
    3.  UPDATE ztable FROM TABLE itab.
    4.  MODIFY ztable FROM TABLE itable  or from  wa.
    but if i want to update some 2 to 3 fields
    by checking with the fields in db table with values in flat file
    and when i check the dbtable values with flat file and i find the entries in dbtable are multiple because i am not putting all key fields in where condition
    because i know only some of them .
    so duplicate entries are available and i wanted to update the same values to all those duplicate records .
    then how should i update them.
    i don't want to use update between
    select and end-select because the records that i am updating are many.
    i will store records into itab and then i will compare with values i file
    and for all records i want to update the two or three fields with the values  in flat file.
    help me.

    Hi Ashish,
    Thanks for your help.
    If i do this way always it satisfies the first record of the multiple records that are satisfied when we put where condition with some of the key fields.
    then always it might update the same record.
    I stead i can loop through the itab having the DB table and read the file.
    Anyways thanks for the help.
    and i am waiting for the correct file, once i get it, then i will try this and update points.
    Thanks,
    Neetu.

  • Problem with duplicate entries in a structure.

    Hi,
    I am creating a custom structure by including 2 structures in it as DRSEG and COBL_MRM_D.
    Now both the structures have many common fields and hence it gives an error on check.
    Is there any workaround to create the structure in DDIC by including both the above structures.
    Pls help with your ideas.
    Thanks,
    stock.

    Hi
    Create a DDIC structure which has all the common fields. Include this structure only once .
    Then include the fields which are not common from both the structure into the created structure . so that no duplicates entries are present
    OR
    Include the first structure then dont include the second structure include only the fields which are not common to both . this also eliminates the duplicates

  • Loading a flat table with duplicate rows in SQL server

    Hi,
    I'm trying to load a flat table with different levels that has duplicate rows. When I'm loading it from my source SQL server enviornment to target SQL server environment.. I can only load 63 rows out of the 1225 rows.. This is happenning because i had to define a primary key on the couple of columns..
    When I just try to load it without a primary key, I get an error that PK needs to be defined for load to happen..
    My table structure looks as follows -
    Lvl1 Lvl2 Lvl3 Lvl4 AccountID AccountDesc
    How do i load all rows of data in my target table using ODI?\
    Please help

    whirlpool wrote:
    Hi,
    I'm trying to load a flat table What is a flat table ? Are you talking about FACT table ?
    When I'm loading it from my source SQL server enviornment to target SQL server environment.. I can only load 63 rows out of the 1225 rows.. This is happenning because i had to define a primary key on the couple of columns..
    When I just try to load it without a primary key, I get an error that PK needs to be defined for load to happen..
    Which IKM is in use ? I can not remember an IKM which needs a PK . Incremental Update IKM needs a Update key which can be a PK or UK at database level or ODI level.
    My table structure looks as follows -
    Lvl1 Lvl2 Lvl3 Lvl4 AccountID AccountDesc
    How do i load all rows of data in my target table using ODI?\
    If you not bother about PK at target then you can go for SQL Control Append to load your target table.
    Thanks,
    Sutirtha

  • Fill internal table with mutliple entries for nested structure

    Dear ABAP Experts,
    I have a question related to fill internal tables with nested structures.
    I have a structure like this:
    BEGIN OF proto,
              sicht TYPE ysicht,
              version TYPE FAGLFLEXA-RVERS,
              BEGIN OF kons,
    kon TYPE YKONSEINHEIT,
              END OF kons,
              jahr TYPE CHAR04,
    END OF proto.
    Now I need to fill this structure with values (over an internal table), but how can I achieve that I save multiple datas für element "kon" für one single entry of structure "proto"?
    An example could be:
    sicht = '01'
    version = '100'
    kon = 1001 (first entry)
    kon = 1002 (second entry)
    usw... (n entry)
    jahr = '2008'
    Thanks in advance for every helpful answer.
    Regards
    Thomas

    BEGIN OF proto,
               sicht TYPE ysicht,
               version TYPE FAGLFLEXA-RVERS,
               kons TYPE STANDARD TABLE OF YKONSEINHEIT WITH NON-UNIQUE KEY TABLE_LINE,
               jahr TYPE CHAR04,
    END OF proto.
    DATA: ls_proto TYPE proto,
          lt_proto TYPE STANDARD TABLE OF proto,
          ls_kon
    ls_proto-sicht = '01'.
    ls_proto-version = '100'
    INSERT '1001' INTO TABLE ls_proto-kons.
    INSERT '1002' INTO TABLE ls_proto-kons.
    ls_proto-jahr = '2008'.
    INSERT ls_proto INTO TABLE lt_proto
    If you're going to use a more complicated inner table with several components, then you need to define a type for those components. 
    matt

  • "open with" duplicate entries

    "at times" using "open with" shows many duplicate entries....reboot fixes it for a while..
    I'm still trying to determine what is triggering this.
    Any idea? Anyone see this in 10.8? I couldn't find anything searching the forums.

    I am not familiar with all the causes of this phenomenon, but it happens to me from time to time, and I know why it is for me. I work with "clone" images all the time with dev work. When a clone is mounted alongside booting into  the main volume, Launch Services, which keeps track of applications used to open certain file types, "sees" the other application files on the mounted clone volume, and adds them to the database, resulting in the apparent duplication of "open with" entries.
    Resetting the 'Open With' menu will remove duplicates and ghost applications (ones you have deleted) from the list. You reset the 'Open With' menu by rebuilding the Launch Services database your Mac maintains. There are multiple ways to rebuild the Launch Services database, including third-party system utilities like Cocktail and Onyx.
    If you don't own a system utility that can rebuild the Launch Services database, don't worry; you can perform the rebuild yourself using Terminal.
    Using Terminal to Rebuild the Launch Services Database:
    Launch Terminal, located at /Applications/ Utilities/.
    For OS X 10.5.x and later, enter the following at the Terminal prompt:
    /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.fram ework/Support/lsregister -kill -r -domain local -domain system -domain user
    I don't know wjhy it is happening for you, but rebuilding the database will at least reset things to normal. The question to ask is whether you have other mounted volumes, say from other systems on your network, that contain Mac Apps.
    I have also found a way to keep it from happening (in certain cases, for my dev work). When I create a clone, I also create what is called a "fstab" file entry, in the fstab file. This entry prevents named drives from auto-mounting. So, if I boot to a clone, my main volume on my internal SSD won't mount. Hence, no extraneous Launch Services database entries will created on the clone drive. If however, I boot to my main SSD, and then mount a clone, I don't use any fstab entries on the main SSD. This just means I have to periodically rebuild the Launch Services database. It is way too much trouble keeping fstab entries for all my clone drives on my main SSD. I only use the fstab method on the clones themselves.

  • Updating database table with DUPLICATE keys

    i have an internal table having data as follows.
    emp_id     name     date           proj_id  activity_id    Hours  Remarks
    101     Pavan    09.10.2007      123     1         2.00       Coding
    101     Pavan     09.10.2007   124     2         1.00        Documentation
    102     Raj     09.10.2007   123        3         6.00     Testing
    Now i need to update a Ztable with above mentioned data.
    The structure of the Ztable is as follows.
    Mandt     emp_id  name    date    proj_id   activity_id   Hours   Remarks
    NOte: i have ticked both check boxes for the field MANDT in table.
    Rest didnt select the check boxes.
    I believe now the field MANDT alone is a primary key for the z-table.
    NOw i have tried with UPDATE/INSERT statments to update the database table.
    But instead of inserting all the rows, the system is over writing on the same emp_id row.
    Even tried with the statments like INSERT INTO <Ztable> values <Internal table> ACCEPTING DUPLICATE KEYS.
    But its not getting inserted as a separate row in the table.
    Requirement is to insert the multiple rows in the database table without any over writing activity.
    Can anyone give me the code to do this?
    Regards
    Pavan

    Hi Pavan,
        Please let me know what are the key fields in your Ztable. Try with below code it may help you. change the "Ztablename" as your database table name and I_INTERNAL TABLE  as your internal table name. still you are facing the problem please let me know.
    lock the custom table before updating the table.
      CALL FUNCTION 'ENQUEUE_E_TABLE'
       EXPORTING
      MODE_RSTABLE         = 'E'
         TABNAME              = 'ZTABLENAME'
      VARKEY               =
      X_TABNAME            = ' '
      X_VARKEY             = ' '
      _SCOPE               = '2'
      _WAIT                = ' '
      _COLLECT             = ' '
       EXCEPTIONS
         FOREIGN_LOCK         = 1
         SYSTEM_FAILURE       = 2
         OTHERS               = 3
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        INSERT  ZTABLENAME FROM TABLE I_INTERNALTABLE ACCEPTING DUPLICATE KEYS.
        COMMIT WORK.
      ENDIF.
    unlock after updating the custom table After updation is done.
      CALL FUNCTION 'DEQUEUE_E_TABLE'
       EXPORTING
        MODE_RSTABLE       = 'E'
         TABNAME            = 'ZTABLENAME'
        VARKEY             =
        X_TABNAME          = ' '
        X_VARKEY           = ' '
        _SCOPE             = '3'
        _SYNCHRON          = ' '
        _COLLECT           = ' '

  • Mavericks "open with" duplicate entries

    Hi guys~ I updated to Mavericks just a few days and I'm enperiencing the same duplicate-entries problem (multiple MPlayerXs) in "open with" as that on previous OS X versions. Unfortunately the Termial method didn't work this time as "No such directory exists" poped up in Termial when I tried. Can you help me?
    Link to the Termial metod: https://discussions.apple.com/thread/4250905?start=0&tstart=0

    Hello Meridianistaken,
    I would try renaming or removing the "com.apple.LaunchServices.plist" Preference file as mentioned in:
    Archived - Mac OS X: Clearing the Finder "Open With" contextual menu
    http://support.apple.com/kb/ta24770
    Thank you for thinking of Apple Support Communities for your support needs.
    Nubz

  • Database adjustment for custom table with 200 entries

    Hi,
    We have a custom table which as 3 fields as composite primary key. we want to drop the last field from composite primiary key. Would it be required to do a manual database adjustment or would it automatically adjust the database if I make this change and trasport it.
    Please advise.
    Regards
    Kasi

    Hi,
        you have to adjust database manually using
        se11-utilities-database utiity-> click on
        activate and adjust database button .
        if you have table mainitainence defined delete
        existing table mainitainence and create a
        new mainitainence and assign this to request.
        so that when request is transported
        correction to databse are made in quality 
        and production as well.
        select standrad recording routine radio in table
        table mainitainence generator to move table
        contents to quality and production by assigning
        to request.    
    Regards
    Amole

  • Counting rows for db tables with 500 million+ entries

    Hi
    SE16 transaction timesout in foreground when showing number of entries for db tables with 500million+ entries. In background this takes too long.
    I am writing a custom report to get number of records of a table and using OPEN CURSOR concept to determine number of records.
    Is there any other efficient way to read number of records from such huge tables.
            OPEN CURSOR l_cursor FOR
            SELECT COUNT(*)
               FROM (u_str_param-p_tabn) WHERE (l_tab_cond).  " u_str_param-p_tabn is the table name in input and l_tab_cond is a
              DO.                                                                              " dynamic where condition
                FETCH NEXT CURSOR l_cursor INTO l_new_count.
               PACKAGE SIZE p_pack.
                IF sy-subrc NE 0.
                  EXIT.
                ELSE.
                  l_tot_cnt = l_tot_cnt + l_new_count. " l_tot_cnt will contain number of records at end of loops
                  CLEAR l_new_count.
                ENDIF.
              ENDDO.
              CLOSE CURSOR l_cursor.

    Hello,
    For sure it is a huge number of entries!!!
    Is any key-fields?
    Use a variable to keep a counter of the key-fields , for example row_table and also a low and high variable .
    Try to use a do-loop and in this loop use:
    do .
    low_row  = row_table.
    low_high = row_table + 200.000.:increse the select every 200.000 entries
    Do  "select statement into table"  based on the key-fields 
    For example : if the key-field is the docnr,
    Do a "select into table itab where docnr >low_row
                                            and docnr < low_high"
    Count the lines of itab and keep them in a variable.
    free the itab.
    enddo
    Good luck.
    Antonis

  • Validating Duplicate Entries In itab

    Hi All
       How to approach for restricting duplicate entries in the Database?
    The scene is that I've to enter some data in a table control . and while saving, I've to check whether the same entry already exists in the database or not.
    How to approach for this? Awaiting your valuable response.
    Thanks in advance
    Pradipta

    Hai Mishra
    DELETE ADJACENT DUPLICATES FROM itab.
    Additions
    1. ... COMPARING f1 f2 ...
    2. ... COMPARING ALL FIELDS
    Effect
    Deletes neighboring, duplicate entries from the internal table itab . If there are n duplicate entries, the first entry is retained and the other n - 1 entries are deleted.
    Two lines are considered to be duplicated if their default keys match.
    The return code value is set as follows:
    SY-SUBRC = 0 At least one duplicate exists, at least one entry deleted.
    SY_SUBRC = 4 No duplicates exist, no entry deleted.
    Addition 1
    ... COMPARING f1 f2 ...
    Effect
    Two lines of the internal table itab are considered to be duplicates if the specified fields f1 , f2 , .... match.
    Addition 2
    ... COMPARING ALL FIELDS
    Effect
    Two lines are considered to be duplicates if all fields of the table entries match.
    Notes
    The DELETE ADJACENT DUPLICATES statement is especially useful if the internal table itab is sorted by fields (whether in ascending or descending order) which were compared during duplicate determination. In this case, the deletion of neighbouring duplicates is the same as the deletion of all duplicates.
    If a comparison criterion is only known at runtime, it can be specified dynamically as the content of a field name by using COMPARING ... (name) ... . If name is blank at runtime, the comparison criterion is ignored. If name contains an invalid component name, a runtime error occurs.
    Comparison criteria - statistically or dynamically specified - can be further restriced by specifying the offset and/or length.
    Note
    Performance
    Deleting a line from an internal table incurs index maintenance costs which depend on the index of the line to be deleted. The runtime depends on the line width of the table.
    For example, deleting a line in the middle of an internal table with 200 entries requires about 10 msn (standardized microseconds).
    Deleting a range of entries with " DELETE itab FROM idx1 TO idx2. " deleting a set of entries with " DELETE itab WHERE ... " only incur index maintenance costs once. Compared with a LOOP , which deletes line-by-line, this is much faster.
    To delete neighboring, duplicate entries from an internal table, use the variant " DELETE ADJACENT DUPLICATES FROM itab. " instead of LOOP constructions.
    Thanks & regards
    Sreeni

  • Finding duplicate entries in pages doc...

    i've got a huge pages document with email addresses.
    is there a simple way to scan the document for dupes?
    anyone??
    thx!

    If the email addresses are all that is in the document, they are in a list, and you also have Numbers, the following will work:
    Select all of the list. Copy
    Launch Numbers and open a new, blank document.
    Click on cell B2 of the table in Numbers. Paste.
    Your addresses should fill column B, with rows added to the table as necessary.
    Enter this formula into C2: =IF(COUNTIF($B$1:B2,B2)>1,"DUP","")
    (The result in C2 should appear to be an empty cell.)
    Click on the Column Reference tab for column C to select the whole column,  then
    Command-click on cell C1 to remove it from the selection.
    Go Insert (menu) > Fill > Fill Down.
    Your table will now resemble this one, with duplicate entries marked in column C:
    With column C still selected, Copy, then go Edit > Paste Values.
    This replaces the formulas in column C with the values calculated by that formula.
    Click the Reorganize button, then in the Sort section, choose Column C.
    The table will be sorted, bringing all the DUP entries together at the top of the table.
    Select all of the rows containing DUP (Click on the Row Reference tab of the first, then shift-click on the Row reference tab of the last) to select all of the rows containing duplicate addresses.
    Go Table > Delete Rows.
    Select the column containing the email addresses. Copy.
    Return to the Pages document. Paste.
    Done
    Regards,
    Barry

  • How to convert internal table with dynamic fields to XML

    Dear all,
    I met a problem like the following:
    The aim is to transform the following parameter to XML
    IT_FIELD stores the dynamic filed name of the internal table,with these fields, the dynamic internal can be created by cl_abap_tabledescr=>create(it_field)
    IT_VALUE stores the value of the internal table dynamically created with dynamic fields.
    For example
    IT_FIELD =>
    line1: FIELD1
    line2: FIELD2
    line3: FIELD3,
    three lines in this internal table.
    dynamically created internal table structure FIELD1 FIELD2 FIELD3
    And IT_VALUE=>
    1          2          3   (First line)
    11        22        33
    two lines of data.
    Do you have any idea about how to transform the IT_VALUE to XML here? And also the transformed XML to the IT_VALUE.( we may need remember IT_FIELD here for later XML to IT_VALUE.)
    Hope I describe the problem clearly.
    Any inputs will be appreciated.
    Edited by: Max Tang on Jan 12, 2009 3:46 PM
    Edited by: Max Tang on Jan 12, 2009 4:14 PM

    Hi,
    you need to implement a bit of coding for that.
    With the 'do varying' statement abap provides a loop over those fields. Within this loop you can build up a new internal table with one entry for each period and amount.
    kind regards
    Siggi
    PS: I am not very familiar with CO, but I guess there will be a standard extractor for that.

  • Duplicate Entries in Library

    In the process of trying to move my itunes library to an external drive, I've ended up with duplicate entries for each file. Both entries play the same file, but when one entry is deleted from the library, the file gets deleted, and the remaining entry does not play. How do I remove one of the duplicate entries without deleting the file?

    It seems there's only one library - on the external drive. Before I moved my library, I looked in itunes help to figure out how to do it properly, and never really got a clear answer, so I just copied and pasted my files onto the external drive, then deleted the original library off the internal drive, and things went from bad to worse from there. Everytime I consolidate the library, it just seems to duplicate everything, not really solving the problem. It's not a question of duplicate files - it's more a question of duplicate listings/entries for the same single file so that if I delete the wrong entry/listing from the library, the remaining listing can't find the file to play, because I've just unwittingly deleted the music file.

Maybe you are looking for

  • Entry in SLD for SAP delivered software component contents

    Hi    I have a predelivered software component version ( SWCV )  ESA ECC-SE 602 which I imported into IR  ( by setting the *tpz file in the appropriate folder and the imported from IR ) This worked ok. Now I have a custom SWCV - that I created in SLD

  • SystemAcknowledgements & Application Acknowledgements

    Hi Experts How to get Applciation acknowledgements in BPM, I tried this by selecting ApplicationAcknowledgement in SEND Step properties. But system was throwing error. But when I select TransportAcknowledgement (Represented as SystemAcknowledgement i

  • Can't write to TestExec.ini

    I had made some changes to a 1st level subsequence (one that is called by the  main sequence) and ran some test and all was fine. Then I opened another 1st level subsequence to make similar changes. It opened but I got a message stating that TS could

  • OBIEE Year ago and Month ago

    Hi, I want to find the month ago and year ago in obiee repository.I have measure column 'Sum(Sales)' and time hierarchy with year,month and date level. Note that I may not have data for all the dates since for some days I may not have any sales at al

  • 0COUNTRY_TEXT data source

    Hi expert, I am not able to find 0COUNTRY_TEXT data source in R/3 datasource. When I searched for 0COUNTRY_TEXT in R/3 using RSA5, I did not get anything back. I don't know how this data source got lost and want to know if there is a way to get it ba