<?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: How to transfer data to custom-field when calling BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-transfer-data-to-custom-field-when-calling-bapi-acc-document-post/m-p/2931703#M690833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The fields must already exist on the FI interface definition structures: ACCIT&lt;/P&gt;&lt;P&gt;The general process for adding Customer fields to the BAPI structures is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.	Do an SE11 on the BAPI structure(s) such as BAPIACAR09, BAPIACGL09 etc.&lt;/P&gt;&lt;P&gt;2.	click on the u201CAppend structureu201D button, and enter the fields you want to add.  Save and activate the changed BAPIAC* structure.&lt;/P&gt;&lt;P&gt;3.	Do an SE11 on the appropriate related structure ACCBAPIFDn , where n=1 to 6.  Note that for OSPI we used ACCBAPIFD5 for additional line item fields, although it looks like ACCBAPIFD1 would/should also work.  Add the same fields you added in step 2.  Make sure the field names are exactly the same in both the ACCBAPIFD* and BAPIAC* structures that youu2019ve changed. &lt;/P&gt;&lt;P&gt;4.	Change your program code to fill the new fields in the BAPIAC* structure with the appropriate values.  Eg. GS_BAPIACAR09-ZZBILIND = u2018PRu2019 prior to calling he ACC_DOCUMENT_CHECK/POST  functions.&lt;/P&gt;&lt;P&gt;5.	Do an SE18 for BADI ACC_DOCUMENT.  Select the u201Cinterfaceu201D tab.  Select the method FILL_ACCIT.  Add parameter C_BAPI_ACCIT of type ACCBAPIFDn (the structure you changed in step 3). Save and activate.&lt;/P&gt;&lt;P&gt;6.	Do an SE19.  Create/modify an implementation for  the ACC_DOCUMENT definition (from step 5). In method FILL_ACCIT, enter code to move the new fields from the C_BAPI_ACCIT structure to the C_ACCIT structure. Ex: c_accit-btype = c_bapi_accit-zzbilind.&lt;/P&gt;&lt;P&gt;7.	Activate the BADI.&lt;/P&gt;&lt;P&gt;8.	Test:  You can set a break-point in FILL_ACCIT code (step 6).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2008 17:18:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-12T17:18:20Z</dc:date>
    <item>
      <title>How to transfer data to custom-field when calling BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-transfer-data-to-custom-field-when-calling-bapi-acc-document-post/m-p/2931700#M690830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I want to post the GL document through BAPI_ACC_DOCUMENT_POST but had met error messages because of some custom-fields.&lt;/P&gt;&lt;P&gt;     In our FI document we add two custom field in the COBL ( .INCLUDE CI_COBL). When I create the GL doc through BAPI_ACC_DOCUMENT_POST I don't know how to transfer the data to this custom-fields.  do you any example coding on this case? Or any can point me a direction?? Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 09:14:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-transfer-data-to-custom-field-when-calling-bapi-acc-document-post/m-p/2931700#M690830</guid>
      <dc:creator>former_member249594</dc:creator>
      <dc:date>2007-10-17T09:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer data to custom-field when calling BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-transfer-data-to-custom-field-when-calling-bapi-acc-document-post/m-p/2931701#M690831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to transfer these fields through tables EXTENSION2. After you have to find a user exit where you have this data and you can modify your custom fields. Pls. check the call_customer_function form routine in the BAPI for finding a suitable exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 09:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-transfer-data-to-custom-field-when-calling-bapi-acc-document-post/m-p/2931701#M690831</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-10-17T09:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer data to custom-field when calling BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-transfer-data-to-custom-field-when-calling-bapi-acc-document-post/m-p/2931702#M690832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric, Thanks for your response. After check the system, I fond that the two custom-fields was not added by BADI or customer function, but through Special Purpose Ledger in configeration(TCODE OXK3). So I am afraid that EXTENSION2 and EXTENSION1 is not meet my technical req. Other any suggestions?? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 01:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-transfer-data-to-custom-field-when-calling-bapi-acc-document-post/m-p/2931702#M690832</guid>
      <dc:creator>former_member249594</dc:creator>
      <dc:date>2007-10-18T01:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer data to custom-field when calling BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-transfer-data-to-custom-field-when-calling-bapi-acc-document-post/m-p/2931703#M690833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The fields must already exist on the FI interface definition structures: ACCIT&lt;/P&gt;&lt;P&gt;The general process for adding Customer fields to the BAPI structures is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.	Do an SE11 on the BAPI structure(s) such as BAPIACAR09, BAPIACGL09 etc.&lt;/P&gt;&lt;P&gt;2.	click on the u201CAppend structureu201D button, and enter the fields you want to add.  Save and activate the changed BAPIAC* structure.&lt;/P&gt;&lt;P&gt;3.	Do an SE11 on the appropriate related structure ACCBAPIFDn , where n=1 to 6.  Note that for OSPI we used ACCBAPIFD5 for additional line item fields, although it looks like ACCBAPIFD1 would/should also work.  Add the same fields you added in step 2.  Make sure the field names are exactly the same in both the ACCBAPIFD* and BAPIAC* structures that youu2019ve changed. &lt;/P&gt;&lt;P&gt;4.	Change your program code to fill the new fields in the BAPIAC* structure with the appropriate values.  Eg. GS_BAPIACAR09-ZZBILIND = u2018PRu2019 prior to calling he ACC_DOCUMENT_CHECK/POST  functions.&lt;/P&gt;&lt;P&gt;5.	Do an SE18 for BADI ACC_DOCUMENT.  Select the u201Cinterfaceu201D tab.  Select the method FILL_ACCIT.  Add parameter C_BAPI_ACCIT of type ACCBAPIFDn (the structure you changed in step 3). Save and activate.&lt;/P&gt;&lt;P&gt;6.	Do an SE19.  Create/modify an implementation for  the ACC_DOCUMENT definition (from step 5). In method FILL_ACCIT, enter code to move the new fields from the C_BAPI_ACCIT structure to the C_ACCIT structure. Ex: c_accit-btype = c_bapi_accit-zzbilind.&lt;/P&gt;&lt;P&gt;7.	Activate the BADI.&lt;/P&gt;&lt;P&gt;8.	Test:  You can set a break-point in FILL_ACCIT code (step 6).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 17:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-transfer-data-to-custom-field-when-calling-bapi-acc-document-post/m-p/2931703#M690833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T17:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer data to custom-field when calling BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-transfer-data-to-custom-field-when-calling-bapi-acc-document-post/m-p/2931704#M690834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Till point 4 everything was clear. But moving forward with point 5 is difficulty because there is no ACC_DOCUMENT BADI. I would be very appreciate for any hint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 13:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-transfer-data-to-custom-field-when-calling-bapi-acc-document-post/m-p/2931704#M690834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T13:36:24Z</dc:date>
    </item>
  </channel>
</rss>

