<?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: update structure help  / erroe in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207123#M1377091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try your code and its not working ,&lt;/P&gt;&lt;P&gt;basically what i expect is at the end wa_mara_new will have the old fields that are not&lt;/P&gt;&lt;P&gt;changed and the new fields that change and with all this field i can update the DB . &lt;/P&gt;&lt;P&gt;but its not working like that .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Sep 2009 09:30:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-21T09:30:09Z</dc:date>
    <item>
      <title>update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207106#M1377074</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 have functionality which i want to update some data but alwayes just one or more fields if somethig was cahged i.e. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i have structure on the  with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;userid      1234
name        Jhon
language    EN
timezone    UTC
adress      Australia  
mail        www.sdn.com...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in this structure i want to update just the  language or other fields how i can do so &lt;/P&gt;&lt;P&gt;&lt;U&gt;the language is just example it can be any fields and can be more then one field for instance&lt;/U&gt; &lt;/P&gt;&lt;P&gt;&lt;U&gt;adress and mail .&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;userid      1234
name        Jhon
language    DE
timezone    UTC
adress      Australia  
mail        www.sdn.com...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i try with modify &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY  ms_user  FROM ls_user .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get this error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"MS_USER" is not an internal table "OCCURS n" specification is missing.&lt;/P&gt;&lt;P&gt;but ms_user is in the method signature and type data base structure from se 11 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can solve this issue , i try also with update but noting ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Nina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nina C on Sep 21, 2009 9:28 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 07:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207106#M1377074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T07:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207107#M1377075</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;if you only use a structure you can simly do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_struc-language = 'DE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_struc i your structurename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 07:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207107#M1377075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T07:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207108#M1377076</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 the transporting option of the modify statment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODIFY ms_user FROM ls_user transporting language.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 07:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207108#M1377076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T07:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207109#M1377077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as its a structure, no need of MODIFY. modify is for tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can simply use :&lt;/P&gt;&lt;P&gt;ms_user-language = 'DE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this wont change anything else except the language.. other fields will be there as usual..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 07:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207109#M1377077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T07:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207110#M1377078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Dieter Gröhn    	 ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks but This is not my question ,&lt;/P&gt;&lt;P&gt;i want to update structure from other structure and i don't know which fields gonna be changed and i don't want to touch the fields that not changed so &lt;/P&gt;&lt;P&gt;how i can do so ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Nina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 07:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207110#M1377078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T07:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207111#M1377079</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;thanks but the language is just example &lt;/P&gt;&lt;P&gt;it can be any other fields so what is the best way to  handle it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;the problem is that i don't know which fields is chanced&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nina C on Sep 21, 2009 9:44 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 07:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207111#M1377079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T07:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207112#M1377080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the two structure are of same type:&lt;/P&gt;&lt;P&gt;then just use:&lt;/P&gt;&lt;P&gt;ws_ma = ls_ma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if they are not same,&lt;/P&gt;&lt;P&gt;you need to use&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING gs_wa to ms_wa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 07:43:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207112#M1377080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T07:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207113#M1377081</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;the same way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;olf_struc = new_struc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 07:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207113#M1377081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T07:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207114#M1377082</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;If MS_USER is the original structure name, declare a reference structure and modify it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: it_ms_user type standard table of ms_user with header line.


loop at it_ms_user.
move-corresponding ls_user to it_ms_user.
modify it_ms_user.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 08:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207114#M1377082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T08:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207115#M1377083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Dieter Gröhn ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's not that simple ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is i am on update process ( i get structure with data )  and i do select singe from the DB to another structure (read before update )  and after i do some compering with the structure fields if somethig is diffrent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get for instance the fields to update (just userid is the key) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;userid      1234&lt;/P&gt;&lt;P&gt;name        Jhon&lt;/P&gt;&lt;P&gt;language    EN&lt;/P&gt;&lt;P&gt;timezone    &lt;/P&gt;&lt;P&gt;adress      USA   &lt;/P&gt;&lt;P&gt;mail       &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;and in the DB i have  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;userid      1234&lt;/P&gt;&lt;P&gt;name        Jhon&lt;/P&gt;&lt;P&gt;language    DE&lt;/P&gt;&lt;P&gt;timezone    UTC&lt;/P&gt;&lt;P&gt;adress      Australia  &lt;/P&gt;&lt;P&gt;mail        &lt;A href="https://community.sap.com/www.sdn.com" target="test_blank"&gt;www.sdn.com&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i dont want to overwrite the field that already exist i just want to update the fields that i get for update and dont touch the other fields ?&lt;/STRONG&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;Nina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nina C on Sep 21, 2009 10:11 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 08:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207115#M1377083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T08:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207116#M1377084</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;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

select single * from db into itab where (any conditions)


loop at MS_USER.
read table itab with key userid = MS_USER-userid.
if sy-subrc = 0.
modify MS_USER from itab.
endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&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;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 08:28:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207116#M1377084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T08:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207117#M1377085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI Vikranth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks but how i can know if one fields is changed language or adress or email ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds&lt;/P&gt;&lt;P&gt;Nina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 08:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207117#M1377085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T08:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207118#M1377086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to update only the changed fields, you will need to compare each field (old vs. new value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example should give you an idea to work with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: wa_mara_old     TYPE mara,
      wa_mara_new     TYPE mara.


FIELD-SYMBOLS: &amp;lt;fs_old&amp;gt; TYPE any,
               &amp;lt;fs_new&amp;gt; TYPE any.


SELECT * INTO wa_mara_old
  FROM mara
    UP TO 1 ROWS.
ENDSELECT.



wa_mara_new = wa_mara_old.
wa_mara_new-ersda = sy-datum.

write: / 'MARA old ersda', wa_mara_old-ersda.
write: / 'MARA new ersda', wa_mara_new-ersda.
uline.


DO.

  ASSIGN COMPONENT sy-index OF STRUCTURE wa_mara_old TO &amp;lt;fs_old&amp;gt;.
  IF sy-subrc NE 0.
    EXIT.
  ENDIF.

  ASSIGN COMPONENT sy-index OF STRUCTURE wa_mara_new TO &amp;lt;fs_new&amp;gt;.
  IF &amp;lt;fs_old&amp;gt; NE &amp;lt;fs_new&amp;gt;.
    &amp;lt;fs_old&amp;gt; = &amp;lt;fs_new&amp;gt;.
  ENDIF.

ENDDO.

write: / 'MARA old ersda', wa_mara_old-ersda.
write: / 'MARA new ersda', wa_mara_new-ersda.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This only works if both structures have the same definition!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 08:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207118#M1377086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T08:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207119#M1377087</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;you must compare field by field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES: MARA.
FIELD-SYMBOLS: &amp;lt;FS_OLD&amp;gt;, &amp;lt;FS_NEW&amp;gt;.
DATA: STRU_OLD TYPE MARA.
DATA: STRU_NEW TYPE MARA.
*
START-OF-SELECTION.
*
  SELECT SINGLE * FROM MARA.
*
  STRU_OLD = MARA.
  STRU_NEW = MARA.
*
  STRU_NEW-BISMT = 'newvaulue'.
* Now the structures are different.
*
  DO 1000 TIMES.
    ASSIGN COMPONENT SY-INDEX OF STRUCTURE STRU_OLD TO &amp;lt;FS_OLD&amp;gt;.
    ASSIGN COMPONENT SY-INDEX OF STRUCTURE STRU_NEW TO &amp;lt;FS_NEW&amp;gt;.
    IF SY-SUBRC &amp;lt;&amp;gt; 0. EXIT. ENDIF.
    IF &amp;lt;FS_OLD&amp;gt; &amp;lt;&amp;gt; &amp;lt;FS_NEW&amp;gt;.
      &amp;lt;FS_OLD&amp;gt; = &amp;lt;FS_NEW&amp;gt;.
    ENDIF.
  ENDDO.
*
END-OF-SELECTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 08:53:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207119#M1377087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T08:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207120#M1377088</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;You can just use the simple assignment to check if there is any change in the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select single * from db into itab where (any conditions)
 
 
loop at MS_USER.
read table itab with key userid = MS_USER-userid.
if sy-subrc = 0.
if MS_USER NE itab.          "Comparing the header items of both the internal tables.   
modify MS_USER from itab. "Modify only if there is any change in the fields
endif.
endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 09:04:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207120#M1377088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T09:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207121#M1377089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Dieter ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the when one  fields are equal the going to the exit &lt;/P&gt;&lt;P&gt;and not compare all other fields why ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 09:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207121#M1377089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T09:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207122#M1377090</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;do you set the DO - loop like i have mentioned?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exit will be executed if the assign gets an error, because there isn't an structure field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DO 1000 TIMES.
    ASSIGN COMPONENT SY-INDEX OF STRUCTURE STRU_OLD TO &amp;lt;FS_OLD&amp;gt;.
    ASSIGN COMPONENT SY-INDEX OF STRUCTURE STRU_NEW TO &amp;lt;FS_NEW&amp;gt;.
* here the exit
    IF SY-SUBRC  0. EXIT. ENDIF.
*
    IF &amp;lt;FS_OLD&amp;gt;  &amp;lt;FS_NEW&amp;gt;.
      &amp;lt;FS_OLD&amp;gt; = &amp;lt;FS_NEW&amp;gt;.
    ENDIF.
  ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Dieter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dieter Gröhn on Sep 21, 2009 11:25 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 09:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207122#M1377090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T09:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207123#M1377091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try your code and its not working ,&lt;/P&gt;&lt;P&gt;basically what i expect is at the end wa_mara_new will have the old fields that are not&lt;/P&gt;&lt;P&gt;changed and the new fields that change and with all this field i can update the DB . &lt;/P&gt;&lt;P&gt;but its not working like that .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 09:30:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207123#M1377091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T09:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207124#M1377092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try your code and its not working ,&lt;/P&gt;&lt;P&gt;baisicliy what i expect is at the end STRU_OLD  will have the old fields that are not&lt;/P&gt;&lt;P&gt;changed and the new fields that change and with all this field i can update the DB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 09:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207124#M1377092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T09:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: update structure help  / erroe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207125#M1377093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try your code and its not working ,&lt;/P&gt;&lt;P&gt;baisicliy what i expect is at the end STRU_OLD  will have the old fields that are not&lt;/P&gt;&lt;P&gt;changed and the new fields that change and with all this field i can update the DB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 09:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-structure-help-erroe/m-p/6207125#M1377093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T09:44:54Z</dc:date>
    </item>
  </channel>
</rss>

