<?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 Re: Search help exit offset is incorrect in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-exit-offset-is-incorrect/m-p/1758018#M328242</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;Try declaring a internal table with the view name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;where z_test is my z view..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: ITAB LIKE Z_VIEW OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB[] = RECORD_TAB[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the internal table ITAB you use directly use the field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2006 17:24:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-12T17:24:26Z</dc:date>
    <item>
      <title>Search help exit offset is incorrect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-exit-offset-is-incorrect/m-p/1758017#M328241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm building a search help exit for MAT0M and i am adding code for the DISP step.  I have the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      read table shlp-fielddescr into wa_shlp with key fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;      loop at record_tab.&lt;/P&gt;&lt;P&gt;        l_matnr = record_tab-string+wa_shlp-offset(wa_shlp-leng).&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is i'm getting an offset value of 82 when the material number is really located at offset 59.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've looked at the other values in the shlp-fielddescr table and I can't figure out how it is coming up with 82 as an offset.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The shlp-fielddescr table looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M_MAT1M     |MAKTG                |E           |0001  |000000&lt;/P&gt;&lt;P&gt;M_MAT1M     |MATNR                |E           |0002  |000082&lt;/P&gt;&lt;P&gt;M_MAT1M     |MATNR_EXT        |E           |0003   |000118&lt;/P&gt;&lt;P&gt;M_MAT1M     |MATNR_VERS     |E           |0004  |000198&lt;/P&gt;&lt;P&gt;M_MAT1M     |SPRAS                |E           |0005  |000080&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This appears to be the layout for the final screen displayed to the user but not the layout in record_tab-string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;record_tab-string looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material Description (offset 0) , External Mat Num(offset 40), Mat Num (offset 59)&lt;/P&gt;&lt;P&gt;TOOL                                   | ETOOL-48                          | TOOL48&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 17:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-exit-offset-is-incorrect/m-p/1758017#M328241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T17:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search help exit offset is incorrect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-exit-offset-is-incorrect/m-p/1758018#M328242</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;Try declaring a internal table with the view name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;where z_test is my z view..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: ITAB LIKE Z_VIEW OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB[] = RECORD_TAB[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the internal table ITAB you use directly use the field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 17:24:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-exit-offset-is-incorrect/m-p/1758018#M328242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T17:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Search help exit offset is incorrect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-exit-offset-is-incorrect/m-p/1758019#M328243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately this technique won't be effective when using the exit code with other MAT* search helps.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to have one function module that will work with all 27 material search helps on MAT1.  Each of these with have a different "view".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There must be a way to get the correct offset number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 18:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-exit-offset-is-incorrect/m-p/1758019#M328243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T18:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search help exit offset is incorrect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-exit-offset-is-incorrect/m-p/1758020#M328244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In other posts and note 736293 I understood that I couldn't modify the record_tab table directly.  What I wasn't clear on is that you shouldn't READ record_tab directly either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution was to call F4UT_PARAMETER_VALUE_GET and pass in the fieldname and parameter of MATNR.  In return the RESULTS_TAB is popuplated with the material numbers I was looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 19:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-exit-offset-is-incorrect/m-p/1758020#M328244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T19:51:01Z</dc:date>
    </item>
  </channel>
</rss>

