<?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: how to call three smart forms through one coding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099199#M1508239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="26" __jive_macro_name="size"&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jul 2010 10:55:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-13T10:55:45Z</dc:date>
    <item>
      <title>how to call three smart forms through one coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099193#M1508233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have make three smart forms, which is being called by one coding. Scenario of my coding is that i have restrict these three forms by &lt;STRONG&gt;MOVEMNT TYPE&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;for 1st SMART FORM &lt;STRONG&gt;MOVEMENT TYPE&lt;/STRONG&gt; is 101,105 &amp;amp; 321&lt;/P&gt;&lt;P&gt;for 2nd SMART FORM &lt;STRONG&gt;MOVEMENT TYPE&lt;/STRONG&gt; is 122 &amp;amp; 124&lt;/P&gt;&lt;P&gt;for 3rd SMART FORM &lt;STRONG&gt;MOVEMENT TYPE&lt;/STRONG&gt; is  201 &amp;amp; 261&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem which i m facing in my coding is that when i want to display &lt;STRONG&gt;2nd SMART FORM&lt;/STRONG&gt;  with &lt;STRONG&gt;ELSEIF&lt;/STRONG&gt; condition,it will display me but when i want to display 3rd SMART FORM with &lt;STRONG&gt;ELSE&lt;/STRONG&gt; codition it give me error: &lt;STRONG&gt;NO OPEN IF STATEMENT&lt;/STRONG&gt;.Even though i uses &lt;STRONG&gt;ENDIF&lt;/STRONG&gt; key word but still the error exist.Following are the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;     IF int_mseg-bwart = '201' or&lt;/P&gt;&lt;P&gt;      int_mseg-bwart = '261'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; data: ftname(30) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; call function 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    formname                 = 'ZCCCL_GOODS_RESERVATION'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   FM_NAME                  = ftname&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   NO_FORM                  = 1&lt;/P&gt;&lt;P&gt;   NO_FUNCTION_MODULE       = 2&lt;/P&gt;&lt;P&gt;   OTHERS                   = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 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;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function ftname&lt;/P&gt;&lt;P&gt;  Exporting&lt;/P&gt;&lt;P&gt;     MKPF     = int_mkpf&lt;/P&gt;&lt;P&gt;     ekko     = int_ekko&lt;/P&gt;&lt;P&gt;     lfa1     = int_lfa1&lt;/P&gt;&lt;P&gt;     makt     = int_makt&lt;/P&gt;&lt;P&gt;     aufk     = int_aufk&lt;/P&gt;&lt;P&gt;     RKPF     = int_RKPF&lt;/P&gt;&lt;P&gt;     RESB     = int_RESB&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;     MSEG     = INT_MSEG&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    FORMATTING_ERROR           = 1&lt;/P&gt;&lt;P&gt;    INTERNAL_ERROR             = 2&lt;/P&gt;&lt;P&gt;    SEND_ERROR                 = 3&lt;/P&gt;&lt;P&gt;    USER_CANCELED              = 4&lt;/P&gt;&lt;P&gt;    OTHERS                     = 5.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC &amp;lt;&amp;gt; 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;   ENDIF.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;sappk25&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 09:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099193#M1508233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T09:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to call three smart forms through one coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099194#M1508234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, but what exactly happened when you tried [to call two smartforms from one coding|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="9284570"&gt;&lt;/A&gt;] ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 10:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099194#M1508234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T10:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to call three smart forms through one coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099195#M1508235</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;use..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF MOVEMENT TYPE is 101,105 &amp;amp; 321 - &amp;gt; call 1st smartform&lt;/P&gt;&lt;P&gt;ELSEIF MOVEMENT TYPE is 122 &amp;amp; 124 - &amp;gt; call 2nd smartform&lt;/P&gt;&lt;P&gt;ELSEIF MOVEMENT TYPE is 201 &amp;amp; 261 - &amp;gt; call 3rd smartform&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;HOPE IT HELPS!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 10:33:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099195#M1508235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T10:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to call three smart forms through one coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099196#M1508236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; HI ,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; use..&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; IF MOVEMENT TYPE is 101,105 &amp;amp; 321 - &amp;gt; call 1st smartform&lt;/P&gt;&lt;P&gt;&amp;gt; ELSEIF MOVEMENT TYPE is 122 &amp;amp; 124 - &amp;gt; call 2nd smartform&lt;/P&gt;&lt;P&gt;&amp;gt; ELSEIF MOVEMENT TYPE is 201 &amp;amp; 261 - &amp;gt; call 3rd smartform&lt;/P&gt;&lt;P&gt;&amp;gt; ENDIF.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; HOPE IT HELPS!&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so very much! that's exactly what people like me, who are not developers, would want to avoid at all costs! that's what configuration is for, you know?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 10:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099196#M1508236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T10:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to call three smart forms through one coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099197#M1508237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Varna17 for your replay. Actually &lt;STRONG&gt;MOVEMENT TYPE&lt;/STRONG&gt; is field,but in table level it is different so i have define internal table field i-e:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data:   int_mseg LIKE STANDARD TABLE OF mseg WITH HEADER LINE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In this internal table i m using &lt;STRONG&gt;MOVEMENT TYPE&lt;/STRONG&gt; filed &lt;STRONG&gt;BWART&lt;/STRONG&gt; like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if int_mseg-bwart = '101' or*  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;int_mseg-bwart = '105' or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;int_mseg-bwart = '321'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can i used your  solution in this coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;sappk25&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 10:50:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099197#M1508237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T10:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to call three smart forms through one coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099198#M1508238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;configuration also evolve from coding ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 10:51:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099198#M1508238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T10:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to call three smart forms through one coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099199#M1508239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="26" __jive_macro_name="size"&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 10:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099199#M1508239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T10:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to call three smart forms through one coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099200#M1508240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please help me to resolve my question instead of discussion..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Varna17 for your replay. Actually MOVEMENT TYPE is field,but in table level it is different so i have define internal table field i-e:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: int_mseg LIKE STANDARD TABLE OF mseg WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;In this internal table i m using MOVEMENT TYPE field BWART like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if int_mseg-bwart = '101'*or &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;int_mseg-bwart = '105'&lt;/STRONG&gt; or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;int_mseg-bwart = '321'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can i used your solution in this coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;sappk25&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 10:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099200#M1508240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T10:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to call three smart forms through one coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099201#M1508241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please anybody give me solution,i have to give this today as my deadline is going to be end, i m waiting for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;sappk25&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 12:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099201#M1508241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T12:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to call three smart forms through one coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099202#M1508242</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;Problem doesn't seem very difficult but it is hard to say anything without going into debug.&lt;/P&gt;&lt;P&gt;Here are my few suggestion, please check.&lt;/P&gt;&lt;P&gt;(1) Check in debugging that. Is this going into your elseif condition? If yes then what's the problem why it's not generating spool. If problem in form then check the form.&lt;/P&gt;&lt;P&gt;(2) Change the form order, just try to call form (int_mseg-bwart = '201' or int_mseg-bwart = '261'.) in place of first if statement.&lt;/P&gt;&lt;P&gt;(3)  Call this form in separate IF .....Endif statement. As you rightly mentioned that the data is coming into your internal table with header line. So there must be only one Movement type and on this condition only one form will trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 12:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099202#M1508242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T12:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to call three smart forms through one coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099203#M1508243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; please anybody give me solution,i have to give this today as my deadline is going to be end, i m waiting for your response.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; sappk25&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's your problem, not ours. Actually this question and also your recent history of questions seems to be very basic for someone who knows how to work with Smartforms, so please attend some proper training on the matter rather than keeping the forum participants busy on your behalf.&lt;/P&gt;&lt;P&gt;Thread locked.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 12:49:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-three-smart-forms-through-one-coding/m-p/7099203#M1508243</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-07-13T12:49:58Z</dc:date>
    </item>
  </channel>
</rss>

