<?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 Coding Block during the Acc Doc posting BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-coding-block-during-the-acc-doc-posting-bapi-acc-document-post/m-p/7049924#M1501856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to populate correctly the profit. Segment you should fill in the information used in derivation inside the BAPI CRITERIA table structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the below example the profit. Segment is derived from Sales Org. (VKORG) and Distribution Channel (VTWEG).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Fill CRITERIA for CO-PA (Profitability Segment)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    REFRESH lt_criteria.&lt;/P&gt;&lt;P&gt;    wa_criteria-itemno_acc = lv_itemno_acc.&lt;/P&gt;&lt;P&gt;    wa_criteria-fieldname  = 'VKORG'.&lt;/P&gt;&lt;P&gt;    wa_criteria-character  = '1080'.&lt;/P&gt;&lt;P&gt;    APPEND wa_criteria TO lt_criteria.&lt;/P&gt;&lt;P&gt;    wa_criteria-itemno_acc = lv_itemno_acc.&lt;/P&gt;&lt;P&gt;    wa_criteria-fieldname  = 'VTWEG'.&lt;/P&gt;&lt;P&gt;    wa_criteria-character  = '01'.&lt;/P&gt;&lt;P&gt;    APPEND wa_criteria TO lt_criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need further information, please post your doubts here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: indetony on Sep 9, 2011 12:46 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Sep 2011 23:00:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-07T23:00:07Z</dc:date>
    <item>
      <title>Problem in Coding Block during the Acc Doc posting BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-coding-block-during-the-acc-doc-posting-bapi-acc-document-post/m-p/7049923#M1501855</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 have a problem in the Coding Block of a FI invoice Document posting. In our project, we have implemented substitutions to derive SBL;SEGMENT field in the line item of a GL Account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a program and in that i'm using BAPI_ACC_DOCUMENT_POST for posting the Accounting Document. During this BAPI call, it is not deriving the values of SBL and SEGMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when i'm posting through transaction FB01; the substitutions are getting triggered and finally values are being derived.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help on this as to why these values were not derived when it is being called through BAPI_ACC_DOCUMENT_POST. For COBL; is it really possible to post through this BAPI or something more has to be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very urjunt !!! Please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awaiting your valuable answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rohith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 16:09:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-coding-block-during-the-acc-doc-posting-bapi-acc-document-post/m-p/7049923#M1501855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-07T16:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Coding Block during the Acc Doc posting BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-coding-block-during-the-acc-doc-posting-bapi-acc-document-post/m-p/7049924#M1501856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to populate correctly the profit. Segment you should fill in the information used in derivation inside the BAPI CRITERIA table structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the below example the profit. Segment is derived from Sales Org. (VKORG) and Distribution Channel (VTWEG).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Fill CRITERIA for CO-PA (Profitability Segment)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    REFRESH lt_criteria.&lt;/P&gt;&lt;P&gt;    wa_criteria-itemno_acc = lv_itemno_acc.&lt;/P&gt;&lt;P&gt;    wa_criteria-fieldname  = 'VKORG'.&lt;/P&gt;&lt;P&gt;    wa_criteria-character  = '1080'.&lt;/P&gt;&lt;P&gt;    APPEND wa_criteria TO lt_criteria.&lt;/P&gt;&lt;P&gt;    wa_criteria-itemno_acc = lv_itemno_acc.&lt;/P&gt;&lt;P&gt;    wa_criteria-fieldname  = 'VTWEG'.&lt;/P&gt;&lt;P&gt;    wa_criteria-character  = '01'.&lt;/P&gt;&lt;P&gt;    APPEND wa_criteria TO lt_criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need further information, please post your doubts here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: indetony on Sep 9, 2011 12:46 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 23:00:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-coding-block-during-the-acc-doc-posting-bapi-acc-document-post/m-p/7049924#M1501856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-07T23:00:07Z</dc:date>
    </item>
  </channel>
</rss>

