<?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: Table maintenance generation problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325636#M5161</link>
    <description>&lt;P&gt;Solved with event 01.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2017 13:08:19 GMT</pubDate>
    <dc:creator>former_member384574</dc:creator>
    <dc:date>2017-01-27T13:08:19Z</dc:date>
    <item>
      <title>Table maintenance generation problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325628#M5153</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I'm having a problem with a table maintenance view and how to check the whole table. I try to explain the problem. We are on 4.6C.&lt;/P&gt;&lt;P&gt;When a new entry is created, I need to check that there isn't any other line with the same values for all fields except for location one.&lt;/P&gt;&lt;P&gt;This example will be wrong cause there's a blank entry which is generic and the location is the same in both lines.&lt;/P&gt;&lt;P&gt;Ord.material      Component        Location          &lt;/P&gt;&lt;P&gt;mat1                    mat2                       YYYY&lt;/P&gt;&lt;P&gt;blank                    mat2                       YYYY&lt;/P&gt;&lt;P&gt;I can not create the table key with Ord. Material, Component and Location cause I can insert the same line with orden material or without it.&lt;/P&gt;&lt;P&gt;So I think the only possible solution will be to create a validation and check when we have this kind of situations.&lt;/P&gt;&lt;P&gt;I've tried with event 01 and check the whole table when the new entries are saved, but I'm having several problems to read the tables.... Could you please help me to identify which table is the complete table (I think is TOTAL) and which table or structure contain the new entry to be inserted? Also, could you please help me how this validation could be done?&lt;/P&gt;&lt;P&gt;I hope you can understand my problem...&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rebeca&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2024 22:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325628#M5153</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2024-01-21T22:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generation problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325629#M5154</link>
      <description>&lt;P&gt;please give the screenshots what you are trying to tell....&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2017 05:26:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325629#M5154</guid>
      <dc:creator>former_member228164</dc:creator>
      <dc:date>2017-01-21T05:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generation problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325630#M5155</link>
      <description>&lt;P&gt;Hello Abid Ali,&lt;/P&gt;&lt;P&gt;First of all, thanks for your answer. I'm sorry but I do not have
screenshots, I will try again...&lt;/P&gt;&lt;P&gt;This is a good table example. As you can see, depending on the material order
and the component (as key table) I can choose a different storage location. So,
if my production order has material order AAAA and has component1 the storage
location will be LLL, if my production order has material order BBBB and has
component1 the storage location will be QQQQ and if my production order has any
other value (CCCC, DDDD...whatever), the table will read the empty column and
will set Storage location ZZZZ.&lt;/P&gt;
 
  Material Order 
  Component material
  Storage Location
 
 
  AAAA
  Comp1
  LLLL
 
 
  BBBB
  Comp1
  QQQQ
 
 
  empty
  Comp1
  ZZZZ
 
&lt;P&gt;What we want to avoid is that the user can insert a row like this:&lt;/P&gt;
 
  Material Order 
  Component material
  Storage Location
 
 
  CCC
  Comp1
  ZZZZ
 
&lt;P&gt;Because as you can see on table 1, this situation will be included on the third row of table one (the empty one) which will be the generic, so this entry wil be a redundancy in the table values.&lt;/P&gt;&lt;P&gt;I've think about changing the table key, but I have always the same problem...so finally I thought it will be better to do it using an event and a validation. I've tried with event 01, but the problem I've here is that, first, I'm on 4.6C version non-unicode, so the field-symbols are diffferent than on 6.0 and also, I do not know how to use tables TOTAL and EXTRACT. &lt;/P&gt;&lt;P&gt;I've checked this link, and I've seen that my pointers are a long character field with all the data together, so I want to avoid to use offsets to get the values of the fields, but I'm thinking I do not have other way,....&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/erp2005_ehp_04/helpdata/en/33/96613cb44b6c4de10000000a11405a/content.htm" target="test_blank"&gt;http://help.sap.com/erp2005_ehp_04/helpdata/en/33/96613cb44b6c4de10000000a11405a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also my problem is that in this version, I can't identify which table is the whole table (in my example table 1) and which table/structure has the new values the user is inserting....&lt;/P&gt;&lt;P&gt;Do you understand now better my problem? Could you please help me with this strange behaviour?&lt;/P&gt;&lt;P&gt;Thanks in advance for your support.&lt;/P&gt;&lt;P&gt;BEst regards,&lt;/P&gt;&lt;P&gt;Rebeca&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2017 09:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325630#M5155</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2017-01-21T09:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generation problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325631#M5156</link>
      <description>&lt;P&gt;Sorry I've seen the tables are not correct uploaded. I send you some screenshots on word. &lt;/P&gt;&lt;P&gt;This is table 1&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/16516-table1.jpg" /&gt;&lt;/P&gt;&lt;P&gt;This is new row will be redundancy with the empty value of table 1&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/16517-new-row.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rebeca&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2017 09:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325631#M5156</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2017-01-21T09:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generation problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325632#M5157</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOTAL is both an internal table containing all lines of the table, and a structure initialized by LOOP AT TOTAL, for which the field symbol &amp;lt;ACTION&amp;gt; defines whether the line is unchanged (space), new (N), modified (U), compared to what is in database.&lt;/P&gt;&lt;P&gt;You may easily code your event 01 using table field names using ASSIGN CASTING, as follows:&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;yourtable&amp;gt; type name_of_your_table.&lt;BR /&gt;LOOP AT total.&lt;BR /&gt;  CASE &amp;lt;action&amp;gt;.&lt;BR /&gt;  WHEN NEUER_EINTRAG OR AENDERN. " new or modified&lt;BR /&gt;  assign total to &amp;lt;yourtable&amp;gt; casting.&lt;/P&gt;&amp;lt;yourtable&amp;gt;-matnr ...</description>
      <pubDate>Mon, 23 Jan 2017 07:16:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325632#M5157</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-01-23T07:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generation problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325633#M5158</link>
      <description>&lt;P&gt;Rebeca,&lt;/P&gt;&lt;P&gt;One thing to keep in mind, the table TOTAL contains only the records from the database table that were returned from the select. Your validation may need to take into account the records from the database table that were not returned from the select as well as everything populated on the screen.&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 20:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325633#M5158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-01-23T20:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generation problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325634#M5159</link>
      <description>&lt;P&gt;Hello Sandra and Bruce and thanks for your answer.&lt;/P&gt;&lt;P&gt;@Sandra I tried your solution, and it works, the problem is that the table TOTAL doesn't have structure, is a string, so i can not read of there's redundancy... I mean, if I'm inserting a new row I have to read the table TOTAL and check if there's an entry with Material order empty .. but how can I do that? the key is a string and I neef to check without the field Material Order.... do u understand what I mean&lt;/P&gt;&lt;P&gt;@Bruce, but then, should I  also need to have an internal table which contains the new rows added before the saving is done? Sorry I do not understand your help...&lt;/P&gt;&lt;P&gt;Thanks both of u for your support.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rebeca&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 16:47:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325634#M5159</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2017-01-25T16:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generation problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325635#M5160</link>
      <description>&lt;P&gt;With the code I have provided, and with ABAP debugging, you'll see that the TOTAL "string" is mapped to the field symbol &amp;lt;yourtable&amp;gt; (right after ASSIGN ... CASTING), which contains fields. You can then easily test each field.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 18:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325635#M5160</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-01-25T18:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generation problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325636#M5161</link>
      <description>&lt;P&gt;Solved with event 01.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 13:08:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generation-problem/m-p/325636#M5161</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2017-01-27T13:08:19Z</dc:date>
    </item>
  </channel>
</rss>

