<?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: Func module fields to Work Area Fields - different  data types in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/func-module-fields-to-work-area-fields-different-data-types/m-p/6723503#M1455855</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;Are you getting data type mismatch error in this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, then try using temporary variables which will be of type work area. Take values from your function module into these variables and then assign these variable to your work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try out this and let me know if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Feb 2010 08:09:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-26T08:09:22Z</dc:date>
    <item>
      <title>Func module fields to Work Area Fields - different  data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/func-module-fields-to-work-area-fields-different-data-types/m-p/6723502#M1455854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;func module  will give  DIVISIONID and DIVISION_TEXT  values  which are to be populated to  Work  Area &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Func modules fields and Work area fields are of  NUMC  and CHAR  types ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to pass the func module field values to  Work  Area.&lt;/P&gt;&lt;P&gt;How can i do tht ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              CALL FUNCTION 'Z_GET_DIVISION'&lt;/P&gt;&lt;P&gt;                EXPORTING&lt;/P&gt;&lt;P&gt;                  PERNUM                 = t_pernr&lt;/P&gt;&lt;P&gt;                  BEGDA                  = e_begda&lt;/P&gt;&lt;P&gt;                  ENDDA                  = e_endda&lt;/P&gt;&lt;P&gt;               IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                BASEORGUNIT_ID         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                BASEORGUNIT_TEXT       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                BASEORGUNIT_ABBR       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                 DIVISION_ID            = wa_divs-division&lt;/P&gt;&lt;P&gt;                 DIVISION_TEXT          = wa_divs-division_text.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                DIVISION_ABBR          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                CP_POSITION            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                CP_PERNR               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                IT_0002                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                NOPERNRFOUND           = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                NOCPDATA               = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                OTHERS                 = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                        .&lt;/P&gt;&lt;P&gt;              IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            clear:  wa_divs-division,wa_divs-division_text.&lt;/P&gt;&lt;P&gt;              ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;             CALL METHOD zcl_tem_int=&amp;gt;get_employee_division&lt;/P&gt;&lt;/LI&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;               EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;                 i_pernr    = t_pernr&lt;/P&gt;&lt;/LI&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;                 i_begda    = e_begda&lt;/P&gt;&lt;/LI&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;                 i_endda    = e_endda&lt;/P&gt;&lt;/LI&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;               RECEIVING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;                 r_division = wa_divs.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              it_data-auth_org_id = wa_divs-division.&lt;/P&gt;&lt;P&gt;              it_data-auth_org_name = wa_divs-division_text.&lt;/P&gt;&lt;P&gt;&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;Here &lt;/P&gt;&lt;P&gt;Wa_divs- Division  is  Char- 17  and  DIVISIONID  in Function Module  is NUMC 8 &lt;/P&gt;&lt;P&gt;  and i  have pass the value of  DIVISIONID (NUMC) From Functionmodule   to   a Work Area  defined as  CHAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wa_divs-Division_text is Char 40  and DIVISION_TEXT  in FM is  CHAR 25 &lt;/P&gt;&lt;P&gt; and i have to pass the value of DIVISION_TEXT- Char(40)  from Func module to a Work Area defined as  CHAR (25) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so please let me know  how can i convert   the  func module  output to  Work Area input which are in  NUMC and Char formats respectively...?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how to match the  above  two fields .???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2010 07:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/func-module-fields-to-work-area-fields-different-data-types/m-p/6723502#M1455854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-26T07:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Func module fields to Work Area Fields - different  data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/func-module-fields-to-work-area-fields-different-data-types/m-p/6723503#M1455855</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;Are you getting data type mismatch error in this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, then try using temporary variables which will be of type work area. Take values from your function module into these variables and then assign these variable to your work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try out this and let me know if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2010 08:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/func-module-fields-to-work-area-fields-different-data-types/m-p/6723503#M1455855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-26T08:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Func module fields to Work Area Fields - different  data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/func-module-fields-to-work-area-fields-different-data-types/m-p/6723504#M1455856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure to use the "good" FM to get data, the types mismatch, so simple MOVE between the fields of your work area and temporary field passed to the FM may not be able to map the data coorrectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually NUMC 8 -&amp;gt; CHAR 17 looks like the result of a conversion exit, check in ddic, if there is a  conversion-exit or a like-relation to convert field values between you work area and the FM parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2010 08:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/func-module-fields-to-work-area-fields-different-data-types/m-p/6723504#M1455856</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-02-26T08:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Func module fields to Work Area Fields - different  data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/func-module-fields-to-work-area-fields-different-data-types/m-p/6723505#M1455857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no corresponding  Func Module...to convert from NUM to CHAR ..&lt;/P&gt;&lt;P&gt;asi have searched in DDIC ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2010 08:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/func-module-fields-to-work-area-fields-different-data-types/m-p/6723505#M1455857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-26T08:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Func module fields to Work Area Fields - different  data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/func-module-fields-to-work-area-fields-different-data-types/m-p/6723506#M1455858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as v have  create the  Temp variables of  Func modules Field types or LIKE &lt;/P&gt;&lt;P&gt;then catch the  Variables values to  Work area.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thus solved the prob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2010 09:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/func-module-fields-to-work-area-fields-different-data-types/m-p/6723506#M1455858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-26T09:41:50Z</dc:date>
    </item>
  </channel>
</rss>

