<?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: problem in posting keys with bapi_acc_document_post in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-keys-with-bapi-acc-document-post/m-p/9015995#M1699068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, if you expect KR to be posted as 31 and 40, then you need to send the AP related amounts as negative, and the GL related amounts as positive values. I guess it would be cleaner if your functional person already prepares the correct input data, rather than manipulating amounts later in the program code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2012 12:46:02 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2012-10-25T12:46:02Z</dc:date>
    <item>
      <title>problem in posting keys with bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-keys-with-bapi-acc-document-post/m-p/9015990#M1699063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frndz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m posting the values for AP Open items and AR open items through bapi_acc_document_post.&lt;/P&gt;&lt;P&gt;I am able to do successful posting. &lt;/P&gt;&lt;P&gt;But i've to achieve the following things after successful posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Document type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Posting keys&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T-code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; KR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31, 40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FB60 (AP Invoice)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; KG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21, 50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FB65 (AP credit Memo)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; DR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01,50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FB70 (AR Invoice)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; DG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11,40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FB75 (AR Credit Memo)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even i am passing DOC_TYPE value in header i am unable to get the exact posting keys in final result.&lt;/P&gt;&lt;P&gt;I am getting only 21,50 for both the doc types KR and KG.&lt;/P&gt;&lt;P&gt;And getting only 01,50 for both the doc types DR and DG.&lt;/P&gt;&lt;P&gt;Even though the postings were successful docs were created with above posting keys..&lt;/P&gt;&lt;P&gt;I've gone through some posts in SCN, where experts told to use badi.&lt;/P&gt;&lt;P&gt;Please suggest me how to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: above two AP and AR are two individual requirements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;Ramana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 12:20:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-keys-with-bapi-acc-document-post/m-p/9015990#M1699063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-25T12:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem in posting keys with bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-keys-with-bapi-acc-document-post/m-p/9015991#M1699064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The posting keys are automatically determined by the BAPI transaction itself. There is no need to pass the posting keys. Depending on the senario's you will have the posting keys. Still if you are unsure, just reverse the currency amounts for KR and DR document types, and you will get the correct posting keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hardik Mehta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 12:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-keys-with-bapi-acc-document-post/m-p/9015991#M1699064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-25T12:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem in posting keys with bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-keys-with-bapi-acc-document-post/m-p/9015992#M1699065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The posting key as derived within this BAPI is not dependent on the document type, but rather on the account type (AR/AP/GL) and sign of the amount to be posted. Positive amounts ("Soll") will be posted with keys 01 for AR, 21 for AP and 40 for G/L, negative amounts ("Haben") with keys 11 for AR, 31 for AP and 50 for G/L.&lt;/P&gt;&lt;P&gt;Maybe you need to work on sending the correct amounts (positive/negative) to the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 12:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-keys-with-bapi-acc-document-post/m-p/9015992#M1699065</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-10-25T12:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: problem in posting keys with bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-keys-with-bapi-acc-document-post/m-p/9015993#M1699066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply hardik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am alredy posting throuth the offset entry. Means for each record in the final internal table i am adding on entry with reverse amount and constant GL account and Profit center.with these two line items i am posting as a single document. Same thing for all the document types. still i am getting the same posting keys..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 12:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-keys-with-bapi-acc-document-post/m-p/9015993#M1699066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-25T12:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: problem in posting keys with bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-keys-with-bapi-acc-document-post/m-p/9015994#M1699067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It makes sense to me.&lt;/P&gt;&lt;P&gt;But the load file which i got from Functional containing all the values positive.&lt;/P&gt;&lt;P&gt;So, do i need to change these values to positive or negative based on doc types&amp;nbsp; before posting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 12:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-keys-with-bapi-acc-document-post/m-p/9015994#M1699067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-25T12:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem in posting keys with bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-keys-with-bapi-acc-document-post/m-p/9015995#M1699068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, if you expect KR to be posted as 31 and 40, then you need to send the AP related amounts as negative, and the GL related amounts as positive values. I guess it would be cleaner if your functional person already prepares the correct input data, rather than manipulating amounts later in the program code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 12:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-keys-with-bapi-acc-document-post/m-p/9015995#M1699068</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-10-25T12:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: problem in posting keys with bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-keys-with-bapi-acc-document-post/m-p/9015996#M1699069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Thomas,&lt;/P&gt;&lt;P&gt;great help.&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;Ramana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 12:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-keys-with-bapi-acc-document-post/m-p/9015996#M1699069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-25T12:50:49Z</dc:date>
    </item>
  </channel>
</rss>

