<?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: Errors in BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004566#M1344873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Required field GL_ACCOUNT was not transferred in parameter ACCOUNTGL&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;ACCOUNTGL-GL_ACCOUNT  = w_saknr&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please add this as well. Then check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2009 13:02:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-17T13:02:22Z</dc:date>
    <item>
      <title>Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004547#M1344854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i m calling BAPI BAPI_ACC_DOCUMENT_POST for GL posting...i have append some values which i get from the excel sheet...but the thing i m getting below errors..i m unable to sort out these...&lt;/P&gt;&lt;P&gt;Error in document: BKPF E000000024DM102009&lt;/P&gt;&lt;P&gt;Required field OBJ_SYS was not transferred in parameter DOCUMENTHEADER&lt;/P&gt;&lt;P&gt;Incorrect entry in field OBJ_TYPE: BKPF&lt;/P&gt;&lt;P&gt;Required field GL_ACCOUNT was not transferred in parameter ACCOUNTGL&lt;/P&gt;&lt;P&gt;G/L account  is not defined in chart of accounts CADC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 13:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004547#M1344854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T13:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004548#M1344855</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;Which data are you transfering in header data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the manadatory data you should transfer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BAPIACHE09-BUS_ACT    = 'RFBU'.&lt;/P&gt;&lt;P&gt;  BAPIACHE09-USERNAME   = SY-UNAME.&lt;/P&gt;&lt;P&gt;  BAPIACHE09-COMP_CODE  = &amp;lt;company code&amp;gt;&lt;/P&gt;&lt;P&gt;  BAPIACHE09-DOC_DATE   = &amp;lt;document date&amp;gt;&lt;/P&gt;&lt;P&gt;  BAPIACHE09-PSTNG_DATE = &amp;lt;posting date&amp;gt;&lt;/P&gt;&lt;P&gt;  BAPIACHE09-DOC_TYPE   = &amp;lt;document type&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seens u haven't transfered a g/l account in table paramenter ACCOUNTGL&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 13:24:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004548#M1344855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T13:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004549#M1344856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;gd_documentheader-BUS_ACT  = 'RFBU'.&lt;/P&gt;&lt;P&gt;    gd_documentheader-OBJ_TYPE = 'BKPF '.&lt;/P&gt;&lt;P&gt;    gd_documentheader-OBJ_KEY  = lv_awkey.&lt;/P&gt;&lt;P&gt;    gd_documentheader-USERNAME = sy-uname.&lt;/P&gt;&lt;P&gt;    gd_documentheader-OBJ_SYS  = '  '.&lt;/P&gt;&lt;P&gt;    gd_documentheader-pstng_date  = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am only passing vendor_no...i m unable to sort out how to pass GL_ACCOUNT field..&lt;/P&gt;&lt;P&gt;      WA_accountgl-vendor_no      = LV_LIFNR.      """vendor and matriculation number&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     WA_accountgl-GL_ACCOUNT     = lv_AKONT.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vendor no. Matriculation Number	ccount	Order&lt;/P&gt;&lt;P&gt;1000006			&lt;/P&gt;&lt;P&gt;		                 1910011	&lt;/P&gt;&lt;P&gt;1000006			&lt;/P&gt;&lt;P&gt;		                    2103001	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for above example..first line item doesnot have account number and 2nd line item doesnot have vendor no...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what to pass to which field..pls help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 13:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004549#M1344856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T13:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004550#M1344857</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;PRE&gt;&lt;CODE&gt;gd_documentheader-BUS_ACT = 'RFBU'.
gd_documentheader-OBJ_TYPE = 'BKPF '.             "&amp;lt;-------????????????
gd_documentheader-OBJ_KEY = lv_awkey.            "&amp;lt;--------????????????
gd_documentheader-USERNAME = sy-uname.
gd_documentheader-OBJ_SYS = ' '.
gd_documentheader-pstng_date = sy-datum.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are u sure u need to tranfer OBJ_TYPE and OBJ_KEY: they shouldn't be transfered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just remember: &lt;STRONG&gt;The total of all items you're transfering to account document has to be equal to ZERO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't understand which kind of posting u need to do: but if you create  vendor item, u need to create another line having opposite sign, if it has to be a g/l item u need to ask your FI consultant how to find out the g/l account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 14:16:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004550#M1344857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T14:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004551#M1344858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see..in FB01 we have field...   RF05A-NEWKO(Account) where we pass same vendor number and gl_account...my question is while passing in BAPI how do u deferintate ..because u have vendor_no and gl_account fields seperalty...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope u understand my problem...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 14:42:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004551#M1344858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T14:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004552#M1344859</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 interface of the BAPI, see the table parameters, here u can see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ACCOUNTGL                               "&amp;lt;----- To transfer the data of G/L Accounting
ACCOUNTRECEIVABLE              "&amp;lt;----- To transfer the data of Customer Accounting
ACCOUNTPAYABLE                   "&amp;lt;----- To transfer the data of Vendor Accounting
ACCOUNTTAX                             "&amp;lt;----- To transfer the data of tax data
CURRENCYAMOUNT                   "&amp;lt;----- To transfer the amount of every item&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the data of Vendor have to be transfered in ACCOUNTPAYABLE, the data of g/l to ACCOUNTGL: in this way it differentiates them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All amount data of both kind of item (vendor and g/l) have to be transfered to CURRENCYAMOUNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 14:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004552#M1344859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T14:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004553#M1344860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one morething....&lt;/P&gt;&lt;P&gt;i m passing E000000024DM102009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate belnr bukrs sy-datum+0(4) into lv_awkey.&lt;/P&gt;&lt;P&gt;gd_documentheader-OBJ_KEY  = lv_awkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for gd_documentheader-OBJ_TYPE = 'BKPF '. and gd_documentheader-OBJ_SYS  = '  '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are these values which i m passing correct??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any changes required??because it is showing some error..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 15:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004553#M1344860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T15:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004554#M1344861</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;concatenate belnr bukrs sy-datum+0(4) into lv_awkey? But if you need to post the document which number document (BELNR) are you tansfering?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, I think you don't need to transfer any data in OBJ_KEY, OBJ_TYPE and OBJ_SYS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 15:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004554#M1344861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T15:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004555#M1344862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;these r the values i will be getting from the input file..&lt;/P&gt;&lt;P&gt;Company	Document number	Document Type	Posting date	Document Date	Currency	Amount	Vendor no. Matriculation Number	Cost Center	Account	Order	Posting Key	Due Date	Text field	Special G/L	Assignment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 06:48:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004555#M1344862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T06:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004556#M1344863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. Let me give this sample coding to you. I have extensively used this BAPI including the check accounting bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
        EXPORTING
          DOCUMENTHEADER          = DOCUMENTHEADER
          CUSTOMERCPD             = CUSTOMERCPD
*     CONTRACTHEADER          =
     IMPORTING
       OBJ_TYPE                = DOCUMENTHEADER-OBJ_TYPE
       OBJ_KEY                 = OBJ_KEY2
       OBJ_SYS                 = DOCUMENTHEADER-OBJ_SYS
        TABLES
         ACCOUNTGL               = ACCOUNTGL
         ACCOUNTRECEIVABLE       = ACCOUNTRECEIVABLE
         ACCOUNTPAYABLE          = ACCOUNTPAYABLE
*       ACCOUNTTAX              = ACCOUNTTAX
          CURRENCYAMOUNT         = CURRENCYAMOUNT
*     CRITERIA                =
*     VALUEFIELD              =
          EXTENSION1              = EXTENSION1
          RETURN                  = RETURN
*     PAYMENTCARD             =
*     CONTRACTITEM            =
*     EXTENSION2              =
*     REALESTATE              =
       ACCOUNTWT               = ACCOUNTWT

Now the Document header

   Build DOCUMENTHEADER
    DOCUMENTHEADER-OBJ_TYPE = OBJ_TYPE.  (OBJ_TYPE(5) VALUE 'BKPF')
    DOCUMENTHEADER-OBJ_KEY  = OBJ_KEY. (Concatenate itab-REF_DOC_NO itab-COMP_CODE w_year 'OR' into OBJ_KEY)
    DOCUMENTHEADER-OBJ_SYS  = SY-MANDT.
    DOCUMENTHEADER-BUS_ACT =  BUS_ACT. (BUS_ACT(4) VALUE 'RFBU')
    DOCUMENTHEADER-USERNAME = SY-UNAME.
    DOCUMENTHEADER-COMP_CODE = itab2-COMP_CODE.
    DOCUMENTHEADER-DOC_DATE = itab2-DOC_DATE.
    DOCUMENTHEADER-PSTNG_DATE = itab2-PSTNG_DATE.
    DOCUMENTHEADER-TRANS_DATE = itab2-TRANS_DATE.
    DOCUMENTHEADER-FISC_YEAR = w_year.
    DOCUMENTHEADER-FIS_PERIOD = w_period.
    DOCUMENTHEADER-DOC_TYPE = itab2-DOC_TYPE.
    DOCUMENTHEADER-REF_DOC_NO = itab2-REF_DOC_NO


*    Build DOCUMENTHEADER
    IF ITAB2-NAME &amp;lt;&amp;gt; ''.
      CUSTOMERCPD-NAME   = ITAB2-NAME.
      CUSTOMERCPD-NAME_2 = ITAB2-NAME_2.
      CUSTOMERCPD-NAME_3 = ITAB2-NAME_3.
      CUSTOMERCPD-NAME_4 = ITAB2-NAME_4.
      CUSTOMERCPD-POSTL_CODE = ITAB2-POSTL_CODE.
      CUSTOMERCPD-CITY = ITAB2-CITY.
      CUSTOMERCPD-REGION = ITAB2-REGION.
      CUSTOMERCPD-COUNTRY = ITAB2-COUNTRY.
      CUSTOMERCPD-STREET = ITAB2-STREET.
      CUSTOMERCPD-BANK_ACCT = ITAB2-BANK_ACCT.
      CUSTOMERCPD-BANK_NO = ITAB2-BANK_NO.
      CUSTOMERCPD-BANK_CTRY = ITAB2-BANK_CTRY.
      CUSTOMERCPD-CTRL_KEY = ITAB2-CTRL_KEY.
    ENDIF.

*Build Account G/L
       itemno = itemno + 1.
        ACCOUNTGL-ITEMNO_ACC = ITEMNO.
*        ACCOUNTGL-GL_ACCOUNT  = itab-sapcode.
        ACCOUNTGL-ITEM_TEXT  = itab-ITEM_TEXT_GL.
        ACCOUNTGL-REF_KEY_1  = itab-REF_KEY_1_GL.
        ACCOUNTGL-REF_KEY_2  = itab-REF_KEY_2_GL.
        ACCOUNTGL-ACCT_TYPE = itab-ACCT_TYPE_GL.
        ACCOUNTGL-BUS_AREA = itab-BUS_AREA_GL.
        ACCOUNTGL-TAX_CODE = itab-TAX_CODE_GL.
        ACCOUNTGL-TAXJURCODE = itab-TAXJURCODE_GL.
        ACCOUNTGL-COSTCENTER = itab-COSTCENTER_GL.
        ACCOUNTGL-PROFIT_CTR = itab-PROFIT_CTR_GL.
        ACCOUNTGL-ORDERID = itab-ORDERID_GL.
        ACCOUNTGL-ASSET_NO = itab-ASSET_NO_GL.
        ACCOUNTGL-SUB_NUMBER = itab-SUB_NUMBER_GL.
        ACCOUNTGL-SALES_ORD = itab-SALES_ORD_GL.
        ACCOUNTGL-S_ORD_ITEM = itab-S_ORD_ITEM_GL.
        ACCOUNTGL-DE_CRE_IND = itab-DE_CRE_IND_GL.
        ACCOUNTGL-QUANTITY = itab-QUANTITY_GL.
        ACCOUNTGL-BASE_UOM = itab-BASE_UOM_GL.
        ACCOUNTGL-MATERIAL = itab-MATERIAL_GL.
        ACCOUNTGL-PO_NUMBER = itab-PO_NUMBER_GL.
        ACCOUNTGL-PO_ITEM = itab-PO_ITEM_GL.
        Append ACCOUNTGL.

*  Build accountreceivable
        itemno = itemno + 1.
        ACCOUNTRECEIVABLE-ITEMNO_ACC = ITEMNO.
*      ACCOUNTRECEIVABLE-CUSTOMER  = itab-sapcode.
        ACCOUNTRECEIVABLE-BUS_AREA  = itab-BUS_AREA_GL.
        ACCOUNTRECEIVABLE-PMNTTRMS  = itab-PMNTTRMS_AP.
        ACCOUNTRECEIVABLE-BLINE_DATE  = itab2-BLINE_DATE_AR.
        ACCOUNTRECEIVABLE-PYMT_METH = itab-PYMT_METH_AR.
        ACCOUNTRECEIVABLE-PMNT_BLOCK = itab-PMNT_BLOCK_AR.
        ACCOUNTRECEIVABLE-BANK_ID = itab-BANK_ID_AR.
        ACCOUNTRECEIVABLE-SP_GL_IND = itab-SP_GL_IND_AR.
        ACCOUNTRECEIVABLE-ALT_PAYEE = itab-ALT_PAYEE_AR.
        ACCOUNTRECEIVABLE-PROFIT_CTR = itab-PROFIT_CTR_GL.
        Append ACCOUNTRECEIVABLE.

*  Build Accounts payable
       itemno = itemno + 1.
        ACCOUNTPAYABLE-ITEMNO_ACC = ITEMNO.
*      ACCOUNTPAYABLE-VENDOR_NO  = itab-sapcode.
        ACCOUNTPAYABLE-BUS_AREA  = itab-BUS_AREA_GL.
        ACCOUNTPAYABLE-PMNTTRMS  = itab-PMNTTRMS_AP.
        ACCOUNTPAYABLE-ALLOC_NMBR  = itab-ALLOC_NMBR_GL.
        ACCOUNTPAYABLE-SP_GL_IND  = itab-SP_GL_IND_AR.
        ACCOUNTPAYABLE-BLINE_DATE  = itab-BLINE_DATE_AR.
        ACCOUNTPAYABLE-PROFIT_CTR = itab-PROFIT_CTR_GL.
        Append ACCOUNTPAYABLE.

* Build Currency Amount
     CURRENCYAMOUNT-ITEMNO_ACC = ITEMNO.
      CURRENCYAMOUNT-CURR_TYPE  = CURR_TYPE1.
      CURRENCYAMOUNT-CURRENCY  = itab-CURRENCY_CUR.
      CURRENCYAMOUNT-AMT_DOCCUR = itab-AMT_DOCCUR_DOC.
      CURRENCYAMOUNT-EXCH_RATE = itab-EXCH_RATE_CUR.
      Append CURRENCYAMOUNT.
      if itab-CURRENCY_CUR ne w_currency.
        CURRENCYAMOUNT-ITEMNO_ACC = ITEMNO.
        CURRENCYAMOUNT-CURR_TYPE  = CURR_TYPE2.
        CURRENCYAMOUNT-CURRENCY  = w_currency.
        CURRENCYAMOUNT-AMT_DOCCUR = itab-AMT_DOCCUR_LOC.
        CURRENCYAMOUNT-EXCH_RATE = itab-EXCH_RATE_CUR.
        Append CURRENCYAMOUNT.
      endif.

*       Witholding Tax
      if ITAB-WT_TYPE_WT &amp;lt;&amp;gt; ''.
        itemno = itemno + 1 .
        ACCOUNTWT-ITEMNO_ACC = ITEMNO.
        ACCOUNTWT-WT_TYPE  = itab-WT_TYPE_WT.
        ACCOUNTWT-WT_CODE  = itab-WT_CODE_WT.
        Append ACCOUNTWT.
      endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell me if you don't understand any part. This is working in production at my place. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Varun Mathur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Varun Mathur on Aug 17, 2009 12:42 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Varun Mathur on Aug 17, 2009 12:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 07:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004556#M1344863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T07:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004557#M1344864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the code tag is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 07:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004557#M1344864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T07:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004558#M1344865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you read the OSS [Note 561175 - BAPI posting in accounting with FI as reference|https://service.sap.com/sap/support/notes/561175] ?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;OBJ_TYPE: BKPFF&lt;/P&gt;&lt;P&gt;OBJ_KEY:  FI document number, company code, fiscal year&lt;/P&gt;&lt;P&gt;OBJ_SYS:  local logical system&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 07:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004558#M1344865</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-08-17T07:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004559#M1344866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Build DOCUMENTHEADER
    DOCUMENTHEADER-OBJ_TYPE = OBJ_TYPE.
    Concatenate itab2-REF_DOC_NO itab2-COMP_CODE w_year 'OR' into OBJ_KEY.
    DOCUMENTHEADER-OBJ_KEY  = OBJ_KEY.
    DOCUMENTHEADER-OBJ_SYS  = SY-MANDT.
    DOCUMENTHEADER-BUS_ACT =  BUS_ACT.
    DOCUMENTHEADER-USERNAME = SY-UNAME.
    DOCUMENTHEADER-COMP_CODE = itab2-COMP_CODE.
    DOCUMENTHEADER-DOC_DATE = itab2-DOC_DATE.
    DOCUMENTHEADER-PSTNG_DATE = itab2-PSTNG_DATE.
    DOCUMENTHEADER-TRANS_DATE = itab2-TRANS_DATE.
    DOCUMENTHEADER-FISC_YEAR = w_year.
    DOCUMENTHEADER-FIS_PERIOD = w_period.
    DOCUMENTHEADER-DOC_TYPE = itab2-DOC_TYPE.
    DOCUMENTHEADER-REF_DOC_NO = itab2-REF_DOC_NO&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CUSTOMERCPD-NAME   = ITAB2-NAME.
      CUSTOMERCPD-NAME_2 = ITAB2-NAME_2.
      CUSTOMERCPD-NAME_3 = ITAB2-NAME_3.
      CUSTOMERCPD-NAME_4 = ITAB2-NAME_4.
      CUSTOMERCPD-POSTL_CODE = ITAB2-POSTL_CODE.
      CUSTOMERCPD-CITY = ITAB2-CITY.
      CUSTOMERCPD-REGION = ITAB2-REGION.
      CUSTOMERCPD-COUNTRY = ITAB2-COUNTRY.
      CUSTOMERCPD-STREET = ITAB2-STREET.
      CUSTOMERCPD-BANK_ACCT = ITAB2-BANK_ACCT.
      CUSTOMERCPD-BANK_NO = ITAB2-BANK_NO.
      CUSTOMERCPD-BANK_CTRY = ITAB2-BANK_CTRY.
      CUSTOMERCPD-CTRL_KEY = ITAB2-CTRL_KEY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ACCOUNTGL-ITEMNO_ACC = ITEMNO.
        ACCOUNTGL-GL_ACCOUNT  = itab-sapcode.
        ACCOUNTGL-ITEM_TEXT  = itab-ITEM_TEXT_GL.
        ACCOUNTGL-REF_KEY_1  = itab-REF_KEY_1_GL.
        ACCOUNTGL-REF_KEY_2  = itab-REF_KEY_2_GL.
        ACCOUNTGL-ACCT_TYPE = itab-ACCT_TYPE_GL.
        ACCOUNTGL-BUS_AREA = itab-BUS_AREA_GL.
        ACCOUNTGL-TAX_CODE = itab-TAX_CODE_GL.
        ACCOUNTGL-TAXJURCODE = itab-TAXJURCODE_GL.
        ACCOUNTGL-COSTCENTER = itab-COSTCENTER_GL.
        ACCOUNTGL-PROFIT_CTR = itab-PROFIT_CTR_GL.
        ACCOUNTGL-ORDERID = itab-ORDERID_GL.
        ACCOUNTGL-ASSET_NO = itab-ASSET_NO_GL.
        ACCOUNTGL-SUB_NUMBER = itab-SUB_NUMBER_GL.
        ACCOUNTGL-SALES_ORD = itab-SALES_ORD_GL.
        ACCOUNTGL-S_ORD_ITEM = itab-S_ORD_ITEM_GL.
        ACCOUNTGL-DE_CRE_IND = itab-DE_CRE_IND_GL.
        ACCOUNTGL-QUANTITY = itab-QUANTITY_GL.
        ACCOUNTGL-BASE_UOM = itab-BASE_UOM_GL.
        ACCOUNTGL-MATERIAL = itab-MATERIAL_GL.
        ACCOUNTGL-PO_NUMBER = itab-PO_NUMBER_GL.
        ACCOUNTGL-PO_ITEM = itab-PO_ITEM_GL.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;       Edited by: Varun Mathur on Aug 17, 2009 1:00 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Varun Mathur on Aug 17, 2009 1:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 07:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004559#M1344866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T07:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004560#M1344867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;ACCOUNTRECEIVABLE-ITEMNO_ACC = ITEMNO.
       ACCOUNTRECEIVABLE-CUSTOMER  = itab-sapcode.
        ACCOUNTRECEIVABLE-BUS_AREA  = itab-BUS_AREA_GL.
        ACCOUNTRECEIVABLE-PMNTTRMS  = itab-PMNTTRMS_AP.
        ACCOUNTRECEIVABLE-BLINE_DATE  = itab2-BLINE_DATE_AR.
        ACCOUNTRECEIVABLE-PYMT_METH = itab-PYMT_METH_AR.
        ACCOUNTRECEIVABLE-PMNT_BLOCK = itab-PMNT_BLOCK_AR.
        ACCOUNTRECEIVABLE-BANK_ID = itab-BANK_ID_AR.
        ACCOUNTRECEIVABLE-SP_GL_IND = itab-SP_GL_IND_AR.
        ACCOUNTRECEIVABLE-ALT_PAYEE = itab-ALT_PAYEE_AR.
        ACCOUNTRECEIVABLE-PROFIT_CTR = itab-PROFIT_CTR_GL.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;itemno = itemno + 1.
        ACCOUNTPAYABLE-ITEMNO_ACC = ITEMNO.
        ACCOUNTPAYABLE-VENDOR_NO  = itab-sapcode.
        ACCOUNTPAYABLE-BUS_AREA  = itab-BUS_AREA_GL.
        ACCOUNTPAYABLE-PMNTTRMS  = itab-PMNTTRMS_AP.
        ACCOUNTPAYABLE-ALLOC_NMBR  = itab-ALLOC_NMBR_GL.
        ACCOUNTPAYABLE-SP_GL_IND  = itab-SP_GL_IND_AR.
        ACCOUNTPAYABLE-BLINE_DATE  = itab-BLINE_DATE_AR.
        ACCOUNTPAYABLE-PROFIT_CTR = itab-PROFIT_CTR_GL.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;checking for debit/credit entries - create two entries for different currencies
      if itab-DE_CRE_IND_GL eq 'C'.
        itab-AMT_DOCCUR_DOC = itab-AMT_DOCCUR_DOC * ( -1 ).
        itab-AMT_DOCCUR_LOC = itab-AMT_DOCCUR_LOC * ( -1 ).
      endif.
      CURRENCYAMOUNT-ITEMNO_ACC = ITEMNO.
      CURRENCYAMOUNT-CURR_TYPE  = CURR_TYPE1.
      CURRENCYAMOUNT-CURRENCY  = itab-CURRENCY_CUR.
      CURRENCYAMOUNT-AMT_DOCCUR = itab-AMT_DOCCUR_DOC.
      CURRENCYAMOUNT-EXCH_RATE = itab-EXCH_RATE_CUR.
      Append CURRENCYAMOUNT.
      if itab-CURRENCY_CUR ne w_currency.
        CURRENCYAMOUNT-ITEMNO_ACC = ITEMNO.
        CURRENCYAMOUNT-CURR_TYPE  = CURR_TYPE2.
        CURRENCYAMOUNT-CURRENCY  = w_currency.
        CURRENCYAMOUNT-AMT_DOCCUR = itab-AMT_DOCCUR_LOC.
        CURRENCYAMOUNT-EXCH_RATE = itab-EXCH_RATE_CUR.
        Append CURRENCYAMOUNT.
      endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Witholding Tax
      if ITAB-WT_TYPE_WT &amp;lt;&amp;gt; ''.
        itemno = itemno + 1 .
        ACCOUNTWT-ITEMNO_ACC = ITEMNO.
        ACCOUNTWT-WT_TYPE  = itab-WT_TYPE_WT.
        ACCOUNTWT-WT_CODE  = itab-WT_CODE_WT.
        Append ACCOUNTWT.
      endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 07:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004560#M1344867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T07:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004561#M1344868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This all information you need to pass to the bapi. &lt;/P&gt;&lt;P&gt;Post if you need clarity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 07:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004561#M1344868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T07:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004562#M1344869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt; 
concatenate sy-datum+6(2) '.' sy-datum+4(2) '.' sy-datum+0(4) into lv_date.
concatenate wa_finput-belnr wa_finput-bukrs sy-datum+0(4) 'OR' into lv_awkey.

*--fill_header
    gd_documentheader-comp_code   = wa_finput-BUKRS.
    gd_documentheader-REF_DOC_NO  = wa_finput-BELNR.
    gd_documentheader-DOC_TYPE    = wa_finput-BLART.
    gd_documentheader-pstng_date  = wa_finput-BUDAT.
    gd_documentheader-doc_date    = wa_finput-BLDAT.

    gd_documentheader-BUS_ACT  = 'RFBU'.
    gd_documentheader-OBJ_TYPE = 'BKPF'.
    gd_documentheader-OBJ_KEY  = lv_awkey.
    gd_documentheader-USERNAME = sy-uname.
    gd_documentheader-OBJ_SYS  = sy-mandt.
    gd_documentheader-FISC_YEAR = sy-datum+0(4).

*--fill_accountgl
   LV_LEN = strlen( wa_finput-newko ).
   IF LV_LEN &amp;lt; 5.
       select SINGLE lifnr from lfb1  into lv_lifnr where BUKRS = wa_finput-BUKRS and   pernr = wa_finput-newko.
   ELSE.
     LV_LIFNR = wa_finput-newko.
   ENDIF.

   CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
     EXPORTING
       input        = lv_lifnr
    IMPORTING
      OUTPUT        = lv_lifnr.

   select single AKONT from lfb1 into lv_AKONT where lifnr = lv_lifnr.

   lv_itemno = lv_itemno + 1.

     WA_accountgl-ITEMNO_ACC =    lv_itemno.
     WA_accountgl-item_text      = wa_finput-SGTXT.
      WA_accountgl-vendor_no      = LV_LIFNR.      """vendor and matriculation number
      WA_accountgl-COSTCENTER     = wa_finput-KOSTL.
*      WA_accountgl-GL_ACCOUNT     = lv_AKONT.
      WA_accountgl-ORDERID        = wa_finput-AUFNR.
      WA_accountgl-ALLOC_NMBR     = wa_finput-ZUONR.

      APPEND WA_accountgl TO it_accountgl.


*--fill_account receivable
   WA_accountreceivable-ITEMNO_ACC = lv_itemno.
   WA_accountreceivable-SP_GL_IND  = wa_finput-UMSKZ.
   WA_accountreceivable-BLINE_DATE = wa_finput-ZFBDT.
   append wa_accountreceivable to it_accountreceivable.

select single shkzg from bseg into lv_shkzg
                              where bukrs = wa_finput-bukrs
                              and   bschl = wa_finput-NEWBS.
*--(S = debit, H = credit)
move wa_finput-wrbtr to lv_wrbtr1.
   if lv_shkzg = 'S'.
      move lv_wrbtr1 to lv_WRBTR.
   elseif lv_shkzg = 'H'.
      concatenate '-' lv_wrbtr1 into lv_WRBTR.
   else.

   endif.


wa_ACCOUNTPAYABLE-ITEMNO_ACC = LV_ITEMNO.
wa_ACCOUNTPAYABLE-SP_GL_IND = wa_finput-umskz.
WA_ACCOUNTPAYABLE-BLINE_DATE = wa_finput-ZFBDT.
append wa_ACCOUNTPAYABLE to it_ACCOUNTPAYABLE.

*--fill_currencyamount
    WA_currencyamount-ITEMNO_ACC   = LV_ITEMNO.
    WA_currencyamount-currency     = wa_finput-WAERS.
    WA_currencyamount-amt_doccur   = lv_WRBTR.
    APPEND WA_currencyamount TO it_currencyamount.


 ENDLOOP.

      CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
        EXPORTING
          DOCUMENTHEADER          = gd_documentheader
          CUSTOMERCPD             = gd_customercpd
          CONTRACTHEADER          = gd_fica_hd
*        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
          CURRENCYAMOUNT          = it_currencyamount
*          CRITERIA                = it_criteria
*          VALUEFIELD              = it_valuefield
*          EXTENSION1              = it_ext
          RETURN                  = it_return
*          PAYMENTCARD             = it_paymentcard
*          CONTRACTITEM            = it_fica_it
*          EXTENSION2              = it_ext2
*          REALESTATE              = it_re
*          ACCOUNTWT               = IT_ACCTWT
 .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have written above code...errors are also attached below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in document: BKPF E000000024DM102009OR 500&lt;/P&gt;&lt;P&gt;Incorrect entry in field OBJ_TYPE: BKPF&lt;/P&gt;&lt;P&gt;Required field CUSTOMER was not transferred in parameter ACCOUNTRECEIVABLE&lt;/P&gt;&lt;P&gt;Required field GL_ACCOUNT was not transferred in parameter ACCOUNTGL&lt;/P&gt;&lt;P&gt;Required field VENDOR_NO was not transferred in parameter ACCOUNTPAYABLE&lt;/P&gt;&lt;P&gt;Required field GL_ACCOUNT was not transferred in parameter ACCOUNTGL&lt;/P&gt;&lt;P&gt;Required field VENDOR_NO was not transferred in parameter ACCOUNTPAYABLE&lt;/P&gt;&lt;P&gt;Required field CUSTOMER was not transferred in parameter ACCOUNTRECEIVABLE&lt;/P&gt;&lt;P&gt;Required field VENDOR_NO was not transferred in parameter ACCOUNTPAYABLE&lt;/P&gt;&lt;P&gt;Required field CUSTOMER was not transferred in parameter ACCOUNTRECEIVABLE&lt;/P&gt;&lt;P&gt;Required field GL_ACCOUNT was not transferred in parameter ACCOUNTGL&lt;/P&gt;&lt;P&gt;Required field CUSTOMER was not transferred in parameter ACCOUNTRECEIVABLE&lt;/P&gt;&lt;P&gt;Required field VENDOR_NO was not transferred in parameter ACCOUNTPAYABLE&lt;/P&gt;&lt;P&gt;Required field GL_ACCOUNT was not transferred in parameter ACCOUNTGL&lt;/P&gt;&lt;P&gt;Customer  is not defined in company code DM10&lt;/P&gt;&lt;P&gt;G/L account  is not defined in chart of accounts CADC&lt;/P&gt;&lt;P&gt;Vendor  is not defined in company code DM10&lt;/P&gt;&lt;P&gt;G/L account  is not defined in chart of accounts CADC&lt;/P&gt;&lt;P&gt;Vendor  is not defined in company code DM10&lt;/P&gt;&lt;P&gt;Customer  is not defined in company code DM10&lt;/P&gt;&lt;P&gt;Vendor  is not defined in company code DM10&lt;/P&gt;&lt;P&gt;Customer  is not defined in company code DM10&lt;/P&gt;&lt;P&gt;G/L account  is not defined in chart of accounts CADC&lt;/P&gt;&lt;P&gt;Customer  is not defined in company code DM10&lt;/P&gt;&lt;P&gt;Vendor  is not defined in company code DM10&lt;/P&gt;&lt;P&gt;G/L account  is not defined in chart of accounts CADC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 08:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004562#M1344869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T08:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004563#M1344870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to append all these headers individually. &lt;/P&gt;&lt;P&gt;I have missed out on Append statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also first try to do a posting manually by running se37 and manually enter the information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Varun Mathur on Aug 17, 2009 2:26 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 08:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004563#M1344870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T08:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004564#M1344871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have tried by manually entering in se37...but still dont know...what r the values i m misssing...pls help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 09:03:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004564#M1344871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T09:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004565#M1344872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i tried manually...i have got below errors..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Required field GL_ACCOUNT was not transferred in parameter ACCOUNTGL&lt;/P&gt;&lt;P&gt;Required field GL_ACCOUNT was not transferred in parameter ACCOUNTGL&lt;/P&gt;&lt;P&gt;G/L account  is not defined in chart of accounts CADC&lt;/P&gt;&lt;P&gt;G/L account  is not defined in chart of accounts CADC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to which field shall i enter my gl account and vendor values....because i m getting error with these 2 fields only....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 12:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004565#M1344872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T12:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004566#M1344873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Required field GL_ACCOUNT was not transferred in parameter ACCOUNTGL&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;ACCOUNTGL-GL_ACCOUNT  = w_saknr&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please add this as well. Then check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 13:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-bapi-acc-document-post/m-p/6004566#M1344873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T13:02:22Z</dc:date>
    </item>
  </channel>
</rss>

