Excluding of records from extraction

Hi Experts
1. I am in need of code to exclude the records for a particular value of the fields AUART and                 VBUND                                   
      For records with the following criteria should be EXCLUDED
          Sales Order Type (AUART):  ZCP
          Trading partner (VBUND):  1261
      I know that we can write the code at start routine of the transformations but what to write in
      the start routine of transformations
2. I have an extractor bringing data from ECC to info cube with alternative unit of measure
    Now I need to undo these conversions in the current extractor and bring in these values from a
    Custom Z table from ECC using generic extractor  
  And I am doubted in how to undo these conversions from the current extractor to the cube
Please help me
Thank you

Hi
1. Open the transformation and click on start routine
2. The ABAP editor screen appears and you can find this part in the abap editor of start routine "$$ begin of routine - insert your code only below this line        -
... "insert your code here"
3. Please delete the line "insert your code here" completely and paste the code which i gave you.
4. Check for syntax errors and activate the transformation.
5. Also activate the DTP.
Also please dont not put the code below "begin of global or 2nd part of global".
Plz lemme how many records you have in rsa3 without any selection. The infopackage will just fetch the records from the source and it will not do any transformation.
Hope it helps.

Similar Messages

  • Nakisa Org Chart 2.1 - excluding org units from extract and saving chart

    Hi,
    Is it possible to exclude specific org units from the org chart that is extracted to Nakisa? These (and all subordinate) org units should not be included in the chart which is to be published on the intranet.
    Also, what is the easiest way to create a file (e.g. PDF, PowerPoint) of all org units and positions in the structure? I've looked into using the ChartBook functionality but this did not seem to work too well, and there was no option to Save or Print the chart.
    We have Nakisa OrgChart 2.1 SP1 running on SAP CE. This is with a staged extract out of SAP ERP which is hosted on Windows and SQL.
    Thanks.

    Thanks Stephen and Luke.
    I will look into your comments re: excluding org units from the directory searches etc when next at the customer site.
    As for the Chartbook issue - the customer is looking to create a file (e.g. HTML, PDF) of the entire org structure which they can then make available on the intranet. (They currently only have license for a couple of HR users so ESS access is not an option right now). We have looked at using the standard Print/Export options as well as the Chartbook and neither seems to work particularly well....the customer keeps referring back to how easy it is to create a HTML file using OrgPublisher....
    What is the recommended and best approach for creating a file which can be published on a company's intranet? (There are about 1000 positions/employees in total so not a huge file).
    Hopefully v3.0 is a whole lot easier to use
    Thanks, Ron

  • Excluding detail and suppressed records from calculations in crystal xi

    Is there anyway to exclude records from calculations in crystal xi
    The report design contain group level A, group level B and group level C
    In Group level C - the sorting order ensures that the most recent (and in this scenario relevant record) is displayed first - this is the record which is required for the calculations.  This record is then moved into Group Level C header - thus only displaying the first record in this group. However any calculations which take place take into account all the detail records in Group Level C, and as a result the calculations are incorrect.
    Running Totals are not an option as also on this report - in certain scenarios Group Level C may be suppressed altogether - is there anyway to exclude suppressed records from the calculations?
    It is necessary to carry out the following calculations, using only the (unsuppressed) value from Group Header Leve C: Sum, Mean, Median
    Thank you in advance

    if i understand correctly you need to calcuate values based upon your group c
    and the details of the group are in the details section
    the only way you can accuratley calc this is MANUAL RUNNING TOTALS.
    RESET
    The reset formula is placed in a group header report header to reset the summary to zero for each unique record it groups by.
    whileprintingrecords;
    Numbervar  X := 0;
    CALCULATION
    The calculation is placed adjacent to the field or formula that is being calculated.
    (if there are duplicate values; create a group on the field that is being calculated on. If there are not duplicate records, the detail section is used.
    whileprintingrecords;
    Numbervar  X := x + ; ( or formula)
    DISPLAY
    The display is the sum of what is being calculated. This is placed in a group, page or report footer. (generally placed in the group footer of the group header where the reset is placed.)
    whileprintingrecords;
    Numbervar  X;
    X

  • How do I extract matching records from two tables?

    I'm trying to extract client records from our client database to put together a very targeted email campaign. As an example, the result I want is a list of names and email addresses of those clients who have a record in our system, have not had a visit in our clinic in the last year, and live within 200 miles of our clinic. I can capture the first two criteria in one extract, and the second in another. I can then import those as tab delimited data into Numbers. What I then need to do is create a third table that represents ONLY those records that exist in both tables.
    Can someone tell me if this is possible and if so, how to do it?
    I'd be very appreciative of any help, thank you.

    conejo61 wrote:
    I can then import those as tab delimited data into Numbers. What I then need to do is create a third table that represents ONLY those records that exist in both tables.
    You can create a column that generates a serial marker on the table from which you want to transfer the data, making all the names that also appear on the other table. Not that the formula will mark only exact matches.
    Here's a short example:
    Table 1 on the left, is one of the two tables imported from the tab delimited data files. It has other data, but only the names in column A are used to identify records appearing on both tables.
    Table 2 on the right, contains the names and other data (represented by the email addresses in column B), to be transferred to the third table.
    Column C of this table contains the formula that counts off the rows containing names appearing on both tables. The version below is in C2, and is filled down to the end of the column.
    =IF(COUNTIF(Table 1 :: $B,A2)>0,MAX($C$1:C1)+1,"")
    Note that jane Doe is not counted (or transferred) as her name is recorded differently on the two tables.
    Table 3 is the results table. It contains one formula for each column to be transferred from Table 2 to Table 3.
    A2:   =IF((ROW()-1>MAX(Table 2 :: $C)),"",LOOKUP(ROW()-1,Table 2 :: $C,Table 2 :: $A))
    B2:   =IF((ROW()-1>MAX(Table 2 :: $C)),"",LOOKUP(ROW()-1,Table 2 :: $C,Table 2 :: $B))
    Regards,
    Barry
    EDIT: I was working in Numbers '09 when developing this, and got the following warning when I saved a copy as an iWork '08 document:
    Referencing row or column ranges that include header or footer cells isn't supported. The formula references were updated to exclude header and footer cells.
    The formulas in Table 2::C2 references C1. You may have to ensure that Table 2 does not include a header row.
    B.
    EDIT2: A check on the file in Numbers '08 showed no apparent change to the formula, and editing Jane Doe's name on table 1 resulted in her name being added to Table 3.
    Message was edited by: Barry

  • Short dump error when extracting delta records from R/3

    I am working on BW 3.5 and I am facing some short dump error when extracting delta records from the r/3 to BW.
    Below is the error message
    Kindly do the needful ASAP.
    Job started
    Step 001 started (program SBIE0001, variant &0000000024277, user ID BWREMOTE)
    Asynchronous transmission of info IDoc 2 in task 0001 (0 parallel tasks)
    DATASOURCE = 0ISCM_PAYMENT_01
             Current Values for Selected Profile Parameters               *
    abap/heap_area_nondia......... 2000000000                              *
    abap/heap_area_total.......... 2000000000                              *
    abap/heaplimit................ 40000000                                *
    zcsa/installed_languages...... DE                                      *
    zcsa/system_language.......... E                                       *
    ztta/max_memreq_MB............ 2047                                    *
    ztta/roll_area................ 6500000                                 *
    ztta/roll_extension........... 2000000000                              *
    2,454 LUWs confirmed and 2,454 LUWs to be deleted with function module RSC2_QOUT_CONFIRM_DAT
    ABAP/4 processor: MESSAGE_TYPE_X
    Job cancelled

    Hi,
    I look at the transaction ST22 to see which type of error has given you. Take a look at the notes to correct the error.
    Another option is to look at OSS notes, because the error is giving you a standard extractor.
    Greetings,

  • Extracting Records from multiple tables

    hi
    I have to extract almost 1 lack  records from 3 tables.
    Please help me in ABAP CODE.
    PLease it is very urgent.

    Which tables are they ?  Refer to link below for more hints abt performance.
    Re: select query - optimization

  • How to exclude records from one table that is contained in a second table

    I am trying to create a Crystal report that excludes records from one Table that is contained in a second table using the != link option and it is not working. I've tried all of the different enforce options, and it is still not excluding those records. Does anyone have any suggestions of what I'm doing wrong or any other suggestions how I can obtain the results I need?
    Thanks in advance!

    Have you tried by Command ?
    Thanks,
    Gordon

  • Is it possible to exclude white space from creating records using UNPIVOT

    SELECT
            FROM
                Table1
                UNPIVOT EXCLUDE NULLS
                    NEW_COLUMN
                    FOR COLUMN_NAME IN
                       FIELD1, field2, --------------FIELD20
                )I don't want to create row for whitespace (empty value) in any of field1-field20 columns. Row should create for each of value present in any of FIELD1-FIELD20. Is it possible to exclude white space from creating records using UNPIVOT? I am just looking for syntax if there any. thanks

    Hi,
    Sorry, it's very unclear what you want.
    Whenever you have a question, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}
    Have you tried the the UNPIVOT EXCLUDE NULLS option? See the SQL Language manual for details.
    It that doesn't do what you want, then you may need to UNPIVOT in a sub-query, generating more rows than you want, and use a WHERE clause in the main query to remove the unwanted rows.

  • A programme that will extract particular records from a file

    Let's assume that there is a text file containing arround 50 records in the following format:
    ABCDEFGH:AB:12345:-09876:567:876
    The file to be read by the programme consist of a sequence of records each of which is split into fields using separator characters just like as we have in the Unix. The command line arguments should be given to execute the programme
    The most important part of the programme is that the condition for extracting a particular record from that file will be that specified fields shall contain a particular string of characters.
    The command line arguments to be given are:
    -tx This flag specifies the field separator character "x"
    -<num> This flag introduces a match requirement for field "num". Fields are numbered starting at 1. This flag may be followed by further flags and then by the string to look for.
    -f Fold case. I.e. string matching is not case sensitive.
    -t Transposition match. A match is recorded even if the strings differ provided the difference consists of just 2 characters transposed so that, for example: "compiler and complier" will be recorded as a match.
    -d A differ match. A match is recorded even if the two strings differ by one letter. For example: "gest and rest" will be recorded as a match.
    The file to be processed will be specified in the final command line argument.
    If match requirements are specified for more than one field the implication is that all fields specified must separately satisfy their individual match requirements. If any fields referred to in the match requirements are missing from a particular record then the record will not satisfy the overall match requirements.

    And your question is??

  • Problem trying to extract records from VBFA on Smartform.

    Hello
    I'm attempting to extract records from the table VBFA and my inexperience with Smartforms is start to show.
    I only want to have  1 record per handling unit. I'm extracting using VBELV, VBELN and VBTYP_N via SELECT * FROM VBFA.
    However this gives me multiple records per handling unit. There is no further field available on the record to make it unique. This is were my inexperience comes in. How do I perform the read of VBFA without using SELECT.?
    Regards
    Mike.

    Hello Brad,
    You're right, I'm trying to get am internal table to use a loop node.
    I'd like to go for the full SELECT into a table then read it and either a skip or ignore a record that is a duplication. I'm not sure of the way to achieve this though. This is the first time I've had to manipulate the data like this. Until now I've had the keys to select the data for me.
    I've currently got:
    SELECT * FROM VBFA INTO TABLE LT_VBFA
       WHERE VBELV = IS_DLV_DELNOTE-HD_GEN-DELIV_NUMB
       AND VBTYP_N = 'X'.
    Then I have LT_VBFA INTO WA_VBFA in a LOOP node .
    There needs to be some thing between the 2 nodes to prune the unwanted duplicates.
    Regards
    Mike.

  • Exclude Matches between records from a Particular Source system EDQ+Siebel UCM

    I have a requirement to modify the EDQ-CDS Individual Match processor.
    I want to exclude the match between two records (Driver and Candidate) if they have same value in a particular field and i want the Value to be hard-coded or specified as reference Data in EDQ (eg: if both driver and candidate are from same source say 'Source ABC' only then NO MATCH , for all other source records match should happen).
    We tried adding Match rule which does the 'Exact Match' comparison on the field 'source' and set the rule to 'NO MATCH' , but this is excluding the matching between records from any system, which is not my requirement. I am only looking to exclude the match when the Source value is say 'Source ABC'.
    I think it should be possible with the Comparison type  'In Value' or 'In List ' or 'All in List'. But not sure who to use these comparison rules and there is not much documentation available EDQ online.
    Any help on this appreciated.
    We are on Siebel 8.2.2.4 + EDQ 11.1.1.7  on Solaris 64 bit.

    In List is documented in the 12.1.3 online help. Before this, it was an extension to the product used by CDS.
    It is very straight-forward. You add it as a comparison, and create a reference data set with your list of values in it. If the identifier value hits the list, the comparison evaluates to true.
    I've pasted most of the help from 12.1.3 below:
    Comparison: In List
    The In List comparison provides a way of making the application of a Match rule conditional on one or both identifier values in a comparison being matched with a single value or list of values.
    Use
    Use this comparison as a way to apply a Match rule only to a subset of the data in the Match process. For example:
    Where a Match rule is designed to match Middle Eastern names, only apply it if a Country identifier matches a list of Middle Eastern countries.
    Where a Match rule is designed to match Electronic products, only apply it if a Product Category identifier matches a single value.
    The comparison may also be used to eliminate matches that would otherwise be caught by Match rules lower in the decision table, if used in a Match rule with a 'No Match' result; for example, so that matches on certain rules are only presented if Country or Nationality values are not in a list of safe values.
    Options
    Option
    Type
    Purpose
    Default Value
    Require data in both records?
    Yes/No
    If Yes, both input identifier values must contain data. If they do not, the comparison will always be 'False'.
    If No, only one input identifier value must contain data.
    No
    Match whole value?
    Yes/No
    If Yes, the whole identifier value (or values) specified must match.
    If No, tokens within the identifier will be matched against the list. In this case, delimiters must be specified in the relevant fields below to determine how to split tokens.
    No
    Required value reference data
    Reference Data
    A Reference Data set with a list of values, for example a set of country codes.
    Clear
    Required value
    Free text
    A single value to match against. Note that if a Reference Data set and a value is specified, both are matched against.
    Clear
    Require match for all values?
    Yes/No
    If Yes, all tokens in the identifier value(s) must match against the required list or value.
    If No, any one of the tokens must match.
    This option is only used if Match whole value? is set to "No".
    No
    Delimiter characters reference data
    Free text or browse
    A Reference Data set with a list of delimiter characters used to tokenize identifier values before matching against the list.
    This option is only used if Match whole value? is set to "No".
    None
    Delimiter characters
    Free text
    This field is used to specify the delimiter characters to use as an alternative to linking to a Reference Data set.
    This option is only used if Match whole value? is set to "No".
    Note: If a Reference Data list of delimiters and specific characters are entered here, both are considered delimiter characters.
    None

  • Extract records from file using RegEx

    Hi guys,
    I was wondering if there's a way to extract records from a text file using regular expressions matching groups in Endeca Integrator.
    I have several XML files and I have mapped and extracted records from them using XML Reader component, but I need to preserve the tags of mapped elements. For example, if I have the following XML:
    <Msg><Para>Some text. <Emphasis>More text</Emphasis><Para></Msg>
    mapping Msg element to an output cloverField will return "Some text. More text". I need to preserve tags, so I need an output like: "<Msg><Para>Some text. <Emphasis>More text</Emphasis><Para></Msg>",
    I don't know if there's a way to accomplish this by modifying the setting of the XML Reader component, but I was thinking of using regular expressions to solve this. Unfortunately, I can't find a way to do it by using the built-in components in Integrator.
    The final solution is do it programmatically without using Integrator, but I want to know if I'm missing something.
    Thanks in advance.

    This will get the name and extension in separate variables
    set vTheFile to (choose file) as text
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ":"}
    set vPath to (vTheFile's text items 1 thru -2 as text)
    -- Add this for the file name
    set vFile to vTheFile's text item -1
    -- This will get the name and extension as  seperate items
    set AppleScript's text item delimiters to "."
    set {vFileName, VfileNameExtension} to {text item 1 of vFile, text item 2 of vFile}
    set AppleScript's text item delimiters to TempTID
    display dialog "Path is: " & vPath & return & return & "File is: " & vFile & return & "File name is: " & vFileName & return & "Extension is : " & VfileNameExtension
    (but I think I am done now)

  • DTP does not fetch all records from Source, fetches only records in First Data Package.

    Fellas,
    I have a scenario in my BW system, where I pull data from a source using a Direct Access DTP. (Does not extract from PSA, extracts from Source)
    The Source is a table from the Oracle DB and using a datasource and a Direct Access DTP, I pull data from this table into my BW Infocube.
    The DTP's package size has been set to 100,000 and whenever this load is triggered, a lot of data records from the source table are fetched in various Data packages. This has been working fine and works fine now as well.
    But, very rarely, the DTP fetches 100,000 records in the first data package and fails to pull the remaining data records from source.
    It ends, with this message "No more data records found" even though we have records waiting to be pulled. This DTP in the process chain does not even fail and continues to the next step with a "Green" Status.
    Have you faced a similar situation in any of your systems?  What is the cause?  How can this be fixed?
    Thanks in advance for your help.
    Cheers
    Shiva

    Hello Raman & KV,
    Thanks for your Suggestions.
    Unfortunately, I would not be able to implement any of your suggestions because, I m not allowed to change the DTP Settings.
    So, I m working on finding the root cause of this issue and came across a SAP Note - 1506944 - Only one package is always extracted during direct access , which says this is a Program Error.
    Hence, i m checking more with SAP on this and will share their insights once i hear back from them.
    Cheers
    Shiva

  • Is there a way to delete records from MDM automatically?

    Is there a way to delete records from MDM automatically?
    I am able to import the data automatically through MDIS, but I have to delete the data first. Itu2019s possible to do it ?

    Hi Adam,
    Current scenario
    USER1: call ME to delete old catalog data
    ME: open the MDM & delete it manually
    USER1: Transaction to extract new data file
    MDIS: load the data to catalog
    As per your requirement, you should save map in following way which can solve your purpose. Create a XML file which should consist of new and existing records. So in import Manager, for newly added records you need to set Default Import Action as Create and for existing records you should use or set Default Import Action as Replace and then should save in map.
    So using this every-time if new record comes (not available in data manager), it will get created and for existing record (already available in Data Manager) it will replace (which means delete the existing record (old catalog data) and create a new record).
    Regards,
    Mandeep Saini

  • How can i get all the records from three tables(not common records)

    Hi
    I have four base tables at R/3-Side. And i need to extract them from R/3-Side.
    And i dont have any standard extractor for these tables .
    If i create a 'View' on top of these tables. Then it will give only commom records among the three tables.
    But i want all the records from three base tables (not only common).
    So how can i get the all records from three tables. please let me know
    kumar

    You can create separate 3 datasources for three tables and extract data to BW. There you can implement business login to build relation between this data.

Maybe you are looking for