<?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: Difference between (Export, Import) Versus (Receiving,Return) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-export-import-versus-receiving-return/m-p/4248977#M1014181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I awarded full points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Aug 2008 16:03:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-11T16:03:34Z</dc:date>
    <item>
      <title>Difference between (Export, Import) Versus (Receiving,Return)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-export-import-versus-receiving-return/m-p/4248973#M1014177</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;Can anyone tell me whats the difference between &lt;/P&gt;&lt;P&gt;the exporting the value from method and importing to object   VERSUS&lt;/P&gt;&lt;P&gt;returning the value from method to receiving the value in the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me the difference between first and second method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) First Method &lt;/P&gt;&lt;P&gt;class lcl_vehicle definition.&lt;/P&gt;&lt;P&gt;public section.&lt;/P&gt;&lt;P&gt;data : test_met type i.&lt;/P&gt;&lt;P&gt;methods get_type importing test1 type i&lt;/P&gt;&lt;P&gt;                           test2 type i&lt;/P&gt;&lt;P&gt;                 exporting test3 type i.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class lcl_vehicle implementation.&lt;/P&gt;&lt;P&gt;method get_type.&lt;/P&gt;&lt;P&gt;test3 = 10 + test1 + test2.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data  : test type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;data  : r_veh type ref to lcl_vehicle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object r_veh.&lt;/P&gt;&lt;P&gt;call method r_veh-&amp;gt;get_type( exporting  test1 = 5&lt;/P&gt;&lt;P&gt;                                        test2 = 10&lt;/P&gt;&lt;P&gt;                              importing test3 = test ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write  :  test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O/P  = 25&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;2) Second Method &lt;/P&gt;&lt;P&gt;class lcl_vehicle definition.&lt;/P&gt;&lt;P&gt;public section.&lt;/P&gt;&lt;P&gt;data : test_met type i.&lt;/P&gt;&lt;P&gt;methods get_type importing test1 type i&lt;/P&gt;&lt;P&gt;                           test2 type i&lt;/P&gt;&lt;P&gt;                 returning value(test3) type i.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class lcl_vehicle implementation.&lt;/P&gt;&lt;P&gt;method get_type.&lt;/P&gt;&lt;P&gt;test3 = 10 + test1 + test2.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data  : test type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;data  : r_veh type ref to lcl_vehicle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object r_veh.&lt;/P&gt;&lt;P&gt;call method r_veh-&amp;gt;get_type( exporting test1 = 5&lt;/P&gt;&lt;P&gt;                                       test2 = 10&lt;/P&gt;&lt;P&gt;                             receiving test3  = test ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write  :  test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O/P  = 25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 14:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-export-import-versus-receiving-return/m-p/4248973#M1014177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-11T14:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between (Export, Import) Versus (Receiving,Return)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-export-import-versus-receiving-return/m-p/4248974#M1014178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say without going to deep into lower level coding, they are the same, and there is no reason to try to pick them a part to find out the low level differences.  Basically all that you need to remember is that when using RETURNING parameters, you can only ever have one, when using EXPORTING, you can have as many as you want.  We use RETURNING in situations like, when we want to find out if a condition is true or false.  For example, say we have a method called HAS_HEADER, , and has a returing parameter RESULT type ABAP_BOOL.  Here the method implementation is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;method has_header..
  if &amp;lt;some_field&amp;gt; = 'X'.
    result = abap_true.
  endif.
endmethod.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can then use this method "in-line", like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if me-&amp;gt;has_header( ) = abap_true.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We could not do this if we used EXPORTING&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>Mon, 11 Aug 2008 14:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-export-import-versus-receiving-return/m-p/4248974#M1014178</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-08-11T14:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between (Export, Import) Versus (Receiving,Return)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-export-import-versus-receiving-return/m-p/4248975#M1014179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one more question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying the importing or receiving value directly in to a variable but for some reason it doesn't allow me to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how i'm trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test  = call method r_veh-&amp;gt;get_type( exporting test1 = 5&lt;/P&gt;&lt;P&gt;                                       test2 = 10 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class lcl_vehicle definition.&lt;/P&gt;&lt;P&gt;public section.&lt;/P&gt;&lt;P&gt;data : test_met type i.&lt;/P&gt;&lt;P&gt;methods get_type importing test1 type i&lt;/P&gt;&lt;P&gt;                           test2 type i&lt;/P&gt;&lt;P&gt;                 returning value(test3) type i.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class lcl_vehicle implementation.&lt;/P&gt;&lt;P&gt;method get_type.&lt;/P&gt;&lt;P&gt;test3 = 10 + test1 + test2.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data  : test type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;data  : r_veh type ref to lcl_vehicle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object r_veh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method r_veh-&amp;gt;get_type( exporting test1 = 5&lt;/P&gt;&lt;P&gt;                                       test2 = 10&lt;/P&gt;&lt;P&gt;                             receiving test3  = test ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this doesn't works&lt;/P&gt;&lt;P&gt;If iam not wrong there is a way where you move the import or receiving variable directly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test  = call method r_veh-&amp;gt;get_type( exporting test1 = 5&lt;/P&gt;&lt;P&gt;                                       test2 = 10 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if oam wrong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 15:09:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-export-import-versus-receiving-return/m-p/4248975#M1014179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-11T15:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between (Export, Import) Versus (Receiving,Return)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-export-import-versus-receiving-return/m-p/4248976#M1014180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can do that, but there are rules to this syntax.  First, you can not use the CALL METHOD, and second, you will remove the EXPORTING.  When using the RETURNING, the IMPORTING parameters of the method do not have to be statically referenced with an EXPORTING in the method call, the reason is that the system knows that they are IMPORTING, because when you have a RETURNING parameter you can not have any EXPORTING parameters.  yes, it is a little confusing.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;test =  r_veh-&amp;gt;get_type( test1 = 5 test2 = 10 ).&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>Mon, 11 Aug 2008 15:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-export-import-versus-receiving-return/m-p/4248976#M1014180</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-08-11T15:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between (Export, Import) Versus (Receiving,Return)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-export-import-versus-receiving-return/m-p/4248977#M1014181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I awarded full points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 16:03:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-export-import-versus-receiving-return/m-p/4248977#M1014181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-11T16:03:34Z</dc:date>
    </item>
  </channel>
</rss>

