<?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: FM : Read_text and Save_text problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-and-save-text-problem/m-p/1310466#M161595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two problems in your source code,see:&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;the code is commented and you created a new variable,&lt;/P&gt;&lt;P&gt;but no used in your function.&lt;/P&gt;&lt;P&gt;data: "wa_header like line of header,&lt;/P&gt;&lt;P&gt;wa_line like line of lines.&lt;/P&gt;&lt;P&gt;2) You pass the hard code: &lt;/P&gt;&lt;P&gt;NAME = 'wa_it_merge-a-partner' -&amp;gt; incorret&lt;/P&gt;&lt;P&gt;NAME = wa_it_merge-a-partner -&amp;gt; corret, without ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexandre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jun 2006 13:52:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-08T13:52:13Z</dc:date>
    <item>
      <title>FM : Read_text and Save_text problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-and-save-text-problem/m-p/1310463#M161592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends &lt;/P&gt;&lt;P&gt;     I have used above function module that resutl me into the error.&lt;/P&gt;&lt;P&gt;  "that the partner language id is not found,,  i have check this thing into STXL table there if i pass all the parameter excluding the name is gives me entries.. but i f i pass the name parameter with 0000000134 it says the result not found where the 134 record is ther into the tab;e also i have check with the only 134 but it says the same... please help me to find out where i am doing the mistakes...i am giving you the code.. any suggestion, code, will be great help of mine,,, i have check this function module without loop and separetly from the program but it resulted the same... please hlep me&lt;/P&gt;&lt;P&gt;thanking you..&lt;/P&gt;&lt;P&gt;regards naim&lt;/P&gt;&lt;P&gt;here is the code...&lt;/P&gt;&lt;P&gt;data: header TYPE thead,&lt;/P&gt;&lt;P&gt;      lines  TYPE STANDARD TABLE OF tline.&lt;/P&gt;&lt;P&gt;data: "wa_header like line of header,&lt;/P&gt;&lt;P&gt;      wa_line like line of lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_merge into wa_it_merge.&lt;/P&gt;&lt;P&gt;      lv_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;      lv_tabix = lv_tabix + 1.&lt;/P&gt;&lt;P&gt;      read table it_merge index lv_tabix into wa_it_merge.&lt;/P&gt;&lt;P&gt;      if wa_it_merge-a-idnumber = wa_i_casep-a-idnumber.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;           CLIENT                        = '100'&lt;/P&gt;&lt;P&gt;            ID                           = 'Z001'&lt;/P&gt;&lt;P&gt;            LANGUAGE                     = 'E'&lt;/P&gt;&lt;P&gt;            NAME                         = 'wa_it_merge-a-partner'&lt;/P&gt;&lt;P&gt;            OBJECT                       = 'BUT000'&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;           HEADER                        = header&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            LINES                        = lines.&lt;/P&gt;&lt;P&gt;         CALL FUNCTION 'SAVE_TEXT'&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;               CLIENT                = SY-MANDT&lt;/P&gt;&lt;P&gt;               HEADER                = header&lt;/P&gt;&lt;P&gt;               SAVEMODE_DIRECT       = 'X'&lt;/P&gt;&lt;P&gt;             IMPORTING&lt;/P&gt;&lt;P&gt;               NEWHEADER             = header&lt;/P&gt;&lt;P&gt;             TABLES&lt;/P&gt;&lt;P&gt;               LINES                 = lines.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     loop at header into wa_header.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          lv_tabix = sy-tabix.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          lv_tabix = sy-tabix + 1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          read table header index lv_tabix into wa_header.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          if sy-subrc = 0.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             move-corresponding wa_header to i_case_p.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             append i_case_p.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             clear i_case_p.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     endloop.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      loop at lines into wa_line.&lt;/P&gt;&lt;P&gt;           lv_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;           lv_tabix = sy-tabix + 1.&lt;/P&gt;&lt;P&gt;           read table lines index lv_tabix into wa_line.&lt;/P&gt;&lt;P&gt;           if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;              move-corresponding wa_line to i_case_p.&lt;/P&gt;&lt;P&gt;              append i_case_p.&lt;/P&gt;&lt;P&gt;              clear i_case_p.&lt;/P&gt;&lt;P&gt;           endif.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 13:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-and-save-text-problem/m-p/1310463#M161592</guid>
      <dc:creator>naimkhans_babi</dc:creator>
      <dc:date>2006-06-08T13:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: FM : Read_text and Save_text problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-and-save-text-problem/m-p/1310464#M161593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: header TYPE thead,
lines TYPE STANDARD TABLE OF tline.
data: "wa_header like line of header,
wa_line like line of lines.

Loop at it_merge into wa_it_merge.
lv_tabix = sy-tabix.
lv_tabix = lv_tabix + 1.
read table it_merge index lv_tabix into wa_it_merge.
if wa_it_merge-a-idnumber = wa_i_casep-a-idnumber.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = '100'
ID = 'Z001'
LANGUAGE = 'E'
&amp;lt;b&amp;gt;NAME = 'wa_it_merge-a-partner'&amp;lt;/b&amp;gt;  "WRONG
OBJECT = 'BUT000'
IMPORTING
HEADER = header
TABLES
LINES = lines.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = header
SAVEMODE_DIRECT = 'X'
IMPORTING
NEWHEADER = header
TABLES
LINES = lines.
endif.
* loop at header into wa_header.
* lv_tabix = sy-tabix.
* lv_tabix = sy-tabix + 1.
* read table header index lv_tabix into wa_header.
* if sy-subrc = 0.
* move-corresponding wa_header to i_case_p.
* append i_case_p.
* clear i_case_p.
* endif.
* endloop.
loop at lines into wa_line.
lv_tabix = sy-tabix.
lv_tabix = sy-tabix + 1.
read table lines index lv_tabix into wa_line.
if sy-subrc = 0.
move-corresponding wa_line to i_case_p.
append i_case_p.
clear i_case_p.
endif.
endloop.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 13:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-and-save-text-problem/m-p/1310464#M161593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-08T13:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: FM : Read_text and Save_text problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-and-save-text-problem/m-p/1310465#M161594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;data: name type tdname.

NAME = wa_it_merge-a-partner.&amp;lt;/b&amp;gt;

data: header TYPE thead,
lines TYPE STANDARD TABLE OF tline.
data: "wa_header like line of header,
wa_line like line of lines.
 
Loop at it_merge into wa_it_merge.
lv_tabix = sy-tabix.
lv_tabix = lv_tabix + 1.
read table it_merge index lv_tabix into wa_it_merge.
if wa_it_merge-a-idnumber = wa_i_casep-a-idnumber.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = '100'
ID = 'Z001'
LANGUAGE = 'E'
&amp;lt;b&amp;gt;NAME = name &amp;lt;/b&amp;gt;   
OBJECT = 'BUT000'
IMPORTING
HEADER = header
TABLES
LINES = lines.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = header
SAVEMODE_DIRECT = 'X'
IMPORTING
NEWHEADER = header
TABLES
LINES = lines.
endif.
* loop at header into wa_header.
* lv_tabix = sy-tabix.
* lv_tabix = sy-tabix + 1.
* read table header index lv_tabix into wa_header.
* if sy-subrc = 0.
* move-corresponding wa_header to i_case_p.
* append i_case_p.
* clear i_case_p.
* endif.
* endloop.
loop at lines into wa_line.
lv_tabix = sy-tabix.
lv_tabix = sy-tabix + 1.
read table lines index lv_tabix into wa_line.
if sy-subrc = 0.
move-corresponding wa_line to i_case_p.
append i_case_p.
clear i_case_p.
endif.
endloop.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this way...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 13:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-and-save-text-problem/m-p/1310465#M161594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-08T13:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: FM : Read_text and Save_text problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-and-save-text-problem/m-p/1310466#M161595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two problems in your source code,see:&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;the code is commented and you created a new variable,&lt;/P&gt;&lt;P&gt;but no used in your function.&lt;/P&gt;&lt;P&gt;data: "wa_header like line of header,&lt;/P&gt;&lt;P&gt;wa_line like line of lines.&lt;/P&gt;&lt;P&gt;2) You pass the hard code: &lt;/P&gt;&lt;P&gt;NAME = 'wa_it_merge-a-partner' -&amp;gt; incorret&lt;/P&gt;&lt;P&gt;NAME = wa_it_merge-a-partner -&amp;gt; corret, without ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexandre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 13:52:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-and-save-text-problem/m-p/1310466#M161595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-08T13:52:13Z</dc:date>
    </item>
  </channel>
</rss>

