<?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: Get SE16 count in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575183#M1433514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk  system field SY_DBCNT to get records of the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use&lt;/P&gt;&lt;P&gt;SELECT COUNT( * ) ... FROM ... WHERE ...&lt;/P&gt;&lt;P&gt;sy-dbcnt will give you the number of entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case, if you need the total number in the DB table:&lt;/P&gt;&lt;P&gt;SELECT COUNT( * ) ...&lt;/P&gt;&lt;P&gt;FROM MARA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2010 17:54:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-04T17:54:28Z</dc:date>
    <item>
      <title>Get SE16 count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575179#M1433510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still stuggling with the subjet !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within a secatt; how can I get the number of entries in a table  (se16/enter/CtrlF+F7) and export this in an E_parameter !?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry sound stupid but 'DBCount' (Value out in Dynpro 450) is not open for a insertion of E_param_test_out !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks for any hints&lt;/P&gt;&lt;P&gt;(yes i also user command CHETAB in parrallel)&lt;/P&gt;&lt;P&gt;Etienne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 13:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575179#M1433510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T13:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get SE16 count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575180#M1433511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can get database table count using FM, &lt;STRONG&gt;CATT_GET_TABLE_ENTRIES&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 13:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575180#M1433511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T13:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get SE16 count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575181#M1433512</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;how nice of you for the quick hint.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes indeed - this is working (workaround) but i am struggling with the 'where'.   I did also check via the se37&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for instance /se37 on the famous table t003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t003     &lt;/P&gt;&lt;P&gt;mandt=030&lt;/P&gt;&lt;P&gt;BLART=10 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; not working !!   (even if i drop the mandt or if i add &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t003     &lt;/P&gt;&lt;P&gt;t003-mandt=030&lt;/P&gt;&lt;P&gt;t003-BLART=10 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea !?&lt;/P&gt;&lt;P&gt;have a good day&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 14:51:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575181#M1433512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T14:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get SE16 count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575182#M1433513</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;You might check out the SELECT COUNT ... ABAP statement for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: SCUSTOM, SBOOK. 
DATA:   COUNT TYPE I. 

SELECT SCUSTOM~NAME SCUSTOM~POSTCODE SCUSTOM~CITY 
         COUNT( DISTINCT SBOOK~LOCCURAM ) 
       INTO (SCUSTOM-NAME, SCUSTOM-POSTCODE, SCUSTOM-CITY, 
             COUNT) 
       FROM SCUSTOM INNER JOIN SBOOK 
         ON SCUSTOM~ID = SBOOK~CUSTOMID 
       WHERE SBOOK~FLDATE BETWEEN '19950101' AND '19951231' AND 
             SBOOK~CARRID   = 'LH '                         AND 
             SBOOK~CONNID   = '0400' 
       GROUP BY SCUSTOM~NAME SCUSTOM~POSTCODE SCUSTOM~CITY 
       ORDER BY SCUSTOM~NAME. 
  WRITE: / SCUSTOM-NAME, SCUSTOM-POSTCODE, SCUSTOM-CITY, COUNT. 
ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 15:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575182#M1433513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T15:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get SE16 count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575183#M1433514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk  system field SY_DBCNT to get records of the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use&lt;/P&gt;&lt;P&gt;SELECT COUNT( * ) ... FROM ... WHERE ...&lt;/P&gt;&lt;P&gt;sy-dbcnt will give you the number of entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case, if you need the total number in the DB table:&lt;/P&gt;&lt;P&gt;SELECT COUNT( * ) ...&lt;/P&gt;&lt;P&gt;FROM MARA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 17:54:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575183#M1433514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T17:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get SE16 count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575184#M1433515</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;the complete answer is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ABAP.

SELECT COUNT(*) FROM &amp;lt;TABLE&amp;gt; INTO &amp;lt;eCATT_local_param&amp;gt;.

ENDABAP.

&amp;lt;eCATT_export_param&amp;gt; = &amp;lt;eCATT_local_param&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 09:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575184#M1433515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-05T09:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get SE16 count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575185#M1433516</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;I tried with the SAPGUI mode recording of SE16 to find the total count and used the GETGUI to read the values from the pop-up when it is displayed if you click the number of entries button. It worked fine. In the log I can see the total count. &lt;/P&gt;&lt;P&gt;I tried to export the same and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPGUI ( SE16_230_STEP_1  ).&lt;/P&gt;&lt;P&gt;SAPGUI ( SE16_1000_STEP_1  ).&lt;/P&gt;&lt;P&gt;GETGUI ( SE16_450_STEP_1  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e_count = i_count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOG ( i_COUNT  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 22:19:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575185#M1433516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-05T22:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get SE16 count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575186#M1433517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Member,&lt;/P&gt;&lt;P&gt;                            You can achieve this by using a dynamic ABAP statement in an eCATT script. Declare an variable and export structure parameter of type table(table[ ]). You can concatenate as many conditions and append it to structure V_COND(is of type catpaval[ ] ). The dynamic ABAP statements retrieves values for the condition in V_COND and stores it in V_TABLE structure parameter. Finally the GETLEN gets the count in local parameter V_NUMBER. Depending on the V_COUNT you can therefore export the local structure into an exporting parameter(structure).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;take conditions in a variable since ABAP block does not identify Import and export view&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; V_MATNR  = 'raw_material'.&lt;/P&gt;&lt;P&gt;V_MANDT = &amp;amp;CLIENT.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        DATA :     cond(132) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      build condition dynamically.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        IF ( '' = '' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          set client&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            CONCATENATE  'MANDT = ''' V_MANDT '''' INTO cond.&lt;/P&gt;&lt;P&gt;            APPEND cond TO V_COND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          read values from tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            SELECT *&lt;/P&gt;&lt;P&gt;                INTO CORRESPONDING FIELDS OF TABLE V_TABLE&lt;/P&gt;&lt;P&gt;                FROM TABLE&lt;/P&gt;&lt;P&gt;                WHERE (V_COND).&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    GETLEN ( V_TABLE , V_NUMBER ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF ( V_NUMBER &amp;gt; 0 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        E_TABLE   = V_TABLE.&lt;/P&gt;&lt;P&gt;        E_NUMBER = V_NUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&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;Thanks and Kind Regards&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------" /&gt;&lt;P&gt;Mohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 03:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575186#M1433517</guid>
      <dc:creator>former_member131788</dc:creator>
      <dc:date>2010-02-09T03:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get SE16 count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575187#M1433518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabulous&lt;/P&gt;&lt;P&gt;and many thks too all of you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very promising in our Competence center 'public sector specifiq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tks from Brussel,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 10:36:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-se16-count/m-p/6575187#M1433518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T10:36:36Z</dc:date>
    </item>
  </channel>
</rss>

