<?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/4717046#M1107688</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 these values.&lt;/P&gt;&lt;P&gt;v_vgbel                        0001994817     &lt;/P&gt;&lt;P&gt;f_vgbel                        00019948170000 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_vgbel is my sales order number&lt;/P&gt;&lt;P&gt;f_vgbel is ordernum + item num (as this is header text I am passing 0000 as item num)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I just give v_vgbel(Order num) it is giving me the following dump. If I give f_vgbel(order num+0000) it is not giving me any dump, but no values are comming in itab_read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will really appriciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime Errors         CALL_FUNCTION_CONFLICT_TYPE                                  &lt;/P&gt;&lt;P&gt;Except.                CX_SY_DYN_CALL_ILLEGAL_TYPE                                  &lt;/P&gt;&lt;P&gt;Date and Time          11/13/2008 13:29:19                                                                                &lt;/P&gt;&lt;P&gt;Short text                                                                         &lt;/P&gt;&lt;P&gt;     Type conflict when calling a function module.                                                                                &lt;/P&gt;&lt;P&gt;What happened?                                                                     &lt;/P&gt;&lt;P&gt;     Error in the ABAP Application Program                                                                                &lt;/P&gt;&lt;P&gt;The current ABAP program "SAPLXLID" had to be terminated because it has        &lt;/P&gt;&lt;P&gt;     come across a statement that unfortunately cannot be executed.                                                                                &lt;/P&gt;&lt;P&gt;A function module was called incorrectly.                                                                                &lt;/P&gt;&lt;P&gt;Error analysis                                                                     &lt;/P&gt;&lt;P&gt;     An exception occurred that is explained in detail below.                       &lt;/P&gt;&lt;P&gt;     The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was   &lt;/P&gt;&lt;P&gt;      not caught in                                                                 &lt;/P&gt;&lt;P&gt;     procedure "EXIT_SAPLVMDE_002" "(FUNCTION)", nor was it propagated by a RAISING &lt;/P&gt;&lt;P&gt;      clause.                                                                       &lt;/P&gt;&lt;P&gt;     Since the caller of the procedure could not have anticipated that the          &lt;/P&gt;&lt;P&gt;     exception would occur, the current program is terminated.                      &lt;/P&gt;&lt;P&gt;     The reason for the exception is:                                               &lt;/P&gt;&lt;P&gt;     The call to the function module "READ_TEXT" is incorrect:                                                                                &lt;/P&gt;&lt;P&gt;The function module interface allows you to specify only                       &lt;/P&gt;&lt;P&gt;     fields of a particular type under "NAME".                                      &lt;/P&gt;&lt;P&gt;     The field "V_VGBEL" specified here is a different                              &lt;/P&gt;&lt;P&gt;     field type                                                                     &lt;/P&gt;&lt;P&gt;     .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2008 21:33:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-13T21:33:20Z</dc:date>
    <item>
      <title>Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717034#M1107676</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 sales order num and want to read Header texts. Can someone please give me an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 18:24:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717034#M1107676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T18:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717035#M1107677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: LS_XTHEAD LIKE THEADVB.
DATA tlinetab   LIKE tline OCCURS 0 WITH HEADER LINE.
(This structure is only suitable the first time we entry the VA01)
READ TABLE XTHEAD INTO LS_XTHEAD WITH KEY TDOBJECT = XTHEAD-TDOBJECT
                                                TDNAME   = XTHEAD-TDNAME
                                                TDID     = XTHEAD-TDID
                                                TDSPRAS  = XTHEAD-TDSPRAS.

CALL FUNCTION 'READ_TEXT'
    EXPORTING
     CLIENT                        = SY-MANDT
      id                            = LS_XTHEAD-tdid
      language                      = LS_XTHEAD-tdspras
      name                          = LS_XTHEAD-tdname
      object                        = LS_XTHEAD-tdobject
    TABLES
      lines                         = tlinetab
   EXCEPTIONS
     id                            = 1
     language                      = 2
     name                          = 3
     not_found                     = 4
     object                        = 5
     reference_check               = 6
     wrong_access_to_archive       = 7
     OTHERS                        = 8.
  CHECK sy-subrc = 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 18:30:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717035#M1107677</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-11-13T18:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717036#M1107678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MOVE wa_vbak-vbeln TO v_vbeln.  &lt;/P&gt;&lt;P&gt;you have to pass sales order number ,id,object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get those values go to SE75.&lt;/P&gt;&lt;P&gt;select text objects and IDs and display. &lt;/P&gt;&lt;P&gt;search for sales.you will get object for sales and double click on it to get the Text IDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'READ_TEXT'
    EXPORTING
     client                        = sy-mandt
      id                            = 'Z004'
      language                      = sy-langu
      name                          = v_vbeln
      object                        = 'VBBK'
*   ARCHIVE_HANDLE                = 0
*   LOCAL_CAT                     = ' '
* IMPORTING
*   HEADER                        =
    TABLES
      lines                         = t_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 &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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 18:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717036#M1107678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T18:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717037#M1107679</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;Is the following code correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:    itab_read like tline occurs 10 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_vgbel has order number.&lt;/P&gt;&lt;P&gt;concatenate v_vgbel '0000' into f_vgbel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I give just V_vgbel sales order number it is giving me dump.&lt;/P&gt;&lt;P&gt;If I give f_vgbel then, no dump but nothing is comming in itab_read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything wrong in my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      call function 'READ_TEXT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          id                      = '0021'&lt;/P&gt;&lt;P&gt;          language                = 'E'&lt;/P&gt;&lt;P&gt;          name                    = f_vgbel&lt;/P&gt;&lt;P&gt;          object                  = 'VBBK'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          lines                   = itab_read&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 18:50:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717037#M1107679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T18:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717038#M1107680</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;STRONG&gt;VGBEL-Document number of the reference document&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;its different to sales order number .. all though both are vbeln..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 18:52:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717038#M1107680</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-11-13T18:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717039#M1107681</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;In my program it is declared as sales order number and I debuged it and checked the number is sales oder number only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; v_vgbel like lips-vgbel,         " Sales Order Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single vgbel matnr from  lips                 &lt;/P&gt;&lt;P&gt;      into (v_vgbel,v_matnr)                           &lt;/P&gt;&lt;P&gt;      where  vbeln       = v_vbeln                     &lt;/P&gt;&lt;P&gt;      and    posnr       = v_posnr.                    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 19:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717039#M1107681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T19:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717040#M1107682</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;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: v_name TYPE THEAD-TDNAME.

concatenate sy-mandt V_vgbel  into v_name.

call function 'READ_TEXT'
EXPORTING
id = '0021'
language = 'E'
name = v_name          " Changed here.
object = 'VBBK'
TABLES
lines = itab_read
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;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 19:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717040#M1107682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T19:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717041#M1107683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you can double click in &lt;STRONG&gt;lips-vgbel&lt;/STRONG&gt;  it will take you to the field.. which says &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VGBEL	VGBEL	CHAR	10	0	Document number of the &lt;STRONG&gt;reference document&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this is the number you want text .. then the object which you are passing into read_text will change.. thats the reason ur table is not getting data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 19:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717041#M1107683</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-11-13T19:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717042#M1107684</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 went in to Sales order header texts and double clicked on the text and went to goto -&amp;gt; header. Then I got text name as sales order num, textid 0021, text object VBBK and language EN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will the following v_vbeln work for me as text name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt;Get Sales Order information from sales order number.--&lt;HR originaltext="-----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select single vbeln from vbak into (v_vbeln)&lt;/P&gt;&lt;P&gt;         where  vbeln       = v_vgbel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 19:27:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717042#M1107684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T19:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717043#M1107685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi veni&lt;/P&gt;&lt;P&gt;at times there will be spaces in between vbeln &amp;lt;space&amp;gt; posnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check in STXH table with the object tdname and tdid and check if you are returning any data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are getting in table and not in read text.. there is some problem in the table deceleration or some code issue...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 19:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717043#M1107685</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-11-13T19:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717044#M1107686</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;Here is exactly how it is in my STXH table. it gave TDTXTLINES as 1.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;Text Object               VBBK       &lt;/P&gt;&lt;P&gt;Text Name                 0001994817 &lt;/P&gt;&lt;P&gt;Text ID                   0021       &lt;/P&gt;&lt;P&gt;Language Key              E    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TDTXTLINES            1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;veni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 19:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717044#M1107686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T19:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717045#M1107687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you dont have to concatenate sy-mandt to SO number. &lt;/P&gt;&lt;P&gt;just pass the SO number itself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;concatenate v_vgbel '0000' into f_vgbel.&lt;/DEL&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MOVE v_vgbel TO f_vgbel.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 20:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717045#M1107687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T20:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717046#M1107688</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 these values.&lt;/P&gt;&lt;P&gt;v_vgbel                        0001994817     &lt;/P&gt;&lt;P&gt;f_vgbel                        00019948170000 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_vgbel is my sales order number&lt;/P&gt;&lt;P&gt;f_vgbel is ordernum + item num (as this is header text I am passing 0000 as item num)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I just give v_vgbel(Order num) it is giving me the following dump. If I give f_vgbel(order num+0000) it is not giving me any dump, but no values are comming in itab_read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will really appriciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime Errors         CALL_FUNCTION_CONFLICT_TYPE                                  &lt;/P&gt;&lt;P&gt;Except.                CX_SY_DYN_CALL_ILLEGAL_TYPE                                  &lt;/P&gt;&lt;P&gt;Date and Time          11/13/2008 13:29:19                                                                                &lt;/P&gt;&lt;P&gt;Short text                                                                         &lt;/P&gt;&lt;P&gt;     Type conflict when calling a function module.                                                                                &lt;/P&gt;&lt;P&gt;What happened?                                                                     &lt;/P&gt;&lt;P&gt;     Error in the ABAP Application Program                                                                                &lt;/P&gt;&lt;P&gt;The current ABAP program "SAPLXLID" had to be terminated because it has        &lt;/P&gt;&lt;P&gt;     come across a statement that unfortunately cannot be executed.                                                                                &lt;/P&gt;&lt;P&gt;A function module was called incorrectly.                                                                                &lt;/P&gt;&lt;P&gt;Error analysis                                                                     &lt;/P&gt;&lt;P&gt;     An exception occurred that is explained in detail below.                       &lt;/P&gt;&lt;P&gt;     The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was   &lt;/P&gt;&lt;P&gt;      not caught in                                                                 &lt;/P&gt;&lt;P&gt;     procedure "EXIT_SAPLVMDE_002" "(FUNCTION)", nor was it propagated by a RAISING &lt;/P&gt;&lt;P&gt;      clause.                                                                       &lt;/P&gt;&lt;P&gt;     Since the caller of the procedure could not have anticipated that the          &lt;/P&gt;&lt;P&gt;     exception would occur, the current program is terminated.                      &lt;/P&gt;&lt;P&gt;     The reason for the exception is:                                               &lt;/P&gt;&lt;P&gt;     The call to the function module "READ_TEXT" is incorrect:                                                                                &lt;/P&gt;&lt;P&gt;The function module interface allows you to specify only                       &lt;/P&gt;&lt;P&gt;     fields of a particular type under "NAME".                                      &lt;/P&gt;&lt;P&gt;     The field "V_VGBEL" specified here is a different                              &lt;/P&gt;&lt;P&gt;     field type                                                                     &lt;/P&gt;&lt;P&gt;     .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 21:33:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717046#M1107688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T21:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717047#M1107689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the value passed to this FM should be of type THEAD-TDNAME.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you dont have to concatenate the mandt or item for reading header text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you see the values in STXH table the text name is 10 characters(just the SO number).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Text Object VBBK
Text Name 0001994817
Text ID 0021
Language Key E

TDTXTLINES 1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*DATA : f_vgbel TYPE THEAD-TDNAME.* 

*MOVE v_vgbel TO f_vgbel.*


call function 'READ_TEXT'
EXPORTING
id = '0021'
language = 'E'
name = f_vgbel
object = 'VBBK'
TABLES
lines = itab_read
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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 23:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717047#M1107689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T23:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717048#M1107690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Veni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: v_vgbel like lips-vgbel.
data: v_name type thead-tdname.
data: itab_read like tline occurs 10 with header line.

select single vgbel matnr from lips
            into (v_vgbel,v_matnr)
        where vbeln = v_vbeln
           and posnr = v_posnr. 

v_name = v_vgbel.

CALL FUNCTION 'READ_TEXT'
    EXPORTING
      id                            = 'Z004'
      language                      = sy-langu
      name                          = v_name
      object                        = 'VBBK'
*   ARCHIVE_HANDLE                = 0
*   LOCAL_CAT                     = ' '
* IMPORTING
*   HEADER                        =
    TABLES
      lines                         = itab_read
   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  0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: hikarulea on Nov 14, 2008 4:06 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2008 08:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717048#M1107690</guid>
      <dc:creator>guang_li</dc:creator>
      <dc:date>2008-11-14T08:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717049#M1107691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont you know how to &lt;STRONG&gt;search&lt;/STRONG&gt; in SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do a &lt;STRONG&gt;search&lt;/STRONG&gt; with READ_TEXT you will get tons of threads having code samples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rules&lt;EM&gt;of&lt;/EM&gt;Engagement] before posting more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And always &lt;STRONG&gt;search&lt;/STRONG&gt; before posting a question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2008 09:10:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4717049#M1107691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-14T09:10:15Z</dc:date>
    </item>
  </channel>
</rss>

