<?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: replace section offset problems in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-section-offset-problems/m-p/2723351#M631860</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;could you place here your code or a portion of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2007 13:44:57 GMT</pubDate>
    <dc:creator>kostas_tsioubris</dc:creator>
    <dc:date>2007-08-13T13:44:57Z</dc:date>
    <item>
      <title>replace section offset problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-section-offset-problems/m-p/2723350#M631859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problems with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE SECTION OFFSET pos OF init_source WITH text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i use it in the er5 system it works just perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i use it in the sc1 system, when i check the source code i get the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;section offset pos of init_source not expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i checked my spelling and there's no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you, please, help me with this matter? do you know why does this error exist?&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;emilia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 13:39:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-section-offset-problems/m-p/2723350#M631859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T13:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: replace section offset problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-section-offset-problems/m-p/2723351#M631860</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;could you place here your code or a portion of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 13:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-section-offset-problems/m-p/2723351#M631860</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-08-13T13:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: replace section offset problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-section-offset-problems/m-p/2723352#M631861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     DATA:  init_value TYPE bapicats1-network,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              pos TYPE i,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              source_len TYPE i.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     source_len = strlen( text ).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     pos = 12 - source_len.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     init_value = '000000000000'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="9" type="ul"&gt;&lt;P&gt;     REPLACE  section offset pos of init_value WITH text.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the code.:(&lt;/P&gt;&lt;P&gt;i hope you'll be able to help me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;emilia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 13:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-section-offset-problems/m-p/2723352#M631861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T13:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: replace section offset problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-section-offset-problems/m-p/2723353#M631862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Emi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked your program and I can't find any errors. You didn't gave the declaration of text in your example so I test this piece of code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: INIT_VALUE TYPE BAPICATS1-NETWORK,
POS TYPE I,
SOURCE_LEN TYPE I.
DATA: TEXT(5) VALUE '12345'.  "kostas
SOURCE_LEN = STRLEN( TEXT ).

POS = 12 - SOURCE_LEN.

INIT_VALUE = '000000000000' .

REPLACE SECTION OFFSET POS OF INIT_VALUE WITH TEXT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program ran without problems, have you made sure that you haven't missed any fullstops in your code or any other typing error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 14:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-section-offset-problems/m-p/2723353#M631862</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-08-13T14:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: replace section offset problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-section-offset-problems/m-p/2723354#M631863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my code the text is declared the variable text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i checked it, deleted and wrote it again in a different form and the only error i received was with  replace section offset pos of init_value with text: section offset pos of init_value not expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as i said above the same code works in the er5 system. i don't know what the problem could be. &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'll just try to change the method to handle things. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;anyway,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for your help &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;emilia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 14:11:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-section-offset-problems/m-p/2723354#M631863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T14:11:37Z</dc:date>
    </item>
  </channel>
</rss>

