<?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: Conversion Function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-function-module/m-p/2762304#M643100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that you MUST name your parameters to conversdion exits INPUT and OUTPUT. I did the following and it works.&lt;/P&gt;&lt;P&gt;1. created a domain znrwperiod....char8....conversion routine znper&lt;/P&gt;&lt;P&gt;2. created a data element using the above domain&lt;/P&gt;&lt;P&gt;3. created function moduleS in the same group as each other&lt;/P&gt;&lt;P&gt;3a. CONVERSION_EXIT_ZNPER_OUTPUT&lt;/P&gt;&lt;P&gt;FUNCTION CONVERSION_EXIT_ZNPER_OUTPUT.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(INPUT)&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(OUTPUT)&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : L_PPP(3) TYPE C,&lt;/P&gt;&lt;P&gt;L_YYYY(4) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT input AT '/' INTO  L_YYYY L_PPP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE L_PPP '/' L_YYYY INTO output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;3b. CONVERSION_EXIT_ZNPER_INPUT&lt;/P&gt;&lt;P&gt;FUNCTION CONVERSION_EXIT_ZNPER_INPUT.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(INPUT)&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(OUTPUT)&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : L_PPP(3) TYPE C,&lt;/P&gt;&lt;P&gt;L_YYYY(4) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT input AT '/' INTO L_PPP L_YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE L_YYYY '/' L_PPP INTO output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2007 00:46:04 GMT</pubDate>
    <dc:creator>former_member186741</dc:creator>
    <dc:date>2007-09-04T00:46:04Z</dc:date>
    <item>
      <title>Conversion Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-function-module/m-p/2762302#M643098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my report i need to declare a select-option . This select-option is a combination of Period and fiscal year i..e the values in the select-option should be like&lt;/P&gt;&lt;P&gt;PPP/YYYY period and year need to be separated by "/".&lt;/P&gt;&lt;P&gt;I had declared in that format. Here the period starts from 001-012.So when ever the User enters 010/2005 in low and 007/2007 in high it is giving an error that Lower limit is greater than Higher limit . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this i had created a Data element with domain that is having a function module &lt;/P&gt;&lt;P&gt;with the folowing code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION CONVERSION_EXIT_ZCCON_INPUT.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(REFERENCE) OPTIONAL&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(REFERENCE1)&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : L_PPP(3) TYPE C,&lt;/P&gt;&lt;P&gt;         L_YYYY(4) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFERENCE1 = REFERENCE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SPLIT REFERENCE1 AT '/' INTO L_PPP L_YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE L_YYYY '/' L_PPP INTO REFERENCE1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when ever  give some data in the selection-screen that is declred with this data element data is not passing to the function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 16:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-function-module/m-p/2762302#M643098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T16:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-function-module/m-p/2762303#M643099</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 believe your input format should be a number, so you should concantenate only the year and the month into the input:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION CONVERSION_EXIT_ZCCON_INPUT.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(REFERENCE) OPTIONAL
*" EXPORTING
*" VALUE(REFERENCE1)
*"----------------------------------------------------------------------

DATA :  L_PPP(3) TYPE C,
            L_YYYY(4) TYPE C.

  REFERENCE1 = REFERENCE.

  SPLIT REFERENCE1 AT '/' INTO L_PPP L_YYYY.

  CONCATENATE L_YYYY L_PPP INTO REFERENCE1.

ENDFUNCTION.

FUNCTION CONVERSION_EXIT_ZCCON_OUTPUT.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(REFERENCE) OPTIONAL
*" EXPORTING
*" VALUE(REFERENCE1)
*"----------------------------------------------------------------------

DATA :  L_PPP(3) TYPE C,
            L_YYYY(4) TYPE C.

  L_YYYY = REFERENCE(4).
  L_PPP  = REFERENCE+4(3).

  CONCATENATE L_PPP '/' L_YYYY L_PPP INTO REFERENCE1.

ENDFUNCTION.&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, 03 Sep 2007 17:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-function-module/m-p/2762303#M643099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T17:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-function-module/m-p/2762304#M643100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that you MUST name your parameters to conversdion exits INPUT and OUTPUT. I did the following and it works.&lt;/P&gt;&lt;P&gt;1. created a domain znrwperiod....char8....conversion routine znper&lt;/P&gt;&lt;P&gt;2. created a data element using the above domain&lt;/P&gt;&lt;P&gt;3. created function moduleS in the same group as each other&lt;/P&gt;&lt;P&gt;3a. CONVERSION_EXIT_ZNPER_OUTPUT&lt;/P&gt;&lt;P&gt;FUNCTION CONVERSION_EXIT_ZNPER_OUTPUT.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(INPUT)&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(OUTPUT)&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : L_PPP(3) TYPE C,&lt;/P&gt;&lt;P&gt;L_YYYY(4) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT input AT '/' INTO  L_YYYY L_PPP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE L_PPP '/' L_YYYY INTO output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;3b. CONVERSION_EXIT_ZNPER_INPUT&lt;/P&gt;&lt;P&gt;FUNCTION CONVERSION_EXIT_ZNPER_INPUT.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(INPUT)&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(OUTPUT)&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : L_PPP(3) TYPE C,&lt;/P&gt;&lt;P&gt;L_YYYY(4) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT input AT '/' INTO L_PPP L_YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE L_YYYY '/' L_PPP INTO output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 00:46:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-function-module/m-p/2762304#M643100</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2007-09-04T00:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-function-module/m-p/2762305#M643101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you think you could close the "Error in Select-Option" thread&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="4049054"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;where this conversion exit was first suggested?  Yes, you have to have INPUT and OUTPUT only defined, as provided in the example code there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 01:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-function-module/m-p/2762305#M643101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T01:26:14Z</dc:date>
    </item>
  </channel>
</rss>

