<?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: Compatibility between parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257888#M146754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Sorry, I was not at work, for a few days.&lt;/P&gt;&lt;P&gt;The problem was not solved, but the development was changed.&lt;/P&gt;&lt;P&gt;Thanks to everybody, I tried first six answers, and it didn't help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Mar 2006 10:24:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-11T10:24:41Z</dc:date>
    <item>
      <title>Compatibility between parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257880#M146746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have some strange problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a function, which communicate with another system by Web Method.&lt;/P&gt;&lt;P&gt;The function imports parameter type c, length 255) from user through the screen. The field in the screen is type c length 17.&lt;/P&gt;&lt;P&gt;The value that I need to get from user is '-1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when I getting the '-1' from user through the screen, the system which gets this parameter from function didn't work.&lt;/P&gt;&lt;P&gt;When I send to the function '-1' hard coded it's work.&lt;/P&gt;&lt;P&gt;In debugger it looks the same '-1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2006 07:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257880#M146746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-05T07:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compatibility between parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257881#M146747</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;Pls check this thread&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="38998"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2006 08:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257881#M146747</guid>
      <dc:creator>eddy_declercq</dc:creator>
      <dc:date>2006-03-05T08:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Compatibility between parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257882#M146748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but it didn't help &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2006 15:21:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257882#M146748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-05T15:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compatibility between parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257883#M146749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;u have to display a negative values in parameters then u have to create a data element for that field and set data type as int4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2006 15:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257883#M146749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-05T15:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compatibility between parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257884#M146750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you call a function module and pass a hard-coded value to a parameter sap will convert it to the correct length. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you pass a parameter of the wrong type it will abend. You can move the 17 char field to an intermediate 255 variable and then pass the 255 variable to the fm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2006 01:44:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257884#M146750</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-03-06T01:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compatibility between parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257885#M146751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi los,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. To actually debug,&lt;/P&gt;&lt;P&gt;   what can be done is that&lt;/P&gt;&lt;P&gt;   create a z table&lt;/P&gt;&lt;P&gt;   and put the value which is imported&lt;/P&gt;&lt;P&gt;   ie. -1&lt;/P&gt;&lt;P&gt;   into that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. After calling this fm from web system,&lt;/P&gt;&lt;P&gt;   pass hardcoded -1 and also try with&lt;/P&gt;&lt;P&gt;  user input -1&lt;/P&gt;&lt;P&gt;   and then check the z table&lt;/P&gt;&lt;P&gt;  to know, what ACTUALLY the FM&lt;/P&gt;&lt;P&gt;  is receving.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2006 04:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257885#M146751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-06T04:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Compatibility between parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257886#M146752</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;Pls don't forget to reward points and close the question if you find the answers useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 13:17:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257886#M146752</guid>
      <dc:creator>eddy_declercq</dc:creator>
      <dc:date>2006-03-10T13:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Compatibility between parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257887#M146753</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 agree with Neil's advice to move the screen input to an variable of type c with length 255 first, before calling the function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN CALLING A FUNCTION, ALWAYS MAKE SURE THAT THE ACTUAL PARAMETERS AND THE FORMAL PARAMETERS AGREE IN TYPE AND LENGTH. You will not necessarily get a runtime error, if they do not agree, but might get faulty data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You write:&lt;/P&gt;&lt;P&gt;"When I send to the function '-1' hard coded it's work." &lt;/P&gt;&lt;P&gt;Do you mean you are assigning '-1' to a 255-byte character variable? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You write:&lt;/P&gt;&lt;P&gt;"In debugger it looks the same '-1'."&lt;/P&gt;&lt;P&gt;Do you mean that all 255 bytes look the same in hexadecimal notation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You write:&lt;/P&gt;&lt;P&gt;"The field in the screen is type c length 17."&lt;/P&gt;&lt;P&gt;Are you sure the field in the screen is of type c and not a numerical field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2006 08:40:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257887#M146753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-11T08:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Compatibility between parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257888#M146754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Sorry, I was not at work, for a few days.&lt;/P&gt;&lt;P&gt;The problem was not solved, but the development was changed.&lt;/P&gt;&lt;P&gt;Thanks to everybody, I tried first six answers, and it didn't help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2006 10:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compatibility-between-parameters/m-p/1257888#M146754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-11T10:24:41Z</dc:date>
    </item>
  </channel>
</rss>

