Comparison of two structures excluding one field

Hi,
I need to make comparisons of two complete data structures, excluding from the comparison one field that should not be compared or considered to obtain a result of equality of both structures.
Somebody know a sentence or practical way to make this comparison (with one field less)?
Example:
DATA: im_data_new TYPE mereq_item,
            im_data_old TYPE mereq_item.
Both structures has 146 fields, and I need to exclude from the comparison the 64th field.
Thanks in advance and greetings,
Mayra.

clear that field value in old and new before comparing the structures.
Thomas

Similar Messages

  • Is there any way to include excluding one field

    hi all,
    is there any way to include a structure or type in another structure or type by excluding one field?
    regards
    hyma

    I think you are trying to include 2 structures but it is giving error that some fields are common
    you can overcome that like this , these are the 2 additions
    INCLUDE STRUCTURE ZTAB AS name1.
    INCLUDE STRUCTURE ZTAB AS name1 RENAMING WITH SUFFIX name2
    for more info check the help for INCLUDE STRUCTURE

  • Exclude one field from application.cfm loop

    i am using a cfloop collection tag in the application cfm file to loop through and remove special charachters from submitted forms for xss protection. I want to exclude one or two fields from this because they are date time fields so can't have all the restrictions all of the other fields can. I am picturing something like
    <cfloop collection="blah" item="blahblah">
         <cfif field name is not one of the date time fields>
    < general remove bad charachters code>
         <cfelseif field name is one of date time fields>
    <remove special charachters code>
    </cfif>
    </cfloop
    how do i get the field name to use in the condition above?

    Ummm...
    <cfloop collection="form" item="field">
    <cfif field NEQ "aDateField" AND field NEQ "bDateField" AND field NEQ "cDateField">
       Processs the non-date fields
    <cfelse>
      Process the date fields
    </cfif>
    </cfloop>
    Or slightly easier to maintain.
    <cfloop collection="form" item="field">
    <cfif NOT ListFind(field, "aDateField,bDateField,cDateField")>
       Processs the non-date fields
    <cfelse>
      Process the date fields
    </cfif>
    </cfloop>
    Or the best yet, would be to provide the list you are checking against from sometype of data repository where it is easy to maintain, like a database or configuration or something.  But I will leave that exercise to you to figure out.

  • Mapping complete input XML structure into one field on target

    Hi,
    I have a scenario where I need to map the complete input XML structure as it is, into one field on target side. so can we achieve this in Graphical Mapping? If yes, please share your valuable info.
    Regards,
    Shiva.

    Hello,
    this is the java map code.just compile it and made a .zip file import it and use it Interface Mapping.
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.AbstractTrace;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    import java.util.Map;
    import java.io.*;
    public class PayloadToXMLField1 implements StreamTransformation {
        String strXML = new String();
       //Declare the XML tag for your XML message
       String StartXMLTag = "<DocumentBody>";
       String EndXMLTag = "</DocumentBody>";
       //String StartXMLTag1 = "<Code>";
       //String EndXMLTag1 = "</Code>";
        AbstractTrace trace;
        private Map param = null;
        public void setParameter(Map param) {
            this.param = param;
        public void execute(InputStream in, OutputStream out) {
            trace =
                (AbstractTrace) param.get(
                    StreamTransformationConstants.MAPPING_TRACE);
            trace.addInfo("Process Started");
            try {
                StringBuffer strbuffer = new StringBuffer();
                byte[] b = new byte[4096];
                for (int n;(n = in.read(b)) != -1;) {
                    strbuffer.append(new String(b, 0, n));
                strXML = strbuffer.toString();
            } catch (Exception e) {
                System.out.println("Exception Occurred");
            String outputPayload =
                StartXMLTag
             + "<![CDATA["
             + strXML
             + "]]>"
             + EndXMLTag;
            try {
                out.write(outputPayload.getBytes());
             trace.addInfo("Process Completed");;
            } catch (Exception e) {
                trace.addInfo("Process Terminated: Error in writing out payload");;

  • Exclude one field from Logical Database's dynamic selection screen

    Hi Guru,
    I have a requirement to amend a program to exclude the document number field (bsik-belnr) from the dynamic selection-screen of the logical database KDF(Vendor Database) so that the program will not filter according to the document number.
    I have use the below syntax in my zprogram.
      selection-screen exclude select-options: doc-no.
    However I get syntax error "The addition EXCLUDE is only allowed in INCLUDE DBKDFSEL".
    Please advice.
    Best Regards,
    Fung

    The selection part of the logical database defines input fields for selecting data.
              The runtime environment displays these on the selection screen when you run an executable program linked to the logical database.
              Include called DB<ldbname>SEL.
            SELECTION-SCREEN BEGIN OF VERSION ver TEXT-xxx.
                                                                    SELECTION-SCREEN EXCLUDE ... .
                                                    SELECTION-SCREEN END OF VERSION ver.
    Defines a selection screen version (with a three-character name ver ). Between BEGIN OF VERSION and END OF VERSION , you can exclude selection screen objects for the version ver , i.e. remove them from the selection screen with SELECTION-SCREEN EXCLUDE.
              SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE dbtab
    If one of these tables is active in the report (i.e. it is declared under TABLES or lies somewhere on the path from the root of the database hierarchy to a table declared with TABLES ), a pushbutton called 'Dynamic selections' appears on the selection screen.

  • ORACLE Select and group by excluding one field

    Dear community,
    I have a very simple query (on Oracle 11g) to select 3 fields:
    select field1, field2, field3, count(*) from table
    where...
    group by field1, field2, field3
    having count(*) > 10;
    Now, what I need, is exclude "field3" from the "group by" since I only need field 1 and 2 to be grouped, but I also need field3 in the output. As far I know, all the fields in the select must be reported also in "group by", so how can I handle that?
    Thanks
    Lucas

    Welcome to the forum!
    Whenever you post please provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION). And when you post code use code tags, \ on the line before and after the code to preserve formatting. See the FAQ for other syntax and highlighting options.
    {quote}
    As far I know, all the fields in the select must be reported also in "group by", so how can I handle that?
    {quote}
    Correct - for an aggregate query all columns in the select must be either aggragate functions or in the GROUP BY.
    {quote}
    Now, what I need, is exclude "field3" from the "group by" since I only need field 1 and 2 to be grouped, but I also need field3 in the output
    {quote}
    Well what is it you are counting? And how should the values of field3 relate to those groups?
    Post some sample source data and the sample result data you want to produce.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Mapping an XML structure into one field

    Make use of XSLT mapping (available on SDN...just search with CDATA...i think there is a new feature in PI7.1 (Copy XMl to subtree....something like that).
    Regards,
    Abhishek.

    Hi,
    Chk this:
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    Re: Conversion of source XML structure to single string using PI 7.1
    Thanks
    Amit

  • How can I make the comparison of two string one by one

    Hello everyone,
    I am new in labview and I am stuck with the problem.
    I have a huge text file with a different pressure values at different ports. My goal is to find the mean value of two ports and finding the dP and from that value I have to find  max value of dP.For that please see the attached VI. and see the 1st case structure from that attched VI.This I already done.
    [I first case structure I compare the port 103 and port 115 ]
    Now what I did, it was for the 2 ports and now I want to make a calculation for the comparison of two ports but labview should do it automatically , for reference I attached the text file.
    [Now I want to compare 103 & 115,104 & 116, 105 & 117 automatically one by one]
    Please refer the 2 nd structure for that.( in first case structure I put the search 1D array function for finding the location of the port column but I have to write manually there the "Port 103", now what I want that The labview read automatically the port 103 , port 104 and calculate the mean value)
    It would be grateful if you can help me. 
    Solved!
    Go to Solution.
    Attachments:
    Final - Kopie.vi ‏35 KB
    Port module.txt ‏1 KB

    I tried cleaning up your code.  The subtraction is just as simple as doing it inside of the FOR loop.  Same for the Maximum value of each.
    The Out of Memory issue can be a hard one to nail down.  Things you can do is try to avoid extra memory allocations caused by resizing of your arrays, avoid duplicate computations that aren't needed, reduce the number of front panel objects, or just use smaller arrays.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Final - Kopie.zip ‏23 KB

  • Move values of one field symbol to other field symbol of different structur

    Hi all,
    i need to move values of one field symbol to other field symbol of different structure.
    I need to perform operations like MOVE-CORRESPONDING on two field symbols of different structure.
    How can i achieve this?
    field symbol 1 have 2 field and field symbol2 have 4 fields....
    Best Regards,
    Vijay.

    Hi,
    You can use -
    MOVE-CORRESPONDING <struct1> to <struc2>.
    In this case it will move the contents of the components from struct1 to struct2 that has identical names.
    You can refer this link also-
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3260358411d1829f0000e829fbfe/content.htm
    Regards,
    Sujit

  • Need to add one field in standard structure???

    Hi Experts,
    I wanted to add one Z-field in standard structure. Anybody will suggest me how to do that step by step??

    open the table in se11 and press append structure in application tool bar
    press create button on pop up window.
    give the append name and include the fields u required.
    Yes, you can add the extra fields to the standard table.
    Create Z-Structure with the fields needed and append the structure to the standard table by using the option append structure within table display
    we can enhance the standard tables by using Append structures and customizing includes.
    Append structures allow you to attach fields to a table without actually having to modify the table itself. Table enhancements using append structures therefore do not have to be planned by SAP developers. An append structure can only belong to exactly one table.
    In contrast, CI_includes allow you to use the same structure in multiple tables. The include statement must already exist in the SAP table or structure. Table enhancements using CI_includes do, however, have to be planned by SAP developers
    regards.
    Rahul
    reward if useful

  • F4 search help as tree structure in a module for one field

    hi experts,
    i have created a z module by copying standard module SAPMV23N of vbg1/2/3 transaction and i have added one tab in vbg1/2/3. the 5th tab is working. i am calling a subscreen using 5 tabstrip. there are one field MAKTL i want to use a F4 search as tree structure for that MAKTL field.
    in code for displaying tree structure i am using function module RS_TREE***
    please help me

    Hi,
    Please study this search help, there is a search help exit in which the hierarchy part it written,
    Search Help: PRCTH
    Search help exit:   K_F4IF_SHLP_STANDARD_HIERARCHY
    Hope this helps you,
    Regards,
    Abhijit G. Borkar

  • Get value of two fields into one field

    Hellou,
    i need little help with javascript again
    Currently i'm using code below to get value from one field to other:
    getField("Text35").value = getField("Text1").valueAsString;
    Now i'm wondering how to change this code, so i could get values from two fields into one. For example i have field "firstname" and field "lastname", now i want to show this in field "name".
    Example, if field firstname have value John and field lastname value is Doe, i want to show it in field name like "John Doe".
    I hope that u understood what i want
    Thanks for helping me!

    getField("Text35").value = getField("Text1").valueAsString + " " +
    getField("Text2").valueAsString;

  • Joining Two Fields Into One Field for a View

    I am trying to create a view based off of multiple tables.
    I have all of the joins and everything done nicely and working properly.
    However, when I get to this one step, that's when I start running into problems.
    I just want to join (or concatenate) two fields together with a period character in between them.
    For example, if I take FirstName and LastName, then I want them to become one field called Name, appearing as "JOHN.DOE"
    When I try to join them together, the problem comes up with the period character.
    A sample code of what I have done is here:
    BEGIN
    EXECUTE IMMEDIATE 'create view VIEW_LALALA
    as SELECT t1.FirstName + '.' + t2.LastName as Name, t1.something as Something, t2.ooo as OOO
    FROM (tableFirstNames t1 inner join tableLastNames t2 on t1.nameID = t2.nameID)
    END;

    832667 wrote:
    I am trying to create a view based off of multiple tables.
    I have all of the joins and everything done nicely and working properly.
    However, when I get to this one step, that's when I start running into problems.
    I just want to join (or concatenate) two fields together with a period character in between them.
    For example, if I take FirstName and LastName, then I want them to become one field called Name, appearing as "JOHN.DOE"
    When I try to join them together, the problem comes up with the period character.
    A sample code of what I have done is here:
    BEGIN
    EXECUTE IMMEDIATE 'create view VIEW_LALALA
    as SELECT t1.FirstName + '.' + t2.LastName as Name, t1.something as Something, t2.ooo as OOO
    FROM (tableFirstNames t1 inner join tableLastNames t2 on t1.nameID = t2.nameID)
    END;to concatenate two string together do not use "+", but "||"
    SELECT FIRST_NAME||'.'||LAST_NAME FROM EMP;

  • Cocatenate the two fields ERDAT and ERZET in one field

    Hello Friends, Please suggest how to Cocatenate the two fields ERDAT and ERZET in one field . in my ZTABLE.ERDAT IS DATE 8 and ERZET tims 6
    so what should  be the new ZCOMBO field length and type
    Please give the ABAP Code to write that in Exit to Populate this Cocatenation of these two fields.
    Thanks
    Sincerely
    Soniya Kapoor

    Hi Soniya,
    Declare the field as Timestamp and use Convert To timestamp statement for Concatenating Date and Time into a single field
    CONVERT for Timestamps
    Converts a timestamp into the correct date and time for the current time zone.
    Syntax
    CONVERT TIME STAMP <tst> TIME ZONE <tz> INTO DATE <d> TIME <t>.
    CONVERT DATE <d> TIME <t> INTO TIME STAMP <tst> TIME ZONE <tz>.
    As long as <tst> has type P(8) or P(11) with 7 decimal placed, and <tz> has type C(6), the time stamp <tst> will be converted to the correct date <d> and time <t> for the time zone <tz>.
    Regards,
    Abhishek

  • Max two same value in one field

    Hi,
    I have a project in hand. I can't figure out how to deal with
    it. I am not
    very good at manual script. I can handle on my own, though.
    My problem is I need check in the insert page if a certain
    value is in that
    field two time. If so, I do not want the visitor to insert,
    and system to
    warn the visitor to insert another value for the selected
    field.
    For example, below, for the file code, if the
    visitor/operator inserts 314,
    it should give error because there are two records whose
    file_code field
    containing 314.
    file_id filename file_code
    1 dummyname 225
    2 dummyname 314
    3 dummyname 225
    4 dummyname 314
    5 dummyname 532
    6 dummyname 756
    7 dummyname 225
    8 dummyname 987
    Thank you indeed
    Hakan

    OK, just noticed that you want to allow two of the same
    value, but no more than two.
    In that case, before inserting , just perform a select count
    using the attempted insert value in the where clause. If less than
    2 allow the insert, otherwise display the error.

Maybe you are looking for

  • ICal could not log into the caldav server

    Hi, I have a OS X Lion server that i am trying to set up for home. I have made an account for myself and have got mail running for it but when I go to turn on Calendars and Reminders, i get the error message iCal could not log into the caldav server

  • Xerox MFP 6110 scanning

    Hi I recently installed the Xerox MFP 6110 multifunctional in my network, by plugging it in in the ethernet port of Airport Extreme. Bonjour printing works perfectly, but how can I scan with this machine over the network (not through USB). Pinging be

  • I accidentally deleted both of my catalogs!

    In my New Years' organizing spree today, I decided to split my Lightroom catalog into two separate catalogs.  I didn't see an efficient way of doing this, so what I did was copy my entire catalog into a new catalog, and then I deleted (from disk) the

  • Slow Performance InDesign CS6

    Windows 7 SP1 64 Bit Professional Adobe InDesign CS6 version 8.0 12 GB Ram 128 GB SSD Whenever I try to change from the arrow to the text tool, I have to wait several seconds for the program to make the switch.  On other machines, it's instantaneous.

  • Error during early phase of installation

    Hello, I am facing an error during an installation. Our setup is as follows: empty Oracle 10.2.0.2 Database on HPUX Installation of BO Enterprise Server on Linux To meet expected performance issues and ressource consumption it should be a distributed