<?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>Question Re: BAPI_ACC_DOCUMENT_POST Error G/L account is not defin... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/bapi-acc-document-post-error-g-l-account-is-not-defined-in-chart-of/qaa-p/13764618#M4837424</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take help from functional and get the config done.&lt;/P&gt;&lt;P&gt;1st. you need to create the account at COA Level in T.Code FSP1 or FSP0 .&lt;/P&gt;&lt;P&gt;2nd. you need to create the account at company code level using T.Code FSS0&lt;/P&gt;&lt;P&gt;You can also do both steps in one at T.Code FS00&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2024 10:50:49 GMT</pubDate>
    <dc:creator>prateek_dhawan18</dc:creator>
    <dc:date>2024-07-18T10:50:49Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_POST Error G/L account is not defined in chart of accounts CCOA</title>
      <link>https://community.sap.com/t5/technology-q-a/bapi-acc-document-post-error-g-l-account-is-not-defined-in-chart-of/qaq-p/13764310</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;Our requirement is to convert BDC to BAPI_ACC_DOCUMENT_POST. The function of this program is to&amp;nbsp;&lt;!--   StartFragment    --&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;create&amp;nbsp;&lt;/SPAN&gt;a&amp;nbsp;credit&amp;nbsp;memo&lt;/SPAN&gt;&amp;nbsp;&lt;!--   StartFragment    --&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;to&amp;nbsp;&lt;/SPAN&gt;offset&lt;SPAN class=""&gt;&amp;nbsp;the&amp;nbsp;invoice.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is the old code(BDC):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I changed it to BAPI:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And now I'm getting and error where&amp;nbsp;&lt;STRONG&gt;G/L account 6000170 is not defined in chart of accounts CCOA&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also don't know why I should define in chart of accounts when this should be a newly created record?&lt;/P&gt;&lt;P&gt;I've already seen other posts regarding this and nothing seems to be working. This is my first time using this BAPI so I'm also not sure of the mapping. Any help would be great. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 16:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/bapi-acc-document-post-error-g-l-account-is-not-defined-in-chart-of/qaq-p/13764310</guid>
      <dc:creator>Abapper0114</dc:creator>
      <dc:date>2024-07-18T16:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST Error G/L account is not defin...</title>
      <link>https://community.sap.com/t5/technology-q-a/bapi-acc-document-post-error-g-l-account-is-not-defined-in-chart-of/qaa-p/13764614#M4837422</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1478082"&gt;@Abapper0114&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An account has to be created before you can post to it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probably you need to add leading zeros to the account number before passing it to the BAPI.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dominik Tylczynski&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 10:48:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/bapi-acc-document-post-error-g-l-account-is-not-defined-in-chart-of/qaa-p/13764614#M4837422</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2024-07-18T10:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST Error G/L account is not defin...</title>
      <link>https://community.sap.com/t5/technology-q-a/bapi-acc-document-post-error-g-l-account-is-not-defined-in-chart-of/qaa-p/13764618#M4837424</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take help from functional and get the config done.&lt;/P&gt;&lt;P&gt;1st. you need to create the account at COA Level in T.Code FSP1 or FSP0 .&lt;/P&gt;&lt;P&gt;2nd. you need to create the account at company code level using T.Code FSS0&lt;/P&gt;&lt;P&gt;You can also do both steps in one at T.Code FS00&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 10:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/bapi-acc-document-post-error-g-l-account-is-not-defined-in-chart-of/qaa-p/13764618#M4837424</guid>
      <dc:creator>prateek_dhawan18</dc:creator>
      <dc:date>2024-07-18T10:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST Error G/L account is not defin...</title>
      <link>https://community.sap.com/t5/technology-q-a/bapi-acc-document-post-error-g-l-account-is-not-defined-in-chart-of/qaa-p/13764620#M4837425</link>
      <description>But when I debug the program, there was already leading zeroes in GL_ACCOUNT like '0006000170'. This also is not hardcoded, I just modified for easy reading.</description>
      <pubDate>Thu, 18 Jul 2024 10:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/bapi-acc-document-post-error-g-l-account-is-not-defined-in-chart-of/qaa-p/13764620#M4837425</guid>
      <dc:creator>Abapper0114</dc:creator>
      <dc:date>2024-07-18T10:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST Error G/L account is not defin...</title>
      <link>https://community.sap.com/t5/technology-q-a/bapi-acc-document-post-error-g-l-account-is-not-defined-in-chart-of/qaa-p/13764622#M4837426</link>
      <description>&lt;P&gt;You are using the GL account without leading zeroes. Use the below code&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALL FUNCTION ‘CONVERSION_EXIT_ALPHA_INPUT’&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;input = gl_account&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IMPORTING&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;output = gl_account.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 10:54:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/bapi-acc-document-post-error-g-l-account-is-not-defined-in-chart-of/qaa-p/13764622#M4837426</guid>
      <dc:creator>prateek_dhawan18</dc:creator>
      <dc:date>2024-07-18T10:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST Error G/L account is not defin...</title>
      <link>https://community.sap.com/t5/technology-q-a/bapi-acc-document-post-error-g-l-account-is-not-defined-in-chart-of/qaa-p/13764651#M4837434</link>
      <description>GL_ACCOUNT already has the leading zeroes so FM is not needed. When I debug the BAPI in program, there was already leading zeroes in GL_ACCOUNT like '0006000170'. Above code is also not hardcoded, I just modified for easy reading.</description>
      <pubDate>Thu, 18 Jul 2024 11:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/bapi-acc-document-post-error-g-l-account-is-not-defined-in-chart-of/qaa-p/13764651#M4837434</guid>
      <dc:creator>Abapper0114</dc:creator>
      <dc:date>2024-07-18T11:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST Error G/L account is not defin...</title>
      <link>https://community.sap.com/t5/technology-q-a/bapi-acc-document-post-error-g-l-account-is-not-defined-in-chart-of/qaa-p/13764710#M4837443</link>
      <description>&lt;P&gt;Why are you not populating criteria parameter of BAPI.&lt;/P&gt;&lt;P&gt;DATA: Lw_CRITERIA TYPE BAPIACKEC9.&lt;/P&gt;&lt;P&gt;Lw_CRITERIA-ITEMNO_ACC = P_LINES.&lt;/P&gt;&lt;P&gt;* Customer&lt;/P&gt;&lt;P&gt;Lw_CRITERIA-FIELDNAME = 'KNDNR'.&lt;/P&gt;&lt;P&gt;Lw_CRITERIA-CHARACTER = P_VBAK-KUNNR.&lt;/P&gt;&lt;P&gt;APPEND Lw_CRITERIA TO P_CRITERIA.&lt;/P&gt;&lt;P&gt;* Material&lt;/P&gt;&lt;P&gt;Lw_CRITERIA-FIELDNAME = 'ARTNR'.&lt;/P&gt;&lt;P&gt;Lw_CRITERIA-CHARACTER = P_VBAP-MATNR.&lt;/P&gt;&lt;P&gt;APPEND Lw_CRITERIA TO P_CRITERIA.&lt;/P&gt;&lt;P&gt;This way populate all fields which you are passing in line item&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 11:50:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/bapi-acc-document-post-error-g-l-account-is-not-defined-in-chart-of/qaa-p/13764710#M4837443</guid>
      <dc:creator>prateek_dhawan18</dc:creator>
      <dc:date>2024-07-18T11:50:25Z</dc:date>
    </item>
  </channel>
</rss>

