<?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: Function Module for string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-string/m-p/4584180#M1081349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT it_file INTO wa_file.

  SELECT SINGLE name1 FROM lfa1 INTO w_name WHERE lifnr = wa_file-lifnr.

  IF sy-subrc EQ 0.

    CALL FUNCTION 'AIPC_CONVERT_TO_UPPERCASE'
      EXPORTING
        i_input  = wa_file-name1
        i_langu  = 'E'
      IMPORTING
        e_output = wa_file-name1.

    CALL FUNCTION 'AIPC_CONVERT_TO_UPPERCASE'
      EXPORTING
        i_input  = w_name
        i_langu  = 'E'
      IMPORTING
        e_output = w_name.

    IF wa_file-name1 EQ w_name.
      wa_error-lifnr = wa_file-lifnr.
      wa_error-name1 = wa_file-name1.
      APPEND wa_error TO it_error.
    ELSE.
*     Your action
    ENDIF.
   
  ELSE.

    wa_error-lifnr = wa_file-lifnr.
    wa_error-name1 = wa_file-name1.
    APPEND wa_error TO it_error.

  ENDIF.

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2008 09:08:36 GMT</pubDate>
    <dc:creator>valter_oliveira</dc:creator>
    <dc:date>2008-09-26T09:08:36Z</dc:date>
    <item>
      <title>Function Module for string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-string/m-p/4584179#M1081348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to uplaod data from excel .I want to put validation that If the name1 already exists in database table LFA1, then that particular record in which that name exists will be fetched in one error internal table.&lt;/P&gt;&lt;P&gt;I want to match full name,irrespective of case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose We are again uploading Ran Avtar or ram avtar, this record get appended in error internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is any function module exists for this.&lt;/P&gt;&lt;P&gt;or suggest me some other solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aastha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 08:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-string/m-p/4584179#M1081348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T08:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-string/m-p/4584180#M1081349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT it_file INTO wa_file.

  SELECT SINGLE name1 FROM lfa1 INTO w_name WHERE lifnr = wa_file-lifnr.

  IF sy-subrc EQ 0.

    CALL FUNCTION 'AIPC_CONVERT_TO_UPPERCASE'
      EXPORTING
        i_input  = wa_file-name1
        i_langu  = 'E'
      IMPORTING
        e_output = wa_file-name1.

    CALL FUNCTION 'AIPC_CONVERT_TO_UPPERCASE'
      EXPORTING
        i_input  = w_name
        i_langu  = 'E'
      IMPORTING
        e_output = w_name.

    IF wa_file-name1 EQ w_name.
      wa_error-lifnr = wa_file-lifnr.
      wa_error-name1 = wa_file-name1.
      APPEND wa_error TO it_error.
    ELSE.
*     Your action
    ENDIF.
   
  ELSE.

    wa_error-lifnr = wa_file-lifnr.
    wa_error-name1 = wa_file-name1.
    APPEND wa_error TO it_error.

  ENDIF.

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 09:08:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-string/m-p/4584180#M1081349</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-09-26T09:08:36Z</dc:date>
    </item>
  </channel>
</rss>

