<?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: general in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465183#M553531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;difference between opensql/native sql?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open SQL allows you to access database tables declared in the ABAP Dictionary regardless of the database platform that you R/3 System is using. Native SQL allows you to use database-specific SQL statements in an ABAP program. This means that you can use database tables that are not administered by the ABAP Dictionary, and therefore integrate data that is not part of the R/3 System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a rule, an ABAP program containing database-specific SQL statements will not run under different database systems. If your program will be used on more than one database platform, only use Open SQL statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can also have a look at the foll. link if u need more details:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46b/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46b/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;wht isdifference bt client dependent and independent&amp;lt;/b&amp;gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Client dependent means the things which are in client 100 will not be available in the client 200.&lt;/P&gt;&lt;P&gt;Client independent means the things which are in client 100 will be available even in client 200.&lt;/P&gt;&lt;P&gt;Note:- the client numbers given here and for your understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;what is macro?difrrence bt macro and subroutine?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Macros are like subroutines..but not used i guess&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE INCREMENT.&lt;/P&gt;&lt;P&gt;ADD 1 TO &amp;amp;1.&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: NUMBER TYPE I VALUE 1.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;INCREMENT NUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. As a rule, you should use subroutines (FORM, FUNCTION)&lt;/P&gt;&lt;P&gt;instead of macros. This is because subroutines - unlike&lt;/P&gt;&lt;P&gt;macros - are supported by all of the ABAP Workbench tools&lt;/P&gt;&lt;P&gt;(debugging, runtime analysis, runtime error handling, ...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You cannot define a macro within a macro using the DEFINE&lt;/P&gt;&lt;P&gt;statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. You cannot use an ABAP keyword as a macro name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. The validity of a macro definition is determined by its&lt;/P&gt;&lt;P&gt;position in the source code. You can use a given macro in&lt;/P&gt;&lt;P&gt;any line of code following its definition. There is no&lt;/P&gt;&lt;P&gt;distinction between global and local macros. For example,&lt;/P&gt;&lt;P&gt;the fact that a macro is defined within a subroutine has no&lt;/P&gt;&lt;P&gt;effect on its validity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. If you redefine a macro, that is, assign a new meaning to&lt;/P&gt;&lt;P&gt;an existing name, the new meaning takes effect from the&lt;/P&gt;&lt;P&gt;position in the program where the macro was redefined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Macros can only be used in the program the are defined in and only after the definition.&lt;/P&gt;&lt;P&gt;Macros can take max 9 parameters.&lt;/P&gt;&lt;P&gt;Macros are expanded at compilation / generation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutines (FORM) can be called from both the program the are defined in and other programs ('perform&lt;/P&gt;&lt;P&gt;' of 'perform in program ').&lt;/P&gt;&lt;P&gt;Subroutines can take any amount of parameters.&lt;/P&gt;&lt;P&gt;Subroutines are 'expanded' at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functions are just like FORMs, but are intended to be called external.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some differences between FUNCTIONs and FORMs:&lt;/P&gt;&lt;P&gt;The name of a FORM must be unique within the program (two programs can have different FORMs with the same name). A FORM is intended to be called internal (from within the program, however by a 'trick' you can call them external).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of a FUNCTION has to be unique throughout the system. A FUNCTION is intended to be called external (and is thus shared by 'many' programs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latter is more important for programmers and maintenance. Since a FUNCTION is called external, it is important to keep the interface (parameters) the same. The interface of a FORM (which is intended to be called internal) is check when debugging a program (but it is only checked within the program that is debugged). So if the interface of a FORM is changed, but the call to the FORM (perform ) is not, the debugger will notice this and issue an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general:&lt;/P&gt;&lt;P&gt;A MACRO is more or less an abbreviation for some lines of code that are used more than once or twice.&lt;/P&gt;&lt;P&gt;A FORM is a local subroutine (which can be called external).&lt;/P&gt;&lt;P&gt;A FUNCTION is (more or less) a subroutine that is called external.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since debugging a MACRO is not really possible, prevent the use of them (I've never used them, but seen them in action). If the subroutine is used only local (called internal) use a FORM. If the subroutine is called external (used by more than one program) use a FUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Excerpt from &lt;A href="http://sap.ittoolbox.com/documents/popular-q-and-a/macro-vs-subroutine-1594#" target="test_blank"&gt;http://sap.ittoolbox.com/documents/popular-q-and-a/macro-vs-subroutine-1594#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA p_c(10).&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;DATA p_old1 TYPE i VALUE 10.&lt;/P&gt;&lt;P&gt;DATA p_old2 TYPE i VALUE 11.&lt;/P&gt;&lt;P&gt;DATA p_old3 TYPE i VALUE 12.&lt;/P&gt;&lt;P&gt;DATA p_old4 TYPE i VALUE 13.&lt;/P&gt;&lt;P&gt;DATA p_old5 TYPE i VALUE 14.&lt;/P&gt;&lt;P&gt;DATA p_old6 TYPE i VALUE 15.&lt;/P&gt;&lt;P&gt;DATA p_old7 TYPE i VALUE 16.&lt;/P&gt;&lt;P&gt;DATA p_old8 TYPE i VALUE 17.&lt;/P&gt;&lt;P&gt;DATA p_old9 TYPE i VALUE 18.&lt;/P&gt;&lt;P&gt;DATA p_old10 TYPE i VALUE 19.&lt;/P&gt;&lt;P&gt;DATA p_old11 TYPE i VALUE 21.&lt;/P&gt;&lt;P&gt;DATA p_old12 TYPE i VALUE 22.&lt;/P&gt;&lt;P&gt;DATA p_old13 TYPE i VALUE 23.&lt;/P&gt;&lt;P&gt;DATA p_old14 TYPE i VALUE 24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE ADD_MAPPING.&lt;/P&gt;&lt;P&gt;p_c = &amp;amp;1.&lt;/P&gt;&lt;P&gt;CONDENSE p_c.&lt;/P&gt;&lt;P&gt;CONCATENATE 'p_old' p_c INTO p_c.&lt;/P&gt;&lt;P&gt;ASSIGN (p_c) TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;WRITE &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;DO 14 TIMES.&lt;/P&gt;&lt;P&gt;ADD_MAPPING sy-index.&lt;/P&gt;&lt;P&gt;ENDDO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/documents/popular-q-and-a/macro-vs-subroutine-1594" target="test_blank"&gt;http://sap.ittoolbox.com/documents/popular-q-and-a/macro-vs-subroutine-1594&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db972835c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db972835c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2007 05:26:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-06T05:26:01Z</dc:date>
    <item>
      <title>general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465177#M553525</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;difference between opensql/native sql?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wht isdifference bt client dependent and independent?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is macro?difrrence bt macro and subroutine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is value table in domain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 05:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465177#M553525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T05:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465178#M553526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open SQL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open SQL consists of a set of ABAP statements that perform operation on central database in the R/3 System. The results of the operations and any error messages are independent of the database system in use. Open SQL thus provides a uniform syntax and semantics for all of database systems supported by SAP. ABAP programs that only use Open SQL statements will work in any SAP R/3 System, regardless of the database system in use. Open SQL statements can work with database tables that have been created in the ABAP Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native SQL: &lt;/P&gt;&lt;P&gt;Native SQL is real SQL for database in use. It means beside OPEN SQL, if you need you can use the native SQL for databases. Native SQL allows you to use database-specific SQL statements in an ABAP program. This means that you can use database tables that are not administered by the ABAP Dictionary, and therefore integrate data that is not part of the R/3 System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a rule, an ABAP program containing database-specific SQL statements will not run under different database systems. If your program will be used on more than one database platform, only use Open SQL statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 05:03:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465178#M553526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T05:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465179#M553527</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;Client Dependent means all data is specific to the client number at which you login,&lt;/P&gt;&lt;P&gt;e.g 800 or 400,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you create a table, it would be visible across all clients in the server,&lt;/P&gt;&lt;P&gt;but when you put some data into that table, the other clients cannots see this data,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Client Independent means tables having data which is shared  across all clients,&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;Customizing tables like T000, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Samson Rodrigues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 05:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465179#M553527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T05:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465180#M553528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Open SQL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open SQL consists of a set of ABAP statements that perform operation on central database in the R/3 System. The results of the operations and any error messages are independent of the database system in use. Open SQL thus provides a uniform syntax and semantics for all of database systems supported by SAP. ABAP programs that only use Open SQL statements will work in any SAP R/3 System, regardless of the database system in use. Open SQL statements can work with database tables that have been created in the ABAP Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native SQL: &lt;/P&gt;&lt;P&gt;Native SQL is real SQL for database in use. It means beside OPEN SQL, if you need you can use the native SQL for databases. Native SQL allows you to use database-specific SQL statements in an ABAP program. This means that you can use database tables that are not administered by the ABAP Dictionary, and therefore integrate data that is not part of the R/3 System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a rule, an ABAP program containing database-specific SQL statements will not run under different database systems. If your program will be used on more than one database platform, only use Open SQL statements&lt;/P&gt;&lt;P&gt;Client independent data is valid accross the clients whereas client dependent data is valid for the current client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technical:&lt;/P&gt;&lt;P&gt;when we add a field MANDT of type MANDT then our table is client dependent and is visible to only that client. But if this Field is not added to the table then we can access the table using any client number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables which can be access by all user are client independent (no mandt field in table) &lt;/P&gt;&lt;P&gt;tables which can be access by some specific user are client dependent (use mandt field in table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value Table.&lt;/P&gt;&lt;P&gt;This is maintained at Domain Level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When ever you create a domain , you can entered allowed values. For example you go to Domain SHKZG - Debit/credit indicator. &lt;/P&gt;&lt;P&gt;Here only allowed values is H or S. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When ever you use this Domain, the system will forces you to enter only these values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a sort of master check . .&lt;/P&gt;&lt;P&gt;To be maintained as a customization object.&lt;/P&gt;&lt;P&gt;This mean that if you want to enter values to this table you have to create a development request &amp;amp; transport the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Macro.&lt;/P&gt;&lt;P&gt;A macro is evaluated during compile time. The generated code can not be debugged. Just do not use macros. They make programs less transparent and difficult to understand in debug mode.&lt;/P&gt;&lt;P&gt;Subroutine.&lt;/P&gt;&lt;P&gt;Subroutines are procedures that you can define in any ABAP program and also call from any program. Subroutines are normally called internally, that is, they contain sections of code or algorithms that are used frequently locally. If you want a function to be reusable throughout the system, use a function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Roja Velagapudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 05:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465180#M553528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T05:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465181#M553529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff bet open and native sql-&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2e7d358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2e7d358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff bet cliet dependent and client independent-&amp;gt;&lt;/P&gt;&lt;P&gt;CLIENT DEPENDENT tables contain the column mandt as the first column wheras &lt;/P&gt;&lt;P&gt;CLIENT INDEPENDENT TABLES don't have this column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 05:13:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465181#M553529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T05:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465182#M553530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(i)Open SQL &amp;amp; Native SQL:&lt;/P&gt;&lt;P&gt;Open SQL consists of a set of ABAP statements that perform operation on the central database in R/3 System. Open SQL provides a uniform syntax and semantics for all the database systems supported by SAP. &lt;/P&gt;&lt;P&gt;Native SQL is SQL for database in use. Besides OPEN SQL, if you need you can use the native SQL for databases.But an ABAP program containing database-specific SQL statements, i.e., native sql statements, it will not run under different database systems. If your program is to be used on more than one database platform, then use only Open SQL statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ii)Client dependent &amp;amp; independent:&lt;/P&gt;&lt;P&gt;Client dependent means all the data is specific to a particular client at which we have logged in.Eg. client 100, whereas in case of client independent, the data can be accessed across all the clients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(iii)Value table:&lt;/P&gt;&lt;P&gt;When ever we create a domain , we can enter only certain values. When ever we use this domain, the system will force us to enter only these values. These values ar stored in a table named as value table.So value table is the table which contains all the valid values for a field.It is maintained at the domain level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sayee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 05:16:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465182#M553530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T05:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465183#M553531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;difference between opensql/native sql?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open SQL allows you to access database tables declared in the ABAP Dictionary regardless of the database platform that you R/3 System is using. Native SQL allows you to use database-specific SQL statements in an ABAP program. This means that you can use database tables that are not administered by the ABAP Dictionary, and therefore integrate data that is not part of the R/3 System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a rule, an ABAP program containing database-specific SQL statements will not run under different database systems. If your program will be used on more than one database platform, only use Open SQL statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can also have a look at the foll. link if u need more details:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46b/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46b/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;wht isdifference bt client dependent and independent&amp;lt;/b&amp;gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Client dependent means the things which are in client 100 will not be available in the client 200.&lt;/P&gt;&lt;P&gt;Client independent means the things which are in client 100 will be available even in client 200.&lt;/P&gt;&lt;P&gt;Note:- the client numbers given here and for your understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;what is macro?difrrence bt macro and subroutine?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Macros are like subroutines..but not used i guess&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE INCREMENT.&lt;/P&gt;&lt;P&gt;ADD 1 TO &amp;amp;1.&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: NUMBER TYPE I VALUE 1.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;INCREMENT NUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. As a rule, you should use subroutines (FORM, FUNCTION)&lt;/P&gt;&lt;P&gt;instead of macros. This is because subroutines - unlike&lt;/P&gt;&lt;P&gt;macros - are supported by all of the ABAP Workbench tools&lt;/P&gt;&lt;P&gt;(debugging, runtime analysis, runtime error handling, ...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You cannot define a macro within a macro using the DEFINE&lt;/P&gt;&lt;P&gt;statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. You cannot use an ABAP keyword as a macro name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. The validity of a macro definition is determined by its&lt;/P&gt;&lt;P&gt;position in the source code. You can use a given macro in&lt;/P&gt;&lt;P&gt;any line of code following its definition. There is no&lt;/P&gt;&lt;P&gt;distinction between global and local macros. For example,&lt;/P&gt;&lt;P&gt;the fact that a macro is defined within a subroutine has no&lt;/P&gt;&lt;P&gt;effect on its validity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. If you redefine a macro, that is, assign a new meaning to&lt;/P&gt;&lt;P&gt;an existing name, the new meaning takes effect from the&lt;/P&gt;&lt;P&gt;position in the program where the macro was redefined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Macros can only be used in the program the are defined in and only after the definition.&lt;/P&gt;&lt;P&gt;Macros can take max 9 parameters.&lt;/P&gt;&lt;P&gt;Macros are expanded at compilation / generation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutines (FORM) can be called from both the program the are defined in and other programs ('perform&lt;/P&gt;&lt;P&gt;' of 'perform in program ').&lt;/P&gt;&lt;P&gt;Subroutines can take any amount of parameters.&lt;/P&gt;&lt;P&gt;Subroutines are 'expanded' at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functions are just like FORMs, but are intended to be called external.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some differences between FUNCTIONs and FORMs:&lt;/P&gt;&lt;P&gt;The name of a FORM must be unique within the program (two programs can have different FORMs with the same name). A FORM is intended to be called internal (from within the program, however by a 'trick' you can call them external).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of a FUNCTION has to be unique throughout the system. A FUNCTION is intended to be called external (and is thus shared by 'many' programs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latter is more important for programmers and maintenance. Since a FUNCTION is called external, it is important to keep the interface (parameters) the same. The interface of a FORM (which is intended to be called internal) is check when debugging a program (but it is only checked within the program that is debugged). So if the interface of a FORM is changed, but the call to the FORM (perform ) is not, the debugger will notice this and issue an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general:&lt;/P&gt;&lt;P&gt;A MACRO is more or less an abbreviation for some lines of code that are used more than once or twice.&lt;/P&gt;&lt;P&gt;A FORM is a local subroutine (which can be called external).&lt;/P&gt;&lt;P&gt;A FUNCTION is (more or less) a subroutine that is called external.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since debugging a MACRO is not really possible, prevent the use of them (I've never used them, but seen them in action). If the subroutine is used only local (called internal) use a FORM. If the subroutine is called external (used by more than one program) use a FUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Excerpt from &lt;A href="http://sap.ittoolbox.com/documents/popular-q-and-a/macro-vs-subroutine-1594#" target="test_blank"&gt;http://sap.ittoolbox.com/documents/popular-q-and-a/macro-vs-subroutine-1594#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA p_c(10).&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;DATA p_old1 TYPE i VALUE 10.&lt;/P&gt;&lt;P&gt;DATA p_old2 TYPE i VALUE 11.&lt;/P&gt;&lt;P&gt;DATA p_old3 TYPE i VALUE 12.&lt;/P&gt;&lt;P&gt;DATA p_old4 TYPE i VALUE 13.&lt;/P&gt;&lt;P&gt;DATA p_old5 TYPE i VALUE 14.&lt;/P&gt;&lt;P&gt;DATA p_old6 TYPE i VALUE 15.&lt;/P&gt;&lt;P&gt;DATA p_old7 TYPE i VALUE 16.&lt;/P&gt;&lt;P&gt;DATA p_old8 TYPE i VALUE 17.&lt;/P&gt;&lt;P&gt;DATA p_old9 TYPE i VALUE 18.&lt;/P&gt;&lt;P&gt;DATA p_old10 TYPE i VALUE 19.&lt;/P&gt;&lt;P&gt;DATA p_old11 TYPE i VALUE 21.&lt;/P&gt;&lt;P&gt;DATA p_old12 TYPE i VALUE 22.&lt;/P&gt;&lt;P&gt;DATA p_old13 TYPE i VALUE 23.&lt;/P&gt;&lt;P&gt;DATA p_old14 TYPE i VALUE 24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE ADD_MAPPING.&lt;/P&gt;&lt;P&gt;p_c = &amp;amp;1.&lt;/P&gt;&lt;P&gt;CONDENSE p_c.&lt;/P&gt;&lt;P&gt;CONCATENATE 'p_old' p_c INTO p_c.&lt;/P&gt;&lt;P&gt;ASSIGN (p_c) TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;WRITE &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;DO 14 TIMES.&lt;/P&gt;&lt;P&gt;ADD_MAPPING sy-index.&lt;/P&gt;&lt;P&gt;ENDDO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/documents/popular-q-and-a/macro-vs-subroutine-1594" target="test_blank"&gt;http://sap.ittoolbox.com/documents/popular-q-and-a/macro-vs-subroutine-1594&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db972835c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db972835c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 05:26:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465183#M553531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T05:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465184#M553532</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;1)From the help on "open SQL"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open SQL &lt;/P&gt;&lt;P&gt;Open SQL is a set of ABAP/4 commands which perform operations on database tables. The results of these operations and associated error messages are independent of the database system used. Open SQL thus offers you unified SQL syntax and semantics for different database systems (see Portability). An ABAP/4 program which uses these commands can be run on database systems supported by SAP without modification. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the help on Native SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native SQL &lt;/P&gt;&lt;P&gt;Native SQL allows you to perform operations on databases over and above those in the Open SQL command set. In contrast to Open SQL, Native SQL supports not only operations on the local database active in the R/3 System, but also on any external databases. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We normally use open SQL, but in some case when you want to say look at the upper case value of an upper/lower case field in a database, you can use native SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native SQL seems somewhat slower and you have to know which databse you will be using it on before coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information type EXEC in the editor and press F1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) &lt;/P&gt;&lt;P&gt;tables which can be access by all user are client independent (no mandt field in table) &lt;/P&gt;&lt;P&gt;tables which can be access by some specific user are client dependent (use mandt field in table) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)macro is just like a template.we can't debug a macro but subroutiene we can debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define add.&lt;/P&gt;&lt;P&gt;data:res type i.&lt;/P&gt;&lt;P&gt;res = &amp;amp;1 &amp;amp;2 &amp;amp;3.&lt;/P&gt;&lt;P&gt;write:/ res.&lt;/P&gt;&lt;P&gt;end-of-definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add 10 + 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)This is maintained at Domain Level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When ever you create a domain , you can entered allowed values.   For example  you go to Domain   SHKZG - Debit/credit indicator.  Here only allowed values is H or S. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When ever you use this Domain, the system will forces you to enter only these values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a sort of master check . To be maintained as a customization object. This mean that if you want to enter values to this table you have to create a development request &amp;amp; transport the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 05:32:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465184#M553532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T05:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465185#M553533</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;1.open sql statements are independent of database used. the database interface converts open sql statements into native sql statements with respect to database used. open sql statements are written in normal language and can be understood by any one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;native Sql statements are database specific. there is no need of any interfece for them to convert. they works more faster than open sql statements. in sap we can use native sql statements using keyword &lt;/P&gt;&lt;P&gt;EXEC&lt;/P&gt;&lt;P&gt;..............&lt;/P&gt;&lt;P&gt;...............&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.client dependent[ local] means accessed only by that client. for ex sap scripts are client dependent. i.e when a user logged in 800 client and developed a script that script can be used by himself. another user logged on 810 client can't use the script developed by 800 client. in sap there are client depenedent and client independent objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex: sap scripts, tables with mandt field, subroutines,......... are client dependent.&lt;/P&gt;&lt;P&gt;          smart forms, tables, data domains, data elements, ....... are client independent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;client independent-&amp;gt; can be accessed by any client or any user in sap. simply they are global .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.macro is a single line substitution. macro is one form of modularization technique in sap. macro reduces the source code in abap. they are useful for single line substitutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex: define add.&lt;/P&gt;&lt;P&gt;          data: res type i.&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;          write:/10 res&lt;/P&gt;&lt;P&gt;          &amp;amp;10 &amp;amp;20 &amp;amp;30&lt;/P&gt;&lt;P&gt;           end -of-selection.&lt;/P&gt;&lt;P&gt;           10+20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;macros cant be used for code which has more lines.[ single line substitutions]&lt;/P&gt;&lt;P&gt;macros cant be debuggged.&lt;/P&gt;&lt;P&gt;macros cant have more parameters. there is limitation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subroutines are useful for larger code for reusability purposes.&lt;/P&gt;&lt;P&gt;subroutines can be debugged.&lt;/P&gt;&lt;P&gt;subroutines have such limitations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. value table is a table which contains values. they are useful in situations where u wanna provide a list of possible values. the user must select any one of the provided values as input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 06:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2465185#M553533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T06:00:54Z</dc:date>
    </item>
  </channel>
</rss>

