<?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: Subroutine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/3647779#M878518</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;&lt;/P&gt;&lt;P&gt;Based on some conditions making the p_cfg = 'X'.If condtions not satisfies p_cfg =  ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If  p_cfg = 'X'.  run the program "zmr_cfg_tags" in back ground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else. com out of the perform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Apr 2008 04:41:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-04T04:41:42Z</dc:date>
    <item>
      <title>Subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/3647774#M878513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can any one give me explaination of this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM output_cfg_label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CHECK p_cfg = 'X'.&lt;/P&gt;&lt;P&gt;  SUBMIT zmr_cfg_tags&lt;/P&gt;&lt;P&gt;          WITH p_ldest = p_dest2&lt;/P&gt;&lt;P&gt;          WITH p_test  = p_test&lt;/P&gt;&lt;P&gt;          WITH s_charg = itab_batches_line-charg&lt;/P&gt;&lt;P&gt;          WITH s_posnr = itab_batches_line-posnr&lt;/P&gt;&lt;P&gt;          WITH s_vbeln = itab_batches_line-vbeln&lt;/P&gt;&lt;P&gt;          AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 06:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/3647774#M878513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T06:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/3647775#M878514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first he is checking the condition whether the value of the field p_cfg is x.&lt;/P&gt;&lt;P&gt;if its x.&lt;/P&gt;&lt;P&gt;he is passing the input parameters p_ldest ,p_test,s_charg , s_posnr,s_vbeln to the program zmr_cfg_tags,which inturn gives the result after executing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concept is he is calling an executable program with in the subroutine by providing the select-options as the input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward if useful.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 07:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/3647775#M878514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T07:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/3647776#M878515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;First he is checkng the condition p_cfg if 'X'.&lt;/P&gt;&lt;P&gt;if checked he is calling an executable program by passing the parameters in the select-options which in turns executes and gives the output in return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 07:52:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/3647776#M878515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T07:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/3647777#M878516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;first it is Checking The Value of Configuration parameter .&lt;/P&gt;&lt;P&gt;If it is Checked(Value X) Then it is submitting the program zmr_cfg_tags&lt;/P&gt;&lt;P&gt;with values from Selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sandipan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 08:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/3647777#M878516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T08:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/3647778#M878517</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;FORM output_cfg_label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK p_cfg = 'X'.&lt;/P&gt;&lt;P&gt;SUBMIT zmr_cfg_tags&lt;/P&gt;&lt;P&gt;WITH p_ldest = p_dest2&lt;/P&gt;&lt;P&gt;WITH p_test = p_test&lt;/P&gt;&lt;P&gt;WITH s_charg = itab_batches_line-charg&lt;/P&gt;&lt;P&gt;WITH s_posnr = itab_batches_line-posnr&lt;/P&gt;&lt;P&gt;WITH s_vbeln = itab_batches_line-vbeln&lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above subroutine you are using check statement to check the value of p_cfg.you can change the above code as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM output_cfg_label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If  p_cfg = 'X'.&lt;/P&gt;&lt;P&gt;SUBMIT zmr_cfg_tags&lt;/P&gt;&lt;P&gt;WITH p_ldest = p_dest2&lt;/P&gt;&lt;P&gt;WITH p_test = p_test&lt;/P&gt;&lt;P&gt;WITH s_charg = itab_batches_line-charg&lt;/P&gt;&lt;P&gt;WITH s_posnr = itab_batches_line-posnr&lt;/P&gt;&lt;P&gt;WITH s_vbeln = itab_batches_line-vbeln&lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the difference between if statement and check statement is &lt;/P&gt;&lt;P&gt;if   if statement fails then the code after endif is executed.in your case the code after subroutine is executed.if check statement fails the execution stops completely.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 23:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/3647778#M878517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T23:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/3647779#M878518</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;&lt;/P&gt;&lt;P&gt;Based on some conditions making the p_cfg = 'X'.If condtions not satisfies p_cfg =  ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If  p_cfg = 'X'.  run the program "zmr_cfg_tags" in back ground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else. com out of the perform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 04:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/3647779#M878518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T04:41:42Z</dc:date>
    </item>
  </channel>
</rss>

