<?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: smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/5726114#M1299047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes sure you can do it.&lt;/P&gt;&lt;P&gt;In your driver program just give the condition on basis of which u are callinbg different smartfoms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like for standard purchase order u have purchase order category as NB and for Service PO something else.&lt;/P&gt;&lt;P&gt;So in driver program write if doc cate(whatever the field is) = 'NB'.&lt;/P&gt;&lt;P&gt;then call smartform1&lt;/P&gt;&lt;P&gt;else if doccat = 'Z.'&lt;/P&gt;&lt;P&gt;call smartform2&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2009 10:16:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-27T10:16:14Z</dc:date>
    <item>
      <title>smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/5726111#M1299044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can we call two form from one driver program.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have two form have different  OUTPUT TYPES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to call both form from one deriver program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if yes....please give the solution also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;babbal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 09:50:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/5726111#M1299044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T09:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/5726112#M1299045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will find out for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: RavivarmanP on May 27, 2009 5:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 10:04:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/5726112#M1299045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T10:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/5726113#M1299046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sure you can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just call your second form after the call of the first one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no matter if sap script od smartforms, the call of your form is just a call of an FM.&lt;/P&gt;&lt;P&gt;and when calling FM´s you always get back to coding when they finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 10:08:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/5726113#M1299046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T10:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/5726114#M1299047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes sure you can do it.&lt;/P&gt;&lt;P&gt;In your driver program just give the condition on basis of which u are callinbg different smartfoms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like for standard purchase order u have purchase order category as NB and for Service PO something else.&lt;/P&gt;&lt;P&gt;So in driver program write if doc cate(whatever the field is) = 'NB'.&lt;/P&gt;&lt;P&gt;then call smartform1&lt;/P&gt;&lt;P&gt;else if doccat = 'Z.'&lt;/P&gt;&lt;P&gt;call smartform2&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 10:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/5726114#M1299047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T10:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/5726115#M1299048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;you can very well call 2 SMARTFORMS in one driver program.&lt;/P&gt;&lt;P&gt;What will happen is after the first print priview when you press back u will get the second&lt;/P&gt;&lt;P&gt;preview screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      FORMNAME                 = 'ZSMARTFORM12' " Your first smartform name
*     VARIANT                  = ' '
*     DIRECT_CALL              = ' '
   IMPORTING
     FM_NAME                  = w_fmname
   EXCEPTIONS
     NO_FORM                  = 1
     NO_FUNCTION_MODULE       = 2
     OTHERS                   = 3
            .
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

  CALL FUNCTION w_fmname
*   EXPORTING
*     ARCHIVE_INDEX              =
*     ARCHIVE_INDEX_TAB          =
*     ARCHIVE_PARAMETERS         =
*     CONTROL_PARAMETERS         =
*     MAIL_APPL_OBJ              =
*     MAIL_RECIPIENT             =
*     MAIL_SENDER                =
*     OUTPUT_OPTIONS             =
*     USER_SETTINGS              = 'X'
*   IMPORTING
*     DOCUMENT_OUTPUT_INFO       =
*     JOB_OUTPUT_INFO            =
*     JOB_OUTPUT_OPTIONS         =
    TABLES
      T_SELECT                   = s_vbeln[]
   EXCEPTIONS
     FORMATTING_ERROR           = 1
     INTERNAL_ERROR             = 2
     SEND_ERROR                 = 3
     USER_CANCELED              = 4
     OTHERS                     = 5
            .
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Use the same code once more in the same program to call the second smartform&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Hareesh Menon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Hareesh Menon on May 27, 2009 12:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 10:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/5726115#M1299048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T10:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/5726116#M1299049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you can do the same. first call the SSF_FUNCTION_MODULE_NAME function module, get the FM name of your smartform, call it once and then do the same the second time. This will trigger it when you are done with the first one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it is not that advisable as it would be very confusing for the end user (if the user is happy with it, then no issues). You can instead, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create two pages first page with first forms layout and the second with a different layout. &lt;/P&gt;&lt;P&gt;You can call these on the basis of a condition (using radio buttons on the screen)&lt;/P&gt;&lt;P&gt;or you can submit this program to a different program and you can make that program call the second form. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Dakshna nagaratnam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 10:21:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/5726116#M1299049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T10:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/5726117#M1299050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Dakshna&lt;/P&gt;&lt;P&gt;but his requirment is,he has two different forms and not a single one  and &lt;/P&gt;&lt;P&gt;both has to be called form one driver program.I think the mwthod &lt;/P&gt;&lt;P&gt;i have specified  is the better way to achive &lt;/P&gt;&lt;P&gt;the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Hareesh Menon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 10:34:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/5726117#M1299050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T10:34:26Z</dc:date>
    </item>
  </channel>
</rss>

