<?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: Structure mismatch error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680190#M299816</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 cant use MOVE-CORRESPONDING here because my source structure is a string (t_bapistruct-data). The field data is string of 4000 character length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way of doing it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Nov 2006 05:26:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-21T05:26:04Z</dc:date>
    <item>
      <title>Structure mismatch error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680187#M299813</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;I am getting below error in a program -&lt;/P&gt;&lt;P&gt;"LS_BAPICUSGEN" and "T_BAPISTRUCT-DATA" are not mutually convertible in a Unicode program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code extract is -&lt;/P&gt;&lt;P&gt;MOVE t_bapistruct-data to ls_bapicusgen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here,&lt;/P&gt;&lt;P&gt;t_bapistruct-data is a charcter field of length 4000 and ls_bapicusgen is a work area of type BAPICUSGEN which contains 111 fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to fix this error and how to pass a string to the work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amogh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 05:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680187#M299813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T05:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Structure mismatch error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680188#M299814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; you try with Move corresponding..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 05:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680188#M299814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T05:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Structure mismatch error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680189#M299815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MOVE-corresponding t_bapistruct-data to ls_bapicusgen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read below info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING sourcestruct TO destinationstruct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement assigns the contents of the components of structure sourcestruct to the components of the destinationstruct structure that have identical names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When it is executed, it is broken down into a set of MOVEstatements, one for each pair of fields with identical names, as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE sourcestruct-comp1 TO destinationstruct-comp1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE sourcestruct-comp2 TO destinationstruct-comp2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any necessary type conversions are performed individually. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3260358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3260358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 05:22:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680189#M299815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T05:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Structure mismatch error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680190#M299816</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 cant use MOVE-CORRESPONDING here because my source structure is a string (t_bapistruct-data). The field data is string of 4000 character length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way of doing it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 05:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680190#M299816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T05:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Structure mismatch error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680191#M299817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot assign the 4000 character field to a table with different fields .. because that table may contain numeric or non charecter fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to achieve the functionality you have to divide the field &lt;/P&gt;&lt;P&gt;t_bapistruct-data manually into different parts you can do that as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_bapicusgen-field1  = t_bapistruct-data(0)+10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope ths helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 05:33:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680191#M299817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T05:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Structure mismatch error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680192#M299818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes... surely this is one method... But not feasible when you have 150 fields in your target structure. Need to calculate offset for all 150 fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other simple and more accurate method of achiving this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amogh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 05:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680192#M299818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T05:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Structure mismatch error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680193#M299819</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;Try using fieldsymbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;fs&amp;gt; type t_bapistruct-data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign t_bapistruct-data to &amp;lt;fs&amp;gt; casting BAPICUSGEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check and let me know if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so,kindly reward points by clicking the star on the left of reply and close the thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 05:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680193#M299819</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-11-21T05:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Structure mismatch error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680194#M299820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayanthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working with slight modifications....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did it in this way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;fs&amp;gt; type Target structure.&lt;/P&gt;&lt;P&gt;assign source structure to &amp;lt;fs&amp;gt; casting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No need to add structure name after Casting addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for solving the problem....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Full points to u &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Amogh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 06:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680194#M299820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T06:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Structure mismatch error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680195#M299821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amogh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using offset values you can transfer data from T_BAPISTRUCT-DATA to LS_BAPICUSGEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g&lt;/P&gt;&lt;P&gt;data: T_BAPISTRUCT-DATA like line of T_BAPISTRUCT-DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_BAPISTRUCT-DATA into S_BAPISTRUCT-DATA&lt;/P&gt;&lt;P&gt;LS_BAPICUSGEN-CUSTOMER      =   S_BAPISTRUCT-DATA+1(10).&lt;/P&gt;&lt;P&gt;LS_BAPICUSGEN-ACC_1_TIME     =  S_BAPISTRUCT-DATA+11(1).&lt;/P&gt;&lt;P&gt;LS_BAPICUSGEN-ORDR_BLK_G   = S_BAPISTRUCT-DATA+ 12(2).&lt;/P&gt;&lt;P&gt;. . . . .&lt;/P&gt;&lt;P&gt;. . . . . &lt;/P&gt;&lt;P&gt;append  LS_BAPICUSGEN to LT_BAPICUSGEN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If helpful reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 07:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-mismatch-error/m-p/1680195#M299821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T07:11:45Z</dc:date>
    </item>
  </channel>
</rss>

