<?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 Scripts and smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts-and-smartforms/m-p/3597676#M866377</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;would u help what is the control commands of scripts and smartforms are use and explain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Mar 2008 08:17:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-30T08:17:51Z</dc:date>
    <item>
      <title>Scripts and smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts-and-smartforms/m-p/3597676#M866377</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;would u help what is the control commands of scripts and smartforms are use and explain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2008 08:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scripts-and-smartforms/m-p/3597676#M866377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-30T08:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts and smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts-and-smartforms/m-p/3597677#M866378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veera&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Control commands&lt;/P&gt;&lt;P&gt;Control command are used to modify text output. Use format key /: in the format column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: INCLUDE&lt;/P&gt;&lt;P&gt;/: DEFINE&lt;/P&gt;&lt;P&gt;/: ADDRESS....ENDADDRESS&lt;/P&gt;&lt;P&gt;/: PROTECT.....ENDPROTECT&lt;/P&gt;&lt;P&gt;/: NEW-PAGE&lt;/P&gt;&lt;P&gt;/: IF....ENDIF&lt;/P&gt;&lt;P&gt;/: CASE...ENDCASE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples of control commands&lt;/P&gt;&lt;P&gt;INCLUDE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE name &amp;lt;parameter&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECT E.g. TEXT, DOKU (Document), DSYS (Hypertext).&lt;/P&gt;&lt;P&gt;ID Text ID -Text ID is a way to group texts - Se transaction SO10&lt;/P&gt;&lt;P&gt;LANGUAGE If the parameter is not specefied, the logon language will be used&lt;/P&gt;&lt;P&gt;PARAGRAPH The text to be included is formatted using the style allocated. The PARAGRAPH parameter can be used to redefine the standard &lt;/P&gt;&lt;P&gt;paragraph for this style for the current call. All *-paragraphs in the included text will then be formatted using the paragraph specified here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Object&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;Language&lt;/P&gt;&lt;P&gt;Paragraph&lt;/P&gt;&lt;P&gt;Standard texts are maintained in transaction SO10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have created a standard text in SO10 Named MYTEXT and with Text Id ST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: INCLUDE MYTEXT OBJECT text ID st&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use a dynamic name so that you can retreive a ext depeding of the name variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: INCLUDE &amp;amp;SCUSTOM-NAME&amp;amp; text ID st.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use a dynamic name so that you can retreive a ext depeding of the name variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: INCLUDE &amp;amp;SCUSTOM-NAME&amp;amp; text ID st.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the name in the variable &amp;amp;SCUSTOM-NAME&amp;amp; different texts will be shown. Note that a text with the name in the variable &lt;/P&gt;&lt;P&gt;&amp;amp;SCUSTOM-NAME&amp;amp; name must be created in SO10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;SYMBOL&amp;amp; = 'String1 String2'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;CUST&amp;amp; = '00000021'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADDRESS-ENDDRESS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ADDRESS-ENDADDRESS command formats addresses according to the postal norms of the recipient's country, as defined in the&lt;/P&gt;&lt;P&gt;country parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: ADDRESS DELIVERY PARAGRAPH AD&lt;/P&gt;&lt;P&gt;/: NAME &amp;amp;KNA1-NAME&amp;amp;&lt;/P&gt;&lt;P&gt;/: STREET &amp;amp;KNA1-STRAS&amp;amp;&lt;/P&gt;&lt;P&gt;/: POSTCODE &amp;amp;KNA1-PSTLZ&amp;amp;&lt;/P&gt;&lt;P&gt;/: CITY &amp;amp;KNA1-ORT01&amp;amp;&lt;/P&gt;&lt;P&gt;/: COUNTRY &amp;amp;KNA1-LAND1&amp;amp;&lt;/P&gt;&lt;P&gt;/: FROMCOUNTRY 'DE'&lt;/P&gt;&lt;P&gt;/: ENDADDRESS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time Date and decimal format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: SET TIME MASK = 'HH:MM'&lt;/P&gt;&lt;P&gt;/: SET DATE MASK = 'DD.MMMM.YYYY'&lt;/P&gt;&lt;P&gt;/: SET COUNTRY 'USA'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROTECT-ENDPROTECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is used to avoid pagebreaks in a paragraph. The text lines to be protected are enclosed between the two commands. If there is not enough room &lt;/P&gt;&lt;P&gt;on the page, the PROTECT command acts as a NEW-PAGE command and inserts a page break.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PROTECT&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;/: ENDPROTECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Conditonal text ouput IF - ENDIF and CASE - ENDCASE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use IF/ENDIF and CASE/ENDCASE like in a normal ABAP program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: IF condition&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;/: ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: IF condition&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;/: ELSE&lt;/P&gt;&lt;P&gt;:&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;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: IF &amp;amp;SPFLI-CITYTO&amp;amp; = "BERLIN"&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;..... put some text here&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;/: ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: CASE &amp;lt;something&amp;gt;&lt;/P&gt;&lt;P&gt;/: WHEN &amp;lt;...&amp;gt;&lt;/P&gt;&lt;P&gt;/: ENDCASE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2008 08:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scripts-and-smartforms/m-p/3597677#M866378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-30T08:46:50Z</dc:date>
    </item>
  </channel>
</rss>

