<?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: POSTING_INTERFACE_DOCUMENT for FBS! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418329#M201080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL FUNCTION 'POSTING_INTERFACE_START&amp;#145;
	EXPORTING
	   i_function			= 'C'
	   i_mode			= pc_mode &amp;#147; A, N o E
	   i_user			= sy-uname.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;POSTING_INTERFACE_DOCUMENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'POSTING_INTERFACE_END'  
     EXPORTING                         
	I_BDCIMMED	= 'X'.           &amp;#147;run inmediatly&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2006 13:05:35 GMT</pubDate>
    <dc:creator>LucianoBentiveg</dc:creator>
    <dc:date>2006-06-22T13:05:35Z</dc:date>
    <item>
      <title>POSTING_INTERFACE_DOCUMENT for FBS!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418320#M201071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've written a program to simulate transaction FBS1 using&lt;/P&gt;&lt;P&gt;FUNCTION 'POSTING_INTERFACE_DOCUMENT', it goes through with sy-subrc set 0, but I cannot see the document number in  T_BLNTAB, the code is below, I think I have all the right Parameters.&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: i_msgid LIKE sy-msgid,&lt;/P&gt;&lt;P&gt;      i_msgno LIKE sy-msgno,&lt;/P&gt;&lt;P&gt;      i_msgty LIKE sy-msgty,&lt;/P&gt;&lt;P&gt;      i_msgv1 LIKE sy-msgv1,&lt;/P&gt;&lt;P&gt;      i_msgv2 LIKE sy-msgv2,&lt;/P&gt;&lt;P&gt;      i_msgv3 LIKE sy-msgv3,&lt;/P&gt;&lt;P&gt;      i_msgv4 LIKE sy-msgv4,&lt;/P&gt;&lt;P&gt;      i_subrc LIKE sy-subrc.&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: ftpost LIKE ftpost  OCCURS 0  WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      fttax  LIKE fttax   OCCURS 1  WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      blntab LIKE blntab  OCCURS 1  WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;blntab-BELNR =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*blntab-BUKRS = 2000.&lt;/P&gt;&lt;P&gt;*blntab-GJAHR =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Header Information first&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ftpost-stype ='K'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BKPF-BLDAT'.&lt;/P&gt;&lt;P&gt;ftpost-fval = '310506'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='K'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BKPF-BLART'.&lt;/P&gt;&lt;P&gt;ftpost-fval = 'SA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='K'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BKPF-BUKRS' .&lt;/P&gt;&lt;P&gt;ftpost-fval = '2000'  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='K'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BKPF-BUDAT' .&lt;/P&gt;&lt;P&gt;ftpost-fval =   '310506' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='K'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BKPF-WAERS' .&lt;/P&gt;&lt;P&gt;ftpost-fval =   'GBP' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='K'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BKPF-XBLNR ' .&lt;/P&gt;&lt;P&gt;ftpost-fval =   'ACCRUAL POST' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='K'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BKPF-STGRD' .&lt;/P&gt;&lt;P&gt;ftpost-fval =  '05' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='K'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BKPF-STODT' .&lt;/P&gt;&lt;P&gt;ftpost-fval =  '010606'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='K'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'FS006-DOCID' .&lt;/P&gt;&lt;P&gt;ftpost-fval =  '*'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='K'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'RF05A-NEWBS' .&lt;/P&gt;&lt;P&gt;ftpost-fval =  '40'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='K'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'RF05A-NEWKO' .&lt;/P&gt;&lt;P&gt;ftpost-fval =   '476000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Line Items Now&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BSEG-WRBTR' .&lt;/P&gt;&lt;P&gt;ftpost-fval =     '5000' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BSEG-MWSKZ' .&lt;/P&gt;&lt;P&gt;ftpost-fval =    'v0' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BSEG-SGTXT' .&lt;/P&gt;&lt;P&gt;ftpost-fval =  'pallet of photo paper' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BDC_SUBSCR' .&lt;/P&gt;&lt;P&gt;ftpost-fval =  'SAPLKACB' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'DKACB-FMORE' .&lt;/P&gt;&lt;P&gt;ftpost-fval =    'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'COBL-KOSTL' .&lt;/P&gt;&lt;P&gt;ftpost-fval =    '2-1000 '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'COBL-FIPOS ' .&lt;/P&gt;&lt;P&gt;ftpost-fval =    ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BSEG-DMBE2' .&lt;/P&gt;&lt;P&gt;ftpost-fval =  '70.42' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'RF05A-NEWBS' .&lt;/P&gt;&lt;P&gt;ftpost-fval =      '40'  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 1.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'RF05A-NEWKO' .&lt;/P&gt;&lt;P&gt;ftpost-fval =   '417000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Item no. 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 2.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BSEG-WRBTR' .&lt;/P&gt;&lt;P&gt;ftpost-fval =    '500' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 2.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BSEG-MWSKZ' .&lt;/P&gt;&lt;P&gt;ftpost-fval =    'V0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 2.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BSEG-SGTXT' .&lt;/P&gt;&lt;P&gt;ftpost-fval =    'marketing assistants'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 2.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'DKACB-FMORE' .&lt;/P&gt;&lt;P&gt;ftpost-fval =  'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 2.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'COBL-AUFNR' .&lt;/P&gt;&lt;P&gt;ftpost-fval =  ' 400157 '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 2.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BSEG-DMBE2' .&lt;/P&gt;&lt;P&gt;ftpost-fval =  '7.04'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 2.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'RF05A-NEWBS' .&lt;/P&gt;&lt;P&gt;ftpost-fval =  '50' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 2.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'RF05A-NEWKO' .&lt;/P&gt;&lt;P&gt;ftpost-fval =  '89000' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Next Line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 3.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BSEG-WRBTR' .&lt;/P&gt;&lt;P&gt;ftpost-fval =   '5500'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 3.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BSEG-MWSKZ' .&lt;/P&gt;&lt;P&gt;ftpost-fval =   'V0' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 3.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BSEG-SGTXT'  .&lt;/P&gt;&lt;P&gt;ftpost-fval =   'accrual posting bala' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Next Line&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 4.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BSEG-WRBTR' .&lt;/P&gt;&lt;P&gt;ftpost-fval =   '5500'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 4.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BSEG-MWSKZ' .&lt;/P&gt;&lt;P&gt;ftpost-fval =  'V0' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 4.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'BSEG-SGTXT' .&lt;/P&gt;&lt;P&gt;ftpost-fval =  'accrual posting bala' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftpost-stype ='P'.&lt;/P&gt;&lt;P&gt;ftpost-count = 4.&lt;/P&gt;&lt;P&gt;ftpost-fnam = 'COBL-GSBER ' .&lt;/P&gt;&lt;P&gt;ftpost-fval =   '1000'   .&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 'POSTING_INTERFACE_DOCUMENT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    i_tcode                        = 'FBS1'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_SGFUNCT                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_NO_AUTH                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;    e_msgid                  = i_msgid&lt;/P&gt;&lt;P&gt;    e_msgno                  = i_msgno&lt;/P&gt;&lt;P&gt;    e_msgty                  = i_msgty&lt;/P&gt;&lt;P&gt;    e_msgv1                  = i_msgv1&lt;/P&gt;&lt;P&gt;    e_msgv2                  = i_msgv2&lt;/P&gt;&lt;P&gt;    e_msgv3                  = i_msgv3&lt;/P&gt;&lt;P&gt;    e_msgv4                  = i_msgv4&lt;/P&gt;&lt;P&gt;    e_subrc                  = i_subrc&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    t_blntab                 = blntab&lt;/P&gt;&lt;P&gt;    t_ftpost                 = ftpost&lt;/P&gt;&lt;P&gt;    t_fttax                  = fttax&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;      account_missing          = 1&lt;/P&gt;&lt;P&gt;      company_code_missing     = 2&lt;/P&gt;&lt;P&gt;      posting_key_invalid      = 3&lt;/P&gt;&lt;P&gt;      posting_key_missing      = 4&lt;/P&gt;&lt;P&gt;      record_type_invalid      = 5&lt;/P&gt;&lt;P&gt;      transaction_code_invalid = 6&lt;/P&gt;&lt;P&gt;      amount_format_error      = 7&lt;/P&gt;&lt;P&gt;      too_many_line_items      = 8&lt;/P&gt;&lt;P&gt;      OTHERS                   = 9.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas anyone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks Sims&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 11:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418320#M201071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T11:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: POSTING_INTERFACE_DOCUMENT for FBS!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418321#M201072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sims,&lt;/P&gt;&lt;P&gt;Make the highlighted change:&lt;/P&gt;&lt;P&gt;Pass 'C' to I_SGFUNCT ( To tell that we are doing a call transaction)&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POSTING_INTERFACE_DOCUMENT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_tcode = 'FBS1'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;I_SGFUNCT = 'C'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_NO_AUTH = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;e_msgid = i_msgid&lt;/P&gt;&lt;P&gt;e_msgno = i_msgno&lt;/P&gt;&lt;P&gt;e_msgty = i_msgty&lt;/P&gt;&lt;P&gt;e_msgv1 = i_msgv1&lt;/P&gt;&lt;P&gt;e_msgv2 = i_msgv2&lt;/P&gt;&lt;P&gt;e_msgv3 = i_msgv3&lt;/P&gt;&lt;P&gt;e_msgv4 = i_msgv4&lt;/P&gt;&lt;P&gt;e_subrc = i_subrc&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_blntab = blntab&lt;/P&gt;&lt;P&gt;t_ftpost = ftpost&lt;/P&gt;&lt;P&gt;t_fttax = fttax&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;account_missing = 1&lt;/P&gt;&lt;P&gt;company_code_missing = 2&lt;/P&gt;&lt;P&gt;posting_key_invalid = 3&lt;/P&gt;&lt;P&gt;posting_key_missing = 4&lt;/P&gt;&lt;P&gt;record_type_invalid = 5&lt;/P&gt;&lt;P&gt;transaction_code_invalid = 6&lt;/P&gt;&lt;P&gt;amount_format_error = 7&lt;/P&gt;&lt;P&gt;too_many_line_items = 8&lt;/P&gt;&lt;P&gt;OTHERS = 9.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 12:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418321#M201072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T12:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: POSTING_INTERFACE_DOCUMENT for FBS!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418322#M201073</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;Made that change, and I put in the append statement for the ITAB, but now getting&lt;/P&gt;&lt;P&gt;                                                                                Two accounts were transferred but not BSEG-HKONT                                                                                &lt;/P&gt;&lt;P&gt;Message no. F8 020                                                                                &lt;/P&gt;&lt;P&gt;Diagnosis                                                                                &lt;/P&gt;&lt;P&gt;Two accounts were transferred but not BSEG-HKONT.                                                                                &lt;/P&gt;&lt;P&gt;This error also occurs if more than 1000 line items are transferred. In  &lt;/P&gt;&lt;P&gt;    this case, the transferred data must be distributed across several       &lt;/P&gt;&lt;P&gt;    documents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 12:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418322#M201073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T12:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: POSTING_INTERFACE_DOCUMENT for FBS!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418323#M201074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you call FM 'POSTING_INTERFACE_START', try to pass 'A' to parameter i_mode, run visible mode, and see what is wrong.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 12:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418323#M201074</guid>
      <dc:creator>LucianoBentiveg</dc:creator>
      <dc:date>2006-06-22T12:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: POSTING_INTERFACE_DOCUMENT for FBS!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418324#M201075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where is I_mode, can't see that parameter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 12:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418324#M201075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T12:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: POSTING_INTERFACE_DOCUMENT for FBS!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418325#M201076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sims,&lt;/P&gt;&lt;P&gt; Is the code you have presented inside a loop?&lt;/P&gt;&lt;P&gt;Is this the whole code or you missed something to post here?&lt;/P&gt;&lt;P&gt;Call the funct module one per each loop instead of calling it after the loop.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 12:29:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418325#M201076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T12:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: POSTING_INTERFACE_DOCUMENT for FBS!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418326#M201077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not inside a loop, it's is a simple test to see if I can input values before I do that using this method.&lt;/P&gt;&lt;P&gt;This is the whole code, as I run it, Am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't know what you mean by calling it once for each loop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Sims&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 12:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418326#M201077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T12:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: POSTING_INTERFACE_DOCUMENT for FBS!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418327#M201078</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;Is there an example somewhere which has code?&lt;/P&gt;&lt;P&gt;Do I have to use :&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POSTING_INTERFACE_START'&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POSTING_INTERFACE_END'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAny Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 12:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418327#M201078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T12:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: POSTING_INTERFACE_DOCUMENT for FBS!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418328#M201079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION POSTING_INTERFACE_START.
*"----------------------------------------------------------------------
*"Globale Schnittstelle:
*"       IMPORTING
*"             I_CLIENT LIKE SY-MANDT DEFAULT SY-MANDT
*"             I_FUNCTION LIKE RFIPI-FUNCT
*"             I_GROUP LIKE APQI-GROUPID DEFAULT SPACE
*"             I_HOLDDATE LIKE APQI-STARTDATE DEFAULT SPACE
*"             I_KEEP LIKE APQI-QERASE DEFAULT SPACE
*"       &amp;lt;b&amp;gt;      I_MODE LIKE RFPDO-ALLGAZMD DEFAULT 'N'&amp;lt;/b&amp;gt;
*"             I_UPDATE LIKE RFPDO-ALLGVBMD DEFAULT 'S'
*"             I_USER LIKE APQI-USERID DEFAULT SPACE
*"             I_XBDCC LIKE RFIPI-XBDCC DEFAULT SPACE
*"       EXCEPTIONS
*"             CLIENT_INCORRECT
*"             FUNCTION_INVALID
*"             GROUP_NAME_MISSING
*"             MODE_INVALID
*"             UPDATE_INVALID
*"----------------------------------------------------------------------&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to add FM POSTING_INTERFACE_START before POSTING_INTERFACE_DOCUMENT and POSTING_INTERFACE_END after.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 12:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418328#M201079</guid>
      <dc:creator>LucianoBentiveg</dc:creator>
      <dc:date>2006-06-22T12:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: POSTING_INTERFACE_DOCUMENT for FBS!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418329#M201080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL FUNCTION 'POSTING_INTERFACE_START&amp;#145;
	EXPORTING
	   i_function			= 'C'
	   i_mode			= pc_mode &amp;#147; A, N o E
	   i_user			= sy-uname.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;POSTING_INTERFACE_DOCUMENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'POSTING_INTERFACE_END'  
     EXPORTING                         
	I_BDCIMMED	= 'X'.           &amp;#147;run inmediatly&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 13:05:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418329#M201080</guid>
      <dc:creator>LucianoBentiveg</dc:creator>
      <dc:date>2006-06-22T13:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: POSTING_INTERFACE_DOCUMENT for FBS!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418330#M201081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;this is what I have at the momment, but I still get the error message&lt;/P&gt;&lt;P&gt;                                                                                &amp;lt;i&amp;gt; Two accounts were transferred but not BSEG-HKONT                                                                                &lt;/P&gt;&lt;P&gt;Message no. F8 020                                                      &lt;/P&gt;&lt;P&gt;        &amp;lt;/i&amp;gt;                                                                     &lt;/P&gt;&lt;P&gt; Diagnosis                                                                                &lt;/P&gt;&lt;P&gt;Two accounts were transferred but not BSEG-HKONT.                                                                                &lt;/P&gt;&lt;P&gt;This error also occurs if more than 1000 line items are transferred. In &lt;/P&gt;&lt;P&gt;     this case, the transferred data must be distributed across several      &lt;/P&gt;&lt;P&gt;     documents.                                                              &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; Report  Zrep1                                                 *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&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;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&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;&lt;/P&gt;&lt;P&gt;REPORT  zstaccrual                    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;obj_type LIKE bapiache02-obj_type,&lt;/P&gt;&lt;P&gt;obj_key LIKE bapiache02-obj_key,&lt;/P&gt;&lt;P&gt;obj_sys LIKE bapiache02-obj_sys,&lt;/P&gt;&lt;P&gt;documentheader LIKE bapiache08,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl LIKE bapiacgl08&lt;/P&gt;&lt;P&gt;OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;currencyamount LIKE bapiaccr08&lt;/P&gt;&lt;P&gt;OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;return LIKE bapiret2&lt;/P&gt;&lt;P&gt;OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;extension1 LIKE bapiextc&lt;/P&gt;&lt;P&gt;OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_edidd LIKE edidd OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;bapi_retn_info LIKE bapiret2 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: error_flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*documentheader-obj_key =  '000000000100000038'.&lt;/P&gt;&lt;P&gt;documentheader-obj_type = 'BKPFF'.&lt;/P&gt;&lt;P&gt;documentheader-obj_sys = 'RD1CLNT200'.&lt;/P&gt;&lt;P&gt;documentheader-username = sy-uname.&lt;/P&gt;&lt;P&gt;documentheader-doc_date = '310506'.&lt;/P&gt;&lt;P&gt;documentheader-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;documentheader-comp_code = 2000.&lt;/P&gt;&lt;P&gt;documentheader-pstng_date = '310506'.&lt;/P&gt;&lt;P&gt;documentheader-ref_doc_no = 'Accrual Post'.&lt;/P&gt;&lt;P&gt;documentheader-reason_rev = '05'.&lt;/P&gt;&lt;P&gt;documentheader-ac_doc_no = 476000.&lt;/P&gt;&lt;P&gt;documentheader-obj_key = 40.&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;&lt;/P&gt;&lt;P&gt;*documentheader-ac_doc_no&lt;/P&gt;&lt;P&gt;*documentheader-fisc_year = '2005'.&lt;/P&gt;&lt;P&gt;*documentheader-trans_date&lt;/P&gt;&lt;P&gt;*documentheader-fis_period&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;documentheader-doc_type = 'SA'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*documentheader-ref_doc_no&lt;/P&gt;&lt;P&gt;*documentheader-compo_acc&lt;/P&gt;&lt;P&gt;*documentheader-reason_rev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl-itemno_acc = '1'.&lt;/P&gt;&lt;P&gt;accountgl-gl_account = '0000476000'.&lt;/P&gt;&lt;P&gt;accountgl-comp_code = '2000'.&lt;/P&gt;&lt;P&gt;accountgl-pstng_date = '20060506'.&lt;/P&gt;&lt;P&gt;accountgl-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;accountgl-profit_ctr = '2-1000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*accountgl-&lt;/P&gt;&lt;P&gt;APPEND accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl-itemno_acc = '2'.&lt;/P&gt;&lt;P&gt;accountgl-gl_account = '0000476000'.&lt;/P&gt;&lt;P&gt;accountgl-comp_code = '2000'.&lt;/P&gt;&lt;P&gt;accountgl-pstng_date = '20060506'.&lt;/P&gt;&lt;P&gt;accountgl-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;accountgl-profit_ctr = '2-1000'.&lt;/P&gt;&lt;P&gt;*accountgl-&lt;/P&gt;&lt;P&gt;APPEND accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl-itemno_acc = '3'.&lt;/P&gt;&lt;P&gt;accountgl-gl_account = '0000417000'.&lt;/P&gt;&lt;P&gt;accountgl-comp_code = '2000'.&lt;/P&gt;&lt;P&gt;accountgl-pstng_date = '20060506'.&lt;/P&gt;&lt;P&gt;accountgl-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;accountgl-profit_ctr = '0000400157'.&lt;/P&gt;&lt;P&gt;APPEND accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl-itemno_acc = '4'.&lt;/P&gt;&lt;P&gt;accountgl-gl_account = '0000417000'.&lt;/P&gt;&lt;P&gt;accountgl-comp_code = '2000'.&lt;/P&gt;&lt;P&gt;accountgl-pstng_date = '20060506'.&lt;/P&gt;&lt;P&gt;accountgl-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;accountgl-profit_ctr = '0000400157'.&lt;/P&gt;&lt;P&gt;APPEND accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*AC_DOC_NO&lt;/P&gt;&lt;P&gt;*FISC_YEAR&lt;/P&gt;&lt;P&gt;*FIS_PERIOD&lt;/P&gt;&lt;P&gt;*accountgl-STAT_CON = 'X'.&lt;/P&gt;&lt;P&gt;*REF_KEY_1&lt;/P&gt;&lt;P&gt;*REF_KEY_2&lt;/P&gt;&lt;P&gt;*REF_KEY_3&lt;/P&gt;&lt;P&gt;*CUSTOMER&lt;/P&gt;&lt;P&gt;*VENDOR_NO&lt;/P&gt;&lt;P&gt;*ALLOC_NMBR&lt;/P&gt;&lt;P&gt;*ITEM_TEXT&lt;/P&gt;&lt;P&gt;*BUS_AREA&lt;/P&gt;&lt;P&gt;*COSTCENTER&lt;/P&gt;&lt;P&gt;*ACTTYPE&lt;/P&gt;&lt;P&gt;*ORDERID&lt;/P&gt;&lt;P&gt;*ORIG_GROUP&lt;/P&gt;&lt;P&gt;*COST_OBJ&lt;/P&gt;&lt;P&gt;*PROFIT_CTR&lt;/P&gt;&lt;P&gt;*PART_PRCTR&lt;/P&gt;&lt;P&gt;*WBS_ELEMENT&lt;/P&gt;&lt;P&gt;*NETWORK&lt;/P&gt;&lt;P&gt;*ROUTING_NO&lt;/P&gt;&lt;P&gt;*ORDER_ITNO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currencyamount-itemno_acc = '1'.&lt;/P&gt;&lt;P&gt;currencyamount-currency = 'EUR'.&lt;/P&gt;&lt;P&gt;currencyamount-amt_doccur = '5000.00'.&lt;/P&gt;&lt;P&gt;APPEND currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currencyamount-itemno_acc = '2'.&lt;/P&gt;&lt;P&gt;currencyamount-currency = 'EUR'.&lt;/P&gt;&lt;P&gt;currencyamount-amt_doccur = '-5000.00'.&lt;/P&gt;&lt;P&gt;APPEND currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currencyamount-itemno_acc = '3'.&lt;/P&gt;&lt;P&gt;currencyamount-currency = 'EUR'.&lt;/P&gt;&lt;P&gt;currencyamount-amt_doccur = '-500.00'.&lt;/P&gt;&lt;P&gt;APPEND currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currencyamount-itemno_acc = '4'.&lt;/P&gt;&lt;P&gt;currencyamount-currency = 'EUR'.&lt;/P&gt;&lt;P&gt;currencyamount-amt_doccur = '-500.00'.&lt;/P&gt;&lt;P&gt;APPEND currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;call BAPI-function in this system&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;documentheader = documentheader&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;importing&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;obj_type = obj_type&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;obj_key = obj_key&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;obj_sys = obj_sys&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;accountgl = accountgl&lt;/P&gt;&lt;P&gt;currencyamount = currencyamount&lt;/P&gt;&lt;P&gt;return = return&lt;/P&gt;&lt;P&gt;extension1 = extension1&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 1.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE e999(re) WITH 'Problem occured'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  LOOP AT return.&lt;/P&gt;&lt;P&gt;    IF NOT return IS INITIAL.&lt;/P&gt;&lt;P&gt;      CLEAR bapi_retn_info.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING return TO bapi_retn_info.&lt;/P&gt;&lt;P&gt;      IF return-type = 'A' OR return-type = 'E'.&lt;/P&gt;&lt;P&gt;        error_flag = 'X'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      APPEND bapi_retn_info.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  IF error_flag = 'X'.&lt;/P&gt;&lt;P&gt;    MESSAGE e999(re) WITH 'Problem occured'.&lt;/P&gt;&lt;P&gt;    ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   COMMIT WORK.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 13:31:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-document-for-fbs/m-p/1418330#M201081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T13:31:39Z</dc:date>
    </item>
  </channel>
</rss>

