<?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: function 'POSTING_INTERFACE_DOCUMENT' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-posting-interface-document/m-p/1401205#M193934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;are you sure, because one of the parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      t_blntab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives back an Itab of all the documents it created, otherwise it would be just 1 value.&lt;/P&gt;&lt;P&gt;My data is fine, what I have is 2 headers and then 2 line items in each, when I delete one set, and run the program, it is fine, then I deleted the other set and it was fine, but when I try it with both sets, it comes back with an error message, like it see one or some of the lines, any ideas?&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, 29 Jun 2006 21:27:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-29T21:27:10Z</dc:date>
    <item>
      <title>function 'POSTING_INTERFACE_DOCUMENT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-posting-interface-document/m-p/1401200#M193929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using this function , and I have got it to work, but what I am now trying to do is add multiple lines and headers to the Internal table  FTPOST, being passed into the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I enter it at the momment is like below and it does not work, how do I match the Headers to the line items, I understand that the headers have a type 'K'&lt;/P&gt;&lt;P&gt;and the line items type'P'. And each has a counter,&lt;/P&gt;&lt;P&gt;Do I increment the line counter for new headers or not, please see how I have doen it, which does not seem to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  1  STYPE COUNT FNAM            &lt;/P&gt;&lt;P&gt;    P    |004  |BSEG-SGTXT       &lt;/P&gt;&lt;P&gt;  1 K    |001  |BKPF-BLDAT       &lt;/P&gt;&lt;P&gt;  2 K    |001  |BKPF-BLART       &lt;/P&gt;&lt;P&gt;  3 K    |001  |BKPF-BUKRS       &lt;/P&gt;&lt;P&gt;  4 K    |001  |BKPF-BUDAT       &lt;/P&gt;&lt;P&gt;  5 K    |001  |BKPF-WAERS       &lt;/P&gt;&lt;P&gt;  6 K    |001  |BKPF-XBLNR       &lt;/P&gt;&lt;P&gt;  7 K    |001  |BKPF-STGRD       &lt;/P&gt;&lt;P&gt;  8 K    |001  |BKPF-STODT       &lt;/P&gt;&lt;P&gt;  9 K    |001  |FS006-DOCID      &lt;/P&gt;&lt;P&gt; 10 P    |001  |RF05A-NEWBS      &lt;/P&gt;&lt;P&gt; 11 P    |001  |BSEG-HKONT       &lt;/P&gt;&lt;P&gt; 12 P    |001  |BSEG-WRBTR       &lt;/P&gt;&lt;P&gt; 13 P    |001  |BSEG-MWSKZ       &lt;/P&gt;&lt;P&gt; 14 P    |001  |BSEG-ZUONR       &lt;/P&gt;&lt;P&gt; 15 P    |001  |BSEG-SGTXT       &lt;/P&gt;&lt;P&gt; 16 P    |001  |BDC_SUBSCR       &lt;/P&gt;&lt;P&gt; 17 P    |001  |DKACB-FMORE      &lt;/P&gt;&lt;P&gt; 18 P    |001  |COBL-KOSTL       &lt;/P&gt;&lt;P&gt; 19 P    |001  |COBL-FIPOS       &lt;/P&gt;&lt;P&gt; 20 P    |001  |COBL-AUFNR  &lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;          002&lt;/P&gt;&lt;P&gt;.....     003 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then for the next header and records     &lt;/P&gt;&lt;P&gt;  1 K    |002  |BKPF-BLART       &lt;/P&gt;&lt;P&gt;  2 K    |002  |BKPF-BUKRS       &lt;/P&gt;&lt;P&gt;  3 K    |003  |BKPF-BUDAT  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and line items&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 11 P    |001  |BSEG-HKONT       &lt;/P&gt;&lt;P&gt; 12 P    |001  |BSEG-WRBTR       &lt;/P&gt;&lt;P&gt; 13 P    |001  |BSEG-MWSKZ  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is the line items in the second batch whic is causing the confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 16:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-posting-interface-document/m-p/1401200#M193929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T16:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: function 'POSTING_INTERFACE_DOCUMENT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-posting-interface-document/m-p/1401201#M193930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;What I am really getting at , is how are the Headers matched to the line items in this function?&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, 29 Jun 2006 19:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-posting-interface-document/m-p/1401201#M193930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T19:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: function 'POSTING_INTERFACE_DOCUMENT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-posting-interface-document/m-p/1401202#M193931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should append the records to your internal table(FTPOST) in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEADER1&lt;/P&gt;&lt;P&gt;ITEM1 OF HEADER1&lt;/P&gt;&lt;P&gt;ITEM2 OF HEADER1&lt;/P&gt;&lt;P&gt;HEADER2&lt;/P&gt;&lt;P&gt;ITEM1 OF HEADER2&lt;/P&gt;&lt;P&gt;ITEM2 OF HEADER2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is the occurance of the next header that tells the system that it is a new transaction and any lines following it belong to this new header.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 19:55:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-posting-interface-document/m-p/1401202#M193931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T19:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: function 'POSTING_INTERFACE_DOCUMENT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-posting-interface-document/m-p/1401203#M193932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;STYPE   COUNT      FNAM &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;K        1        'Field name 1'&lt;/P&gt;&lt;P&gt;K        1        'Field Name 2'&lt;/P&gt;&lt;P&gt;P        1        'Field Name 1'&lt;/P&gt;&lt;P&gt;P        1        'Field Name 2'&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;K       2         'Field name 1'&lt;/P&gt;&lt;P&gt;K       2         'Field Name 2'&lt;/P&gt;&lt;P&gt;P       2         'Field Name 1'&lt;/P&gt;&lt;P&gt;P       2         'Field Name 2'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or does the field counter in the second set turn 1 again?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 20:07:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-posting-interface-document/m-p/1401203#M193932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T20:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: function 'POSTING_INTERFACE_DOCUMENT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-posting-interface-document/m-p/1401204#M193933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I am looking at this function module and I don't think it can post multiple documents in a single call. So you will have loop and call this, something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at myitab.&lt;/P&gt;&lt;P&gt;fill FTPOST itab for one transaction.&lt;/P&gt;&lt;P&gt;at the end of one transaction, call function.&lt;/P&gt;&lt;P&gt;refresh FTPOST itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 21:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-posting-interface-document/m-p/1401204#M193933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T21:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: function 'POSTING_INTERFACE_DOCUMENT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-posting-interface-document/m-p/1401205#M193934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;are you sure, because one of the parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      t_blntab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives back an Itab of all the documents it created, otherwise it would be just 1 value.&lt;/P&gt;&lt;P&gt;My data is fine, what I have is 2 headers and then 2 line items in each, when I delete one set, and run the program, it is fine, then I deleted the other set and it was fine, but when I try it with both sets, it comes back with an error message, like it see one or some of the lines, any ideas?&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, 29 Jun 2006 21:27:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-posting-interface-document/m-p/1401205#M193934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T21:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: function 'POSTING_INTERFACE_DOCUMENT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-posting-interface-document/m-p/1401206#M193935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for the colleagues that could not use this function with multiple documents yet. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- first, call the start interface&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'POSTING_INTERFACE_START'
    EXPORTING
      i_client           = sy-mandt
      i_function         = 'B' "C=Call/B=BDC
      i_group            = pv_goup "Generar Juego de datos
      i_mode             = modo
      i_update           = 'S'
      i_user             = sy-uname
      i_xbdcc            = 'X'     "Generar Juego de datos
    EXCEPTIONS
      client_incorrect   = 1
      function_invalid   = 2
      group_name_missing = 3
      mode_invalid       = 4
      update_invalid     = 5
      OTHERS             = 6.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- call the posting function n times as documents you need&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'POSTING_INTERFACE_DOCUMENT'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3- finally, Close de interface&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'POSTING_INTERFACE_END'
    EXPORTING
      i_bdcimmed              =  space "'X' "Ejecutar el juego de datos solo para BDC
    EXCEPTIONS
      session_not_processable = 1
      OTHERS                  = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 14:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-posting-interface-document/m-p/1401206#M193935</guid>
      <dc:creator>cesar_gr</dc:creator>
      <dc:date>2011-05-09T14:25:57Z</dc:date>
    </item>
  </channel>
</rss>

