<?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 data as FS10N in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-as-fs10n/m-p/3704986#M892114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Done !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way to get data as FS10N is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  zjm_ldb message-id FDBL.

include RFBALANCEDATA.

START-OF-SELECTION.

  DATA: it_params    TYPE STANDARD TABLE OF rsparams WITH HEADER LINE,
        it_callbacks TYPE STANDARD TABLE OF ldbcb WITH HEADER LINE.

  PERFORM fill_it USING 'SD_BUKRS' 'I' 'EQ' 'OMMA'.
  PERFORM fill_it USING 'SD_SAKNR' 'I' 'EQ' '2030010100'.
  PERFORM fill_it USING 'SD_GJAHR' 'I' 'EQ' '2008'.
  PERFORM fill_it USING 'SD_GSB_S' 'I' 'CP' '*'.
  PERFORM fill_it USING 'SD_CURTP' 'I' 'CP' '10'.
  PERFORM fill_it USING 'SD_RTCUR' 'I' 'CP' '*'.
  PERFORM fill_it USING 'SD_ITUSR' 'I' 'EQ' ''.
  PERFORM fill_it USING 'SD_CURTP' 'I' 'EQ' '10'.


  PERFORM fill_it2 using 'KNC1'.
  PERFORM fill_it2 using 'KNC3'.
  PERFORM fill_it2 using 'LFC1'.
  PERFORM fill_it2 using 'LFC3'.
  PERFORM fill_it2 using 'SKC1C'.

  CALL FUNCTION 'LDB_PROCESS'
    EXPORTING
      ldbname                     = 'SDF'
    TABLES
      callback                    = it_callbacks
      selections                  = it_params
    EXCEPTIONS
      ldb_not_reentrant           = 1
      ldb_incorrect               = 2
      ldb_already_running         = 3
      ldb_error                   = 4
      ldb_selections_error        = 5
      ldb_selections_not_accepted = 6
      variant_not_existent        = 7
      variant_obsolete            = 8
      variant_error               = 9
      free_selections_error       = 10
      callback_no_event           = 11
      callback_node_duplicate     = 12
      callback_no_program         = 13
      callback_no_cbform          = 14
      dyn_node_no_type            = 15
      dyn_node_invalid_type       = 16
      OTHERS                      = 17.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  fill_it
*&amp;amp;---------------------------------------------------------------------*
form fill_it  using    P1
                       P2
                       P3
                       P4.

  it_params-selname = P1.
  it_params-sign    = P2.
  it_params-option  = P3.
  it_params-low     = P4.
  APPEND it_params.
  CLEAR it_params.
endform.                    " fill_it

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  fill_it2
*&amp;amp;---------------------------------------------------------------------*
form fill_it2  using    p1.
  it_callbacks-ldbnode = p1.
  it_callbacks-get = 'X'.
  it_callbacks-CB_PROG = 'ZJM_LDB'.
  it_callbacks-CB_FORM = 'LDB_CALLBACK'.
  APPEND it_callbacks.
  CLEAR it_callbacks.
endform.                    " fill_it2

include RFBALANCE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LT_BALANCE_DATA has all the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The All Currencies Amount in Local Currency is obtained computing the rows with no flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Document Currencies Amount is obtained computing the rows with no flag and with the corresponding currency key (EUR, USD, MXP, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Apr 2008 16:39:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-10T16:39:57Z</dc:date>
    <item>
      <title>Get data as FS10N</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-as-fs10n/m-p/3704983#M892111</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've tried to create a program using function modulo LDB_PROCESS as std. program: RFGLBALANCE. The problem is that the internal table: lt_balance_data is not filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea of what else do I need to do to fill this internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know any other way to get the same data as lt_balance_data which contains an account balance in the different currencies?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZJMPRUEBA
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  zjm_ldb.

START-OF-SELECTION.

  DATA: lt_balance_data  TYPE fdbl_balance_data.

  DATA: lt_params    TYPE STANDARD TABLE OF rsparams WITH HEADER LINE,
        lt_callbacks TYPE STANDARD TABLE OF ldbcb WITH HEADER LINE.

  PERFORM fill_it USING 'SD_BUKRS' 'I' 'EQ' 'OMMA'.
  PERFORM fill_it USING 'SD_SAKNR' 'I' 'EQ' '2030010100'.
  PERFORM fill_it USING 'SD_GJAHR' 'I' 'EQ' '2008'.
  PERFORM fill_it USING 'SD_GSB_S' 'I' 'CP' '*'.
  PERFORM fill_it USING 'SD_CURTP' 'I' 'CP' '10'.
  PERFORM fill_it USING 'SD_RTCUR' 'I' 'CP' '*'.
  PERFORM fill_it USING 'SD_ITUSR' 'I' 'EQ' ''.
  PERFORM fill_it USING 'SD_CURTP' 'I' 'EQ' '10'.


  PERFORM fill_it2 using 'KNC1'.
  PERFORM fill_it2 using 'KNC3'.
  PERFORM fill_it2 using 'LFC1'.
  PERFORM fill_it2 using 'LFC3'.
  PERFORM fill_it2 using 'SKC1C'.

  CALL FUNCTION 'LDB_PROCESS'
    EXPORTING
      ldbname                     = 'SDF'
    TABLES
      callback                    = lt_callbacks
      selections                  = lt_params
    EXCEPTIONS
      ldb_not_reentrant           = 1
      ldb_incorrect               = 2
      ldb_already_running         = 3
      ldb_error                   = 4
      ldb_selections_error        = 5
      ldb_selections_not_accepted = 6
      variant_not_existent        = 7
      variant_obsolete            = 8
      variant_error               = 9
      free_selections_error       = 10
      callback_no_event           = 11
      callback_node_duplicate     = 12
      callback_no_program         = 13
      callback_no_cbform          = 14
      dyn_node_no_type            = 15
      dyn_node_invalid_type       = 16
      OTHERS                      = 17.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  fill_it
*&amp;amp;---------------------------------------------------------------------*
form fill_it  using    P1
                       P2
                       P3
                       P4.

  lt_params-selname = P1.
  lt_params-sign    = P2.
  lt_params-option  = P3.
  lt_params-low     = P4.
  APPEND lt_params.
  CLEAR lt_params.
endform.                    " fill_it

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  fill_it2
*&amp;amp;---------------------------------------------------------------------*
form fill_it2  using    p1.
  lt_callbacks-ldbnode = p1.
  lt_callbacks-get = 'X'.
  lt_callbacks-CB_PROG = 'RFGLBALANCE'.
  lt_callbacks-CB_FORM = 'LDB_CALLBACK'.
  APPEND lt_callbacks.
  CLEAR lt_callbacks.
endform.                    " fill_it2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: urjose on Apr 10, 2008 4:54 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 05:16:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-as-fs10n/m-p/3704983#M892111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T05:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get data as FS10N</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-as-fs10n/m-p/3704984#M892112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have a look at tables GLT0, GLPCA, GLPCT. Try if you can make a SELECT on one of these tables which corresponds with the output of FS10N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you,&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 15:29:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-as-fs10n/m-p/3704984#M892112</guid>
      <dc:creator>b_deterd2</dc:creator>
      <dc:date>2008-04-10T15:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get data as FS10N</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-as-fs10n/m-p/3704985#M892113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GLT0 has the data but converted to Local Currency and I need it in Document Currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 15:41:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-as-fs10n/m-p/3704985#M892113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T15:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get data as FS10N</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-as-fs10n/m-p/3704986#M892114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Done !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way to get data as FS10N is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  zjm_ldb message-id FDBL.

include RFBALANCEDATA.

START-OF-SELECTION.

  DATA: it_params    TYPE STANDARD TABLE OF rsparams WITH HEADER LINE,
        it_callbacks TYPE STANDARD TABLE OF ldbcb WITH HEADER LINE.

  PERFORM fill_it USING 'SD_BUKRS' 'I' 'EQ' 'OMMA'.
  PERFORM fill_it USING 'SD_SAKNR' 'I' 'EQ' '2030010100'.
  PERFORM fill_it USING 'SD_GJAHR' 'I' 'EQ' '2008'.
  PERFORM fill_it USING 'SD_GSB_S' 'I' 'CP' '*'.
  PERFORM fill_it USING 'SD_CURTP' 'I' 'CP' '10'.
  PERFORM fill_it USING 'SD_RTCUR' 'I' 'CP' '*'.
  PERFORM fill_it USING 'SD_ITUSR' 'I' 'EQ' ''.
  PERFORM fill_it USING 'SD_CURTP' 'I' 'EQ' '10'.


  PERFORM fill_it2 using 'KNC1'.
  PERFORM fill_it2 using 'KNC3'.
  PERFORM fill_it2 using 'LFC1'.
  PERFORM fill_it2 using 'LFC3'.
  PERFORM fill_it2 using 'SKC1C'.

  CALL FUNCTION 'LDB_PROCESS'
    EXPORTING
      ldbname                     = 'SDF'
    TABLES
      callback                    = it_callbacks
      selections                  = it_params
    EXCEPTIONS
      ldb_not_reentrant           = 1
      ldb_incorrect               = 2
      ldb_already_running         = 3
      ldb_error                   = 4
      ldb_selections_error        = 5
      ldb_selections_not_accepted = 6
      variant_not_existent        = 7
      variant_obsolete            = 8
      variant_error               = 9
      free_selections_error       = 10
      callback_no_event           = 11
      callback_node_duplicate     = 12
      callback_no_program         = 13
      callback_no_cbform          = 14
      dyn_node_no_type            = 15
      dyn_node_invalid_type       = 16
      OTHERS                      = 17.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  fill_it
*&amp;amp;---------------------------------------------------------------------*
form fill_it  using    P1
                       P2
                       P3
                       P4.

  it_params-selname = P1.
  it_params-sign    = P2.
  it_params-option  = P3.
  it_params-low     = P4.
  APPEND it_params.
  CLEAR it_params.
endform.                    " fill_it

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  fill_it2
*&amp;amp;---------------------------------------------------------------------*
form fill_it2  using    p1.
  it_callbacks-ldbnode = p1.
  it_callbacks-get = 'X'.
  it_callbacks-CB_PROG = 'ZJM_LDB'.
  it_callbacks-CB_FORM = 'LDB_CALLBACK'.
  APPEND it_callbacks.
  CLEAR it_callbacks.
endform.                    " fill_it2

include RFBALANCE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LT_BALANCE_DATA has all the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The All Currencies Amount in Local Currency is obtained computing the rows with no flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Document Currencies Amount is obtained computing the rows with no flag and with the corresponding currency key (EUR, USD, MXP, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 16:39:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-data-as-fs10n/m-p/3704986#M892114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T16:39:57Z</dc:date>
    </item>
  </channel>
</rss>

