<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic FieldStrings, field-symbols and matchcode objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldstrings-field-symbols-and-matchcode-objects/m-p/3359584#M806130</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u explain and give 1 example of each....&lt;/P&gt;&lt;P&gt;1. fieldstring&lt;/P&gt;&lt;P&gt;2. fieldsymbol&lt;/P&gt;&lt;P&gt;3. matchcode object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nidhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2008 12:50:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-29T12:50:25Z</dc:date>
    <item>
      <title>FieldStrings, field-symbols and matchcode objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldstrings-field-symbols-and-matchcode-objects/m-p/3359584#M806130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u explain and give 1 example of each....&lt;/P&gt;&lt;P&gt;1. fieldstring&lt;/P&gt;&lt;P&gt;2. fieldsymbol&lt;/P&gt;&lt;P&gt;3. matchcode object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nidhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:50:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldstrings-field-symbols-and-matchcode-objects/m-p/3359584#M806130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T12:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: FieldStrings, field-symbols and matchcode objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldstrings-field-symbols-and-matchcode-objects/m-p/3359585#M806131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FIELD-SYMBOLS . Its first component is assigned to the field symbol. GET REFERENCE is then used to get a reference to the second component not the structured data object in dref2. It is dereferenced without casting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ref link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=-1&amp;amp;messageID=3068811" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=-1&amp;amp;messageID=3068811&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/field_sy.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/field_sy.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://searchsap.techtarget.com/tip/1,289483,sid21_gci920484,00.html" target="test_blank"&gt;http://searchsap.techtarget.com/tip/1,289483,sid21_gci920484,00.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matchcodes are defined in two stages in Abap/4 Dictionary: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) The revelant table and fields are stipulated in matchcode object. A matchcode object describes the set of all possible search paths for a search item. &lt;/P&gt;&lt;P&gt;2) One or more matchcode ID can be defined for a matchcode object. A matchcode ID describes a special search path for a search term.The fields or combination of fields via which the search is to take place is defined in the matchcode ID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matchcodes are replaced by SEARCH HELPs in latest versions&lt;/P&gt;&lt;P&gt;see the doc&lt;/P&gt;&lt;P&gt;1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)An elementary search help defines the standard flow of an input help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATION:&lt;/P&gt;&lt;P&gt;Go to SE11 Tcode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select search help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give the 'z' search help name and create&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select the selection method ur table name eg : 'mara'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dialog module 'display value immediately'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.&lt;/P&gt;&lt;P&gt;where left position when displaying and spos = search position&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then save and activate ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the links:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=3173469&amp;amp;messageID=2176485" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=3173469&amp;amp;messageID=2176485&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=3173469&amp;amp;messageID=3601619" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=3173469&amp;amp;messageID=3601619&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls go through this for search help creation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search Help Exits:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_exit.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_exit.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=4390517&amp;amp;messageID=1712818" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=4390517&amp;amp;messageID=1712818&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Collective search help Combine several elementary search helps. A collective search help thus can offer several alternative search paths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Collective search help provides alternative search &lt;/P&gt;&lt;P&gt;Paths by combining elementary search helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only one search help can be attached to a field, table or data element. Several search paths are therefore attached with a collective search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A collective search help also has interface parameters like&lt;/P&gt;&lt;P&gt;an elementary search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like an elementary search help, a collective search help has an interface of IMPORT and EXPORT parameters with which the search help exchanges data. Using this interface, the collective search help can be attached to fields, tables and data elements exactly like an elementary search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter assignment needs to be done for each of the&lt;/P&gt;&lt;P&gt;Included search helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you define a collective search help, there are no components for describing the dialog behavior and data selection; instead the included search helps are listed here. You must assign the parameters of the collective search help to the interface parameters of the included search help for each inclusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User may choose the tab and thus the elementary &lt;/P&gt;&lt;P&gt;search maethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we execute the search help SCUSTOM, we are confronted with a dialog which gives us an option of either restricting&lt;/P&gt;&lt;P&gt;By 1)Search for customer according to booking&lt;/P&gt;&lt;P&gt;2)Search for customer according to name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are effectively the elementary search helps (SCUSTOM_BOOK and SCUSTOM_NAME) which have been included in the collective search help SCUSTOM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOT KEY&lt;/P&gt;&lt;P&gt;The hot key is used to select the elementary search help from the collective search help and to enter the restrictions in the dialog box for restricting values directly from the entry field. If the user often searches for values using the same search help, this procedure can save time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps to create a Collective Search Help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Enter the search help name and click on create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Choose Collective search help radio button option as the search help type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)Enter the search help parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)Instead of the selection method, we enter the included&lt;/P&gt;&lt;P&gt;search helps for the collective search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5)We need to assign parameters for each of the included&lt;/P&gt;&lt;P&gt;search helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6)Complete the parameter assignment by clicking on the push button &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7)Collective search help offers the user to obtain F4 help&lt;/P&gt;&lt;P&gt;using any of the included search helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field string is nothing but the group of fields&lt;/P&gt;&lt;P&gt;You can call it as Structure also&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;types: begin of x_str&lt;/P&gt;&lt;P&gt;kunnr type kunnr,&lt;/P&gt;&lt;P&gt;lifnr type lifnr,&lt;/P&gt;&lt;P&gt;name1 type name1,&lt;/P&gt;&lt;P&gt;land1 type land1,&lt;/P&gt;&lt;P&gt;end of x_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this stores one record at run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points,&lt;/P&gt;&lt;P&gt;shakir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldstrings-field-symbols-and-matchcode-objects/m-p/3359585#M806131</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2008-01-29T12:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: FieldStrings, field-symbols and matchcode objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldstrings-field-symbols-and-matchcode-objects/m-p/3359586#M806132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FieldString&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field strings are a special form of dynamic string, which have all the capabilities of a dynamic string, but may also represent a defined part of a random file buffer or a defined part of a dynamic string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field strings must always be declared using DIM, LOCAL, STATIC, GLOBAL, or THREADED.  They may be used in the same manner as a dynamic string variable, or they can be bound to a file buffer for an open random-access file or a dynamic string using a corresponding FIELD statement.  Each field string occupies sixteen bytes of memory, and requires slightly more general overhead than a regular dynamic string variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Field Symbols *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field symbols are placeholders or symbolic names for other fields. They do not physically reserve space for a field, but point to its contents. A field symbol cam point to any data object. The data object to which a field symbol points is assigned to it after it has been declared in the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever you address a field symbol in a program, you are addressing the field that is assigned to the field symbol. After successful assignment, there is no difference in ABAP whether you reference the field symbol or the field itself. You must assign a field to each field symbol before you can address the latter in programs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field symbols are similar to dereferenced pointers in C (that is, pointers to which the content operator * is applied). However, the only real equivalent of pointers in ABAP, that is, variables that contain a memory address (reference) and that can be used without the contents operator, are reference variables in ABAP Objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All operations programmed with field symbols are applied to the field assigned to it. For example, a MOVE statement between two field symbols moves the contents of the field assigned to the first field symbol to the field assigned to the second field symbol. The field symbols themselves point to the same fields after the MOVE statement as they did before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create field symbols either without or with type specifications. If you do not specify a type, the field symbol inherits all of the technical attributes of the field assigned to it. If you do specify a type, the system checks the compatibility of the field symbol and the field you are assigning to it during the ASSIGN statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field symbols provide greater flexibility when you address data objects: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to process sections of fields, you can specify the offset and length of the field dynamically. &lt;/P&gt;&lt;P&gt;You can assign one field symbol to another, which allows you to address parts of fields. &lt;/P&gt;&lt;P&gt;Assignments to field symbols may extend beyond field boundaries. This allows you to address regular sequences of fields in memory efficiently. &lt;/P&gt;&lt;P&gt;You can also force a field symbol to take different technical attributes from those of the field assigned to it. &lt;/P&gt;&lt;P&gt;The flexibility of field symbols provides elegant solutions to certain problems. On the other hand, it does mean that errors can easily occur. Since fields are not assigned to field symbols until runtime, the effectiveness of syntax and security checks is very limited for operations involving field symbols. This can lead to runtime errors or incorrect data assignments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Matchcode/search Help&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input help (F4 help) is a standard function of the R/3 System. The user can display the list of all possible input values of a screen field with the input help. The display of the possible input values can be supplemented with descriptive information about the individual values. This is meaningful especially when the field requires the input of a formal key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 13:01:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldstrings-field-symbols-and-matchcode-objects/m-p/3359586#M806132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T13:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: FieldStrings, field-symbols and matchcode objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldstrings-field-symbols-and-matchcode-objects/m-p/3359587#M806133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nidhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need more information or solved the problem. Pls revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 05:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldstrings-field-symbols-and-matchcode-objects/m-p/3359587#M806133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T05:53:03Z</dc:date>
    </item>
  </channel>
</rss>

