<?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: BAPI_SL_GETTOTALRECORDS selects no data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sl-gettotalrecords-selects-no-data/m-p/7214059#M1522958</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;Were you able to solve it? I want to use the same BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Nov 2010 10:11:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-25T10:11:31Z</dc:date>
    <item>
      <title>BAPI_SL_GETTOTALRECORDS selects no data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sl-gettotalrecords-selects-no-data/m-p/7214058#M1522957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus. I'm writing an ABAP program that uses BAPI_SL_GETTOTALRECORDS, as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: p_bukrs TYPE bukrs OBLIGATORY DEFAULT '0542',
            p_gjahr TYPE gjahr OBLIGATORY DEFAULT sy-datum(4),
            p_monat TYPE monat OBLIGATORY DEFAULT sy-datum+4(2).

DATA: gt_totals_spl TYPE STANDARD TABLE OF bapi1021_totals_spl.

  DATA: lt_extin TYPE STANDARD TABLE OF bapiparex,
        lt_extout TYPE STANDARD TABLE OF bapiparex,
        lt_return TYPE bapiret2.

  data: l_ledger type RLDNR,
        l_peragg type BAVLD.

  l_ledger = 'VW'.
  l_peragg = ''.

  break-point.

  CALL FUNCTION 'BAPI_SL_GETTOTALRECORDS'
    EXPORTING
      ledger               = l_ledger
*      recordtype           = '0'
*      version              = '1'
      companycode          = p_bukrs
*      gl_account           = '13179210'
      fiscalyear           = p_gjahr
      period_agg           = l_peragg
    IMPORTING
      RETURN               = lt_return
    TABLES
      extensionin          = lt_extin
      totals_spl           = gt_totals_spl
      extensionout         = lt_extout.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is that, no matter what input parameters I enter the program, the BAPI always returns no data.&lt;/P&gt;&lt;P&gt;I've tested it using SE37 with the same parameters and I get desired data.&lt;/P&gt;&lt;P&gt;Does anyone realize if ther'se anything wrong in my code? Am I missing something here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 16:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sl-gettotalrecords-selects-no-data/m-p/7214058#M1522957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-10T16:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SL_GETTOTALRECORDS selects no data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sl-gettotalrecords-selects-no-data/m-p/7214059#M1522958</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;Were you able to solve it? I want to use the same BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 10:11:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sl-gettotalrecords-selects-no-data/m-p/7214059#M1522958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-25T10:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SL_GETTOTALRECORDS selects no data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sl-gettotalrecords-selects-no-data/m-p/7214060#M1522959</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;When I use for version a 3 digit value (001) then the bapi finds the data from the summary table. Using less digits (1 or 2) the bapi will not find the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 15:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sl-gettotalrecords-selects-no-data/m-p/7214060#M1522959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-25T15:00:30Z</dc:date>
    </item>
  </channel>
</rss>

