<?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: Function module RFC_READ_RABLE and currency fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-rfc-read-rable-and-currency-fields/m-p/6409563#M1407622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.  I have now resolved the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I was using table FIELDS.  Wim was correct that I also needed to use field PSWSL but this alone did not solve the problem.  I had to define the currency field PSWBT as char 13.  When the field was retrieved using RFC_READ_TABLE, I condensed the field and then moved it back to a currency field.  As follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES  : BEGIN OF ty_accdoc,&lt;/P&gt;&lt;P&gt;          pswbt(13),&lt;/P&gt;&lt;P&gt;          pswsl           type pswsl,&lt;/P&gt;&lt;P&gt;        END OF ty_accdoc.&lt;/P&gt;&lt;P&gt;DATA   : wa_accdoc         TYPE ty_accdoc,&lt;/P&gt;&lt;P&gt;         i_accdoc         TYPE TABLE OF ty_accdoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA   : wa-pswbt          TYPE pswbt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fields-fieldname = 'PSWBT'. APPEND wa_fields TO i_fields.&lt;/P&gt;&lt;P&gt;wa_fields-fieldname = 'PSWSL'. APPEND wa_fields TO i_fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2026u2026u2026 Call function u2018RFC_READ_TABLEu2019u2026u2026u2026u2026&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE wa_accdoc-pswbt NO-GAPS.&lt;/P&gt;&lt;P&gt;wa-pswbt = wa_accdoc2-pswbt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2009 14:41:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-24T14:41:23Z</dc:date>
    <item>
      <title>Function module RFC_READ_RABLE and currency fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-rfc-read-rable-and-currency-fields/m-p/6409560#M1407619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using RFC_READ_TABLE to access table BSEG on a remote system.  My problem is retrieving field PSWBT which is a currency field.  The value is returned as 20202020203.43 and overwrites part of the next field too.  The value should be 4,083.33&lt;/P&gt;&lt;P&gt;Does anyone have any experence with currency fields in this situation and can offer any advice?&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 12:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-rfc-read-rable-and-currency-fields/m-p/6409560#M1407619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T12:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function module RFC_READ_RABLE and currency fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-rfc-read-rable-and-currency-fields/m-p/6409561#M1407620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if this helps: [Getting around RFC_READ_TABLE limitations|http://searchsap.techtarget.com/tip/0,289483,sid21_gci997032,00.html]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 13:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-rfc-read-rable-and-currency-fields/m-p/6409561#M1407620</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-11-20T13:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function module RFC_READ_RABLE and currency fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-rfc-read-rable-and-currency-fields/m-p/6409562#M1407621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you also use the internal table FIELDS from RFC_READ_TABLE ?&lt;/P&gt;&lt;P&gt;I did a small test with fields PSWBT and PSWSL with success.&lt;/P&gt;&lt;P&gt;I included the PSWSL currency field for proper formatting of the PSWBT value with a WRITE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To calculate the off sets in table FIELDS I used SE11 for table BSEG.&lt;/P&gt;&lt;P&gt;Structure and fields can also be found in table DD03L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELDNAME  OFFSET  LENGTH T&lt;/P&gt;&lt;P&gt;PSWBT        000000   000013   P&lt;/P&gt;&lt;P&gt;PSWSL        000014   000005   C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Nov 2009 11:48:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-rfc-read-rable-and-currency-fields/m-p/6409562#M1407621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-22T11:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function module RFC_READ_RABLE and currency fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-rfc-read-rable-and-currency-fields/m-p/6409563#M1407622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.  I have now resolved the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I was using table FIELDS.  Wim was correct that I also needed to use field PSWSL but this alone did not solve the problem.  I had to define the currency field PSWBT as char 13.  When the field was retrieved using RFC_READ_TABLE, I condensed the field and then moved it back to a currency field.  As follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES  : BEGIN OF ty_accdoc,&lt;/P&gt;&lt;P&gt;          pswbt(13),&lt;/P&gt;&lt;P&gt;          pswsl           type pswsl,&lt;/P&gt;&lt;P&gt;        END OF ty_accdoc.&lt;/P&gt;&lt;P&gt;DATA   : wa_accdoc         TYPE ty_accdoc,&lt;/P&gt;&lt;P&gt;         i_accdoc         TYPE TABLE OF ty_accdoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA   : wa-pswbt          TYPE pswbt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fields-fieldname = 'PSWBT'. APPEND wa_fields TO i_fields.&lt;/P&gt;&lt;P&gt;wa_fields-fieldname = 'PSWSL'. APPEND wa_fields TO i_fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2026u2026u2026 Call function u2018RFC_READ_TABLEu2019u2026u2026u2026u2026&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE wa_accdoc-pswbt NO-GAPS.&lt;/P&gt;&lt;P&gt;wa-pswbt = wa_accdoc2-pswbt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 14:41:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-rfc-read-rable-and-currency-fields/m-p/6409563#M1407622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T14:41:23Z</dc:date>
    </item>
  </channel>
</rss>

