<?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: BAPI_ACC_DOCUMENT_POST - AWKEY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178752#M1198883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is usually a structure to fill the AWREF fill, for AWKEY = 'MKPF' the structure name is [MKPF_AWKEY|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&amp;amp;query=mkpf_awkey&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;To get this information look at table [TTYP|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&amp;amp;query=ttyp&lt;/EM&gt;AWKEY&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue] (SE16) where you will find the structure name and/or the name of a FM to display the sender document.+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For you request&lt;/P&gt;&lt;P&gt;- AWKEY = 'MKPF'&lt;/P&gt;&lt;P&gt;- AWREF = structure MKPF_AWKEY, with subfields BELNR and GJAHR from material document (MKPF/MSEG)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2009 14:50:42 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2009-02-10T14:50:42Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_POST - AWKEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178751#M1198882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do we form the field DOCUMENTHEADER-OBJ_KEY (BKPF-AWKEY)?  I know that it is made up of the material document number and the year but how do I supply this in the BAPI?  I do'nt know what the material document is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please don't just link to examples of using the BAPI unless they explain how you create the key.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 14:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178751#M1198882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T14:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - AWKEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178752#M1198883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is usually a structure to fill the AWREF fill, for AWKEY = 'MKPF' the structure name is [MKPF_AWKEY|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&amp;amp;query=mkpf_awkey&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;To get this information look at table [TTYP|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&amp;amp;query=ttyp&lt;/EM&gt;AWKEY&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue] (SE16) where you will find the structure name and/or the name of a FM to display the sender document.+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For you request&lt;/P&gt;&lt;P&gt;- AWKEY = 'MKPF'&lt;/P&gt;&lt;P&gt;- AWREF = structure MKPF_AWKEY, with subfields BELNR and GJAHR from material document (MKPF/MSEG)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 14:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178752#M1198883</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-02-10T14:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - AWKEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178753#M1198884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but I am trying to form the field so that I can create the document.  I'm not sure how this will help being that the document hasn't been created yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 14:55:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178753#M1198884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T14:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - AWKEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178754#M1198885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to post a financial document (BAPI_ACC_xxx_POST) related to a material document, the material document MUST exist or at least the number MUST be known. So you MUST do it in a step where this is true, like a in BADI MB_DOCUMENT_BADI method MB_DOCUMENT_BEFORE_UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If some data are no longer available during the BADI execution, you must export them in memory and import in BADI, or any equivalent method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 14:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178754#M1198885</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-02-10T14:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - AWKEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178755#M1198886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use this to simply create an invoice document which will be a transfer of funds from one GL to another.  Therefore, there will not necessarily be a material document.  I have been told that this BAPI will work for what I want to do.  From what you are saying (a material document is necessary), it will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Are you saying that I can't use this for what I am trying to do?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 15:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178755#M1198886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T15:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - AWKEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178756#M1198887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The material document is not mandatory, but when i read your question, i undestood that you needed it.&amp;lt;div class="jive-quote"&amp;gt;I know that it is made up of the material document number and the year&amp;lt;/div&amp;gt;You can of course use this BAPI with another AWTYP that don't need any link to a sender document.&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;Take a look at &amp;lt;a class="jive-link-external" href="https://service.sap.com/sap/support/notes/306504" target="_newWindow"&amp;gt;Note 306504 - Collective note: BAPIs for the AC interface&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 15:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178756#M1198887</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-02-10T15:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - AWKEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178757#M1198888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I try to create the document, using the BAPI, it tells me that I have to fill in the field OBJ_KEY but I have no idea how it is made for BKPF (buisness transaction RMRP).  Do you have any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 15:14:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178757#M1198888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T15:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - AWKEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178758#M1198889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'RMRP' stand for MM invoices, you need an invoice in SAP.&lt;/P&gt;&lt;P&gt;- AWTYP = 'RMRP'&lt;/P&gt;&lt;P&gt;- AWREF = RBKP-BELNR&lt;/P&gt;&lt;P&gt;- AWORG = RBKP-GJAHR&lt;/P&gt;&lt;P&gt;This code is used by MIRO and the like, and i'm not sure you can use it with this GL BAPI, if you have no purchase order, try to [simulate FB60|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&amp;amp;query=bapi+fb60&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue] with a type 'BKPF' or 'BKPFF' (look at OSS [Note 561175 - BAPI posting in accounting with FI as reference|https://service.sap.com/sap/support/notes/561175])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a purchase order, try to use [BAPI_INCOMINGINVOICE_CREATE|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&amp;amp;query=bapi_incominginvoice_create&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 15:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178758#M1198889</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-02-10T15:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - AWKEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178759#M1198890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I'll take a look at that BAPI.  The reason I said I will be using 'RMRP' is because I was simply looking at an existing posting that I was trying to duplicate.  However, these invoices are going to be created based off an invoice (we are reversing retention which was based on a PO).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will award points once I get a chance to take a look at this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 15:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178759#M1198890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T15:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - AWKEY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178760#M1198891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I decided to go with a BDC call instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 22:11:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-awkey/m-p/5178760#M1198891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T22:11:39Z</dc:date>
    </item>
  </channel>
</rss>

