<?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: shift command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-command/m-p/2945739#M694448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish.&lt;/P&gt;&lt;P&gt;Only when the currency is without any decimal places like JPY I need to declare a integer variable and move the value of the decimal variable to that.&lt;/P&gt;&lt;P&gt;Is there any way to find out that whether the currency is having decmal places or not.&lt;/P&gt;&lt;P&gt;If the currency does not decimal placves like JPY or LIRA, then we will declare a integer variable and move the value of the decimal variable to that else we don't do any change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How we can implement the code to check whether the currency is having decimal places or not.  Pls suggest. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2007 19:28:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-24T19:28:30Z</dc:date>
    <item>
      <title>shift command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-command/m-p/2945734#M694443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: ALPHA1(14) TYPE C value '10000.00' .&lt;/P&gt;&lt;P&gt;alpha1 has the value '10000.00'.&lt;/P&gt;&lt;P&gt;I want to remove the decimal part using the shift command and the string should be '10000 '.&lt;/P&gt;&lt;P&gt;How we can use the shift command to change the string as '10000'.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 13:59:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift-command/m-p/2945734#M694443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T13:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: shift command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-command/m-p/2945735#M694444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Declare a integer variable and move the value of the decimal variable to that. you problem will get solved.. you need not to use shift statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward for helpful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Satish Panakala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 14:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift-command/m-p/2945735#M694444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T14:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: shift command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-command/m-p/2945736#M694445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you really want to use the SHIFT statement, this will probably work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: ALPHA1(14) TYPE C value '10000.00' 

shift alpha right by 3 places.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 14:10:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift-command/m-p/2945736#M694445</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-10-24T14:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: shift command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-command/m-p/2945737#M694446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abhishek,&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;REPORT YCHATEST2.

DATA: ALPHA1(14) TYPE C VALUE '10000.00' .

SEARCH ALPHA1 FOR '...'.

IF SY-SUBRC EQ 0.
  CLEAR ALPHA1+SY-FDPOS(3).
ENDIF.

WRITE : ALPHA1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 14:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift-command/m-p/2945737#M694446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T14:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: shift command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-command/m-p/2945738#M694447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it necessary to use the SHIFT command?&lt;/P&gt;&lt;P&gt;You can easily do with SPLIT:&lt;/P&gt;&lt;P&gt;SPLIT alpha1 INTO ... AT '.'.&lt;/P&gt;&lt;P&gt;then you have 10000 and 00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 14:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift-command/m-p/2945738#M694447</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-10-24T14:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: shift command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-command/m-p/2945739#M694448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish.&lt;/P&gt;&lt;P&gt;Only when the currency is without any decimal places like JPY I need to declare a integer variable and move the value of the decimal variable to that.&lt;/P&gt;&lt;P&gt;Is there any way to find out that whether the currency is having decmal places or not.&lt;/P&gt;&lt;P&gt;If the currency does not decimal placves like JPY or LIRA, then we will declare a integer variable and move the value of the decimal variable to that else we don't do any change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How we can implement the code to check whether the currency is having decimal places or not.  Pls suggest. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 19:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift-command/m-p/2945739#M694448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T19:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: shift command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-command/m-p/2945740#M694449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Possible Shift functions :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;shifting strings by a given number of places&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t1(10) TYPE c VALUE 'abcdefghij',&lt;/P&gt;&lt;P&gt;      string1 LIKE t1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string1 = t1.&lt;/P&gt;&lt;P&gt;WRITE string1.&lt;/P&gt;&lt;P&gt;SHIFT string1.&lt;/P&gt;&lt;P&gt;WRITE / string1.&lt;/P&gt;&lt;P&gt;string1 = t1.&lt;/P&gt;&lt;P&gt;SHIFT string1 BY 3 PLACES LEFT.&lt;/P&gt;&lt;P&gt;WRITE / string1.&lt;/P&gt;&lt;P&gt;string1 = t1.&lt;/P&gt;&lt;P&gt;SHIFT string1 BY 3 PLACES RIGHT.&lt;/P&gt;&lt;P&gt;WRITE / string1.&lt;/P&gt;&lt;P&gt;string1 = t1.&lt;/P&gt;&lt;P&gt;SHIFT string1 BY 3 PLACES CIRCULAR.&lt;/P&gt;&lt;P&gt;WRITE / string1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;shifting up to a given string&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t2(10) TYPE c VALUE 'abcdefghij',&lt;/P&gt;&lt;P&gt;      string2 LIKE t2,&lt;/P&gt;&lt;P&gt;      str2(2) TYPE c VALUE 'ef'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string2 = t2.&lt;/P&gt;&lt;P&gt;WRITE string2.&lt;/P&gt;&lt;P&gt;SHIFT string2 UP TO str2.&lt;/P&gt;&lt;P&gt;WRITE / string2.&lt;/P&gt;&lt;P&gt;string2 = t2.&lt;/P&gt;&lt;P&gt;SHIFT string2 UP TO str2 LEFT.&lt;/P&gt;&lt;P&gt;WRITE / string2.&lt;/P&gt;&lt;P&gt;string2 = t2.&lt;/P&gt;&lt;P&gt;SHIFT string2  UP TO str2 RIGHT.&lt;/P&gt;&lt;P&gt;WRITE / string2.&lt;/P&gt;&lt;P&gt;string2 = t2.&lt;/P&gt;&lt;P&gt;SHIFT string2  UP TO str2 CIRCULAR.&lt;/P&gt;&lt;P&gt;WRITE / string2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;shifting a string depending on the first or last sign&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t3(14) TYPE c VALUE '    abcdefghij',&lt;/P&gt;&lt;P&gt;      string3 LIKE t3,&lt;/P&gt;&lt;P&gt;      str3(6) TYPE c VALUE 'ghijkl'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string3 = t3.&lt;/P&gt;&lt;P&gt;WRITE string3.&lt;/P&gt;&lt;P&gt;SHIFT string3 LEFT DELETING LEADING space.&lt;/P&gt;&lt;P&gt;WRITE / string3.&lt;/P&gt;&lt;P&gt;string3 = t3.&lt;/P&gt;&lt;P&gt;SHIFT string3 RIGHT DELETING TRAILING str3.&lt;/P&gt;&lt;P&gt;WRITE / string3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 02:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift-command/m-p/2945740#M694449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T02:22:27Z</dc:date>
    </item>
  </channel>
</rss>

