<?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: matchcode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013407#M79400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone here has an idea on how to retrieve material number based on part of purchase order long text entered. Search help for PO text. The code above does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pratibha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Aug 2005 10:03:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-20T10:03:25Z</dc:date>
    <item>
      <title>matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013395#M79388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create matchcode(Search help) for Purchase Order Text(Long text) of a material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the steps to create matchcode for table fields, but do not know how to create for this long text which can be read with READ_TEXT FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with the steps to create this search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pratibha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2005 06:07:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013395#M79388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-07T06:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013396#M79389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratibha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this can be achieved by using the search help exit. Under the search help parameter, give a parameter to which you want to populate the PO long text (say POTEXT and give a data element). This parameter can be later populated using the search help exit. Please see the function module  F4IF_SHLP_EXIT_EXAMPLE. This can be copies to your Z name range and do the modification. In it check the section 'STEP SELECT (Select values)'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should you require more clarification please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2005 10:16:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013396#M79389</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-08-07T10:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013397#M79390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shall I enter only one search help parameter (POTEXT)?&lt;/P&gt;&lt;P&gt;Or MATNR also required? Because based on Long text entered I want to display Material Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As well shall I just uncomment STEP SELECT section of FM or I have to add some extra code in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pratibha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2005 10:34:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013397#M79390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-07T10:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013398#M79391</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;Please follow these steps. There is a slight correction from my previous mail. Instead of the SELECT step, you have to write your code in the DISP (Display Values) stage. In this step you get all the values in the internal table RECORD_TAB. This has got one one field called 'String'. You can use the substring option to take the desired value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now answering your questions. &lt;/P&gt;&lt;P&gt;You have to have all the fields in the serach help which are needed for the READ_TEXT function module. And the POTEXT field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;VBELN	1	1	VBELN_VL&lt;/P&gt;&lt;P&gt;POSNR	2	2	POSNR_VL&lt;/P&gt;&lt;P&gt;MATNR	3	3	MATNR&lt;/P&gt;&lt;P&gt;POTEXT	4	4	CHAR40&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have to code in the 'Display values' section to populate the value of POTEXT in the internal table RECORD_TAB. For this declare a structure in the function module with all the fields you have declared in the search help. Populate this structure inside the LOOP and modify RECORD_TAB using this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if callcontrol-step = 'DISP'.&lt;/P&gt;&lt;P&gt;    loop at record_tab.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;     call function 'READ_TEXT'&lt;/P&gt;&lt;P&gt;       ....&lt;/P&gt;&lt;P&gt;       ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Populate the record_tab&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2005 10:54:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013398#M79391</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-08-07T10:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013399#M79392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i don't know whether this is write way or not , but i think it can be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have used PFCG, there we enter detail description in text_editor.&lt;/P&gt;&lt;P&gt;this description is saved in a database table as line by line along with line number, &lt;/P&gt;&lt;P&gt;so if you can do something like this it can be very easy to attach search help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2005 05:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013399#M79392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-08T05:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013400#M79393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which function group you are using for this Function Module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pratibha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2005 06:21:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013400#M79393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-08T06:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013401#M79394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any of the Z* or Y* function group. You can use any of the existing one or a new one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2005 06:33:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013401#M79394</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-08-08T06:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013402#M79395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a code for Function Module&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------" /&gt;&lt;P&gt;FUNCTION Z_MATNR_MATCHCODE.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      SHLP_TAB TYPE  SHLP_DESCR_TAB_T&lt;/P&gt;&lt;P&gt;*"      RECORD_TAB STRUCTURE  SEAHLPRES&lt;/P&gt;&lt;P&gt;*"  CHANGING&lt;/P&gt;&lt;P&gt;*"     VALUE(SHLP) TYPE  SHLP_DESCR_T&lt;/P&gt;&lt;P&gt;*"     VALUE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF minfo OCCURS 0,        " parallel table to&lt;/P&gt;&lt;P&gt;            Matnr LIKE MARA-Matnr,    " record_tab containing&lt;/P&gt;&lt;P&gt;            POTEXT(132) ,             " the information about the seats&lt;/P&gt;&lt;P&gt;      END OF minfo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT_TEXT OCCURS 100.&lt;/P&gt;&lt;P&gt;            INCLUDE STRUCTURE TLINE.&lt;/P&gt;&lt;P&gt;DATA: END OF IT_TEXT.&lt;/P&gt;&lt;P&gt;DATA: TEMP_TEXT(72).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXIT immediately, if you do not want to handle this step&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF CALLCONTROL-STEP &amp;lt;&amp;gt; 'SELONE' AND&lt;/P&gt;&lt;P&gt;     CALLCONTROL-STEP &amp;lt;&amp;gt; 'SELECT' AND&lt;/P&gt;&lt;P&gt;     " AND SO ON&lt;/P&gt;&lt;P&gt;     CALLCONTROL-STEP &amp;lt;&amp;gt; 'DISP'.&lt;/P&gt;&lt;P&gt;     EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;STEP SELONE  (Select one of the elementary searchhelps)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This step is only called for collective searchhelps. It may be used&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to reduce the amount of elementary searchhelps given in SHLP_TAB.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The compound searchhelp is given in SHLP.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If you do not change CALLCONTROL-STEP, the next step is the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;dialog, to select one of the elementary searchhelps.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If you want to skip this dialog, you have to return the selected&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;elementary searchhelp in SHLP and to change CALLCONTROL-STEP to&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;either to 'PRESEL' or to 'SELECT'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF CALLCONTROL-STEP = 'SELONE'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PERFORM SELONE .........&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;STEP PRESEL  (Enter selection conditions)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This step allows you, to influence the selection conditions either&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;before they are displayed or in order to skip the dialog completely.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If you want to skip the dialog, you should change CALLCONTROL-STEP&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to 'SELECT'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Normaly only SHLP-SELOPT should be changed in this step.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF CALLCONTROL-STEP = 'PRESEL'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PERFORM PRESEL ..........&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;STEP SELECT    (Select values)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This step may be used to overtake the data selection completely.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To skip the standard seletion, you should return 'DISP' as following&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;step in CALLCONTROL-STEP.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Normally RECORD_TAB should be filled after this step.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Standard function module F4UT_RESULTS_MAP may be very helpfull in this&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;step.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF CALLCONTROL-STEP = 'SELECT'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PERFORM STEP_SELECT TABLES RECORD_TAB SHLP_TAB&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      CHANGING SHLP CALLCONTROL RC.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IF RC = 0.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CALLCONTROL-STEP = 'DISP'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CALLCONTROL-STEP = 'EXIT'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXIT. "Don't process STEP DISP additionally in this call.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;STEP DISP     (Display values)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This step is called, before the selected data is displayed.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;You can e.g. modify or reduce the data in RECORD_TAB&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;according to the users authority.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If you want to get the standard display dialog afterwards, you&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;should not change CALLCONTROL-STEP.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If you want to overtake the dialog on you own, you must return&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;the following values in CALLCONTROL-STEP:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;- "RETURN" if one line was selected. The selected line must be&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  the only record left in RECORD_TAB. The corresponding fields of&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  this line are entered into the screen.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;- "EXIT" if the values request should be aborted&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;- "PRESEL" if you want to return to the selection dialog&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Standard function modules F4UT_PARAMETER_VALUE_GET and&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;F4UT_PARAMETER_RESULTS_PUT may be very helpfull in this step.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF CALLCONTROL-STEP = 'DISP'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PERFORM AUTHORITY_CHECK TABLES RECORD_TAB SHLP_TAB&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                          CHANGING SHLP CALLCONTROL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at minfo.&lt;/P&gt;&lt;P&gt;    DATA: NAME LIKE THEAD-TDNAME.&lt;/P&gt;&lt;P&gt;    REFRESH : IT_TEXT.&lt;/P&gt;&lt;P&gt;    MOVE minfo-MATNR TO NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLIENT                        = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        id                            =  'BEST'&lt;/P&gt;&lt;P&gt;        language                      =  SY-LANGU&lt;/P&gt;&lt;P&gt;        name                          =  NAME&lt;/P&gt;&lt;P&gt;        object                        = 'MATERIAL'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      ARCHIVE_HANDLE                = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      LOCAL_CAT                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        lines                         = IT_TEXT&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       ID                            = 1&lt;/P&gt;&lt;P&gt;       LANGUAGE                      = 2&lt;/P&gt;&lt;P&gt;       NAME                          = 3&lt;/P&gt;&lt;P&gt;       NOT_FOUND                     = 4&lt;/P&gt;&lt;P&gt;       OBJECT                        = 5&lt;/P&gt;&lt;P&gt;       REFERENCE_CHECK               = 6&lt;/P&gt;&lt;P&gt;       WRONG_ACCESS_TO_ARCHIVE       = 7&lt;/P&gt;&lt;P&gt;       OTHERS                        = 8&lt;/P&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    minfo-POTEXT = IT_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      parameter               = 'POTEXT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    OFF_SOURCE              = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    LEN_SOURCE              = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    VALUE                   =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     FIELDNAME                = 'POTEXT'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      shlp_tab                = shlp_tab&lt;/P&gt;&lt;P&gt;      record_tab              = record_tab&lt;/P&gt;&lt;P&gt;     SOURCE_TAB               = minfo&lt;/P&gt;&lt;P&gt;    changing&lt;/P&gt;&lt;P&gt;      shlp                    = shlp&lt;/P&gt;&lt;P&gt;      callcontrol             = callcontrol&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     PARAMETER_UNKNOWN       = 1&lt;/P&gt;&lt;P&gt;     OTHERS                  = 2&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing TAB has&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHLP        TYPE   SHLP_DESCR_T&lt;/P&gt;&lt;P&gt;CALLCONTROL LIKE   DDSHF4CTRL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------" /&gt;&lt;P&gt;Tables Tab has&lt;/P&gt;&lt;P&gt;SHLP_TAB   TYPE    SHLP_DESCR_TAB_T&lt;/P&gt;&lt;P&gt;RECORD_TAB LIKE    SEAHLPRES&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Search Help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search Help parameters are&lt;/P&gt;&lt;P&gt;POTEXT (data element TDLINE) with IMP EXP checked&lt;/P&gt;&lt;P&gt;MATNR  (data element MATNR)  with IMP EXP checked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********************************************************&lt;/P&gt;&lt;P&gt;When I test this search help, and enter value in POtext parameter, No result is fetched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything wrong in FM source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pratibha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2005 07:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013402#M79395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-08T07:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013403#M79396</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;I have made few correction. The text can contain many lines, but in the match code we can display only one line. I am taking the first line. Please see the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to loop thru the RECORD_TAB internal table, not minfo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA DECLARATION&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF minfo, " parallel structure to&lt;/P&gt;&lt;P&gt;        matnr LIKE mara-matnr, " record_tab containing&lt;/P&gt;&lt;P&gt;        potext(132) , " the information about the seats&lt;/P&gt;&lt;P&gt;END OF minfo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF it_text OCCURS 100.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE tline.&lt;/P&gt;&lt;P&gt;DATA: END OF it_text.&lt;/P&gt;&lt;P&gt;DATA: temp_text(72).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: name LIKE thead-tdname,&lt;/P&gt;&lt;P&gt;      w_tabix LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF callcontrol-step = 'DISP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT record_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    w_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING record_tab TO minfo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    REFRESH : it_text.&lt;/P&gt;&lt;P&gt;    MOVE minfo-matnr TO name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        id                      = 'BEST'&lt;/P&gt;&lt;P&gt;        language                = sy-langu&lt;/P&gt;&lt;P&gt;        name                    = name&lt;/P&gt;&lt;P&gt;        object                  = 'MATERIAL'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        lines                   = it_text&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        id                      = 1&lt;/P&gt;&lt;P&gt;        language                = 2&lt;/P&gt;&lt;P&gt;        name                    = 3&lt;/P&gt;&lt;P&gt;        not_found               = 4&lt;/P&gt;&lt;P&gt;        object                  = 5&lt;/P&gt;&lt;P&gt;        reference_check         = 6&lt;/P&gt;&lt;P&gt;        wrong_access_to_archive = 7&lt;/P&gt;&lt;P&gt;        OTHERS                  = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ TABLE it_text INDEX 1.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        minfo-potext = it_text-tdline.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODIFY record_tab INDEX w_tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also change the order of the fields in the serch help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATNR (data element MATNR) with IMP EXP checked&lt;/P&gt;&lt;P&gt;POTEXT (data element TDLINE) with IMP EXP checked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the Selection method (table) you have given in the search help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this and let me know if you have problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2005 09:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013403#M79396</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-08-08T09:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013404#M79397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which table shall I use as Selection method (table) and TEXT table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System not accepting TLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pratibha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2005 06:04:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013404#M79397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-09T06:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013405#M79398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratibha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From which table you are getting the material number?&lt;/P&gt;&lt;P&gt;This you have to give as the section method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2005 06:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013405#M79398</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-08-09T06:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013406#M79399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I provide MARA table. &lt;/P&gt;&lt;P&gt;I get warning Serach help parameter POTEXT does not occur in selection methid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After executing matchcode, I am entering POTEXT for MAterial number serach.&lt;/P&gt;&lt;P&gt;I get an error TEXT ID 'BEST' Language EN not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System hangs after this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pratibha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2005 06:32:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013406#M79399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-09T06:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013407#M79400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone here has an idea on how to retrieve material number based on part of purchase order long text entered. Search help for PO text. The code above does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pratibha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Aug 2005 10:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode/m-p/1013407#M79400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-20T10:03:25Z</dc:date>
    </item>
  </channel>
</rss>

