<?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: extension2 in bapi_acc_document_post in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/extension2-in-bapi-acc-document-post/m-p/6492202#M1420480</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 dictionary structure (content for EXTENSION2-STRUCTURE) must contain field POSNR, (TYPE POSNR_ACC) to indentify the correct line item of the internal table ACCIT.&lt;/P&gt;&lt;P&gt;try to pass the posnr field to the structure.&lt;/P&gt;&lt;P&gt;also check the CL_EXM_IM_ACC_DOCUMENT class for more details&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jan 2010 13:03:00 GMT</pubDate>
    <dc:creator>nirajgadre</dc:creator>
    <dc:date>2010-01-14T13:03:00Z</dc:date>
    <item>
      <title>extension2 in bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extension2-in-bapi-acc-document-post/m-p/6492201#M1420479</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 posting account documnet in using bapi_acc_document_post with custom feilds on BKPF. &lt;/P&gt;&lt;P&gt;so i already append custom structure as Z0CUST01 to BKPF table which contains ZA1, ZA2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i tried to post, i got no error , document successfully posted, but no customed filed saved in BKPF table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what's wrong? please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ls_zzz TYPE Z0CUST01.&lt;/P&gt;&lt;P&gt;CLEAR it_ext2.&lt;/P&gt;&lt;P&gt;it_ext2-structure = 'Z0CUST01'.&lt;/P&gt;&lt;P&gt;ls_zzz-za1 = 'AAA'.&lt;/P&gt;&lt;P&gt;ls_zzz-za2 = 'BBB'.&lt;/P&gt;&lt;P&gt;MOVE ls_zzz TO it_ext2-valuepart1.&lt;/P&gt;&lt;P&gt;APPEND it_ext2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BAPI_ACC_DOCUMENT_POST'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;documentheader = gd_documentheader&lt;/P&gt;&lt;P&gt;customercpd = gd_customercpd&lt;/P&gt;&lt;P&gt;contractheader = gd_fica_hd&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;obj_type = l_type&lt;/P&gt;&lt;P&gt;obj_key = l_key&lt;/P&gt;&lt;P&gt;obj_sys = l_sys&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;accountgl = it_accountgl&lt;/P&gt;&lt;P&gt;accountreceivable = it_accountreceivable&lt;/P&gt;&lt;P&gt;accountpayable = it_accountpayable&lt;/P&gt;&lt;P&gt;accounttax = it_accounttax&lt;/P&gt;&lt;P&gt;currencyamount = it_currencyamount&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;criteria = it_criteria&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;valuefield = it_valuefield&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;extension1 = it_ext&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;return = it_return&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;paymentcard = it_paymentcard&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;contractitem = it_fica_it.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;extension2 = it_ext2&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;realestate = it_re.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 12:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extension2-in-bapi-acc-document-post/m-p/6492201#M1420479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-14T12:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: extension2 in bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extension2-in-bapi-acc-document-post/m-p/6492202#M1420480</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 dictionary structure (content for EXTENSION2-STRUCTURE) must contain field POSNR, (TYPE POSNR_ACC) to indentify the correct line item of the internal table ACCIT.&lt;/P&gt;&lt;P&gt;try to pass the posnr field to the structure.&lt;/P&gt;&lt;P&gt;also check the CL_EXM_IM_ACC_DOCUMENT class for more details&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 13:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extension2-in-bapi-acc-document-post/m-p/6492202#M1420480</guid>
      <dc:creator>nirajgadre</dc:creator>
      <dc:date>2010-01-14T13:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: extension2 in bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extension2-in-bapi-acc-document-post/m-p/6492203#M1420481</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;have a look at [SAP documentation|http://help.sap.com/saphelp_nw04/helpdata/en/6b/3f6d2b6d0711d396a50004ac96334b/frameset.htm].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 21:25:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extension2-in-bapi-acc-document-post/m-p/6492203#M1420481</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-01-14T21:25:15Z</dc:date>
    </item>
  </channel>
</rss>

