<?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 READ_TEXT in smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-read-text-in-smartforms/m-p/12076766#M1970500</link>
    <description>&lt;P&gt;You have hundreds of examples of "READ_TEXT" usage in the web (by the way it's always almost the same code because it's very simple). Or do you mean that your question is more about what codes (text objects and IDs) correspond to every type of text you mention?&lt;/P&gt;&lt;P&gt;The functional guys should provide test data, so it's easy to open the data via the standard transaction codes and do a SQL trace (ST05) and to retrieve the codes of long texts (SELECT on table STXH).&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 07:58:02 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2020-01-02T07:58:02Z</dc:date>
    <item>
      <title>Function module READ_TEXT in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-read-text-in-smartforms/m-p/12076763#M1970497</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;I wanted to retrive long texts of terms of payment, terms of delivery, Dispatch Conditions, Warrenty, Technical Offer No, Packing Note, ld Clause, PVC, Industry Name into my smartform .Can you please provide program lines to retrive the long text of these fields by using Read_Text module. &lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Bhavani.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 04:43:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-read-text-in-smartforms/m-p/12076763#M1970497</guid>
      <dc:creator>former_member612655</dc:creator>
      <dc:date>2020-01-02T04:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Function module READ_TEXT in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-read-text-in-smartforms/m-p/12076764#M1970498</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you know SO10 object name or you are expecting that from here?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 04:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-read-text-in-smartforms/m-p/12076764#M1970498</guid>
      <dc:creator>cdprasanna</dc:creator>
      <dc:date>2020-01-02T04:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function module READ_TEXT in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-read-text-in-smartforms/m-p/12076765#M1970499</link>
      <description>&lt;P&gt;..........&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 05:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-read-text-in-smartforms/m-p/12076765#M1970499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-01-02T05:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Function module READ_TEXT in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-read-text-in-smartforms/m-p/12076766#M1970500</link>
      <description>&lt;P&gt;You have hundreds of examples of "READ_TEXT" usage in the web (by the way it's always almost the same code because it's very simple). Or do you mean that your question is more about what codes (text objects and IDs) correspond to every type of text you mention?&lt;/P&gt;&lt;P&gt;The functional guys should provide test data, so it's easy to open the data via the standard transaction codes and do a SQL trace (ST05) and to retrieve the codes of long texts (SELECT on table STXH).&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 07:58:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-read-text-in-smartforms/m-p/12076766#M1970500</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-01-02T07:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Function module READ_TEXT in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-read-text-in-smartforms/m-p/12076767#M1970501</link>
      <description>&lt;P&gt;There is no programming required to add such text to a Smartform. Smartforms have a special Text node that can be added to include such texts. Look at the standard form LB_BIL_INVOICE for an example, FOOTER window has a text node in it. The parameters for it would be pretty much the same as for READ_TEXT FM and can be either static values or variables.&lt;/P&gt;&lt;P&gt;(Tried to post a screenshot but for some reason it doesn't work at the moment.)&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 17:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-read-text-in-smartforms/m-p/12076767#M1970501</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2020-01-02T17:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Function module READ_TEXT in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-read-text-in-smartforms/m-p/12076768#M1970502</link>
      <description>&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1760765-longtext.png" /&gt;&lt;/P&gt;&lt;P&gt;I need to retrive all these corresponding long text.But in general atrributes tab -&amp;gt;text type-&amp;gt;text include i am not getting these long text names etc can you please show me how to call all these text.when i used below code to retrive the texts but i didn't get any output&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS : p_vbeln TYPE vbak-vbeln,

             p_kunnr type kna1-kunnr.

DATA : fname TYPE rs38l_fnam.



DATA:BEGIN OF i_vbak OCCURS 0,

     vbeln type VBELN_VF,

     END OF i_vbak.

DATA: lt_lines  TYPE STANDARD TABLE OF tline,

      wa_lines  TYPE tline.

DATA: ld_text(18) TYPE c.

*DATA: tdobname TYPE tdobname.

CONSTANTS: c_id TYPE thead-tdid VALUE  '0014',

                      c_object TYPE thead-tdobject VALUE 'VBBK'.

DATA: lv_name TYPE tdobname.



select vbeln from vbak into table i_vbak where vbeln eq p_vbeln.



loop at i_vbak.



read table i_vbak with key vbeln = i_vbak-vbeln.



endloop.



 lv_name = i_vbak-vbeln.



CALL FUNCTION 'READ_TEXT'

    EXPORTING

      id        = c_id

      language  = sy-langu

      name      = lv_name

      object    = c_object

*  IMPORTING

*    header    = ld_header

    TABLES

      lines     = lt_lines

    EXCEPTIONS

      id        = 1

      language  = 2

      name      = 3

      not_found = 4

      object    = 5.

    IF sy-subrc &amp;lt;&amp;gt; 0.

    ELSE.

      LOOP AT lt_lines INTO wa_lines.

        CONCATENATE ld_text wa_lines-tdline INTO ld_text.

      ENDLOOP.

    ENDIF.



CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

  EXPORTING

    formname                 = 'Z_SALE_ORDER1'

*   VARIANT                  = ' '

*   DIRECT_CALL              = ' '

 IMPORTING

   fm_name                  = fname

 EXCEPTIONS

   no_form                  = 1

   no_function_module       = 2

   OTHERS                   = 3

          .

IF sy-subrc &amp;lt;&amp;gt; 0.

  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.



CALL FUNCTION fname

  EXPORTING

*   ARCHIVE_INDEX              =

*   ARCHIVE_INDEX_TAB          =

*   ARCHIVE_PARAMETERS         =

*   CONTROL_PARAMETERS         =

*   MAIL_APPL_OBJ              =

*   MAIL_RECIPIENT             =

*   MAIL_SENDER                =

*   OUTPUT_OPTIONS             =

*   USER_SETTINGS              = 'X'

    i_vbeln                    = p_vbeln

    i_kunnr                    = p_kunnr

* IMPORTING

*   DOCUMENT_OUTPUT_INFO       =

*   JOB_OUTPUT_INFO            =

*   JOB_OUTPUT_OPTIONS         =

 EXCEPTIONS

   formatting_error           = 1

   internal_error             = 2

   send_error                 = 3

   user_canceled              = 4

   OTHERS                     = 5

          .

IF sy-subrc &amp;lt;&amp;gt; 0.

  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.
SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L0S31 {
font-style: italic;
color: #808080;
}
.L0S32 {
color: #3399FF;
}
.L0S33 {
color: #4DA619;
}
.L0S52 {
color: #0000FF;
}
.L0S55 {
color: #800080;
}
.L0S70 {
color: #808080;
}

PARAMETERS : p_vbeln TYPE vbak-vbeln,

             p_kunnr type kna1-kunnr.

DATA : fname TYPE rs38l_fnam.



DATA:BEGIN OF i_vbak OCCURS 0,

     vbeln type VBELN_VF,

     END OF i_vbak.

DATA: lt_lines  TYPE STANDARD TABLE OF tline,

      wa_lines  TYPE tline.

DATA: ld_text(18) TYPE c.

*DATA: tdobname TYPE tdobname.

CONSTANTS: c_id TYPE thead-tdid VALUE  '0014',

                      c_object TYPE thead-tdobject VALUE 'VBBK'.

DATA: lv_name TYPE tdobname.



select vbeln from vbak into table i_vbak where vbeln eq p_vbeln.



loop at i_vbak.



read table i_vbak with key vbeln = i_vbak-vbeln.



endloop.



 lv_name = i_vbak-vbeln.



CALL FUNCTION 'READ_TEXT'

    EXPORTING

      id        = c_id

      language  = sy-langu

      name      = lv_name

      object    = c_object

*  IMPORTING

*    header    = ld_header

    TABLES

      lines     = lt_lines

    EXCEPTIONS

      id        = 1

      language  = 2

      name      = 3

      not_found = 4

      object    = 5.

    IF sy-subrc &amp;lt;&amp;gt; 0.

    ELSE.

      LOOP AT lt_lines INTO wa_lines.

        CONCATENATE ld_text wa_lines-tdline INTO ld_text.

      ENDLOOP.

    ENDIF.



CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

  EXPORTING

    formname                 = 'Z_SALE_ORDER1'

*   VARIANT                  = ' '

*   DIRECT_CALL              = ' '

 IMPORTING

   fm_name                  = fname

 EXCEPTIONS

   no_form                  = 1

   no_function_module       = 2

   OTHERS                   = 3

          .

IF sy-subrc &amp;lt;&amp;gt; 0.

  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.



CALL FUNCTION fname

  EXPORTING

*   ARCHIVE_INDEX              =

*   ARCHIVE_INDEX_TAB          =

*   ARCHIVE_PARAMETERS         =

*   CONTROL_PARAMETERS         =

*   MAIL_APPL_OBJ              =

*   MAIL_RECIPIENT             =

*   MAIL_SENDER                =

*   OUTPUT_OPTIONS             =

*   USER_SETTINGS              = 'X'

    i_vbeln                    = p_vbeln

    i_kunnr                    = p_kunnr

* IMPORTING

*   DOCUMENT_OUTPUT_INFO       =

*   JOB_OUTPUT_INFO            =

*   JOB_OUTPUT_OPTIONS         =

 EXCEPTIONS

   formatting_error           = 1

   internal_error             = 2

   send_error                 = 3

   user_canceled              = 4

   OTHERS                     = 5

          .

IF sy-subrc &amp;lt;&amp;gt; 0.

  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Jan 2020 11:19:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-read-text-in-smartforms/m-p/12076768#M1970502</guid>
      <dc:creator>former_member612655</dc:creator>
      <dc:date>2020-01-03T11:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function module READ_TEXT in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-read-text-in-smartforms/m-p/12076769#M1970503</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;bhavani123&lt;/SPAN&gt; - might want to remove the very long code fragment from the comment. It's mostly unreadable and is not relevant anyway.&lt;/P&gt;&lt;P&gt;You seem to be asking now what text IDs etc. you need for all these texts. For that, you'll need to ask a local functional consultant or do some research in your system. Every SAP customer can configure these texts differently, so it's simply impossible to get a correct answer on SCN for the question that is specific to your installation.&lt;/P&gt;&lt;P&gt;These details should've been part of your specification for the form, written by a functional consultant or a senior developer. &lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 15:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-read-text-in-smartforms/m-p/12076769#M1970503</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2020-01-03T15:24:21Z</dc:date>
    </item>
  </channel>
</rss>

