<?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: Assignment to a structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-to-a-structure/m-p/1518511#M238371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tarang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. in this exit fm,&lt;/P&gt;&lt;P&gt;   some idoc data of structure type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   EDIDD is passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. now this EDIDD has the following kind of structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANDT	CLNT	3	Client	&lt;/P&gt;&lt;P&gt;DOCNUM	NUMC	16	IDoc number	&lt;/P&gt;&lt;P&gt;SEGNUM	NUMC	6	Number of SAP segment	&lt;/P&gt;&lt;P&gt;SEGNAM	CHAR	27	Segment type	&lt;/P&gt;&lt;P&gt;PSGNUM	NUMC	6	Number of the hierarchically higher SAP segment	&lt;/P&gt;&lt;P&gt;HLEVEL	NUMC	2	Hierarchy level	&lt;/P&gt;&lt;P&gt;DTINT2	INT2	5	Length field for VARC field	&lt;/P&gt;&lt;P&gt;SDATA	LCHR	1000	Application data	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Now u can see that&lt;/P&gt;&lt;P&gt;3 + 16 + ... 6 is 65.&lt;/P&gt;&lt;P&gt;(for character data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. further onwards, the data is of type LCHR, &lt;/P&gt;&lt;P&gt;   which possibly cannot be modified directly,&lt;/P&gt;&lt;P&gt;   using character data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Hence, this error must be coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jul 2006 11:03:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-27T11:03:49Z</dc:date>
    <item>
      <title>Assignment to a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-to-a-structure/m-p/1518510#M238370</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; i am using a user exit exit_saplveda_006.&lt;/P&gt;&lt;P&gt; Inside tthat i have this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DXVBAK+63(1) = 'C'.&lt;/P&gt;&lt;P&gt;DXVBAK+65(4) = 'ZAMO'.&lt;/P&gt;&lt;P&gt;DXVBAK+107(4) = 'A001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DXVBAK+111(2) = '01'.&lt;/P&gt;&lt;P&gt;DXVBAK+113(2) = '01'.&lt;/P&gt;&lt;P&gt;DXVBAK+340(10) = 'J010301'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where DXVBAK is a structure with various fields.&lt;/P&gt;&lt;P&gt;now the 1st and 2nd statement are executed properly&lt;/P&gt;&lt;P&gt;i.e. DXVBAK-vbtyp takes value 'c'&lt;/P&gt;&lt;P&gt;and  DXVBAK-auart takes value A001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but  during the execution of the 3rd statement it gives dump saying :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Unicode-enabled programs, the offset and length declarations for               &lt;/P&gt;&lt;P&gt;structures are limited to the length of the character-type initial part.          &lt;/P&gt;&lt;P&gt;                                                          In this case, the offset declaration 109, in the structure "DXVBAK",              &lt;/P&gt;&lt;P&gt;exceeds the length of the character-type initial part (=94).                      &lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have tried changing DXVBAK&lt;EM&gt;107(4)to DXVBAK&lt;/EM&gt;108(4)&lt;/P&gt;&lt;P&gt;and also to DXVBAK&lt;EM&gt;109(4)and DXVBAK&lt;/EM&gt;106(4)&lt;/P&gt;&lt;P&gt;but in vain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Tarang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 10:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-to-a-structure/m-p/1518510#M238370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T10:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment to a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-to-a-structure/m-p/1518511#M238371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tarang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. in this exit fm,&lt;/P&gt;&lt;P&gt;   some idoc data of structure type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   EDIDD is passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. now this EDIDD has the following kind of structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANDT	CLNT	3	Client	&lt;/P&gt;&lt;P&gt;DOCNUM	NUMC	16	IDoc number	&lt;/P&gt;&lt;P&gt;SEGNUM	NUMC	6	Number of SAP segment	&lt;/P&gt;&lt;P&gt;SEGNAM	CHAR	27	Segment type	&lt;/P&gt;&lt;P&gt;PSGNUM	NUMC	6	Number of the hierarchically higher SAP segment	&lt;/P&gt;&lt;P&gt;HLEVEL	NUMC	2	Hierarchy level	&lt;/P&gt;&lt;P&gt;DTINT2	INT2	5	Length field for VARC field	&lt;/P&gt;&lt;P&gt;SDATA	LCHR	1000	Application data	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Now u can see that&lt;/P&gt;&lt;P&gt;3 + 16 + ... 6 is 65.&lt;/P&gt;&lt;P&gt;(for character data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. further onwards, the data is of type LCHR, &lt;/P&gt;&lt;P&gt;   which possibly cannot be modified directly,&lt;/P&gt;&lt;P&gt;   using character data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Hence, this error must be coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 11:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-to-a-structure/m-p/1518511#M238371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T11:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment to a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-to-a-structure/m-p/1518512#M238372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx amit ,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  so what is the solution now , how can i assign the value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Tarang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 11:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-to-a-structure/m-p/1518512#M238372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T11:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment to a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-to-a-structure/m-p/1518513#M238373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. first u should know what is the&lt;/P&gt;&lt;P&gt;   actual structure with the field names.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. suppose its t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. then declare :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab like t001.&lt;/P&gt;&lt;P&gt;itab-field1 = 'xyz'.&lt;/P&gt;&lt;P&gt;itab-field2 = 'xyz'.&lt;/P&gt;&lt;P&gt;DXVBAK-SDATA = ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 11:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-to-a-structure/m-p/1518513#M238373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T11:32:20Z</dc:date>
    </item>
  </channel>
</rss>

