<?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: Data Dictionary in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098571#M1814764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;personally, i would probably resolve this issue with a select-option (or data range if select option not possible).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason being is&lt;/P&gt;&lt;P&gt;1- it cuts down on more over worked solution - going off to maintain TVARV and remembering it when you want to maintain the program 18 months later etc.&lt;/P&gt;&lt;P&gt;2-flexible for users&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create your selection screen.&lt;/P&gt;&lt;P&gt;set the values in an initialisation/load-of-program event (or somewhere before the select is done).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code remains easy to maintain from one point - the actual program.&lt;/P&gt;&lt;P&gt;Users can 'add/remove' entries if you use a select-option - so it is not rigid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whilst there is some element that it is 'hardcoded' you are providing flexible maintenance, user friendly interface allowing deviation to the C / V 'normal' combo. Change the select statement to use the IN operator against the select option - you are avoiding repeated select statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont over engineer a simple requirement - everyone is a winner with this approach!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Feb 2014 10:51:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-02-19T10:51:01Z</dc:date>
    <item>
      <title>Data Dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098561#M1814754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to capture standard domain values ( Ex :- &lt;SPAN style="font-family: 'Courier New'; font-size: 10pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;VBTYP &lt;SPAN style="background: white; color: blue;"&gt;EQ &lt;/SPAN&gt;&lt;SPAN style="background: white; color: #4da619;"&gt;'V' &lt;/SPAN&gt;&lt;/SPAN&gt;)&amp;nbsp; OR ( &lt;SPAN style="font-family: 'Courier New'; font-size: 10pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;VBTYP &lt;SPAN style="background: white; color: blue;"&gt;EQ &lt;/SPAN&gt;&lt;SPAN style="background: white; color: #4da619;"&gt;'C' &lt;/SPAN&gt;&lt;/SPAN&gt;) in our program instead of hard coding..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance..............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 08:25:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098561#M1814754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-19T08:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data Dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098562#M1814755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mahi,&lt;/P&gt;&lt;P&gt;What do you exactly want.. ? If you don't want to hard code the values in program , then try creating constants and use the constant in program..&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;Sivaganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 08:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098562#M1814755</guid>
      <dc:creator>sivaganesh_krishnan</dc:creator>
      <dc:date>2014-02-19T08:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data Dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098563#M1814756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahi,&lt;/P&gt;&lt;P&gt;either you declare those fields for a variable in initialization, and whele fetching data&lt;/P&gt;&lt;P&gt;just check these values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : lv_field type char .&lt;/P&gt;&lt;P&gt;lv_field = { put your all values here for &lt;SPAN style="color: #333333; font-family: 'Courier New';"&gt;VBTYP&lt;/SPAN&gt; }&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the time of fetching you can check through lv_field, that it matches your record or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 08:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098563#M1814756</guid>
      <dc:creator>former_member187748</dc:creator>
      <dc:date>2014-02-19T08:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data Dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098564#M1814757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;i think we should not use even CONSTANTS (keyword) also..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any alternative way..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we give on example..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 08:44:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098564#M1814757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-19T08:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data Dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098565#M1814758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM '&lt;STRONG&gt;DD_DOMVALUES_GET&lt;/STRONG&gt;'&amp;nbsp; to get all the domain values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 08:48:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098565#M1814758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-19T08:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Data Dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098566#M1814759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why can't you use constants.. ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 08:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098566#M1814759</guid>
      <dc:creator>sivaganesh_krishnan</dc:creator>
      <dc:date>2014-02-19T08:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Data Dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098567#M1814760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use function module &lt;STRONG style="font-size: 12px; color: #333333;"&gt;DD_DOMVALUES_GE&lt;/STRONG&gt;T.&lt;/P&gt;&lt;P&gt;In your case VBTYP domain has 65 predefined values.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/391536" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vineesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 09:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098567#M1814760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-19T09:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Data Dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098568#M1814761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Sivaganesh Krishnan wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;why can't you use constants.. ?&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Good question. If the values are only ever going to be all of the domain, then you should use the function module as already supplied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise use constants. It is what they are &lt;STRONG&gt;for&lt;/STRONG&gt;. Any other solution is piling up a world of pain when it comes to maintanence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do not use TVARVC to store constants. That would be VERY bad program design. &lt;/STRONG&gt;The only time to use TVARVC is when you want to be able to alter some aspects of the a program directly in production. Even then, there may be better solutions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 09:33:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098568#M1814761</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-02-19T09:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data Dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098569#M1814762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In our projects, the best practise, that was developed is to store the domain values in the atributes part of a global class (static constant). This way you earn the advantage of where-used list (which you lose in e.g. a global constant in a report). You access the constant via expression zcl_classname=&amp;gt;gc_constant_name, which also gives the code another semantic part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 10:25:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098569#M1814762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-19T10:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Data Dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098570#M1814763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Every one..thanks for such huge response...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the one want to change..instead of hard coding ( 'v' and 'c' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If need to do this with TVARV and reply back with a clear solution.&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;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/391652" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 10:41:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098570#M1814763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-19T10:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data Dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098571#M1814764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;personally, i would probably resolve this issue with a select-option (or data range if select option not possible).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason being is&lt;/P&gt;&lt;P&gt;1- it cuts down on more over worked solution - going off to maintain TVARV and remembering it when you want to maintain the program 18 months later etc.&lt;/P&gt;&lt;P&gt;2-flexible for users&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create your selection screen.&lt;/P&gt;&lt;P&gt;set the values in an initialisation/load-of-program event (or somewhere before the select is done).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code remains easy to maintain from one point - the actual program.&lt;/P&gt;&lt;P&gt;Users can 'add/remove' entries if you use a select-option - so it is not rigid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whilst there is some element that it is 'hardcoded' you are providing flexible maintenance, user friendly interface allowing deviation to the C / V 'normal' combo. Change the select statement to use the IN operator against the select option - you are avoiding repeated select statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont over engineer a simple requirement - everyone is a winner with this approach!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 10:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098571#M1814764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-19T10:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data Dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098572#M1814765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You already was given recommendations (not using TVARV, using global constants). Is there anything you did not understand?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 10:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098572#M1814765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-19T10:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data Dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098573#M1814766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VBTYP isn't part of VBFA... but anyway, 34 years of programming experience, 14 of them with ABAP, tells me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define constants for 'V' and 'C' with meaningful names, e.g. &lt;EM&gt;c_purchase_order&lt;/EM&gt; and &lt;EM&gt;c_order&lt;/EM&gt; . This is correct and good programming practice &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;(Note, Jozef's and Steve's answers are good variants of this).&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;. All other solutions are, for this requirement, &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;bad programming&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not, and should not do this with TVARVC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 10:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary/m-p/10098573#M1814766</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-02-19T10:54:02Z</dc:date>
    </item>
  </channel>
</rss>

