<?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: refernce key in bapi_acc_document_post in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refernce-key-in-bapi-acc-document-post/m-p/4554072#M1075208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The obj_key field will contain the document number, company code and fiscal yesr. The first 10 character of the OBJ_KEY field in the bapi will fetch you the document number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shobana.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Oct 2008 08:46:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-10T08:46:14Z</dc:date>
    <item>
      <title>refernce key in bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refernce-key-in-bapi-acc-document-post/m-p/4554070#M1075206</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;&lt;/P&gt;&lt;P&gt;can ne 1 help me to understand the reference key in bapi 'bapi_acc_document_post'.&lt;/P&gt;&lt;P&gt;it's concatenation of &lt;/P&gt;&lt;P&gt;1.document number&lt;/P&gt;&lt;P&gt;2.company code&lt;/P&gt;&lt;P&gt;3.fiscal year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest me, how to get the document number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 07:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refernce-key-in-bapi-acc-document-post/m-p/4554070#M1075206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T07:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: refernce key in bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refernce-key-in-bapi-acc-document-post/m-p/4554071#M1075207</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;The one that is concatenation of Doc No, Comp Code, and Fisc Yr is Object Key, not Reference Key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 2 ways to get the document number.&lt;/P&gt;&lt;P&gt;1. Get it from Object Key&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA l_belnr TYPE bkpf-belnr.
l_belnr = obj_key+0(10).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. or get it from BAPI return table&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA lwa_return TYPE bapiret2.
READ TABLE lit_return
INTO lwa_return
WHERE type = 'S'.
IF sy-subrc EQ 0.
l_belnr = lwa_return-message_v1.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Teddy Kurniawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 06:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refernce-key-in-bapi-acc-document-post/m-p/4554071#M1075207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T06:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: refernce key in bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refernce-key-in-bapi-acc-document-post/m-p/4554072#M1075208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The obj_key field will contain the document number, company code and fiscal yesr. The first 10 character of the OBJ_KEY field in the bapi will fetch you the document number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shobana.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 08:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refernce-key-in-bapi-acc-document-post/m-p/4554072#M1075208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T08:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: refernce key in bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refernce-key-in-bapi-acc-document-post/m-p/4554073#M1075209</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;/P&gt;&lt;P&gt;The first 10 character of the OBJ_KEY field is the document number.If u use the return table of the bapi ,&lt;/P&gt;&lt;P&gt;u can even get it from message_v2 part .&lt;/P&gt;&lt;P&gt;&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;Ramya S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramya S on Oct 10, 2008 11:11 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 09:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refernce-key-in-bapi-acc-document-post/m-p/4554073#M1075209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T09:10:42Z</dc:date>
    </item>
  </channel>
</rss>

