<?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: Default Values in table maintainence generator in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444615#M1248396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u see the right event to use as i have tried this option and write a sample test code with a breakpoint statemet.&lt;/P&gt;&lt;P&gt;but while maintaining the entries it was not stopping at that point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2009 07:29:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-23T07:29:10Z</dc:date>
    <item>
      <title>Default Values in table maintainence generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444613#M1248394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a table in SE11 . For this table in the table maintainence generator, it is required that while creating a new entries a field i.e 'End date' should show 12/31/999 by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how this is possible.&lt;/P&gt;&lt;P&gt;Waiting for you replies....... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 06:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444613#M1248394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T06:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Default Values in table maintainence generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444614#M1248395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi goto se51&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter view name -&amp;gt; click on generatd oblects...-&amp;gt;click on change button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto environment-&amp;gt;modifications-&amp;gt;events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can maintain the perform for perticular event. In that write ur code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this not works then for each maintainance view SAP is creating module pool which is Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can change that. Write ur code in PBO modile of scrren created by mainainance view..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If u regenerate(delete and create) the maintainance view this code wil get deleted.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anil Mane on Mar 23, 2009 12:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 07:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444614#M1248395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T07:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Default Values in table maintainence generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444615#M1248396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u see the right event to use as i have tried this option and write a sample test code with a breakpoint statemet.&lt;/P&gt;&lt;P&gt;but while maintaining the entries it was not stopping at that point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 07:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444615#M1248396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T07:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Default Values in table maintainence generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444616#M1248397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for your requirement you need to create event in table maintanance generator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write your own code in event 05 and 21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table name : ztest . it contain fields f1, f2 and date. if you would like to add default value to f3 when creating new entry to this table, you need to follow following setps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create event from tablemantanace generator screen Environemnt-&amp;gt;Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create two subroutine for assigning defaule vaue to date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*first create 05 event and give suroutine name as new_entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form new_entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*create another event 21- fill hidden fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form fill_hiddenfield.&lt;/P&gt;&lt;P&gt;ztest-date = sy-datum&lt;/P&gt;&lt;P&gt;endlform.&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;Peranandam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: peranandam chinnathambi on Mar 23, 2009 10:48 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 09:48:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444616#M1248397</guid>
      <dc:creator>Peranandam</dc:creator>
      <dc:date>2009-03-23T09:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Default Values in table maintainence generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444617#M1248398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use table maintenance event # 5 (Creating a new entry) and code in it.This should solve your program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However,if this does not work then just create a PBO module at the approriate place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luck,&lt;/P&gt;&lt;P&gt;Bhumika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 14:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444617#M1248398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T14:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Default Values in table maintainence generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444618#M1248399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rahul, You will require to go for Event Programming:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shital&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 17:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444618#M1248399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T17:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Default Values in table maintainence generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444619#M1248400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;In the flow logic of the table maintanance generator u can add a module to default required fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur flow logic u will have this following lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at extract.&lt;/P&gt;&lt;P&gt; MODULE LISTE_INIT_WORKAREA.&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;    FIELD Z_test-fld1.&lt;/P&gt;&lt;P&gt;    FIELD Z_test-fld2 .&lt;/P&gt;&lt;P&gt;    FIELD z_test-fld3. .&lt;/P&gt;&lt;P&gt;    MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;   FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.&lt;/P&gt;&lt;P&gt;   CHAIN.&lt;/P&gt;&lt;P&gt;      FIELD Z_test-fld1.&lt;/P&gt;&lt;P&gt;    FIELD Z_test-fld2 .&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this add ur module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like below.&lt;/P&gt;&lt;P&gt;Loop at extract.&lt;/P&gt;&lt;P&gt; MODULE LISTE_INIT_WORKAREA.&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;    FIELD Z_test-fld1.&lt;/P&gt;&lt;P&gt;    FIELD Z_test-fld2 .&lt;/P&gt;&lt;P&gt;    FIELD z_test-fld3. .&lt;/P&gt;&lt;P&gt;    MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;   FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.&lt;/P&gt;&lt;P&gt;   CHAIN.&lt;/P&gt;&lt;P&gt;      FIELD Z_test-fld1.&lt;/P&gt;&lt;P&gt;      FIELD Z_test-fld2 .&lt;/P&gt;&lt;P&gt;      MODULE UPDATE_ENDDATE.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the module .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE UPDATE_ENDDATE INPUT.&lt;/P&gt;&lt;P&gt;if sy-ucomm = 'SAVE' or sy-ucomm = ' '.   space for ENTER.&lt;/P&gt;&lt;P&gt;z_test-fld1 = sy-datum.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guru&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Guru Ram on Mar 24, 2009 3:38 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 02:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444619#M1248400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T02:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Default Values in table maintainence generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444620#M1248401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to Table Maintenance Generator and give the required details.&lt;/P&gt;&lt;P&gt;Now click on Environment -&amp;gt; Modification -&amp;gt; Events &lt;/P&gt;&lt;P&gt;in the given screen in coloumn T press F4&lt;/P&gt;&lt;P&gt;select event 05-creating a new entry&lt;/P&gt;&lt;P&gt;Click on the button in the Editor column and enter the following code&lt;/P&gt;&lt;P&gt;after selecting INCLUDE LZ_TABLENAMEF01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form creat_entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;z_tablename-table_time_ield = sy-uname.&lt;/P&gt;&lt;P&gt;endform..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 11:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444620#M1248401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T11:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Default Values in table maintainence generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444621#M1248402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using  table maintenance event # 5  can fixed ur requirement &lt;/P&gt;&lt;P&gt;go to se11 give the table name and press change&lt;/P&gt;&lt;P&gt;utilities&lt;DEL&gt;-table maintenance generator&lt;/DEL&gt;environment&lt;DEL&gt;-modification&lt;/DEL&gt;event---new entries-in the given screen in coloumn T press F4&lt;/P&gt;&lt;P&gt;select event 05-creating a new entry&lt;/P&gt;&lt;P&gt;then between form and endform write ur customised code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fareed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 06:49:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444621#M1248402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T06:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Default Values in table maintainence generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444622#M1248403</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;To set default values to table fields like date , time or username , here are the steps given below :- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create table (Eg. Ztable) having required fields (Eg. Mandt , kunnr , erdat ) . Give required Technical Settings and activate It . &lt;/P&gt;&lt;P&gt;2. Now Go to UTILITIES-&amp;gt;TABLE MAINTENANCE GENERATOR . This will take you to maintenance dialog screen. &lt;/P&gt;&lt;P&gt;Here pass this value to fields :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization Group = &amp;amp;NC&amp;amp;.&lt;/P&gt;&lt;P&gt;Function Group = Can give table name (i.e Ztable) &lt;/P&gt;&lt;P&gt;Maintenance type = ONE STEP &lt;/P&gt;&lt;P&gt;Main. Screen No . = any value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that Click on create button . &lt;/P&gt;&lt;P&gt;3. Go to ENVIRONMENT-&amp;gt;MODIFICATION-&amp;gt;EVENTS . Click on NEW ENTRIES. In table below type below values : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.1 T = 21.&lt;/P&gt;&lt;P&gt;Form Routine = any subroutine name (Eg. SHOW ).&lt;/P&gt;&lt;P&gt;press ENTER .It will Show icon on Editor columne. Now Click on Editor button. Click on OK . &lt;/P&gt;&lt;P&gt;It will show ABAP Editor , here you can write your subroutine code as given bellow : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form SHOW.&lt;/P&gt;&lt;P&gt;ztable-erdat = sy-datum.&lt;/P&gt;&lt;P&gt;Endform. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save and activate it . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.2 T = 05.&lt;/P&gt;&lt;P&gt;Form Routine = any subroutine name (Eg. NEW).&lt;/P&gt;&lt;P&gt;press ENTER .It will Show icon on Editor columne. Now Click on Editor button. Click on OK . &lt;/P&gt;&lt;P&gt;It will show ABAP Editor , here you can write your subroutine code as given bellow : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form NEW.&lt;/P&gt;&lt;P&gt;ztable-erdat = sy-datum.&lt;/P&gt;&lt;P&gt;Endform. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save and activate it . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. This will create table with default fields. Now to see how this will work , Go to SM30 -&amp;gt; Click on MAINTAIN -&amp;gt; Click NEW ENTRIES. Type the value in the fields which is required and keep remaining fields as empty. Click on ENTER. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values which we want (Eg. date , time or username) will be added automatically . &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;Ishant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 10:17:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-in-table-maintainence-generator/m-p/5444622#M1248403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-17T10:17:17Z</dc:date>
    </item>
  </channel>
</rss>

