<?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 BAPI_ACC_DOCUMENT_POST  and   BKPF-TCODE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-and-bkpf-tcode/m-p/8284393#M1634144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on interface program to posting FI document via  BAPI_ACC_DOCUMENT_POST. Now, the result doc will always has TCODE=BAPI but my requirement want TCODE to have the same value as the interface program name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw that the TCODE is filling  in the subroutine fill_acchd of includes LACC9F20: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
gs_acchd-tcode = sy-tcode.
if gs_acchd-glvor = 'RFBU'.
   gs_acchd-tcode = 'BAPI'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to make a custom BAPI to change the parameter gs_acchd-tcode = 'BAPI'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My requirement is to know which document is posted from my Z-program interface.&lt;/STRONG&gt; I think the solution is to write the name of my Z-program interface into another field, adding to the existing content of the field. This would allow you to select from the table BKPF all the documents published with my Z-program interface.  &lt;STRONG&gt;In which field do you advise me to write it? Maybe there 'a better solution?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Ciao, Serena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2011 13:09:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-11T13:09:08Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_POST  and   BKPF-TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-and-bkpf-tcode/m-p/8284393#M1634144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on interface program to posting FI document via  BAPI_ACC_DOCUMENT_POST. Now, the result doc will always has TCODE=BAPI but my requirement want TCODE to have the same value as the interface program name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw that the TCODE is filling  in the subroutine fill_acchd of includes LACC9F20: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
gs_acchd-tcode = sy-tcode.
if gs_acchd-glvor = 'RFBU'.
   gs_acchd-tcode = 'BAPI'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to make a custom BAPI to change the parameter gs_acchd-tcode = 'BAPI'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My requirement is to know which document is posted from my Z-program interface.&lt;/STRONG&gt; I think the solution is to write the name of my Z-program interface into another field, adding to the existing content of the field. This would allow you to select from the table BKPF all the documents published with my Z-program interface.  &lt;STRONG&gt;In which field do you advise me to write it? Maybe there 'a better solution?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Ciao, Serena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 13:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-and-bkpf-tcode/m-p/8284393#M1634144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-11T13:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST  and   BKPF-TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-and-bkpf-tcode/m-p/8284394#M1634145</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;You can another selection criteria from BKPF instead of this custom transaction code or you can check in transaction GGB1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Senthilraj Selvaraj on Oct 11, 2011 3:43 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Senthilraj Selvaraj on Oct 11, 2011 3:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 13:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-and-bkpf-tcode/m-p/8284394#M1634145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-11T13:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST  and   BKPF-TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-and-bkpf-tcode/m-p/8284395#M1634146</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;I think the best option is mark a field with special signature and think USERNAME field can help you. if in your system no user's username contain 12 character, you can concatanate _ char to username and pass to BAPI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I can t post a complete solution.&lt;/P&gt;&lt;P&gt;Take care,&lt;/P&gt;&lt;P&gt;Çağatay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 13:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-and-bkpf-tcode/m-p/8284395#M1634146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-11T13:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST  and   BKPF-TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-and-bkpf-tcode/m-p/8284396#M1634147</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;I believe it's an incorrect behavior, you need to implement SAP note 1340352&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 14:33:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-and-bkpf-tcode/m-p/8284396#M1634147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-11T14:33:20Z</dc:date>
    </item>
  </channel>
</rss>

