<?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 Problem with Custom Data Type conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-custom-data-type-conversion/m-p/5417660#M1243775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone...My name is Blag...and I got an ActionScript problem -:(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So...I created a WebService based on a Z Function Module...To gather data from table SPFLI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside Flex 3 I used the Wizard to create the WSDL classes. Everything works fine, except for one thing...My FM got two parameters CARRID_LOW and CARRID_HIGH both referencing SPFLI-CARRID which is CHAR 03...So Flex got the brilliant idea of declare those fields as CHAR03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I do...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;webService.ZGetSpfli(txtCarridLow.text,txtCarridHigh.text);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I receive an error message telling me that I must use CHAR03 data type...So of course I tried with...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;webService.ZGetSpfli(CHAR03(txtCarridLow.text),CHAR03(txtCarridHigh.text));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which of course doesn't work either because the compiler tells me that the implicit conversion from String to CHAR03 can't be done...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the CHAR03 class...And guess what? Obviously, it's just a String...But I can't pass a String to the operation...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So...What can I do? Please don't tell me to modify the Classes, because I'm using the Wizard for a particular reason...I already did the same example using MXML and ActionScript, but now I want to use all the capabilities provided by the Wizard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone can help me -:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2009 21:44:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-02T21:44:43Z</dc:date>
    <item>
      <title>Problem with Custom Data Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-custom-data-type-conversion/m-p/5417660#M1243775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone...My name is Blag...and I got an ActionScript problem -:(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So...I created a WebService based on a Z Function Module...To gather data from table SPFLI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside Flex 3 I used the Wizard to create the WSDL classes. Everything works fine, except for one thing...My FM got two parameters CARRID_LOW and CARRID_HIGH both referencing SPFLI-CARRID which is CHAR 03...So Flex got the brilliant idea of declare those fields as CHAR03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I do...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;webService.ZGetSpfli(txtCarridLow.text,txtCarridHigh.text);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I receive an error message telling me that I must use CHAR03 data type...So of course I tried with...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;webService.ZGetSpfli(CHAR03(txtCarridLow.text),CHAR03(txtCarridHigh.text));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which of course doesn't work either because the compiler tells me that the implicit conversion from String to CHAR03 can't be done...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the CHAR03 class...And guess what? Obviously, it's just a String...But I can't pass a String to the operation...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So...What can I do? Please don't tell me to modify the Classes, because I'm using the Wizard for a particular reason...I already did the same example using MXML and ActionScript, but now I want to use all the capabilities provided by the Wizard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone can help me -:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 21:44:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-custom-data-type-conversion/m-p/5417660#M1243775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T21:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Custom Data Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-custom-data-type-conversion/m-p/5417661#M1243776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Blag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="900508"&gt;&lt;/SPAN&gt; touches on this problem. Just jump to the end of the thread where I summarise the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will note that I logged a bug with Adobe. I have heard nothing from them about this and searching on their support site I can't even find my original post. &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 23:02:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-custom-data-type-conversion/m-p/5417661#M1243776</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2009-04-02T23:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Custom Data Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-custom-data-type-conversion/m-p/5417662#M1243777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if we've announced this or not yet, but I've seen some internal demos of a totally new generator system for creating classes from Web Services in Flex Builder.  I don't know if anyone is testing them against more complex web services like these but I will check with our SAP liaison team and see if they can get an early build.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that you're trying to use the generator to complete a survey of the technologies but in practice as you're finding it does more harm then good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incidentally, the internal mechanism actually uses an Apache project if memory serves called, Velocity which is probably the root of the issue.  Any-ho, as with all things maybe next version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-d&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 23:10:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-custom-data-type-conversion/m-p/5417662#M1243777</guid>
      <dc:creator>former_member10945</dc:creator>
      <dc:date>2009-04-02T23:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Custom Data Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-custom-data-type-conversion/m-p/5417663#M1243778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that you're trying to use the generator to complete a survey of the technologies but in practice as you're finding it does more harm then good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A survey about technologies? Really...Silly me...I thought I was doing a Flex Crash Course for my company...Wait...That's exactly what I'm doing -:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incidentally, the internal mechanism actually uses an Apache project if memory serves called, Velocity which is probably the root of the issue. Any-ho, as with all things maybe next version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah...I notice that it was using Apache...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So...It seems that the best solution for me would be to fix the FM to use a String instead of SPFLI-CARRID, rebuild the WebService and call the generator again...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks @Graham and @Dan...You guys are always ready to rescue! -:D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 00:19:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-custom-data-type-conversion/m-p/5417663#M1243778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T00:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Custom Data Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-custom-data-type-conversion/m-p/5417664#M1243779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, did you get a solution to this issue yet. I also generated web service stub through Flex and it created char3 char1 decimal50 etc classes. They are all string in the class definition. I did something like below to assign the value.&lt;/P&gt;&lt;P&gt;			public function char1(content:String):Char1 {&lt;/P&gt;&lt;P&gt;				var cont:Char1 = new Char1();&lt;/P&gt;&lt;P&gt;				cont.char1=content;&lt;/P&gt;&lt;P&gt;				return cont;&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;P&gt;When I call the service it gives me the below error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TypeError: Error #1009: Cannot access a property or method of a null object reference.&lt;/P&gt;&lt;P&gt;	at org.gsm1900::Char1/toString()[C:\Documents and Settings\...................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant change the FM as it as too many such variables and its a complex FM. Any idea how to deal with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2009 17:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-custom-data-type-conversion/m-p/5417664#M1243779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-28T17:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Custom Data Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-custom-data-type-conversion/m-p/5417665#M1243780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nitin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well....I actually changed my FM -:( So didn't look for any other options...maybe the best would be to change the generated AS classes...not aware of any other solutions than plain AS (written by yourself)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 21:04:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-custom-data-type-conversion/m-p/5417665#M1243780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T21:04:35Z</dc:date>
    </item>
  </channel>
</rss>

