<?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: function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539586#M245891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rich heilman,&lt;/P&gt;&lt;P&gt; READ TABLE IT_IN WITH KEY 'MHND-DMSHB'.&lt;/P&gt;&lt;P&gt;  CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  WRITE IT_IN-VALUE TO AMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we r getting amount into it how we should this amount to &lt;/P&gt;&lt;P&gt;the format for both euro and non euro&lt;/P&gt;&lt;P&gt;plz suggest the solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Sep 2006 19:55:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-01T19:55:03Z</dc:date>
    <item>
      <title>function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539582#M245887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all &lt;/P&gt;&lt;P&gt;iam having amount like these 5,000.00 i want o relplace , with . and . with , is there any functional moudule to do this or can i use translate function to do it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;kiran kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 18:56:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539582#M245887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T18:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539583#M245888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no function module for the same but would need to use either translate or replace command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE lvalue using '.*'.&lt;/P&gt;&lt;P&gt;TRANSLATE lvalue using ',.'.&lt;/P&gt;&lt;P&gt;TRANSLATE lvalue using '*,'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 19:04:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539583#M245888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T19:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539584#M245889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't think that there is a function module, but the TRANSLATE will work well, you just need to use a placeholder in this case when swapping values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT  ZRICH_0001.

data: c(20) type c value ' 5,000.00'.


translate c using ',@'.
translate c using '.,'.
translate c using '@.'.

write:/ c.

&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>Fri, 01 Sep 2006 19:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539584#M245889</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-01T19:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539585#M245890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this FM REPLACE_STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 19:08:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539585#M245890</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-09-01T19:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539586#M245891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rich heilman,&lt;/P&gt;&lt;P&gt; READ TABLE IT_IN WITH KEY 'MHND-DMSHB'.&lt;/P&gt;&lt;P&gt;  CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  WRITE IT_IN-VALUE TO AMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we r getting amount into it how we should this amount to &lt;/P&gt;&lt;P&gt;the format for both euro and non euro&lt;/P&gt;&lt;P&gt;plz suggest the solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 19:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539586#M245891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T19:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539587#M245892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you may need to check the user settings to find out how to reformat .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this to get rid of any/all formatting based on the user settings.  Then when you write into AMOUNT field, it will apply the user specific formatting.  I assume that you want to do some calculation with the IT_IN-VALUE?   A litle unclear about what you want to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report  zrich_0001.


data: value(20) type c value '1,235.67'.

data: xusr01 type usr01.

*   1.234.567,89
*X  1,234,567.89
*Y  1 234 567,89

select single * from usr01 into xusr01
             where bname = sy-uname.

case xusr01-dcpfm.
  when ' '.
    translate value using '. '.
    translate value using ',.'.
  when 'X'.
    translate value using ', '.
  when 'Y'.
    translate value using ',.'.
endcase.

condense value no-gaps.
write:/ value.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&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>Fri, 01 Sep 2006 20:06:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539587#M245892</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-01T20:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539588#M245893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi heilman,&lt;/P&gt;&lt;P&gt;DATA :D_DT TYPE T005X-XDEZP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IT_IN WITH KEY 'MHND-DMSHB'.&lt;/P&gt;&lt;P&gt;  CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  WRITE IT_IN-VALUE TO AMOUNT.&lt;/P&gt;&lt;P&gt;after we getting it &lt;/P&gt;&lt;P&gt;here ineed to write the select statment for customer country,cusotmer and the decimal places d_dt how to write &lt;/P&gt;&lt;P&gt;this select statemnt so that icanpass the right amount&lt;/P&gt;&lt;P&gt;5.000,00 instead of 5,000.00 like wise&lt;/P&gt;&lt;P&gt;IF D_DT EQ  'X'.&lt;/P&gt;&lt;P&gt;        TRANSLATE AMOUNT USING '.,,.'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;IF L_CURR EQ 'EUR'.&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'AMOUNT_STRING_CONVERT'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       AMOUNT_STRING       = AMOUNT&lt;/P&gt;&lt;P&gt;       DCPFM               = D_DT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     MLLN                = 'M'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     TSND                = 'T'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       WAERS               = l_CURR&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      AMOUNT              = L_VALUE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     INVALID_TYPE        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     OTHERS              = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 20:11:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539588#M245893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T20:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539589#M245894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh Oh Oh... I see now, you are working with different currencies, that's an alltogether different story.&lt;/P&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>Fri, 01 Sep 2006 20:15:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539589#M245894</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-01T20:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539590#M245895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi can u plz sugggest the possible solution how the &lt;/P&gt;&lt;P&gt;select statement should be there .this problem is coming in dunning notices for customers other than europe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 20:20:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1539590#M245895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T20:20:43Z</dc:date>
    </item>
  </channel>
</rss>

