<?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 concatenatio again in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenatio-again/m-p/1273582#M150924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry friend ur replies in earlier query ll not solve my problem...&lt;/P&gt;&lt;P&gt;now i m elaborating my problem ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to upload data from flat file..&lt;/P&gt;&lt;P&gt;then  i want to concatenate all fileds into a string , row by row...and compare this string with that of string fetched from database record..&lt;/P&gt;&lt;P&gt;many fields may contains blanks  so these blanks should not be supressed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think i defined my problem properly...&lt;/P&gt;&lt;P&gt;please help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Madan Gopal Sharma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Apr 2006 10:34:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-25T10:34:07Z</dc:date>
    <item>
      <title>concatenatio again</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenatio-again/m-p/1273582#M150924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry friend ur replies in earlier query ll not solve my problem...&lt;/P&gt;&lt;P&gt;now i m elaborating my problem ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to upload data from flat file..&lt;/P&gt;&lt;P&gt;then  i want to concatenate all fileds into a string , row by row...and compare this string with that of string fetched from database record..&lt;/P&gt;&lt;P&gt;many fields may contains blanks  so these blanks should not be supressed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think i defined my problem properly...&lt;/P&gt;&lt;P&gt;please help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Madan Gopal Sharma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2006 10:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenatio-again/m-p/1273582#M150924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-25T10:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: concatenatio again</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenatio-again/m-p/1273583#M150925</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;When you are getting from file, you will be knowing the length of fields in the file. You can use offset for solving ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  DATA: T1 TYPE C VALUE '1',&lt;/P&gt;&lt;P&gt;        T2 TYPE C VALUE space,&lt;/P&gt;&lt;P&gt;        T3 TYPE C VALUE '2',&lt;/P&gt;&lt;P&gt;        T4(4) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  t4+0(1) = t1.&lt;/P&gt;&lt;P&gt;  t4+1(1) = t2.&lt;/P&gt;&lt;P&gt;  t4+2(1) = t3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; t4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Output will be 1 2.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2006 10:37:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenatio-again/m-p/1273583#M150925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-25T10:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: concatenatio again</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenatio-again/m-p/1273584#M150926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before concatenating the fields, check whether it is initial.&lt;/P&gt;&lt;P&gt;If so do the following&lt;/P&gt;&lt;P&gt;LV_FIELD = &amp;lt;ASSIGN A SPECIAL CHARACTER&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When all the fields are checked you can concatenate them into LV_STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that do the following&lt;/P&gt;&lt;P&gt;REPLACE &amp;lt;ASSIGN A SPECIAL CHARACTER&amp;gt; WITH space INTO LV_STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can compare with the string from the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sameena&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: sameena attarwala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2006 10:41:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenatio-again/m-p/1273584#M150926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-25T10:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: concatenatio again</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenatio-again/m-p/1273585#M150927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use offset for this problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1 = 'abc'.&lt;/P&gt;&lt;P&gt;t2 = '   '.&lt;/P&gt;&lt;P&gt;t3 = 'cde'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t4 = t1.&lt;/P&gt;&lt;P&gt;t4+3(3) = t2.&lt;/P&gt;&lt;P&gt;t4+6(3) = t3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t4 has the value.&lt;/P&gt;&lt;P&gt;i have assumed the lenght to be 3.&lt;/P&gt;&lt;P&gt;U need to know the length or else calculate it using strlen n use it as t4 = t4+strlen_t1(strlen_t2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanveer.&lt;/P&gt;&lt;P&gt;Mark helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2006 10:47:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenatio-again/m-p/1273585#M150927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-25T10:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: concatenatio again</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenatio-again/m-p/1273586#M150928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Madan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Quick thought&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE the records from the file as well as the Database record, then it will have one blank space between each of the strings. Now, you can compare the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have to consider BLANKS also, then this logic will NOT work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2006 10:47:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenatio-again/m-p/1273586#M150928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-25T10:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: concatenatio again</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenatio-again/m-p/1273587#M150929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. To upload data from flat file and then concatenate the data row by row into a string , you can use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZKUN_FILE8                              .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : zkunal1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab1 occurs 0.&lt;/P&gt;&lt;P&gt;      include structure zkunal1.&lt;/P&gt;&lt;P&gt;data:       end of itab1.&lt;/P&gt;&lt;P&gt;data : begin of gv_itab occurs 0.&lt;/P&gt;&lt;P&gt;      include structure zkunal1.&lt;/P&gt;&lt;P&gt;data:       end of gv_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : gv_file type string,&lt;/P&gt;&lt;P&gt;       str1 type string.&lt;/P&gt;&lt;P&gt;*****************************************************************&lt;/P&gt;&lt;P&gt;*SELECTION SCREEN                                               *&lt;/P&gt;&lt;P&gt;*****************************************************************&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF  BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_file LIKE ibipparms-path obligatory. " For file selection&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;*****************************************************************&lt;/P&gt;&lt;P&gt;*AT SELECTION SCREEN                                            *&lt;/P&gt;&lt;P&gt;*****************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   PROGRAM_NAME        = SYST-CPROG&lt;/P&gt;&lt;P&gt;   DYNPRO_NUMBER       = SYST-DYNNR&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_NAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   FILE_NAME           = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************************************************************&lt;/P&gt;&lt;P&gt;*START OF SELECTION *                                            *&lt;/P&gt;&lt;P&gt;*****************************************************************&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;P_FILE is not compatible with the FM GUI_UPLOAD, so pass it to&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;GV_FILE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gv_file = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                      = gv_file&lt;/P&gt;&lt;P&gt;     FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;     HAS_FIELD_SEPARATOR           = '#'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IGNORE_CERR                   = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    REPLACEMENT                   = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CHECK_BOM                     = ' '&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;    FILELENGTH                    =&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;      data_tab                      = gv_itab&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;P&gt;     FILE_READ_ERROR               = 2&lt;/P&gt;&lt;P&gt;     NO_BATCH                      = 3&lt;/P&gt;&lt;P&gt;     GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;P&gt;     INVALID_TYPE                  = 5&lt;/P&gt;&lt;P&gt;     NO_AUTHORITY                  = 6&lt;/P&gt;&lt;P&gt;     UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;P&gt;     BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;P&gt;     HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;P&gt;     SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;P&gt;     HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;P&gt;     UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;P&gt;     ACCESS_DENIED                 = 13&lt;/P&gt;&lt;P&gt;     DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;P&gt;     DISK_FULL                     = 15&lt;/P&gt;&lt;P&gt;     DP_TIMEOUT                    = 16&lt;/P&gt;&lt;P&gt;     OTHERS                        = 17&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;loop at gv_itab.&lt;/P&gt;&lt;P&gt;write : / gv_itab-mandt, gv_itab-fname, gv_itab-lname, gv_itab-place.&lt;/P&gt;&lt;P&gt;concatenate gv_itab-mandt gv_itab-fname gv_itab-lname gv_itab-place into&lt;/P&gt;&lt;P&gt; str1&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;write / str1.&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;************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can see the str1 has the data from the flat file . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you tell me how you are fetching the data from your database, i can tell you how to do the comparison also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Kunal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : &lt;/P&gt;&lt;P&gt;1. The table Zkunal1 is a transparent table with fields as MANDT FNAME LNAME PLACE.&lt;/P&gt;&lt;P&gt;2. The file you want to upload should be the having the data in the same sequence .&lt;/P&gt;&lt;P&gt;for example , the file can have data as :&lt;/P&gt;&lt;P&gt;100     Madan   Sharma   India. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( the data should be tab separated ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2006 11:13:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenatio-again/m-p/1273587#M150929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-25T11:13:27Z</dc:date>
    </item>
  </channel>
</rss>

