<?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 cdhdr &amp; cdpos in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642166#M285982</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;    In user-exit i am changing the plant status .Example - 'P1' is the intial value and then on certain condition  it has been changed to 'SO' and later on to 'CC' , at the end of the process i want to assign the orginal value 'P1' to the status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i get the original value , i think  the maximum changenr logic in cdhdr cannot be applied here .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards.&lt;/P&gt;&lt;P&gt;Syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Nov 2006 23:41:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-19T23:41:04Z</dc:date>
    <item>
      <title>cdhdr &amp; cdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642166#M285982</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;    In user-exit i am changing the plant status .Example - 'P1' is the intial value and then on certain condition  it has been changed to 'SO' and later on to 'CC' , at the end of the process i want to assign the orginal value 'P1' to the status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i get the original value , i think  the maximum changenr logic in cdhdr cannot be applied here .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards.&lt;/P&gt;&lt;P&gt;Syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Nov 2006 23:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642166#M285982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-19T23:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: cdhdr &amp; cdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642167#M285983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   another way of achieving this requirement is,&lt;/P&gt;&lt;P&gt;   1) turn on tabble logging for the table whichis having plant status field.&lt;/P&gt;&lt;P&gt;   2) when this field value is changed, then entries will be created in DBTABPRT r/3 table.&lt;/P&gt;&lt;P&gt;   3) based on table name, key (sy-mandt concatenated with other key elements of the table to whcih tabble logging is turned on), change dt (AS4DATE) fields, you can retrieve data from DBTABPRT r/3 table.&lt;/P&gt;&lt;P&gt;   4) sort records retrieved by table name, key, date and time fields. The first record will be having the original value for plant status before change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Note: Some time you maybe getting more than one records with same value specified in point 4. in this situation you have to considar counter field value also.&lt;/P&gt;&lt;P&gt;   best way is after reading first record, loop the internal table with the index and compare the current plant status value with dbtab prt records value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sundaramj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 00:13:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642167#M285983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T00:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: cdhdr &amp; cdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642168#M285984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; thanks for ur reply , how can i turn on the table logging , i am using mstae field in mara , i am using 4.6 c .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 00:24:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642168#M285984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T00:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: cdhdr &amp; cdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642169#M285985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table logging is usually done by the BASIS team.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 00:27:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642169#M285985</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-11-20T00:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: cdhdr &amp; cdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642170#M285986</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 think in the technical setting there is log data changes , if the flag is set , will this work or other settings are required ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 00:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642170#M285986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T00:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: cdhdr &amp; cdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642171#M285987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not that I know of..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 00:42:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642171#M285987</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-11-20T00:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: cdhdr &amp; cdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642172#M285988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes sayed.&lt;/P&gt;&lt;P&gt;      we have check table logging checl box intechnical settings. This will be done by basis (access key is required to change r/3 table technical settings).&lt;/P&gt;&lt;P&gt;tegards,&lt;/P&gt;&lt;P&gt;sundaramj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 01:03:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642172#M285988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T01:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: cdhdr &amp; cdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642173#M285989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you might be able to use an import/export approach to save and restore the initial value. On the first time the exit is entered, ie. when a save variable is initial, set the variable to the value of the field you are dealing with (mara-mstae) and then 'export' it.&lt;/P&gt;&lt;P&gt;eg,&lt;/P&gt;&lt;P&gt;data l_old_status type mara-mstae.&lt;/P&gt;&lt;P&gt;*... retrieve status&lt;/P&gt;&lt;P&gt;    IMPORT l_old_status FROM MEMORY ID 'mara-mstae'.&lt;/P&gt;&lt;P&gt;*... if there is already a non-blank one - keep it   &lt;/P&gt;&lt;P&gt;    CHECK l_old_status IS INITIAL.                             &lt;/P&gt;&lt;P&gt;*... save status for later use&lt;/P&gt;&lt;P&gt;    EXPORT l_old_status FROM mara-mstae TO MEMORY ID 'mara-mstae'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code when you want to restore the mara-mstae:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*... restore original status&lt;/P&gt;&lt;P&gt;    IMPORT l_old_status = mara-mstae FROM MEMORY ID 'mara-mstae'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 01:05:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdhdr-cdpos/m-p/1642173#M285989</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-11-20T01:05:26Z</dc:date>
    </item>
  </channel>
</rss>

