<?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: reference Key fields 1 and 2 to be uploaded using BAPI_ACC_DOCUMENT_POST. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-fields-1-and-2-to-be-uploaded-using-bapi-acc-document-post/m-p/8507792#M1654618</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;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I too had the same problem and found a solution. Hope it will be useful to someone.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Pass field names 'XREF1_HD' &amp;amp; 'XREF2_HD' in valuepart1 of structure 'EXTENSION2' and their corresponding values in valuepart2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create an implementation for BADI 'ACC_DOCUMENT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The extension values will be available in 'C_EXTENSION2' parameter of Method 'Change'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. The fields XREF1_HD &amp;amp; XREF2_HD are available in ACCIT but not in ACCHD. Modify these fields in ACCIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Once doc is posted, you should be able to see values in the header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laxman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2015 06:11:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-07-01T06:11:52Z</dc:date>
    <item>
      <title>reference Key fields 1 and 2 to be uploaded using BAPI_ACC_DOCUMENT_POST.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-fields-1-and-2-to-be-uploaded-using-bapi-acc-document-post/m-p/8507789#M1654615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to post account document using BAPI_ACC_DOCUMENT_POST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, there is no way I see to upload reference Key fields XREF1_HD and XREF2_HD using this BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way this can be achieved?&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>Tue, 31 Jan 2012 05:57:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-fields-1-and-2-to-be-uploaded-using-bapi-acc-document-post/m-p/8507789#M1654615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-31T05:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: reference Key fields 1 and 2 to be uploaded using BAPI_ACC_DOCUMENT_POST.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-fields-1-and-2-to-be-uploaded-using-bapi-acc-document-post/m-p/8507790#M1654616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Documentation says that these fields can only be filled internally, so you need to setup an FI substitution or use the EXTENSION1 structure of the BAPI along with the corresponding BADI implementation, please look for available information.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 08:13:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-fields-1-and-2-to-be-uploaded-using-bapi-acc-document-post/m-p/8507790#M1654616</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-01-31T08:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: reference Key fields 1 and 2 to be uploaded using BAPI_ACC_DOCUMENT_POST.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-fields-1-and-2-to-be-uploaded-using-bapi-acc-document-post/m-p/8507791#M1654617</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;See SAP Note 487722 - Using EXTENSION1 for accounting BAPIs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 08:31:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-fields-1-and-2-to-be-uploaded-using-bapi-acc-document-post/m-p/8507791#M1654617</guid>
      <dc:creator>eduardo_hinojosa</dc:creator>
      <dc:date>2012-01-31T08:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: reference Key fields 1 and 2 to be uploaded using BAPI_ACC_DOCUMENT_POST.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-fields-1-and-2-to-be-uploaded-using-bapi-acc-document-post/m-p/8507792#M1654618</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;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I too had the same problem and found a solution. Hope it will be useful to someone.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Pass field names 'XREF1_HD' &amp;amp; 'XREF2_HD' in valuepart1 of structure 'EXTENSION2' and their corresponding values in valuepart2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create an implementation for BADI 'ACC_DOCUMENT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The extension values will be available in 'C_EXTENSION2' parameter of Method 'Change'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. The fields XREF1_HD &amp;amp; XREF2_HD are available in ACCIT but not in ACCHD. Modify these fields in ACCIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Once doc is posted, you should be able to see values in the header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laxman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 06:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-fields-1-and-2-to-be-uploaded-using-bapi-acc-document-post/m-p/8507792#M1654618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-01T06:11:52Z</dc:date>
    </item>
  </channel>
</rss>

