<?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: READ_TEXT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121922#M985435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks to all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2008 05:07:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-09T05:07:17Z</dc:date>
    <item>
      <title>READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121915#M985428</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 want to use FM read_text in which i have to send &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vbak-vbeln and vbap-posnr in parameter name but i forget the how to combine order number and item number to pass them to parameter 'NAME'. could you please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 03:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121915#M985428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T03:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121916#M985429</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;Open the sales order, display the text in Script Editor, check the header details there. It will give you the  name and the other parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 03:09:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121916#M985429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T03:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121917#M985430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will do &lt;/P&gt;&lt;P&gt;concatenate vbak-vbeln  vbap-posnr  into name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condense name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tnx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 03:10:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121917#M985430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T03:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121918#M985431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to dsplay text in sapscript environment???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 03:25:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121918#M985431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T03:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121919#M985432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this FM used in a short example program below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF tbl_lines OCCURS 0.
        INCLUDE STRUCTURE tline.
DATA: END OF tbl_lines.

DATA: l_name LIKE thead-tdname.

PARAMETERS pa_vbeln LIKE vbak-vbeln.

START-OF-SELECTION.

  l_name = pa_vbeln.

  CALL FUNCTION 'READ_TEXT'
    EXPORTING
      client                  = sy-mandt
      id                      = '0001'  "&amp;lt;----Header text
      language                = sy-langu
      name                    = l_name
      object                  = 'VBBK'
    TABLES
      lines                   = tbl_lines
    EXCEPTIONS
      id                      = 1
      language                = 2
      name                    = 3
      not_found               = 4
      object                  = 5
      reference_check         = 6
      wrong_access_to_archive = 7
      OTHERS                  = 8.

  IF sy-subrc EQ 0.

    LOOP AT tbl_lines.
      WRITE tbl_lines-tdline.
    ENDLOOP.

  ELSE.
    WRITE:/ 'Sy-Subrc = ', sy-subrc.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After getting the header text, use FM &lt;STRONG&gt;Write_Form&lt;/STRONG&gt; to write it out in a SapScript. For item text use same FM READ_TEXT but object will be &lt;STRONG&gt;'VBBP'&lt;/STRONG&gt;. You can't get all the texts of the sales order at the same time - you'll have to call this function separately for header text and item text and pass the &lt;STRONG&gt;ID&lt;/STRONG&gt; correctly. Please read the function module documentation which clearly states &lt;U&gt;Generic entries in these parameters are not valid&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps and please don't forget to reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sougata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 04:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121919#M985432</guid>
      <dc:creator>Sougata</dc:creator>
      <dc:date>2008-07-04T04:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121920#M985433</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 need to know how to concatenate vbaln and posnr to pass it to name parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 04:56:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121920#M985433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T04:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121921#M985434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Changing the example program in my last post.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: pa_vbeln LIKE vbak-vbeln,
            pa_posnr LIKE vbap-posnr.

START-OF-SELECTION.

  CONCATENATE pa_vbeln pa_posnr INTO l_name.

  CALL FUNCTION 'READ_TEXT'
    EXPORTING
      client                  = sy-mandt
      id                      = '0001'          "Item text
      language                = sy-langu
      name                    = l_name
      object                  = 'VBBP'
    TABLES
      lines                   = tbl_lines
    EXCEPTIONS
      id                      = 1
      language                = 2
      name                    = 3
      not_found               = 4
      object                  = 5
      reference_check         = 6
      wrong_access_to_archive = 7
      OTHERS                  = 8.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Please don't forget to reward points&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sougata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 05:23:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121921#M985434</guid>
      <dc:creator>Sougata</dc:creator>
      <dc:date>2008-07-04T05:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121922#M985435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks to all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 05:07:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121922#M985435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T05:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121923#M985436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aditya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We worked hard to solve your problem - you reward us with &lt;/P&gt;&lt;P&gt;just 2 points each and close the thread??!! That is very unfair &lt;/P&gt;&lt;P&gt;and annoying indeed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sougata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 05:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4121923#M985436</guid>
      <dc:creator>Sougata</dc:creator>
      <dc:date>2008-07-10T05:22:38Z</dc:date>
    </item>
  </channel>
</rss>

