<?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: A Tricky Table Maintenace Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928584#M60379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy Jayanthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the tip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I've done what you siad and I've ut in a breakpoint and the code won't stop there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally I wrote an error message that should be displayed and again this this is not displayed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also when uncommenting the PBO in the function module I had to add '00' onto the end of the name or the program would not compile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something that I am missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2005 13:58:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-03T13:58:56Z</dc:date>
    <item>
      <title>A Tricky Table Maintenace Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928577#M60372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help with the following please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the following Z-table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Field    |   Field Type| Data Type| Length| Check table|Short Text&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;MANDT|   MANDT    | CLNT        |	3        |  T000         |	Client&lt;/P&gt;&lt;P&gt;VKORG|   VKORG    | CHAR      |	4        |  TVKO        |	Sales organization&lt;/P&gt;&lt;P&gt;VKBUR |   VKBUR    |	CHAR     |	4        |  TVBUR      |	Sales office&lt;/P&gt;&lt;P&gt;VKGRP |   VKGRP    |	CHAR     |	3        |   TVKGR    |	Sales group&lt;/P&gt;&lt;P&gt;SECTOR|  ZSECTOR|	CHAR      |	6        |	             |	Sector Codes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have then set-up one step table maintenace and the user can now go in and add delete entries to the table via SM30 - great so far &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But oh no! The user now realises what they would really like &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They've said:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please can you make the sales grp dependant on the sales office  and the sales office dependant on the sales org - so that only relevant entries are displayed - this is how it is in the customer master  - see sales data view and orders screen.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now is sounds like that they want me to vlaidate the entries that they enter for the Sales Area, but how would I do that? Does anyone have any ideas? Please help if you can and let me know if you need any more information from me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S&amp;gt; If I wanted to transport the contents of theis table would I need to change the attributes-&amp;gt;delivery class to 'A'? It is currently set to 'C'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2005 11:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928577#M60372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-03T11:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: A Tricky Table Maintenace Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928578#M60373</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 SE11 for that table , Go to-&amp;gt;Table Maintenance-&amp;gt;and then generate Table Maintenance.While generating it you need to give a function group for that.In that,go to that main program.Then uncomment the PBO option.Then write your own validations there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear.&lt;/P&gt;&lt;P&gt;If not,get back to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2005 11:41:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928578#M60373</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-05-03T11:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: A Tricky Table Maintenace Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928579#M60374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do remember whenever you regenerate the table maintenance screen, your changes will be gone too. Creating your own module pool with validation etc won't take a day IMO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2005 11:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928579#M60374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-03T11:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: A Tricky Table Maintenace Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928580#M60375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I must agree with Misnan in that creating a separate transaction is a better idea. It should take you no more than an hour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2005 11:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928580#M60375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-03T11:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: A Tricky Table Maintenace Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928581#M60376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you can include all your coding -&lt;/P&gt;&lt;P&gt;so that you've only to insert your includes to the module&lt;/P&gt;&lt;P&gt;pool, if you've to regenerate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2005 12:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928581#M60376</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-05-03T12:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: A Tricky Table Maintenace Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928582#M60377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have look in to Cardinality of a relationship, with respective check tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might help you.&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2005 13:14:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928582#M60377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-03T13:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: A Tricky Table Maintenace Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928583#M60378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;coming back to the question of value checks:&lt;/P&gt;&lt;P&gt;use table TVKBZ as check table for VKBUR and table &lt;/P&gt;&lt;P&gt;TVBVK as check table for VKGRP. Maybe your Z-table needs distribution channel and division in addition, maybe you can maintain default values in check table definition - depends on your enterprise structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any additional coding for SM30 isn't needed (IMHO).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2005 13:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928583#M60378</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-05-03T13:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: A Tricky Table Maintenace Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928584#M60379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy Jayanthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the tip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I've done what you siad and I've ut in a breakpoint and the code won't stop there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally I wrote an error message that should be displayed and again this this is not displayed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also when uncommenting the PBO in the function module I had to add '00' onto the end of the name or the program would not compile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something that I am missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2005 13:58:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928584#M60379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-03T13:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: A Tricky Table Maintenace Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928585#M60380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy CHristian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already added value check tables if you have a closer look at my original post you may see the tables I have used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the user's want a more thorough check like the one in VA01 where all corresponding sales office/Group/org combinations can be assigned to each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would your check tables take account of this? If so you've solved my problem!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2005 16:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928585#M60380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-03T16:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: A Tricky Table Maintenace Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928586#M60381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! Just need to find the right check table for the scenario, there are a few more tables available, look at the tables VBAK, LIKP, LIPS, VBRP, VBRK foir the check tables used there and you should find your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also suggest awarding Christian some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rishi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2005 17:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928586#M60381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-03T17:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: A Tricky Table Maintenace Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928587#M60382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing the check tables as suggested by Christian should solve your problem, even though it will give you a message "Foreign Key cannot be specified in full", but you can ignore it or use constant values as suggested by Christian.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change your table as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Field | Field Type| Data Type| Length| Check table|Short Text
MANDT | MANDT     | CLNT | 3 | T000  | Client
VKORG | VKORG     | CHAR | 4 | TVKBZ | Sales organization
VKBUR | VKBUR     | CHAR | 4 | TVKBZ | Sales office
VKGRP | VKGRP     | CHAR | 3 | TVBVK | Sales group
SECTOR| ZSECTOR   | CHAR | 6 |       | Sector Codes
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should take care of it. If not, you can use events to have your own validations. Go to SE54, enter your table name and choose the menu option 'Environment--&amp;gt;Events'. In the next screen, create new entries and choose event 01 and give a name for the routine. Using the Editor button for that row, you can insert your validation logic there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2005 19:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928587#M60382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-03T19:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: A Tricky Table Maintenace Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928588#M60383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uncomment the PBO and PAI like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INCLUDE LZCSI_CAPIPRO&amp;lt;b&amp;gt;01&amp;lt;/b&amp;gt;.   " PBO-Modules
INCLUDE LZCSI_CAPIPRI&amp;lt;b&amp;gt;01&amp;lt;/b&amp;gt;.   " PAI-Modules

Then in the PAI of the screen(While creating Table Maintenance), write like this.

 MODULE detail_set_pfstatus.
  CHAIN.
    FIELD zcs_exp_ipr_fact-bukrs .
 ....

    MODULE set_update_flag ON CHAIN-REQUEST.
* Start of insert   
    &amp;lt;b&amp;gt;MODULE zcs_exp_ipr_fact_valid.&amp;lt;/b&amp;gt;
* End of insert     
  ENDCHAIN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the PAI which we uncommented earlier ,&lt;/P&gt;&lt;P&gt;write the required as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE zcs_exp_ipr_fact_valid INPUT.

  IF zcs_exp_ipr_fact-bukrs IS INITIAL.
    &amp;lt;b&amp;gt;SET CURSOR FIELD 'ZCS_EXP_IPR_FACT-BUKRS'.&amp;lt;/b&amp;gt;
    break username.
    MESSAGE e091(zcs_p2p_001)."Enter Company code
  ENDIF.
 ENDMODULE.        " zcs_exp_ipr_fact_valid  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear.If not,get back to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;J.Jayanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 04:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928588#M60383</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-05-04T04:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: A Tricky Table Maintenace Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928589#M60384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took the tables out of customizing (SPRO):&lt;/P&gt;&lt;P&gt;Enterprise Structure-&amp;gt;Assignment-&amp;gt;Sales and Distribution-&amp;gt;Assign sales office to sales area&lt;/P&gt;&lt;P&gt;Enterprise Structure-&amp;gt;Assignment-&amp;gt;Sales and Distribution-&amp;gt;Assign sales group to sales office&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't imagine, which connection could be more specific / sophisticated - that's exactly the way of SAP's definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this should be alright for your customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 05:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-tricky-table-maintenace-problem/m-p/928589#M60384</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-05-04T05:08:35Z</dc:date>
    </item>
  </channel>
</rss>

