<?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: Using BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708472#M310117</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 problem is to understand why you need to fill the reference key, because if you transfer something there the BAPI wants to know the operation (OBJ_TYPE) has generated that document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't use the field BAPIACHE09-REF_DOC_NO?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2006 11:16:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-22T11:16:50Z</dc:date>
    <item>
      <title>Using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708465#M310110</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 am using this BAPI to post FI documents using business transaction RFBU, RMRP and SD00.&lt;/P&gt;&lt;P&gt;I am not passing anything in OBJ_TYPE , OBJ_KEY , OBJ_SYS in Document header of this BAPI. So system is using BKPFF as Reference transaction and posting the document.&lt;/P&gt;&lt;P&gt;Now here the system uses combination of docno., companycode, fiscal year to build reference key.&lt;/P&gt;&lt;P&gt;I want to give my value in reference key. &lt;/P&gt;&lt;P&gt;Please suggest how can I do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Gurpreet Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 17:33:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708465#M310110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T17:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708466#M310111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pass the reference key thru BAPI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 17:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708466#M310111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T17:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708467#M310112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I pass the reference key in document header to BAPI , system gives error that OBJ_TYPE and OBJ_SYS are empty and If I pass all these values , document is not posted. I am in ECC 6.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Gurpreet Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 17:47:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708467#M310112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T17:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708468#M310113</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 the Header reocrd filling...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* OBJ_TYPE has to be replaced by customers object key (Y* or Z*)
*  gd_documentheader-obj_type   = 'IDOC'.
*  gd_documentheader-obj_key    = ref_key.
  gd_documentheader-username   = sy-uname.
  gd_documentheader-header_txt = 'BAPI Test'.               "#EC NOTEXT
* gd_documentheader-obj_key_r  =
* GD_DOCUMENTHEADER-reason_rev =
 gd_documentheader-comp_code  = 'SLOC'.
* GD_DOCUMENTHEADER-AC_DOC_NO  =
  gd_documentheader-fisc_year  = sy-datum(4).
  gd_documentheader-doc_date   = sy-datum.
  gd_documentheader-pstng_date = sy-datum.
* GD_DOCUMENTHEADER-TRANS_DATE =
* GD_DOCUMENTHEADER-VALUE_DATE =
* GD_DOCUMENTHEADER-FIS_PERIOD =
 gd_documentheader-doc_type   = 'KR'.
 gd_documentheader-ref_doc_no = 'xxxx'.
* GD_DOCUMENTHEADER-COMPO_ACC  =
  gd_documentheader-bus_act    = 'RFBU'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the example Program, you wil find where to pass the Reference key&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap4.com/wiki/index.php?title=BAPI_ACC_DOCUMENT_POST" target="test_blank"&gt;http://sap4.com/wiki/index.php?title=BAPI_ACC_DOCUMENT_POST&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sudheer Junnuthula&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 17:51:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708468#M310113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T17:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708469#M310114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudheer ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made a Z* type in TTYP with Function as FI_DOCUMENT_SENDER and STRUC as blank and I am passing object key in document header.&lt;/P&gt;&lt;P&gt;Now the problem is I am not able to get the docuemnt no. which is created . However  the document is successfully created.&lt;/P&gt;&lt;P&gt;Please reply....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Gurpreet Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 09:42:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708469#M310114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T09:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708470#M310115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Use this after the BAPI Call:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : BEGIN OF t_belnr OCCURS 0.
        INCLUDE STRUCTURE rf048_d.
DATA : END OF t_belnr.

*         move the object key to the fi doc parameter
          CALL FUNCTION 'FI_ACCBELNR_GET'
            TABLES
              t_belnr = t_belnr.

          CLEAR t_belnr.
          READ TABLE t_belnr INDEX 1.
          write : / t_belnr-belnr_e. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 09:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708470#M310115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T09:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708471#M310116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erwan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply..&lt;/P&gt;&lt;P&gt;But please tell whether it will be giving me the latest FI document or the FI document created by me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This call to this FM is different from BAPI call. Is there any possibility of getting a different number in case one or two people are running the same program simultaneously and the FI document numbers get interchanged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain me this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Gurpreet Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 11:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708471#M310116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T11:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708472#M310117</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 problem is to understand why you need to fill the reference key, because if you transfer something there the BAPI wants to know the operation (OBJ_TYPE) has generated that document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't use the field BAPIACHE09-REF_DOC_NO?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 11:16:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708472#M310117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T11:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708473#M310118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply..&lt;/P&gt;&lt;P&gt;This is the requirement that I have got.  I laso suggested the same thing that reference document number can be used but they are using that number for a different purpose.&lt;/P&gt;&lt;P&gt;So is there any way where I an give my refernence key and get the FI doc. no. from BAPI itself rather than calling any other FM as it may cause some inconsistencies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks and Regards&lt;/P&gt;&lt;P&gt;Gurpreet Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 11:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708473#M310118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T11:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708474#M310119</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;U can try to append a new field in BKPF table where you'll store your reference and than use the extension of BAPI to transfer the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wouldn't use the reference key because it can have inconcistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 11:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-acc-document-post/m-p/1708474#M310119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T11:38:47Z</dc:date>
    </item>
  </channel>
</rss>

