<?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: Type conflict for the field in function module. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-for-the-field-in-function-module/m-p/3398458#M815980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show your code and also what the error is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2008 00:09:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-20T00:09:24Z</dc:date>
    <item>
      <title>Type conflict for the field in function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-for-the-field-in-function-module/m-p/3398457#M815979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the data into an internal table itab which has field that contains the infoobjects names. Later I have to pass this value to the function module which has type like g_s_sfc which is of type rsdri_th_sfc -- structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This itab-iobjnm = g_th_sfc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module RSDRI_INFOPROV_READ., I can only pass g_th_sfc. But this is of type structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I assign the values of itab-iobjnm to g_th_sfc. I tried creating a field symbol and then assigning but still does'nt work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise, your help is greatful to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Prashant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 23:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-for-the-field-in-function-module/m-p/3398457#M815979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T23:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Type conflict for the field in function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-for-the-field-in-function-module/m-p/3398458#M815980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show your code and also what the error is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 00:09:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-for-the-field-in-function-module/m-p/3398458#M815980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T00:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Type conflict for the field in function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-for-the-field-in-function-module/m-p/3398459#M815981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;***************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF line occurs 0,&lt;/P&gt;&lt;P&gt;        infocube   TYPE RSDCUBEIOBJ-INFOCUBE,&lt;/P&gt;&lt;P&gt;        iobjnm     TYPE RSDCUBEIOBJ-IOBJNM,&lt;/P&gt;&lt;P&gt;        drilevel    TYPE /obt/iobj-drilevel,&lt;/P&gt;&lt;P&gt;        alternative type /obt/iobj-alternative,&lt;/P&gt;&lt;P&gt;      END OF line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : FLAG TYPE C.&lt;/P&gt;&lt;P&gt;DATA : FLAG_LEVEL_1 type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab LIKE SORTED TABLE OF line WITH UNIQUE KEY table_line.&lt;/P&gt;&lt;P&gt;*DATA itab LIKE LINE.&lt;/P&gt;&lt;P&gt;DATA itab1 LIKE LINE OCCURS 0 WITH HEADER line.&lt;/P&gt;&lt;P&gt;DATA line_wa like line.&lt;/P&gt;&lt;P&gt;DATA itab1_wa like line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA lin              TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; g_s_data        TYPE gt_s_data,&lt;/P&gt;&lt;P&gt;g_s_sfc         TYPE rsdri_s_sfc,&lt;/P&gt;&lt;P&gt;  g_th_sfc        TYPE rsdri_th_sfc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT f&lt;SUB&gt;infocube g&lt;/SUB&gt;iobjnm g&lt;SUB&gt;drilevel g&lt;/SUB&gt;alternative&lt;/P&gt;&lt;P&gt; INTO CORRESPONDING FIELDS OF TABLE line&lt;/P&gt;&lt;P&gt; FROM RSDCUBEIOBJ as F&lt;/P&gt;&lt;P&gt; INNER JOIN /OBT/IOBJ as G&lt;/P&gt;&lt;P&gt; on  f&lt;SUB&gt;iobjnm = g&lt;/SUB&gt;iobjnm&lt;/P&gt;&lt;P&gt; where f~objvers = 'A'&lt;/P&gt;&lt;P&gt;    and  g~tlogo = 'CUBE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort line by infocube drilevel ALTERNATIVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at line  .&lt;/P&gt;&lt;P&gt;   move-corresponding  line to line_wa .&lt;/P&gt;&lt;P&gt;   at new infocube.&lt;/P&gt;&lt;P&gt;    CLEAR : FLAG, FLAG_LEVEL_1.&lt;/P&gt;&lt;P&gt;    if line_wa-drilevel &amp;lt;&amp;gt; 1.&lt;/P&gt;&lt;P&gt;      FLAG_LEVEL_1 = 'X'.&lt;/P&gt;&lt;P&gt;      continue.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;   endat.&lt;/P&gt;&lt;P&gt;         CHECK FLAG_LEVEL_1 IS INITIAL.&lt;/P&gt;&lt;P&gt;         case line_wa-drilevel.&lt;/P&gt;&lt;P&gt;           when 1.&lt;/P&gt;&lt;P&gt;              move-corresponding line_wa to itab1_wa.&lt;/P&gt;&lt;P&gt;              append itab1_wa to itab1.&lt;/P&gt;&lt;P&gt;           when 2.&lt;/P&gt;&lt;P&gt;              if line_wa-alternative = 'PRIMARY'.&lt;/P&gt;&lt;P&gt;                move-corresponding line_wa to itab1_wa.&lt;/P&gt;&lt;P&gt;               append itab1_wa to itab1.&lt;/P&gt;&lt;P&gt;               FLAG = 'X'.&lt;/P&gt;&lt;P&gt;               continue.&lt;/P&gt;&lt;P&gt;              endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              if line_wa-alternative = 'SECONDARY'.&lt;/P&gt;&lt;P&gt;               IF FLAG &amp;lt;&amp;gt; 'X'.&lt;/P&gt;&lt;P&gt;                 move-corresponding line_wa to itab1_wa.&lt;/P&gt;&lt;P&gt;                 append itab1_wa to itab1.&lt;/P&gt;&lt;P&gt;               continue.&lt;/P&gt;&lt;P&gt;              endif.&lt;/P&gt;&lt;P&gt;              ENDIF.&lt;/P&gt;&lt;P&gt;           when others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;**************************************************************&lt;/P&gt;&lt;P&gt;Instead of hard coding here we have to pass the values of itab1-iobjnm to g_s_sfc-chanm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;0FISCYEAR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*CLEAR g_s_sfc.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;--- name of characteristic&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*g_s_sfc-chanm    = '0FISCYEAR'.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;--- name of corresponding column in G_T_DATA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*g_s_sfc-chaalias = 'FISCYEAR'.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;--- no ORDER-BY&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*g_s_sfc-orderby  = 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;--- include into list of characteristics&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*INSERT g_s_sfc INTO TABLE g_th_sfc. ---&amp;gt; must be passed to the function module&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;g_end_of_data = rs_c_false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_first_call  = rs_c_true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHILE g_end_of_data = rs_c_false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RSDRI_INFOPROV_READ'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_infoprov             = itab1-infocube&lt;/P&gt;&lt;P&gt;      i_th_sfc               = g_th_sfc --&amp;gt; type conflict error comes because here the &lt;/P&gt;&lt;P&gt;      i_th_sfk               = g_th_sfk        values of itab1-iobjnm must be passed.&lt;/P&gt;&lt;P&gt;      i_t_range              = g_t_range&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_reference_date       = sy-datum&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_t_requid             = g_t_requid&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_save_in_table        = rs_c_false&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_save_in_file         = rs_c_false&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_packagesize          =  50000&lt;/P&gt;&lt;P&gt;      i_use_db_aggregation         = rs_c_false&lt;/P&gt;&lt;P&gt;      i_use_aggregates             = rs_c_false&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_authority_check      = rsdrc_c_authchk-read&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_t_data               = g_t_data&lt;/P&gt;&lt;P&gt;      e_end_of_data          = g_end_of_data&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      c_first_call           = g_first_call&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      illegal_input          = 1&lt;/P&gt;&lt;P&gt;      illegal_input_sfc      = 2&lt;/P&gt;&lt;P&gt;      illegal_input_sfk      = 3&lt;/P&gt;&lt;P&gt;      illegal_input_range    = 4&lt;/P&gt;&lt;P&gt;      illegal_input_tablesel = 5&lt;/P&gt;&lt;P&gt;      no_authorization       = 6&lt;/P&gt;&lt;P&gt;      ncum_not_supported     = 7&lt;/P&gt;&lt;P&gt;      illegal_download       = 8&lt;/P&gt;&lt;P&gt;      illegal_tablename      = 9&lt;/P&gt;&lt;P&gt;      OTHERS                 = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    BREAK-POINT.                                           "#EC NOBREAK&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;for the sake of the example: print returned data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM print_result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************************************************&lt;/P&gt;&lt;P&gt;I have given the comments where required please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 00:18:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-for-the-field-in-function-module/m-p/3398459#M815981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T00:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Type conflict for the field in function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-for-the-field-in-function-module/m-p/3398460#M815982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;data: g_th_sfk type RSDRI_TH_SFK.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RSDRI_INFOPROV_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_infoprov = itab1-infocube&lt;/P&gt;&lt;P&gt;i_th_sfc = g_th_sfc&lt;/P&gt;&lt;P&gt;i_th_sfk = g_th_sfk&lt;/P&gt;&lt;P&gt;i_t_range = g_t_range&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 04:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conflict-for-the-field-in-function-module/m-p/3398460#M815982</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-02-20T04:40:29Z</dc:date>
    </item>
  </channel>
</rss>

