<?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: to split string in sapscript in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667315#M1288821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saalim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope number display in words may not fit into the window , try to reduce the font size and check or increase the window size .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2009 07:29:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-02T07:29:51Z</dc:date>
    <item>
      <title>to split string in sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667310#M1288816</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 am new to the sap script and i am facing a problem as i have called subroutine to convert digit amount into number but its missing some words as 57,387,916.20- [Rs. FIVE CRORE SEVENTY THREE LAKH EIGHTY SEVEN THOUSAND NINE HUNDRED SIXTEEN  AND P]&lt;/P&gt;&lt;P&gt;and i want to display it as:-  FIVE CRORE SEVENTY THREE LAKH EIGHTY SEVEN THOUSAND NINE HUNDRED SIXTEEN AND PAISE TWENTY ONLY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plzz provide me guidelines to solve this problem.&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;Edited by: Saalim on Jun 2, 2009 9:09 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 07:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667310#M1288816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T07:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: to split string in sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667311#M1288817</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;Check this FM 'HR_IN_CHG_INR_WRDS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to call the perform from sapscript to fetch the text from this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Split the string into two variables and display on the Sapscript. There is restriction of number of chars in the each.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 07:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667311#M1288817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T07:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: to split string in sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667312#M1288818</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;It is better to declare the variable used to display amount in words as STRING type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 07:12:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667312#M1288818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T07:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: to split string in sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667313#M1288819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to check for the available space for printing this variable is sufficient or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also you can try to see if all the data is populated correctly or not in that variable in debugging mode. Try this and tell me if u need any further help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Akanksha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 07:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667313#M1288819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T07:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: to split string in sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667314#M1288820</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;all you have to do is to create a FM which will split the string which you want to do and put a highfen mark in between so that it might not get disformatted. you have can have a view through this FM :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING_SPLIT_AT_POSITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just pass the value u want to split and there will be no problem in displaying the string in a formatted way. sapscript does not support the facility of displaying the string or text in it or  you can have a look for the CONCATENATE statement in SAPSCRIPT. If it can be used in it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;revert back if you wanna more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ricx .s on Jun 2, 2009 9:19 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 07:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667314#M1288820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T07:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: to split string in sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667315#M1288821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saalim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope number display in words may not fit into the window , try to reduce the font size and check or increase the window size .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 07:29:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667315#M1288821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T07:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: to split string in sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667316#M1288822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i called the function module but how to split the variables,i am not getting so please tell me so it can solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 08:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667316#M1288822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T08:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: to split string in sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667317#M1288823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hie Saalim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM get_amt_words .

  DATA: x_amount TYPE p DECIMALS 2,
        xwords   LIKE spell.

  x_amount = zxx-amount.

  CALL FUNCTION 'SPELL_AMOUNT'
    EXPORTING
      amount    = x_amount
      currency  = 'ZWD'
    IMPORTING
      in_words  = xwords
    EXCEPTIONS
      not_found = 1
      too_large = 2
      OTHERS    = 3.

  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.

  CONCATENATE xwords-word 'Dhora' xwords-decword 'Senti'
  INTO zxx-amount_in_words SEPARATED BY space.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isaac Prince&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 08:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-split-string-in-sapscript/m-p/5667317#M1288823</guid>
      <dc:creator>prince_isaac</dc:creator>
      <dc:date>2009-06-02T08:50:55Z</dc:date>
    </item>
  </channel>
</rss>

