<?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: text data extract in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-data-extract/m-p/938936#M62709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you would be just loop at the LINES table and writing it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lOOP AT LINES.
WRITE:/ LINES-TDLINE.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jul 2005 13:03:03 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-07-29T13:03:03Z</dc:date>
    <item>
      <title>text data extract</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-data-extract/m-p/938933#M62706</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 to extract a text data regarding bill of lading. I have already used the following code for extracting basic data text from material master.&lt;/P&gt;&lt;P&gt;TABLES:&lt;/P&gt;&lt;P&gt;    STXH.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;    TDNAME LIKE STXH-TDNAME,&lt;/P&gt;&lt;P&gt;    MYLINE LIKE TLINE-TDLINE,&lt;/P&gt;&lt;P&gt;    ZE13_LINE(1200) TYPE C.&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF LINES OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE TLINE.&lt;/P&gt;&lt;P&gt;DATA:END OF LINES.&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF MYHEADER.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE THEAD.&lt;/P&gt;&lt;P&gt;DATA:END OF MYHEADER.&lt;/P&gt;&lt;P&gt;CLEAR ZBASICTEXT.&lt;/P&gt;&lt;P&gt;CLEAR TDNAME.&lt;/P&gt;&lt;P&gt;*CONCATENATE '000000000000'&lt;/P&gt;&lt;P&gt;*MARA-MATNR&lt;/P&gt;&lt;P&gt;MOVE MVKE-MVGR4&lt;/P&gt;&lt;P&gt;TO TDNAME.&lt;/P&gt;&lt;P&gt;*MOVE 'AF'&lt;/P&gt;&lt;P&gt;*TO SY-LANGU.&lt;/P&gt;&lt;P&gt;*MOVE TDNAME TO ZZTDNAME.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;        ID = 'YBOL'&lt;/P&gt;&lt;P&gt;        LANGUAGE = SY-LANGU&lt;/P&gt;&lt;P&gt;        NAME = TDNAME&lt;/P&gt;&lt;P&gt;        OBJECT = 'TEXT'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;        HEADER = MYHEADER&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;        LINES  = LINES&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;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  LOOP AT LINES.&lt;/P&gt;&lt;P&gt;    MOVE LINES-TDLINE(132) TO ZBASICTEXT."myline.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;End If.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the last line extracts only 132 characters, but however the Bill of Lading text is 10 line paragraph.So can somebody explain how to extract that data. Also I am using this code in ABAP Query for a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2005 02:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-data-extract/m-p/938933#M62706</guid>
      <dc:creator>Shiva_Ram</dc:creator>
      <dc:date>2005-07-29T02:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: text data extract</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-data-extract/m-p/938934#M62707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure I understand you question, but I assume you trying to get all the contents of the table LINES into ZBASICTEXT? If so try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lines.&lt;/P&gt;&lt;P&gt;  concatenate zbasictext lines-tdline into zbasictext separated by spcae.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if I have misinterperated your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2005 02:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-data-extract/m-p/938934#M62707</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-07-29T02:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: text data extract</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-data-extract/m-p/938935#M62708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. The following are the text lines stored in the table. The code you have given is not completely extracting the texts. I prefer in the output the same format as below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X  KEROSENE DISTILLATES N.O.S,&lt;/P&gt;&lt;P&gt;     (STORRARD SOLVENT) 3, UN 1268, PG III&lt;/P&gt;&lt;P&gt;    (FLAMMABLE LIQUID LABEL REQUIRED.&lt;/P&gt;&lt;P&gt;     MARINE POLLUTANT MARKS NOT REQUIRED ON&lt;/P&gt;&lt;P&gt;     PACKAGES WITH INNER PACKAGINGS LESS THAN 5L&lt;/P&gt;&lt;P&gt;     MARINE POLLUTANT MARK IS REQUIRED ON&lt;/P&gt;&lt;P&gt;     OUTSIDE OF TRANSPORT UNIT (CONTAINER)&lt;/P&gt;&lt;P&gt;     SCHEDULE B # 2710.00.5060&lt;/P&gt;&lt;P&gt;     FLASHPOINT= 38-55 DEG C/100-131 DEG F (TCC)&lt;/P&gt;&lt;P&gt;     IN CASE OF CHEMICAL EMERGENCY BY:&lt;/P&gt;&lt;P&gt;     ROAD: REFER TO ERG #555&lt;/P&gt;&lt;P&gt;     VESSEL: ABC NO. F-E, S-E&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2005 12:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-data-extract/m-p/938935#M62708</guid>
      <dc:creator>Shiva_Ram</dc:creator>
      <dc:date>2005-07-29T12:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: text data extract</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-data-extract/m-p/938936#M62709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you would be just loop at the LINES table and writing it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lOOP AT LINES.
WRITE:/ LINES-TDLINE.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2005 13:03:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-data-extract/m-p/938936#M62709</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-07-29T13:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: text data extract</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-data-extract/m-p/938937#M62710</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 changed as per your suggestions like the following;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  LOOP AT LINES.&lt;/P&gt;&lt;P&gt;*MOVE LINES-TDLINE(132) TO ZBASICTEXT. "myline.&lt;/P&gt;&lt;P&gt;*concatenate lines-tdline into zbasictext separated by SPACE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; EXIT.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;WRITE:/ LINES-TDLINE.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But however the output comes like this now;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     SCHEDULE B# 2914.22.1000                          &lt;/P&gt;&lt;P&gt;X    FLAMMABLE LIQUID, N.O.S., (1-CARBON 2-           &lt;/P&gt;&lt;P&gt;     LIQUID ACETATE, PROPANE),                 &lt;/P&gt;&lt;P&gt;     3, UN 9999, PG II                                &lt;/P&gt;&lt;P&gt;     ERG# 901                                          &lt;/P&gt;&lt;P&gt;     SCHEDULE B# 0000.90.0000                                                                                &lt;/P&gt;&lt;P&gt;Material MG                                           &lt;/P&gt;&lt;P&gt; Basic data text                                                                                &lt;/P&gt;&lt;P&gt;800001   ZZ                                           &lt;/P&gt;&lt;P&gt;       ******DO NOT SHIP &lt;STRONG&gt;CALL 480-987-7177&lt;/STRONG&gt;******     &lt;/P&gt;&lt;P&gt; 800002   ZZ                                           &lt;/P&gt;&lt;P&gt;       ******DO NOT SHIP &lt;STRONG&gt;CALL 480-987-7177&lt;/STRONG&gt;******     &lt;/P&gt;&lt;P&gt; 800003   IRE                                          &lt;/P&gt;&lt;P&gt;      SCHEDULE B# 3707.90.0000                         &lt;/P&gt;&lt;P&gt; 800004   ZZ                                           &lt;/P&gt;&lt;P&gt;       ******DO NOT SHIP &lt;STRONG&gt;CALL 480-987-7177&lt;/STRONG&gt;******     &lt;/P&gt;&lt;P&gt; 800005   ZZ                                           &lt;/P&gt;&lt;P&gt;       ******DO NOT SHIP &lt;STRONG&gt;CALL 480-987-7177&lt;/STRONG&gt;******     &lt;/P&gt;&lt;P&gt; 800006   ZZ                                           &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means I need the material number and parallely the description instead of the text description first and material number second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to format this? I am a SD functional guy and hence not able to play around properly in the ABAP codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a million.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2005 13:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-data-extract/m-p/938937#M62710</guid>
      <dc:creator>Shiva_Ram</dc:creator>
      <dc:date>2005-07-29T13:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: text data extract</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-data-extract/m-p/938938#M62711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again, it really depends on how the text is being stored.  Find the place where you can maintain this text.  Do the formatting from there.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2005 13:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-data-extract/m-p/938938#M62711</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-07-29T13:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: text data extract</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-data-extract/m-p/938939#M62712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know which Text Objects you are trying to extract? &lt;/P&gt;&lt;P&gt;It seems that when you implement Rich's suggestion, you are getting the wrong data out. Maybe you should be looking for a different Text Object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg, when you are in Material Master, go to the Sales Text Tab. At the bottom of the Screen, you should see an icon that looks like a page with a pencil in it. It should have "Editor" as it's tooltip. If you click on it, you should see  your Material Sales Text in a different window. You should notice that on the left hand side, it has an asterisk (*) followed by each text line. The READ_TEXT FM pulls this data out. In order to find the parameters to pass into the READ_TEXT FM, use the following Menu Path: Goto-&amp;gt;Header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you the values to pass into the FM. The Text Name is usually a concatenation of the Material Number (with it's leading zeros) and other additional data such as Sales Org, Dist. Channel, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you must find which Text Object has the output you are looking for and apply the steps I have described above to extract the data out. However, if you are looking for a combinaion of Text Objects, eg, first 2 lines of the Material Sales Text, 3 lines from the Delivery Instructions, etc then you must identify all these Text Objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is so, please let us know which Text Objects you require and the relevant rules to apply and maybe I can assist you further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this does not make sense please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jul 2005 22:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-data-extract/m-p/938939#M62712</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-07-31T22:58:27Z</dc:date>
    </item>
  </channel>
</rss>

