<?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 module inside loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-loop/m-p/6138558#M1366577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Anitl,&lt;/P&gt;&lt;P&gt; Again its going to dump only i'm passing pernr and modus as 'R' still this is going to dump what is the problem behind this, is it possible to change my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Thirukumaran. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2009 12:19:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-08T12:19:41Z</dc:date>
    <item>
      <title>function module inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-loop/m-p/6138556#M1366575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;                     i'm using the function module PT_ARQ_REQUEST_EXECUTE inside the loop and passing the&lt;/P&gt;&lt;P&gt;values for request id and pernr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at it_mid into wa_mid.
LV_REQUEST_ID = WA_mid-request_id.
LV_PERNR      = WA_MID-PERNR.
CALL FUNCTION 'PT_ARQ_REQUEST_EXECUTE'
  EXPORTING
    im_request_id        =  LV_REQUEST_ID " P_WA_MID_REQUEST_ID
    IM_COMMAND           =  'EXECUTE_APPROVE'
    im_pernr             =  LV_PERNR " P_WA_MID_PERNR
    im_modus             =  'R'
   IM_DEBUG              =  ''
 tables
    ex_messages          = ex_messages
    ex_commands          = ex_commands.

if sy-subrc ne 0.
  message 'An error occured' TYPE 'E'.
  endif.
clear : LV_REQUEST_ID, LV_PERNR.
  endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in std function module i'm getting dump like '  IF app_pernr = pernr AND app_modus = modus.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Application is Consistent&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Application is NOT Consistent, then DUMP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      MESSAGE x999(53).  "#EC *&lt;/P&gt;&lt;P&gt;    ENDIF.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm passing pernr always, and for app_modus i have hardcoded as 'R' , Then also its going to dump.,.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wat is the reason is there any other way to do this..,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.B:- for first time inside the loop its executing, for second records itds going to dump means app_modus is not passig it seems what to do with this... issue can any one suggest me ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Thirukumaran. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 11:38:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-loop/m-p/6138556#M1366575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T11:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: function module inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-loop/m-p/6138557#M1366576</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;It seems to be problem with leading zeroes in PERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so before using this FM, use one more FM : &lt;STRONG&gt;CONVERSION_EXIT_ALPHA_INPUT&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just have a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 11:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-loop/m-p/6138557#M1366576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T11:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: function module inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-loop/m-p/6138558#M1366577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Anitl,&lt;/P&gt;&lt;P&gt; Again its going to dump only i'm passing pernr and modus as 'R' still this is going to dump what is the problem behind this, is it possible to change my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Thirukumaran. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 12:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-loop/m-p/6138558#M1366577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T12:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: function module inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-loop/m-p/6138559#M1366578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thirukumaran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use FM CONVERSION_EXIT_ALPHA_INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for WA_mid-request_id also.&lt;/P&gt;&lt;P&gt;and try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 12:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-loop/m-p/6138559#M1366578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T12:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: function module inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-loop/m-p/6138560#M1366579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is this CONVERSION_EXIT_ALPHA_INPUT or &lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 12:30:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-loop/m-p/6138560#M1366579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T12:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: function module inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-loop/m-p/6138561#M1366580</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;Refer this link: &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7068185"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;May be it will help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 12:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-loop/m-p/6138561#M1366580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T12:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: function module inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-loop/m-p/6138562#M1366581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try running FM PT_ARQ_REQUEST_CHECK before each execution of your FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 14:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-loop/m-p/6138562#M1366581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T14:29:22Z</dc:date>
    </item>
  </channel>
</rss>

