<?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: Problem with MRM_INVOICE_PARK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850480#M1591905</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;you could use fm FI_PERIOD_CHECK before the call of fm MRM_INVOICE_PARK&lt;/P&gt;&lt;P&gt;and thus if the error F5201 is raised you could eliminate the record in the corresponding &lt;/P&gt;&lt;P&gt;internal table and in this way avoid processing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pablo Casamayor on Apr 20, 2011 10:21 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Apr 2011 08:16:02 GMT</pubDate>
    <dc:creator>former_member182371</dc:creator>
    <dc:date>2011-04-20T08:16:02Z</dc:date>
    <item>
      <title>Problem with MRM_INVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850479#M1591904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the function MRM_INVOICE_PARK to park some docs. The function is working well, but i got a case where the date of the parking invoice gives me an error.&lt;/P&gt;&lt;P&gt;The function stops and says : posting period 004 2011 is not open. Message no. F5201&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want that the function stops, because there are others invoices that have to entry park as well and if on this one get stopped, others cant be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'MRM_INVOICE_PARK'
    EXPORTING
      i_rbkpv           = wa_rbkpv
      i_xupda           = c_update
      i_rbstat_new      = c_source_assign
      ti_drseg          = it_drseg[]
      ti_selbest        = ti_selbest[]
    IMPORTING
      e_belnr           = f_belnr
      e_gjahr           = f_gjahr
      e_only_parked     = f_only_parked
    EXCEPTIONS
      invalid_status    = 1
      update_impossible = 2
      user_exit         = 3
      OTHERS            = 4.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    WRITE:/  'Factura Nº ', f_belnr, ' ERROR'.
  ELSE.
    WRITE:/  'Factura Nº ', f_belnr, ' Modificada'.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I commeted the exceptions, but the error is getting display. I want to jump that one and keep going on with the rest.&lt;/P&gt;&lt;P&gt;How can i do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess that i could do it using TRY. catch. entry.&lt;/P&gt;&lt;P&gt;but what am i going to catch???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 20:03:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850479#M1591904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-19T20:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MRM_INVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850480#M1591905</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;you could use fm FI_PERIOD_CHECK before the call of fm MRM_INVOICE_PARK&lt;/P&gt;&lt;P&gt;and thus if the error F5201 is raised you could eliminate the record in the corresponding &lt;/P&gt;&lt;P&gt;internal table and in this way avoid processing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pablo Casamayor on Apr 20, 2011 10:21 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 08:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850480#M1591905</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2011-04-20T08:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MRM_INVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850481#M1591906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it doesnt work, the FM works the same as the MRM_INVOICE_PARK.&lt;/P&gt;&lt;P&gt;It triggers a message error, so the process stops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need sth that allow me to keep going.&lt;/P&gt;&lt;P&gt;Think about this like this FM is inside a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at table.
call function 'MRM_INVOICE_PARK'
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, i need keep working with others data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i manage that??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 12:42:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850481#M1591906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-20T12:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MRM_INVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850482#M1591907</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;you can copy the fm to a ZFI_PERIOD_CHECK where the message type is S instead of E :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

      message S201(f5)   with i_monat i_gjahr i_koart ld_opvar
                         raising error_period.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* 1st check if the error arises
loop at table.
call function 'ZFI_PERIOD_CHECK'
* if the error arises here
* delete the line of table 
endloop.

* and then with the rest of table lines
loop at table.
call function 'MRM_INVOICE_PARK'
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pablo Casamayor on Apr 20, 2011 2:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 12:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850482#M1591907</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2011-04-20T12:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MRM_INVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850483#M1591908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pablo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function 'FI_PERIOD_CHECK' and 'MRM_INVOICE_PARK' raise message error.&lt;/P&gt;&lt;P&gt;that's means that the process stop and go out of the transaction.&lt;/P&gt;&lt;P&gt;it gives u the red cancel 'X' and u can't do anything else.&lt;/P&gt;&lt;P&gt;I can't put a if error then keep going.&lt;/P&gt;&lt;P&gt;Do u know what i mean???&lt;/P&gt;&lt;P&gt;It is not simple as that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, but it doesnt work the FI_PERIOD_CHECK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 12:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850483#M1591908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-20T12:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MRM_INVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850484#M1591909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the way  you can catch such exceptions and continue with rest of the invoices..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;.
 exceptions
   invalid_status          = 1
   update_impossible       = 2
   user_exit               = 3
   error_message           = 99 "&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; this helps to catch any other exceptions
   OTHERS                  = 4
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850484#M1591909</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2011-04-20T13:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MRM_INVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850485#M1591910</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;what about table T001B (Permitted Posting Periods) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:14:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850485#M1591910</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2011-04-20T13:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MRM_INVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850486#M1591911</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 want to do sht like that, but no idea of how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing that sth like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  TRY.
      CALL FUNCTION 'MRM_INVOICE_PARK'
        EXPORTING
          i_rbkpv           = wa_rbkpv
          i_xupda           = c_update
          i_rbstat_new      = c_source_assign
          ti_drseg          = it_drseg[]
          ti_selbest        = ti_selbest[]
        IMPORTING
          e_belnr           = f_belnr
          e_gjahr           = f_gjahr
          e_only_parked     = f_only_parked
        EXCEPTIONS
          invalid_status    = 1
          update_impossible = 2
          user_exit         = 3
          OTHERS            = 4.

     CATCH cx_sy_dyn_call_illegal_class.

  ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that code, it didnt work. The FM send me out with the error message and didnt keep working.&lt;/P&gt;&lt;P&gt;But the catch maybe is going to be the solution, i need to figure out what sentence i need to write on the catch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:17:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850486#M1591911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-20T13:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MRM_INVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850487#M1591912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well you could call this within a loop, with just a single record in IT_DRSEG.&lt;/P&gt;&lt;P&gt;So you will exactly know which records to keep for MRM_PARKING them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:20:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850487#M1591912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-20T13:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MRM_INVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850488#M1591913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;???? Sorry, but i didnt understand ur point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850488#M1591913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-20T13:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MRM_INVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850489#M1591914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well if i understand your correct you are trying to park a list/bunch of documents.&lt;/P&gt;&lt;P&gt;And the problem you got is that nothing is beeing done if just ONE of your documents in your list is outside of posting period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am i right so far?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming i´m right so far i will continue.&lt;/P&gt;&lt;P&gt;So it seems if MRM_INVOICE_PARK has one item out of posting period it wont do anything. So well you got to make sure that when processing MRM_INVOICE_PARK, that there is no item out of posting range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So beforehand you could loop over your items, and check every single item with FI_PERIOD_CHECK for posting availability.&lt;/P&gt;&lt;P&gt;If item is able to be posted, leave it in your itab, if not, delete it.&lt;/P&gt;&lt;P&gt;Once you got an ITAB then with just items that are able to be posted (period wise) you can then call MRM_INVOICE_PARK without any problems then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850489#M1591914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-20T13:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MRM_INVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850490#M1591915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you tried my above option? Is it not worked? Let me know your feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850490#M1591915</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2011-04-20T13:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MRM_INVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850491#M1591916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;thanks for ur explanation.&lt;/P&gt;&lt;P&gt;But the FM FI_PERIOD_CHECK also triggers a raise message, that means that the the FM stops and goes out and display the error, so it works the same as MRM_INVOICE_PARK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still working on this and checking others option, because until now, everything triggers an error message that stop the process with an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850491#M1591916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-20T13:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MRM_INVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850492#M1591917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Master (Manohar Reddy Kallem),&lt;/P&gt;&lt;P&gt;ur solution works.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards to all of u guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:51:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mrm-invoice-park/m-p/7850492#M1591917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-20T13:51:06Z</dc:date>
    </item>
  </channel>
</rss>

