<?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 Help with matchcode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-matchcode/m-p/5678728#M1290979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts, &lt;/P&gt;&lt;P&gt;I'm facing a problem when I try to show a matchcode of dates. I get the date records on the value_tab internal table, the matchcode window says that there are entries but it does not show the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it's a silly mistake, but I can't find it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_waid TYPE ccihe_waid OBLIGATORY, 
                        p_fecha TYPE ESEUPDDAT OBLIGATORY. 

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fecha.
  DATA lt_fechas TYPE STANDARD TABLE OF eseupddat.
  DATA lt_fechas_ret TYPE STANDARD TABLE OF ddshretval.
  DATA wa_fechas_ret TYPE ddshretval.

  TYPE-POOLS: cih02.
  DATA:  wa_recn_waid TYPE cih02_recn_waid_wa_type,
         lt_recn_waid TYPE cih02_recn_waid_tab_type.

  CLEAR wa_recn_waid.
  wa_recn_waid-waid = p_waid.
  APPEND wa_recn_waid TO lt_recn_waid.

  CALL FUNCTION 'CBIH_WA40_TRANS_WAIDS_TO_RECNS'
    EXPORTING
      i_valdat        = sy-datum
    TABLES
      x_recn_waid_tab = lt_recn_waid.

  READ TABLE lt_recn_waid INTO wa_recn_waid INDEX 1.
  IF sy-subrc &amp;lt;&amp;gt; 0 OR
     wa_recn_waid-recn IS INITIAL.
    MESSAGE i208(00) WITH text-000.
  ENDIF.

  SELECT upddat
  INTO TABLE lt_fechas
  FROM cciht_erh
  WHERE  recntwah = wa_recn_waid-recn. "lv_wah_recn.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE i208(00) WITH text-001.
  ELSE.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
*       DDIC_STRUCTURE         = ' '
        retfield               = 'ESEUPDDAT'
*       PVALKEY                = ' '
       dynpprog               = sy-cprog
       dynpnr                 = sy-dynnr
       dynprofield            = 'P_FECHA'
*       STEPL                  = 0
       window_title           = text-003
*       VALUE                  = ' '
       value_org              = 'S'
      TABLES
        value_tab              = lt_fechas
*       FIELD_TAB              =
       return_tab             = lt_fechas_ret
*       DYNPFLD_MAPPING        =
     EXCEPTIONS
       parameter_error        = 1
       no_values_found        = 2
       OTHERS                 = 3.

    IF sy-subrc = 0 AND
       lt_fechas_ret IS NOT INITIAL.
      READ TABLE lt_fechas_ret INDEX 0 INTO wa_fechas_ret.
      p_fecha = wa_fechas_ret-fieldval.
    ELSE.
*    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
*    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jordi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on May 28, 2009 11:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2009 08:56:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-28T08:56:03Z</dc:date>
    <item>
      <title>Help with matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-matchcode/m-p/5678728#M1290979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts, &lt;/P&gt;&lt;P&gt;I'm facing a problem when I try to show a matchcode of dates. I get the date records on the value_tab internal table, the matchcode window says that there are entries but it does not show the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it's a silly mistake, but I can't find it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_waid TYPE ccihe_waid OBLIGATORY, 
                        p_fecha TYPE ESEUPDDAT OBLIGATORY. 

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fecha.
  DATA lt_fechas TYPE STANDARD TABLE OF eseupddat.
  DATA lt_fechas_ret TYPE STANDARD TABLE OF ddshretval.
  DATA wa_fechas_ret TYPE ddshretval.

  TYPE-POOLS: cih02.
  DATA:  wa_recn_waid TYPE cih02_recn_waid_wa_type,
         lt_recn_waid TYPE cih02_recn_waid_tab_type.

  CLEAR wa_recn_waid.
  wa_recn_waid-waid = p_waid.
  APPEND wa_recn_waid TO lt_recn_waid.

  CALL FUNCTION 'CBIH_WA40_TRANS_WAIDS_TO_RECNS'
    EXPORTING
      i_valdat        = sy-datum
    TABLES
      x_recn_waid_tab = lt_recn_waid.

  READ TABLE lt_recn_waid INTO wa_recn_waid INDEX 1.
  IF sy-subrc &amp;lt;&amp;gt; 0 OR
     wa_recn_waid-recn IS INITIAL.
    MESSAGE i208(00) WITH text-000.
  ENDIF.

  SELECT upddat
  INTO TABLE lt_fechas
  FROM cciht_erh
  WHERE  recntwah = wa_recn_waid-recn. "lv_wah_recn.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE i208(00) WITH text-001.
  ELSE.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
*       DDIC_STRUCTURE         = ' '
        retfield               = 'ESEUPDDAT'
*       PVALKEY                = ' '
       dynpprog               = sy-cprog
       dynpnr                 = sy-dynnr
       dynprofield            = 'P_FECHA'
*       STEPL                  = 0
       window_title           = text-003
*       VALUE                  = ' '
       value_org              = 'S'
      TABLES
        value_tab              = lt_fechas
*       FIELD_TAB              =
       return_tab             = lt_fechas_ret
*       DYNPFLD_MAPPING        =
     EXCEPTIONS
       parameter_error        = 1
       no_values_found        = 2
       OTHERS                 = 3.

    IF sy-subrc = 0 AND
       lt_fechas_ret IS NOT INITIAL.
      READ TABLE lt_fechas_ret INDEX 0 INTO wa_fechas_ret.
      p_fecha = wa_fechas_ret-fieldval.
    ELSE.
*    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
*    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jordi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on May 28, 2009 11:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 08:56:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-matchcode/m-p/5678728#M1290979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T08:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-matchcode/m-p/5678729#M1290980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; *Add the below code and check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fecha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA  :it_dynpread TYPE TABLE OF dynpread,&lt;/P&gt;&lt;P&gt;         wa_dynpread TYPE  dynpread.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      dyname     = sy-repid&lt;/P&gt;&lt;P&gt;      dynumb     = sy-dynnr&lt;/P&gt;&lt;P&gt;      request    = 'A'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpfields = it_dynpread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE it_dynpread INTO wa_dynpread WITH KEY fieldname = 'P_WAID'.&lt;/P&gt;&lt;P&gt;  wa_recn_waid-waid = wa_dynpread-fieldvalue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 09:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-matchcode/m-p/5678729#M1290980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T09:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-matchcode/m-p/5678730#M1290981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai, &lt;/P&gt;&lt;P&gt;my problem is not to read the value from de selections screen. I want create a matchcode for a date field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the F4IF_INT_TABLE_VALUE_REQUEST function module as I do on other fields of the selection screen, filling the values from an internal table, but I can't see why does not show the value even if the internal table has records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 10:35:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-matchcode/m-p/5678730#M1290981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T10:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-matchcode/m-p/5678731#M1290982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I hope this ill help you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Fm to get the list of selected valuse in F4&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       retfield              = 'OBJID' " ref Field name&lt;/P&gt;&lt;P&gt;       value_org             = 'S'&lt;/P&gt;&lt;P&gt;       window_title          = l_title&lt;/P&gt;&lt;P&gt;       dynpprog              = sy-repid&lt;/P&gt;&lt;P&gt;       dynpnr                = sy-dynnr&lt;/P&gt;&lt;P&gt;       dynprofield           = l_field&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab              = it_value_source&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     field_tab             = it_field_tab&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      return_tab             = it_return_values&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      parameter_error        = 1&lt;/P&gt;&lt;P&gt;      no_values_found        = 2&lt;/P&gt;&lt;P&gt;      OTHERS                 = 3&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;    READ TABLE it_return_values INTO wa_return_values INDEX 1.&lt;/P&gt;&lt;P&gt;    l_value = wa_return_values-fieldval.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 12:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-matchcode/m-p/5678731#M1290982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T12:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-matchcode/m-p/5678732#M1290983</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;Why are you using the fm 'F4IF_INT_TABLE_VALUE_REQUEST' in else of selecting data lt_fechas.But lt_fechas is passed as parameter.Check that part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 12:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-matchcode/m-p/5678732#M1290983</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2009-05-28T12:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-matchcode/m-p/5678733#M1290984</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;solved myself.&lt;/P&gt;&lt;P&gt;The problem is solved using the fieldtab parameter of fm F4IF_INT_TABLE_VALUE_REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all for your answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jordi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 15:34:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-matchcode/m-p/5678733#M1290984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T15:34:50Z</dc:date>
    </item>
  </channel>
</rss>

