<?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 'bapi_acc_document_post'. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553669#M1075092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't pass any values to them, if the BAPI success then it will return the Document number in  l_key (it is a combination of document number and year).&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: l_type like gd_documentheader-obj_type,
        l_key  like gd_documentheader-obj_key,
        l_sys  like gd_documentheader-obj_sys.

    call function 'BAPI_ACC_DOCUMENT_POST'
      exporting
        documentheader    = wa_docheader
        customercpd       =   wa_pcd
        contractheader    = wa_fica_head
      importing
        obj_type          = l_type
        obj_key           = l_key
        obj_sys           = l_sys
      tables
        accountgl         = it_accountgl
        accountreceivable = it_accountreceivable
        accountpayable    = it_accountpayable
        accounttax        = it_accounttax
......
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2008 12:43:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-08T12:43:27Z</dc:date>
    <item>
      <title>bapi 'bapi_acc_document_post'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553662#M1075085</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;i'm creating credit memo request thru bapi 'bapi_acc_document_post'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm getting success message for creation of cmr(it is also updating the table bkpf) but &lt;/P&gt;&lt;P&gt;i'm not able to get the document number for created document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can ne 1 suggest me how to get document number thru bapi in this case.&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:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553662#M1075085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T07:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: bapi 'bapi_acc_document_post'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553663#M1075086</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;Check if you are using Commit BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 07:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553663#M1075086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T07:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: bapi 'bapi_acc_document_post'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553664#M1075087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you using the exporting parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*"  EXPORTING
*"     VALUE(OBJ_TYPE) LIKE  BAPIACHE09-OBJ_TYPE
*"     VALUE(OBJ_KEY) LIKE  BAPIACHE09-OBJ_KEY      "check the object key
*"     VALUE(OBJ_SYS) LIKE  BAPIACHE09-OBJ_SYS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the OBJ_KEY value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 07:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553664#M1075087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T07:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: bapi 'bapi_acc_document_post'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553665#M1075088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting what to pass in obj_key. Can you please suggest what should I pass in this parameter?&lt;/P&gt;&lt;P&gt;I have passed concatenatio of fiscal year and company code in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 11:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553665#M1075088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T11:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: bapi 'bapi_acc_document_post'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553666#M1075089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting what to pass in obj_key. Can you please suggest what should I pass in this parameter?&lt;/P&gt;&lt;P&gt;I have passed concatenatio of fiscal year and company code in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 11:11:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553666#M1075089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T11:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: bapi 'bapi_acc_document_post'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553667#M1075090</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;Check this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2372335"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Surinder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 11:20:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553667#M1075090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T11:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: bapi 'bapi_acc_document_post'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553668#M1075091</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;Better declare a variable of type BAPIACHE09-OBJ_KEY from the FM, then pass it in the FM for the import parameter, obj_key, after executing the FM, the first 10 characters of the variable will give you the document number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are facing problems, just try posting manually in the FM and supply the values in the program as you pass in the FM manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will be a easy way to test the FM. Still more issues please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 11:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553668#M1075091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T11:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: bapi 'bapi_acc_document_post'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553669#M1075092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't pass any values to them, if the BAPI success then it will return the Document number in  l_key (it is a combination of document number and year).&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: l_type like gd_documentheader-obj_type,
        l_key  like gd_documentheader-obj_key,
        l_sys  like gd_documentheader-obj_sys.

    call function 'BAPI_ACC_DOCUMENT_POST'
      exporting
        documentheader    = wa_docheader
        customercpd       =   wa_pcd
        contractheader    = wa_fica_head
      importing
        obj_type          = l_type
        obj_key           = l_key
        obj_sys           = l_sys
      tables
        accountgl         = it_accountgl
        accountreceivable = it_accountreceivable
        accountpayable    = it_accountpayable
        accounttax        = it_accounttax
......
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 12:43:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553669#M1075092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T12:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: bapi 'bapi_acc_document_post'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553670#M1075093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please try with this:&lt;/P&gt;&lt;P&gt;Declare a variable like this:&lt;/P&gt;&lt;P&gt;V_OBJ_KEY type AWKEY.&lt;/P&gt;&lt;P&gt;Pass this to OBJ_KEY.&lt;/P&gt;&lt;P&gt;AWKEY (OBJ_KEY) Reference key&lt;/P&gt;&lt;P&gt;Source document number&lt;/P&gt;&lt;P&gt;The reference key is made up of:&lt;/P&gt;&lt;P&gt;u2022	AWREF Reference document number (10 digits)&lt;/P&gt;&lt;P&gt;Source document number&lt;/P&gt;&lt;P&gt;u2022	AWORG Reference organizational unit (10 digits)&lt;/P&gt;&lt;P&gt;Number range ID (if required)&lt;/P&gt;&lt;P&gt;When the document is being processed, the system checks whether a reference document number (first part of the reference key) has been transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an accounting document is posted via the interface in Accounting, the sending application transfers a unique reference. It consists of object key and object type. The object key consists of a reference document number and a reference organizational unit.&lt;/P&gt;&lt;P&gt;Example: 1000007899 00011996&lt;/P&gt;&lt;P&gt;Reference Reference organizational unit&lt;/P&gt;&lt;P&gt;document no. client and fiscal year&lt;/P&gt;&lt;P&gt;The object type contains a note on storing the original document.&lt;/P&gt;&lt;P&gt;u2022	AWTYP (OBJ_TYPE) Reference transaction&lt;/P&gt;&lt;P&gt;Sender ID&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neenu Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 13:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553670#M1075093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T13:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: bapi 'bapi_acc_document_post'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553671#M1075094</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;Check this may be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[https://forums.sdn.sap.com/click.jspa?searchID=17223111&amp;amp;messageID=5909249]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[https://forums.sdn.sap.com/click.jspa?searchID=17223111&amp;amp;messageID=5926777]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rhea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 13:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post/m-p/4553671#M1075094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T13:17:48Z</dc:date>
    </item>
  </channel>
</rss>

