<?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: MATERIAL IN BAPI_ACC_GL_POSTING_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-in-bapi-acc-gl-posting-post/m-p/8373626#M1642160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhaker,&lt;/P&gt;&lt;P&gt;The material information can be inputted in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extension-field1 = 'MATNR'.&lt;/P&gt;&lt;P&gt;Extension-field2 = 'MENGE'.&lt;/P&gt;&lt;P&gt;Extension-field3 = &amp;lt;Give Material No&amp;gt;&lt;/P&gt;&lt;P&gt;Extension-field4 = &amp;lt;Gve Menge Value&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Atanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2011 06:18:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-14T06:18:41Z</dc:date>
    <item>
      <title>MATERIAL IN BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-in-bapi-acc-gl-posting-post/m-p/8373625#M1642159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I am using FM BAPI_ACC_GL_POSTING_POST to post a document.   Where do I pass material in this FM ?  I tried below extension code but I don't see material being populated in the posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     wa_extension-FIELD1 = L_COUNT.               "ITEMNO_ACC&lt;/P&gt;&lt;P&gt;      wa_extension-FIELD2 = 'COBL-MATNR'.   "Data, not in standard interface&lt;/P&gt;&lt;P&gt;      wa_extension-FIELD3 = DETAIL-MATERSL.&lt;/P&gt;&lt;P&gt;      APPEND wa_extension TO it_extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudhaker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 02:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-in-bapi-acc-gl-posting-post/m-p/8373625#M1642159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-14T02:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: MATERIAL IN BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-in-bapi-acc-gl-posting-post/m-p/8373626#M1642160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhaker,&lt;/P&gt;&lt;P&gt;The material information can be inputted in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extension-field1 = 'MATNR'.&lt;/P&gt;&lt;P&gt;Extension-field2 = 'MENGE'.&lt;/P&gt;&lt;P&gt;Extension-field3 = &amp;lt;Give Material No&amp;gt;&lt;/P&gt;&lt;P&gt;Extension-field4 = &amp;lt;Gve Menge Value&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Atanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 06:18:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-in-bapi-acc-gl-posting-post/m-p/8373626#M1642160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-14T06:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: MATERIAL IN BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-in-bapi-acc-gl-posting-post/m-p/8373627#M1642161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhaker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM 'BAPI_ACC_GL_POSTING_POST' might not have all the fields available in the structures used in Importing/exporting parameters. However SAP provides a way of populating fields that are not there in the importing or Tables parameters by introducing the concept of extensions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of every such BAPI that contains an extension structure, there would be a structure consisting of the "extra" fields that are not present in the standard import parameters. The structure used by this'BAPI_ACC_GL_POSTING_POST' is 'ACCIT'. If you have a look at this structure, there is a field called MATNR here. The key to correct population is to correctly count the number of characters (field length) of the fields that are coming before MATNR. Leave those many number of spaces in 'FIELD1' and then populate the material number. You would also need to pass the item number (POSNR). Check in ACCIT the occurrence of POSNR, and leave the number of characters as calculated by summing up the field length of all the fields coming before POSNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in all you woule be passing POSNR and MATNR values properly placed in FIELD1, respecting the blank spaces as counted using the field length of all the fields coming before POSNR and between POSNR and MATNR. Incase the fiele length calculated is greater than 255, you need to use FIELD2 for population. Just keep in mind that the structure ACCIT is a continuous string of fields, and you need to pass the field values at the correct position, so as to populate correctly the values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 07:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-in-bapi-acc-gl-posting-post/m-p/8373627#M1642161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-14T07:16:13Z</dc:date>
    </item>
  </channel>
</rss>

