<?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: ASSIGN COMPONENT and INCLUDES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component-and-includes/m-p/607447#M24955</link>
    <description>&lt;P&gt;please close the question if it's answered.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2018 07:30:14 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2018-02-08T07:30:14Z</dc:date>
    <item>
      <title>ASSIGN COMPONENT and INCLUDES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component-and-includes/m-p/607444#M24952</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;I have a function module with a structure like this....&lt;/P&gt;
  &lt;P&gt;DATA: BEGIN OF ls_CORCTS_PRO_ENH.&lt;BR /&gt; DATA: INCLUDE TYPE /SAPSLL/CORCTS.&lt;BR /&gt; DATA: CCNGN TYPE /SAPSLL/CCNGN.&lt;BR /&gt; DATA: END OF ls_CORCTS_PRO_ENH.&lt;/P&gt;
  &lt;P&gt;The data is filled and passed to another function module with a type ANY....&lt;/P&gt;
  &lt;P&gt; USING uv_ROLLNAME TYPE ROLLNAME&lt;BR /&gt; us_PROVISION TYPE ANY&lt;/P&gt;
  &lt;P&gt;When this statement is executed, nothing is in &amp;lt;field&amp;gt;...&lt;/P&gt;
  &lt;P&gt;ASSIGN COMPONENT us_DFIES-FIELDNAME OF STRUCTURE us_PROVISION TO &amp;lt;field&amp;gt;.&lt;/P&gt;
  &lt;P&gt;I am wandering if the INCLUDE is the issue. Because, when I debug, the INCLUDE is shown as a direct component of the structure, not the fields of the INCLUDE....&lt;/P&gt;
  &lt;P&gt;STRUCTURE&lt;/P&gt;
  &lt;P&gt;+INCLUDE&lt;/P&gt;
  &lt;P&gt; CCNGN&lt;/P&gt;
  &lt;P&gt; Is this the issue?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 18:41:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component-and-includes/m-p/607444#M24952</guid>
      <dc:creator>dean_hinson2</dc:creator>
      <dc:date>2018-01-24T18:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: ASSIGN COMPONENT and INCLUDES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component-and-includes/m-p/607445#M24953</link>
      <description>&lt;P&gt;No.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;You could easily answer this question yourself by reading the documentation for INCLUDE TYPE or writing a little test as&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;CLASS demo DEFINITION.
  PUBLIC SECTION.
  CLASS-METHODS main IMPORTING p TYPE any.
ENDCLASS.
CLASS demo IMPLEMENTATION.
  METHOD main.
  ASSIGN COMPONENT 'CARRID' OF STRUCTURE p TO FIELD-SYMBOL(&amp;lt;fs&amp;gt;).
  IF sy-subrc = 0.
  cl_demo_output=&amp;gt;display( &amp;lt;fs&amp;gt; ).
  ENDIF.
  ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
  DATA BEGIN OF struct.
  INCLUDE TYPE scarr.
  DATA END OF struct.
  struct = VALUE #( carrid = 'XX' ).
  demo=&amp;gt;main( struct ).		
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; I'd rather say, that your /SAPSLL/CORCTS has a substructure.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 06:59:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component-and-includes/m-p/607445#M24953</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-01-25T06:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: ASSIGN COMPONENT and INCLUDES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component-and-includes/m-p/607446#M24954</link>
      <description>&lt;P&gt;Table /SAPSLL/CORCTS is made up of INCLUDES, yes. However, that should not affect the ASSIGN COMPONENT. So, I re-developed the solution. But I did use your code to test the theory...&lt;/P&gt;
  &lt;P&gt;CLASS demo DEFINITION.&lt;BR /&gt; PUBLIC SECTION.&lt;BR /&gt; CLASS-METHODS main IMPORTING p TYPE any.&lt;BR /&gt; ENDCLASS.&lt;BR /&gt; CLASS demo IMPLEMENTATION.&lt;BR /&gt; METHOD main.&lt;BR /&gt; ASSIGN COMPONENT 'ALUOM' OF STRUCTURE p TO FIELD-SYMBOL(&amp;lt;fs&amp;gt;).&lt;BR /&gt; IF sy-subrc = 0.&lt;BR /&gt; cl_demo_output=&amp;gt;display( &amp;lt;fs&amp;gt; ).&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDMETHOD.&lt;BR /&gt; ENDCLASS.&lt;BR /&gt; START-OF-SELECTION.&lt;BR /&gt; DATA BEGIN OF CORCTS_ENH.&lt;BR /&gt; INCLUDE TYPE /SAPSLL/CORCTS.&lt;BR /&gt; DATA CCNGN TYPE /SAPSLL/CCNGN.&lt;BR /&gt; DATA END OF CORCTS_ENH.&lt;BR /&gt; CORCTS_ENH = VALUE #( ALUOM = 'XX' ).&lt;BR /&gt; demo=&amp;gt;main( CORCTS_ENH ).&lt;/P&gt;
  &lt;P&gt;XX was displayed.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 20:48:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component-and-includes/m-p/607446#M24954</guid>
      <dc:creator>dean_hinson2</dc:creator>
      <dc:date>2018-02-07T20:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: ASSIGN COMPONENT and INCLUDES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component-and-includes/m-p/607447#M24955</link>
      <description>&lt;P&gt;please close the question if it's answered.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 07:30:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component-and-includes/m-p/607447#M24955</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2018-02-08T07:30:14Z</dc:date>
    </item>
  </channel>
</rss>

