<?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: FI posting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827341#M352858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if BAPI is not supporting ur requirement, then u have to do it using BDC...do a recording using SHDB and write a BDC program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jan 2007 18:57:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-04T18:57:56Z</dc:date>
    <item>
      <title>FI posting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827340#M352857</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;I have a requirement  to post FI docs through FB01...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m planning ot use  BAPI_ACC_GL_POSTING_POST..but the problem is i have some fields to post  like quantity  etc., which are not present in BAPI structure &lt;/P&gt;&lt;P&gt;( BAPIACGL08 ) and also   our custom  fields ( PPC,carrier,title code etc.,)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so do u think its better to use BDC recording? or have to create a custom BAPI...&lt;/P&gt;&lt;P&gt;which one will be suitable?...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 18:44:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827340#M352857</guid>
      <dc:creator>former_member611341</dc:creator>
      <dc:date>2007-01-04T18:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: FI posting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827341#M352858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if BAPI is not supporting ur requirement, then u have to do it using BDC...do a recording using SHDB and write a BDC program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 18:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827341#M352858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T18:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: FI posting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827342#M352859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at BAPI_ACC_DOCUMENT_POST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 18:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827342#M352859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T18:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: FI posting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827343#M352860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aday,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use the BAPI instead of a BDC.  If you need to fill in additional fields that are not present in BAPIACGL08, you should use a USEREXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this, you will have to fill out the EXTENSION1 table with your extra fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*Build extension data for BAPI
  wa_extension1-field1(3)    = 2.                     " Line Item Number
  wa_extension1-field1+7(10) = '0000007415'.  " LOB - zzlob
  wa_extension1-field1+17(3) = 'NE '.              " Region - zzregio
  wa_extension1-field1+30(3) = '110'.              " Reinsurance Type - zzreint
  APPEND wa_extension1  TO extension1.
  CLEAR wa_extension1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will then have to place code into the include ZXACCU15 (which is in function module EXIT_SAPLACC4_001) that will move the data you have in your EXTENSION1 table into the T_ACCIT internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*----------------------------------------------------------------------*
*   INCLUDE ZXACCU15                                                   *
*----------------------------------------------------------------------*
DATA: extension_itab TYPE STANDARD TABLE OF bapiextc,
      wa_extension   LIKE LINE OF extension_itab.

LOOP AT extension INTO wa_extension.
  READ TABLE t_accit WITH KEY posnr = wa_extension(3).

  IF sy-subrc IS INITIAL.
    t_accit-fkber    = wa_extension-field1+3(4).
    t_accit-zzlob    = wa_extension-field1+7(10).
    t_accit-zzregio  = wa_extension-field1+17(3).
    t_accit-prctr    = wa_extension-field1+20(10).
    t_accit-zzreint  = wa_extension-field1+30(3).
    t_accit-zzaemy   = wa_extension-field1+33(4).
    t_accit-zzryear  = wa_extension-field1+37(4).
    t_accit-zzpct    = wa_extension-field1+41(1).
    t_accit-zzreinc  = wa_extension-field1+42(11).
    t_accit-zzasseti = wa_extension-field1+53(1).
    t_accit-rmvct    = wa_extension-field1+54(3).
    t_accit-empfb    = wa_extension-field1+57(10).
    MODIFY t_accit INDEX sy-tabix.
  ENDIF.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your additional fields needed should be in the structure ACCIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process can be somewhat confusing.  Just let me know if any of this does not make any sense!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 21:10:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827343#M352860</guid>
      <dc:creator>aaron_morden2</dc:creator>
      <dc:date>2007-01-04T21:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: FI posting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827344#M352861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aaron;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the information....&lt;/P&gt;&lt;P&gt;I have few questions...&lt;/P&gt;&lt;P&gt;1.how r u handling the line items( if there are multiple )..&lt;/P&gt;&lt;P&gt;READ TABLE t_accit WITH KEY posnr = wa_extension(3).&lt;/P&gt;&lt;P&gt; i didnt understand what the above statement is doing..&lt;/P&gt;&lt;P&gt;2. &amp;lt;b&amp;gt;can we Park/hold the document before posting...coz our end users want to reveiw them before posting.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;3. so i have to append my custom fields to structure ACCIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so by passing the values to  ACCIT structure through  userexit will  be enough.. or do i have write any more code to populate  the custom fields...??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 22:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827344#M352861</guid>
      <dc:creator>former_member611341</dc:creator>
      <dc:date>2007-01-04T22:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: FI posting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827345#M352862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aday,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try and answer your questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE t_accit WITH KEY posnr = wa_extension(3).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_accit is an internal table that contains the line items that were passed in the BAPI.  So if you are passing 5 line items to the BAPI, there will be 5 records in t_accit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you have a line item that needs to have your custom fields filled in, move that line item number to your extension table.&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_extension1-field1(3)    = 2.              " Line Item Number &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So with the above READ statement, you are reading the t_accit table by the Line Item you populated in your extension.  That way you are modifying the correct Line item with your custom fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  You might be able to use a different function module if you want to park the document:  &amp;lt;b&amp;gt;BAPI_INCOMINGINVOICE_PARK&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Not sure if this would work for you though, have a look! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you could maybe use FM &amp;lt;b&amp;gt;BAPI_ACC_GL_POSTING_CHECK&amp;lt;/b&amp;gt; to check the posting first and then generate an error message for the user if there was a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.  Yes, you will need to have your custom fields on ACCIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only code you need to write is the code when calling the BAPI and the code in the include ZXACCU15.  Let me know if you need any other clarification!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 13:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827345#M352862</guid>
      <dc:creator>aaron_morden2</dc:creator>
      <dc:date>2007-01-05T13:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: FI posting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827346#M352863</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;   Iam also doing exactly the same. So,instead of Bapi, in this senior, i went for BDC and iam Succesful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   So, i suggest you to go for BDC,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need i can provide the code also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manju&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 14:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827346#M352863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T14:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: FI posting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827347#M352864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BDC's do work and get the job done in most cases. But if the screens change durring an upgrade, which happens a lot, you will have to record the BDC over again.  If you have a lot of BDC, this can be a pain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend using a BAPI if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 14:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827347#M352864</guid>
      <dc:creator>aaron_morden2</dc:creator>
      <dc:date>2007-01-05T14:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: FI posting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827348#M352865</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;thanks for your replies..&lt;/P&gt;&lt;P&gt;Aaron , thanks for explanation...i will try the func modules...&lt;/P&gt;&lt;P&gt;manju,yes i would like to see the code...can you please send it my e-mail &lt;/P&gt;&lt;P&gt;aday201@yahoo.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes if i use BDC ,there will be a problem while upgrade which we r goin to do soon in the year end...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once again thanks...&lt;/P&gt;&lt;P&gt;i will keep the thread open ,,,for further questions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 19:05:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827348#M352865</guid>
      <dc:creator>former_member611341</dc:creator>
      <dc:date>2007-01-05T19:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: FI posting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827349#M352866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron, &lt;/P&gt;&lt;P&gt;Just want to ask, after adding the customized fields in the structure ACCIT, where does the data being kept? must i append the fields also in a specified transparent table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 02:17:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-posting/m-p/1827349#M352866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T02:17:20Z</dc:date>
    </item>
  </channel>
</rss>

