<?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: Account post in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940084#M693092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There may be other messages in the return structure. Make sure you look at and address them all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2007 21:55:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-11T21:55:59Z</dc:date>
    <item>
      <title>Account post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940071#M693079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus, &lt;/P&gt;&lt;P&gt;I have created the below program to create accounting document using F-43 and for this I have used BAPI_ACCOUNT_POST, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_input_file occurs 0,&lt;/P&gt;&lt;P&gt;        pos_date(10),&lt;/P&gt;&lt;P&gt;        doc_type(2),&lt;/P&gt;&lt;P&gt;        pos_per(2),&lt;/P&gt;&lt;P&gt;        bukrs(4),&lt;/P&gt;&lt;P&gt;        currency(3),&lt;/P&gt;&lt;P&gt;        doc_date(10),&lt;/P&gt;&lt;P&gt;        pos_key(2),&lt;/P&gt;&lt;P&gt;        glaccount(10),&lt;/P&gt;&lt;P&gt;        amount(16),&lt;/P&gt;&lt;P&gt;        uname(20),&lt;/P&gt;&lt;P&gt;        seq_num(5) type n,&lt;/P&gt;&lt;P&gt;        fis_year(4),&lt;/P&gt;&lt;P&gt;      end of it_input_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: documentheader type BAPIACHE09,&lt;/P&gt;&lt;P&gt;      obj_type       type BAPIACHE09-OBJ_TYPE,&lt;/P&gt;&lt;P&gt;      obj_key        type BAPIACHE09-OBJ_KEY,&lt;/P&gt;&lt;P&gt;      obj_sys        type BAPIACHE09-OBJ_SYS,&lt;/P&gt;&lt;P&gt;      accountgl      like BAPIACGL09 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      ACCOUNTPAYABLE like BAPIACAP09 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      currencyamount like BAPIACCR09 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      return         like BAPIRET2 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      return2        type BAPIRET2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_semfile like RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen  begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_ifname like rlgrap-filename obligatory,&lt;/P&gt;&lt;P&gt;            p_numrec(3) type n default 899.&lt;/P&gt;&lt;P&gt;selection-screen  end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ifname.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'   "allows user to select path/file&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;        program_name  = 'ZFI_POST'&lt;/P&gt;&lt;P&gt;        dynpro_number = syst-dynnr&lt;/P&gt;&lt;P&gt;        field_name    =  'p_ifname'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;        file_name     = p_ifname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform open_files.&lt;/P&gt;&lt;P&gt;  perform load_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  open_files&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM open_files .&lt;/P&gt;&lt;P&gt;  v_semfile = p_ifname.&lt;/P&gt;&lt;P&gt;  refresh it_input_file.&lt;/P&gt;&lt;P&gt;  call function 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = v_semfile&lt;/P&gt;&lt;P&gt;      filetype                = 'DAT'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = it_input_file&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      conversion_error        = 1&lt;/P&gt;&lt;P&gt;      file_open_error         = 2&lt;/P&gt;&lt;P&gt;      file_read_error         = 3&lt;/P&gt;&lt;P&gt;      invalid_type            = 4&lt;/P&gt;&lt;P&gt;      no_batch                = 5&lt;/P&gt;&lt;P&gt;      unknown_error           = 6&lt;/P&gt;&lt;P&gt;      invalid_table_width     = 7&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer = 8&lt;/P&gt;&lt;P&gt;      customer_error          = 9&lt;/P&gt;&lt;P&gt;      others                  = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " open_files&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  load_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM load_data .&lt;/P&gt;&lt;P&gt;  loop at it_input_file.&lt;/P&gt;&lt;P&gt;    move:&lt;/P&gt;&lt;P&gt;      it_input_file-doc_date to documentheader-doc_date,&lt;/P&gt;&lt;P&gt;      it_input_file-pos_date to documentheader-pstng_date,&lt;/P&gt;&lt;P&gt;      it_input_file-doc_type  to documentheader-doc_type,&lt;/P&gt;&lt;P&gt;      it_input_file-bukrs     to documentheader-comp_code,&lt;/P&gt;&lt;P&gt;      it_input_file-pos_per   to documentheader-fis_period,&lt;/P&gt;&lt;P&gt;      it_input_file-fis_year  to documentheader-fisc_year,&lt;/P&gt;&lt;P&gt;      it_input_file-uname     to documentheader-USERNAME.&lt;/P&gt;&lt;P&gt;    move: it_input_file-glaccount to ACCOUNTGL-VENDOR_NO.&lt;/P&gt;&lt;P&gt;    move: it_input_file-pos_key to ACCOUNTGL-ACCT_KEY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; move: it_input_file-amount to ACCOUNTPAYABLE-PYMT_AMT.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    move: it_input_file-currency  to currencyamount-CURRENCY,&lt;/P&gt;&lt;P&gt;          it_input_file-amount    to currencyamount-AMT_DOCCUR .&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 = documentheader&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        OBJ_TYPE       = obj_type&lt;/P&gt;&lt;P&gt;        OBJ_KEY        = obj_key&lt;/P&gt;&lt;P&gt;        OBJ_SYS        = obj_sys&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        ACCOUNTGL      = accountgl&lt;/P&gt;&lt;P&gt;        ACCOUNTPAYABLE = ACCOUNTPAYABLE&lt;/P&gt;&lt;P&gt;        CURRENCYAMOUNT = currencyamount&lt;/P&gt;&lt;P&gt;        RETURN         = return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    WAIT          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       RETURN        = return2.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " load_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My input file looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11102007	KR 6 1000	USD 11102007 31	A1 1000 test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when I tried to run this program in debug mode, the Return statement returns the following values:&lt;/P&gt;&lt;P&gt;E   |RW     |609   |Error in document: BKPFF $ DE1CLNT150 &lt;/P&gt;&lt;P&gt;E   |RW   &amp;lt;015FI/CO interface: Inconsistent FI/CO document header data for updating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please help me how to get this thing resolve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 20:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940071#M693079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T20:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Account post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940072#M693080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uploading a file and using those entries adds unneeded complexity for testing. You don't know whether the error is in your file, the internal table ot the BAPI call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try hardcoding the values you think should be there into the BAPI call. This will give you some idea of where the problem lies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 20:56:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940072#M693080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T20:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Account post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940073#M693081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the reply Rob, can you please help me out by giving me an example for F-43 using BAPI_ACCOUNT_POST, I will really appreciate your time and efforts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 20:58:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940073#M693081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T20:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Account post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940074#M693082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start by using the values from your file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940074#M693082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Account post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940075#M693083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So basically you want to hard code the values and then try running the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok I will do so .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:03:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940075#M693083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Account post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940076#M693084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - that's what I would do. When you have a problem, before you can solve it, you have to identify where the problem is. If you hardcode your values and still get the error, the problem is in the BAPI call, if you get no error (or a different one), the problem is in the file or internal table. It's a process of elimination, but easier than trying to do it all at once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:09:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940076#M693084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Account post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940077#M693085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey thanks again for the reply....I have modified my code a lil bit :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at it_input_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      move:  '10112007' to documentheader-doc_date,&lt;/P&gt;&lt;P&gt;                '10112007' to documentheader-pstng_date,&lt;/P&gt;&lt;P&gt;                 'KR'         to documentheader-doc_type,&lt;/P&gt;&lt;P&gt;                '1000'       to documentheader-comp_code,&lt;/P&gt;&lt;P&gt;                '6'            to documentheader-fis_period,&lt;/P&gt;&lt;P&gt;               'TEST'      to documentheader-USERNAME.&lt;/P&gt;&lt;P&gt;       move:  'V1'       to ACCOUNTGL-VENDOR_NO.&lt;/P&gt;&lt;P&gt;       move:  '31'       to ACCOUNTGL-ACCT_KEY.&lt;/P&gt;&lt;P&gt;      move: 'USD'       to currencyamount-CURRENCY,&lt;/P&gt;&lt;P&gt;            '1000'      to currencyamount-AMT_DOCCUR .  &lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have a small question to offset the above entry I need to pass an entry with posting key '21', can you please tell me how to take care of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:14:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940077#M693085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Account post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940078#M693086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to fill the accountgl structure, but before doing that, has your error disappeared?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940078#M693086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Account post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940079#M693087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not yet.... I have modified my code like this:&lt;/P&gt;&lt;P&gt;data: begin of it_input_file occurs 0,&lt;/P&gt;&lt;P&gt;        pos_date(10),&lt;/P&gt;&lt;P&gt;        doc_type(2),&lt;/P&gt;&lt;P&gt;        pos_per(2),&lt;/P&gt;&lt;P&gt;        bukrs(4),&lt;/P&gt;&lt;P&gt;        currency(3),&lt;/P&gt;&lt;P&gt;        doc_date(10),&lt;/P&gt;&lt;P&gt;        pos_key(2),&lt;/P&gt;&lt;P&gt;        glaccount(10),&lt;/P&gt;&lt;P&gt;        amount(16),&lt;/P&gt;&lt;P&gt;        uname(20),&lt;/P&gt;&lt;P&gt;        seq_num(5) type n,&lt;/P&gt;&lt;P&gt;        fis_year(4),&lt;/P&gt;&lt;P&gt;      end of it_input_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: documentheader type BAPIACHE09,&lt;/P&gt;&lt;P&gt;      obj_type       type BAPIACHE09-OBJ_TYPE,&lt;/P&gt;&lt;P&gt;      obj_key        type BAPIACHE09-OBJ_KEY,&lt;/P&gt;&lt;P&gt;      obj_sys        type BAPIACHE09-OBJ_SYS,&lt;/P&gt;&lt;P&gt;      accountgl      like BAPIACGL09 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      ACCOUNTPAYABLE like BAPIACAP09 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      currencyamount like BAPIACCR09 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      return         like BAPIRET2 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      return2        type BAPIRET2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform load_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      move:  '10112007' to documentheader-doc_date,&lt;/P&gt;&lt;P&gt;             '10112007' to documentheader-pstng_date,&lt;/P&gt;&lt;P&gt;             'KR'       to documentheader-doc_type,&lt;/P&gt;&lt;P&gt;             '1000'     to documentheader-comp_code,&lt;/P&gt;&lt;P&gt;             '6'        to documentheader-fis_period,&lt;/P&gt;&lt;P&gt;             'TEST'     to documentheader-USERNAME.&lt;/P&gt;&lt;P&gt;      move:  'V1'       to ACCOUNTGL-VENDOR_NO.&lt;/P&gt;&lt;P&gt;      move:  '21'       to ACCOUNTGL-ACCT_KEY.&lt;/P&gt;&lt;P&gt;      move: 'USD'       to currencyamount-CURRENCY,&lt;/P&gt;&lt;P&gt;            '1000'      to currencyamount-AMT_DOCCUR .&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;/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 = documentheader&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        OBJ_TYPE       = obj_type&lt;/P&gt;&lt;P&gt;        OBJ_KEY        = obj_key&lt;/P&gt;&lt;P&gt;        OBJ_SYS        = obj_sys&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        ACCOUNTGL      = accountgl&lt;/P&gt;&lt;P&gt;        ACCOUNTPAYABLE = ACCOUNTPAYABLE&lt;/P&gt;&lt;P&gt;        CURRENCYAMOUNT = currencyamount&lt;/P&gt;&lt;P&gt;        RETURN         = return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    WAIT          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       RETURN        = return2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am getting the same set of errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in document: BKPFF $ CLNT150&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FI/CO interface: Inconsistent FI/CO document header data for updating&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:28:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940079#M693087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Account post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940080#M693088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it looks like the problem is with this bit of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;move: '10112007' to documentheader-doc_date,
'10112007' to documentheader-pstng_date,
'KR' to documentheader-doc_type,
'1000' to documentheader-comp_code,
'6' to documentheader-fis_period,
'TEST' to documentheader-USERNAME.
move: 'V1' to ACCOUNTGL-VENDOR_NO.
move: '21' to ACCOUNTGL-ACCT_KEY.
move: 'USD' to currencyamount-CURRENCY,
'1000' to currencyamount-AMT_DOCCUR .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try moving sy-datum to the posting date and sy-uname to the username.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:35:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940080#M693088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Account post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940081#M693089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried doing that but I got the same error message........I am kind of stuck and I need to submit this thing tomorrow ...:(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940081#M693089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Account post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940082#M693090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK - I think I see the problem. You are not supplying documentheader-bus_act. You should check the documentation for the BAPI to see what you should be using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe 'RFBU'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940082#M693090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Account post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940083#M693091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to tell you BOB, problem is still unresolved. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:51:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940083#M693091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Account post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940084#M693092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There may be other messages in the return structure. Make sure you look at and address them all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940084#M693092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Account post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940085#M693093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there were only these messages, but I have one more concern while I was looking into table 'ACCOUNTPAYABLE', although I passed the vendor no. i.e. B1 but I couldn't see anything when I checked it in the debugging mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/account-post/m-p/2940085#M693093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:58:27Z</dc:date>
    </item>
  </channel>
</rss>

