<?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: offset length in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034892#M1171009</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure field amount_to_print is long enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, first do a &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SHIFT amount_to_print RIGHT DELETING TRAILING SPACE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, if it's a negative value, add the minus sign.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;amount_to_print(1) = '-'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally condense the field&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONDENSE amount_to_print NO-GAPS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jan 2009 11:44:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-12T11:44:23Z</dc:date>
    <item>
      <title>offset length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034888#M1171005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the report i have the gt_file_export-value  = 10000000000.00-&lt;/P&gt;&lt;P&gt;in the below they have written the code to keep the minus value first but due to the follwing code i.e., because of code this&lt;/P&gt;&lt;P&gt; MOVE '-' TO amount_to_print(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the value becoming as  -0000000000.00 , one is missing and placing minus sign there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to get the value as -10000000000.00 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the code for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WRITE:  gt_file_export-value TO amount_to_print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF amount_to_print+15(1) = '-'.&lt;/P&gt;&lt;P&gt;        MOVE '-' TO amount_to_print(1).&lt;/P&gt;&lt;P&gt;        MOVE ' ' TO amount_to_print+15(1).&lt;/P&gt;&lt;P&gt;        CONDENSE amount_to_print NO-GAPS.&lt;/P&gt;&lt;P&gt;        WHILE amount_to_print+14(1) = ' '.&lt;/P&gt;&lt;P&gt;          SHIFT amount_to_print RIGHT.&lt;/P&gt;&lt;P&gt;        ENDWHILE.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 11:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034888#M1171005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T11:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: offset length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034889#M1171006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Hema,&lt;/P&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;
IF amount_to_print CA '-'.
  SHIFT amount_to_print BY 1 PLACES RIGHT CIRCULAR
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Jan 12, 2009 12:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 11:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034889#M1171006</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-01-12T11:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: offset length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034890#M1171007</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;Refer to this link....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6580608"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 11:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034890#M1171007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T11:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: offset length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034891#M1171008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like dis..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF amount_to_print+15(1) = '-'.&lt;/P&gt;&lt;P&gt; concatenate '-' amount_to_print+0(14) into amount_to_print.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 11:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034891#M1171008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T11:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: offset length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034892#M1171009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure field amount_to_print is long enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, first do a &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SHIFT amount_to_print RIGHT DELETING TRAILING SPACE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, if it's a negative value, add the minus sign.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;amount_to_print(1) = '-'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally condense the field&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONDENSE amount_to_print NO-GAPS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 11:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034892#M1171009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T11:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: offset length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034893#M1171010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 11:45:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034893#M1171010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T11:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: offset length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034894#M1171011</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 amount_to_print(15) type c value '10000000000.00-'.

IF amount_to_print+14(1) = '-'.
  MOVE amount_to_print(14) TO amount_to_print+1.
  MOVE '-' TO amount_to_print(1).
  CONDENSE amount_to_print NO-GAPS.
ENDIF.

write: amount_to_print.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 11:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034894#M1171011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T11:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: offset length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034895#M1171012</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;&lt;/P&gt;&lt;P&gt;check the length of 'amount_to_print'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the length is less than that it will condence.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 11:56:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034895#M1171012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T11:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: offset length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034896#M1171013</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;you are moving '-' to '1'.&lt;/P&gt;&lt;P&gt;with the statement MOVE '-' TO amount_to_print(1).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 11:57:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034896#M1171013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T11:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: offset length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034897#M1171014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;CALL FUNCTION    'CLOI_PUT_SIGN_IN_FRONT'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 07:16:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-length/m-p/5034897#M1171014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T07:16:47Z</dc:date>
    </item>
  </channel>
</rss>

