<?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: Parking documents using PRELIMINARY_POSTING_FB01 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482014#M1419096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that FM PRELIMINARY_POSTING_FB01 is for internal use only and was created just to be called from transaction FB01. I do not thing there is some way how to get error messages and supress terminating a program, because there are error messages without raising any exceptions. I have not found a BAPI for parking documents. The best way to solve your issue is probably creating a batch input. It should be easy.  If You want still to use FM PRELIMINARY_POSTING_FB01 , the only idea I have is a little bit complicated. You can call FM in background task, wait until job finishes and than read a job jog to get messages. But I do not think it is a good looking solution, but by this You can achieve that You will be able to get messages of FM without terminating a program. There are some other threads about BAPIs for parking documents:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="832317"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3475534"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="276066"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2010 06:43:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-08T06:43:19Z</dc:date>
    <item>
      <title>Parking documents using PRELIMINARY_POSTING_FB01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482011#M1419093</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 am a writing a custom program to park documents through FBV1.  Here I using PRELIMINARY_POSTING_FB01.  But as it doesn't have a return table of type bapiret,  I am not able to catch the messages.  Once an error message comes, it is exiting from the program itself.  But I need to save the error messages.  How will I do this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 11:07:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482011#M1419093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-05T11:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Parking documents using PRELIMINARY_POSTING_FB01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482012#M1419094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you can catch the exceptions.&lt;/P&gt;&lt;P&gt;after calling the function module just catch the system variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:ls_return type bapiret2.
data:et_return type bapiret2_t.

call function '----'
----
exceptions
----

if sy-subrc ne 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
into ls_return-message.
append ls_return to et_return.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 12:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482012#M1419094</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-05T12:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Parking documents using PRELIMINARY_POSTING_FB01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482013#M1419095</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 tried that, as the call is not coming to back to the program, it wont work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 05:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482013#M1419095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T05:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Parking documents using PRELIMINARY_POSTING_FB01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482014#M1419096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that FM PRELIMINARY_POSTING_FB01 is for internal use only and was created just to be called from transaction FB01. I do not thing there is some way how to get error messages and supress terminating a program, because there are error messages without raising any exceptions. I have not found a BAPI for parking documents. The best way to solve your issue is probably creating a batch input. It should be easy.  If You want still to use FM PRELIMINARY_POSTING_FB01 , the only idea I have is a little bit complicated. You can call FM in background task, wait until job finishes and than read a job jog to get messages. But I do not think it is a good looking solution, but by this You can achieve that You will be able to get messages of FM without terminating a program. There are some other threads about BAPIs for parking documents:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="832317"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3475534"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="276066"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 06:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482014#M1419096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T06:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Parking documents using PRELIMINARY_POSTING_FB01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482015#M1419097</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 solved it by providing like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function ' '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;error_message = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the control come back to the program and used the system varibale to catch the messages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 07:44:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482015#M1419097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T07:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Parking documents using PRELIMINARY_POSTING_FB01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482016#M1419098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 07:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482016#M1419098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T07:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Parking documents using PRELIMINARY_POSTING_FB01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482017#M1419099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Please can you let me what FM we have to use in order to get the error/successfull message from FM PRELIMINARY_POSTING_FB01 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw your posting to use data:ls_return type bapiret2.&lt;/P&gt;&lt;P&gt;data:et_return type bapiret2_t.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;call function '----'&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4&lt;/P&gt;&lt;P&gt;into ls_return-message.&lt;/P&gt;&lt;P&gt;append ls_return to et_return.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;*But I didn't understand what is &lt;STRONG&gt;call function '----&lt;/STRONG&gt;'. Is there any FM name I have to use.*&lt;/U&gt;  Waiting for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 04:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482017#M1419099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-09T04:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Parking documents using PRELIMINARY_POSTING_FB01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482018#M1419100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinaraj,&lt;/P&gt;&lt;P&gt;   YOu have repied as closed and solved the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can let me know what FM we have to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't understand call function ' '. Ho to to capture the message from PRELIMINARY_POSTING_FB01 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wiaitng for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 04:57:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parking-documents-using-preliminary-posting-fb01/m-p/6482018#M1419100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-09T04:57:24Z</dc:date>
    </item>
  </channel>
</rss>

