<?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: value not being passed in class implementation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-not-being-passed-in-class-implementation/m-p/5325127#M1227166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right,  i  changed the declaration to EID(3) type N, &lt;/P&gt;&lt;P&gt;it is working,&lt;/P&gt;&lt;P&gt;and i also changed the declaration to EID type i,&lt;/P&gt;&lt;P&gt;then also it is working,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it might be that when we are using type N, we should specify number of digits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your time both of you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Mar 2009 13:07:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-14T13:07:32Z</dc:date>
    <item>
      <title>value not being passed in class implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-not-being-passed-in-class-implementation/m-p/5325124#M1227163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried to do this simple class program , i tried to pass a value 100 to a class and tried to display it in the screen.&lt;/P&gt;&lt;P&gt;the value is not being passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


*---------------------------------------------------------------------*
*       CLASS ABC DEFINITION
*---------------------------------------------------------------------*
*
*---------------------------------------------------------------------*
CLASS ABC DEFINITION.

  PUBLIC SECTION.
    DATA:  EID TYPE N.
    METHODS DISPLAY IMPORTING IM_EID TYPE N.

ENDCLASS.                    "ABC DEFINITION



*---------------------------------------------------------------------*
*       CLASS ABC IMPLEMENTATION
*---------------------------------------------------------------------*
*
*---------------------------------------------------------------------*
CLASS ABC IMPLEMENTATION.

  METHOD DISPLAY.
    EID = IM_EID.
    WRITE: ' the number you entered is : ', EID.
  ENDMETHOD.                    "display

ENDCLASS.                    "ABC IMPLEMENTATION




START-OF-SELECTION.

  DATA VAR TYPE N.
  DATA: OBJ1 TYPE REF TO ABC.
  CREATE OBJECT OBJ1.

  CALL METHOD OBJ1-&amp;gt;DISPLAY
    EXPORTING
      IM_EID = 100.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i put a debug point at 'EID = IM_EID.' in the class implementation, here the value 100 from IM_EID is not passed to EID.  &lt;/P&gt;&lt;P&gt;It is always showing EID value as 0,&lt;/P&gt;&lt;P&gt;does anyone know the reason, is there anything wrong in te declaration of EID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2009 03:28:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-not-being-passed-in-class-implementation/m-p/5325124#M1227163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-14T03:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: value not being passed in class implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-not-being-passed-in-class-implementation/m-p/5325125#M1227164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to pass the values directly to EID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*---------------------------------------------------------------------*
*       CLASS ABC DEFINITION
*---------------------------------------------------------------------*
*
*---------------------------------------------------------------------*
CLASS ABC DEFINITION.

  PUBLIC SECTION.
    DATA:  EID TYPE N.
    METHODS DISPLAY IMPORTING EID TYPE N.

ENDCLASS.                    "ABC DEFINITION



*---------------------------------------------------------------------*
*       CLASS ABC IMPLEMENTATION
*---------------------------------------------------------------------*
*
*---------------------------------------------------------------------*
CLASS ABC IMPLEMENTATION.

  METHOD DISPLAY.
*    EID = EID.
    WRITE: ' the number you entered is : ', EID.
  ENDMETHOD.                    "display

ENDCLASS.                    "ABC IMPLEMENTATION




START-OF-SELECTION.

  DATA VAR TYPE N.
  DATA: OBJ1 TYPE REF TO ABC.
  CREATE OBJECT OBJ1.

  CALL METHOD OBJ1-&amp;gt;DISPLAY
    EXPORTING
      EID = 100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check the above codes works&lt;/STRONG&gt;&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;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2009 04:44:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-not-being-passed-in-class-implementation/m-p/5325125#M1227164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-14T04:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: value not being passed in class implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-not-being-passed-in-class-implementation/m-p/5325126#M1227165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vinay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guess the problem is with declaration of data object EID.. try...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data EID(3) type N.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2009 05:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-not-being-passed-in-class-implementation/m-p/5325126#M1227165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-14T05:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: value not being passed in class implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-not-being-passed-in-class-implementation/m-p/5325127#M1227166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right,  i  changed the declaration to EID(3) type N, &lt;/P&gt;&lt;P&gt;it is working,&lt;/P&gt;&lt;P&gt;and i also changed the declaration to EID type i,&lt;/P&gt;&lt;P&gt;then also it is working,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it might be that when we are using type N, we should specify number of digits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your time both of you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2009 13:07:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-not-being-passed-in-class-implementation/m-p/5325127#M1227166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-14T13:07:32Z</dc:date>
    </item>
  </channel>
</rss>

