<?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 Infotype Update gives error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-update-gives-error/m-p/4844992#M1133185</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;I tried to update infotype 0000 with HR_INFOTYPE_OPERATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gave me a error with name  ASSIGN_BASE_TOO_SHORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the error analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    The source field is too short.&lt;/P&gt;&lt;P&gt;    In the running program "SAPLHRMM" a field should have been assigned to a field&lt;/P&gt;&lt;P&gt;    symbol, which is shorter than the type of the field symbol.&lt;/P&gt;&lt;P&gt;    This is not possible.&lt;/P&gt;&lt;P&gt;    It is a statement of the form ASSIGN f TO &amp;lt;fs&amp;gt; CASTING...&lt;/P&gt;&lt;P&gt;    or ASSIGN f TO &amp;lt;fs&amp;gt; with a field symbol that was created with the&lt;/P&gt;&lt;P&gt;    STRUCTURE addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have called my FM like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number = WA_p0000-pernr.


      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          INFTY                  = '0000'
          NUMBER                 =  WA_P0000-PERNR
*   SUBTYPE                =
*   OBJECTID               =
*   LOCKINDICATOR          =
         VALIDITYEND            =  P0000-endda
         VALIDITYBEGIN          =  p0000-BEGDA
*   RECORDNUMBER           =
          RECORD                 = WA_P0000
          OPERATION              = 'MOD'
         TCLAS                  = 'A'
         DIALOG_MODE            = '0'
*   NOCOMMIT               =
*   VIEW_IDENTIFIER        =
*   SECONDARY_RECORD       =
       IMPORTING
         RETURN                 = w_return
*   KEY                    =
                .

      CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          number = WA_p0000-pernr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Nov 2008 05:57:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-28T05:57:36Z</dc:date>
    <item>
      <title>Infotype Update gives error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-update-gives-error/m-p/4844992#M1133185</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;I tried to update infotype 0000 with HR_INFOTYPE_OPERATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gave me a error with name  ASSIGN_BASE_TOO_SHORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the error analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    The source field is too short.&lt;/P&gt;&lt;P&gt;    In the running program "SAPLHRMM" a field should have been assigned to a field&lt;/P&gt;&lt;P&gt;    symbol, which is shorter than the type of the field symbol.&lt;/P&gt;&lt;P&gt;    This is not possible.&lt;/P&gt;&lt;P&gt;    It is a statement of the form ASSIGN f TO &amp;lt;fs&amp;gt; CASTING...&lt;/P&gt;&lt;P&gt;    or ASSIGN f TO &amp;lt;fs&amp;gt; with a field symbol that was created with the&lt;/P&gt;&lt;P&gt;    STRUCTURE addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have called my FM like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number = WA_p0000-pernr.


      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          INFTY                  = '0000'
          NUMBER                 =  WA_P0000-PERNR
*   SUBTYPE                =
*   OBJECTID               =
*   LOCKINDICATOR          =
         VALIDITYEND            =  P0000-endda
         VALIDITYBEGIN          =  p0000-BEGDA
*   RECORDNUMBER           =
          RECORD                 = WA_P0000
          OPERATION              = 'MOD'
         TCLAS                  = 'A'
         DIALOG_MODE            = '0'
*   NOCOMMIT               =
*   VIEW_IDENTIFIER        =
*   SECONDARY_RECORD       =
       IMPORTING
         RETURN                 = w_return
*   KEY                    =
                .

      CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          number = WA_p0000-pernr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2008 05:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-update-gives-error/m-p/4844992#M1133185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-28T05:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Infotype Update gives error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-update-gives-error/m-p/4844993#M1133186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am also using the same function module and it is giving me the same dump can you let me know how did you solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Error in ASSIGN in the program "SAPLHRMM".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 11:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-update-gives-error/m-p/4844993#M1133186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-10T11:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Infotype Update gives error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-update-gives-error/m-p/4844994#M1133187</link>
      <description>&lt;P&gt;Instead of passing WA in the RECORD, pass the DB Table name..Like PA0000&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 06:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-update-gives-error/m-p/4844994#M1133187</guid>
      <dc:creator>former_member403064</dc:creator>
      <dc:date>2021-06-04T06:11:33Z</dc:date>
    </item>
  </channel>
</rss>

