<?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 coding in the editor (Command Line; IF-condition) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931509#M1692485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx, !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;everything solved, case closed.&lt;/P&gt;&lt;P&gt;Customer happy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jul 2012 07:30:33 GMT</pubDate>
    <dc:creator>rob_postema</dc:creator>
    <dc:date>2012-07-10T07:30:33Z</dc:date>
    <item>
      <title>Smartforms coding in the editor (Command Line; IF-condition)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931502#M1692478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a Smartform with only 1 window MAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on a flag in the incoming structure, i need to print some data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incoming structure = ZHRU_RV_BEERSHIP and the flagfield = ZHRU_RV_BEERSHIP-&lt;STRONG&gt;FLAG&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the SAPscript type of editor where I can choose /: for command.&lt;/P&gt;&lt;P&gt;However the IF condition is simply being ignored and the data is always being printed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See example below.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/116748" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to tackle this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2012 08:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931502#M1692478</guid>
      <dc:creator>rob_postema</dc:creator>
      <dc:date>2012-07-07T08:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms coding in the editor (Command Line; IF-condition)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931503#M1692479</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;Try to create global variable and put your code to program node. After getting data into variables, use text node to display them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2012 14:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931503#M1692479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-07T14:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms coding in the editor (Command Line; IF-condition)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931504#M1692480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use Alternative Condition,In conditions tab &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;ZHRU_RV_BEE&lt;STRONG&gt;R&lt;/STRONG&gt;SHIP-FLAG&lt;STRONG&gt; = &lt;/STRONG&gt;'ST_SALE_1'&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/116785" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2012 15:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931504#M1692480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-07T15:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms coding in the editor (Command Line; IF-condition)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931505#M1692481</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;Thx, but the problem is that the the Smartform is one big window, and does not have separate windows/textboxes in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All data is printed top-down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created Global Variable(s): WA_NAME1 &amp;amp; WA_NAME2 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right before the main I inserted the condition like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/116822" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the condition = TRUE, I wite the content of my structure-field (&amp;nbsp; zhru_rv_beership&lt;SPAN class="L0S70"&gt;-st_name1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; to the Global Variable WA_NAME1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/116823" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the MAIN-window I address this field: WA_NAME1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/116824" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, nothing happens!, the field is not displayed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do i do wrong!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2012 19:39:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931505#M1692481</guid>
      <dc:creator>rob_postema</dc:creator>
      <dc:date>2012-07-07T19:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms coding in the editor (Command Line; IF-condition)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931506#M1692482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where did you write the code for fetching the data into the structure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2012 06:18:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931506#M1692482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-08T06:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms coding in the editor (Command Line; IF-condition)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931507#M1692483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm fetching the data into the structure in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did right now is &lt;/P&gt;&lt;P&gt;- In the Global Definitions, I created some varaiables.&lt;/P&gt;&lt;P&gt;- In the initialisaztion I fill those variables based on some conditions&lt;/P&gt;&lt;P&gt;- In the main i write those variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Downside is that you have a lot of coding inthe Smatrform (don't like it to be honest)&lt;/P&gt;&lt;P&gt;And, when the variable is initial/empty, the Form is reserving an empty line for it.&lt;/P&gt;&lt;P&gt;I don't want a blank line, I want all my text to fit together.&lt;/P&gt;&lt;P&gt;So if field is empty, don't show blank line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everyone thx for the help so far, if someone has got an anser to the last question (issue with the blank line when field is initial) than i would be very happy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2012 13:57:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931507#M1692483</guid>
      <dc:creator>rob_postema</dc:creator>
      <dc:date>2012-07-08T13:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms coding in the editor (Command Line; IF-condition)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931508#M1692484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to take Text element instead of program lines and place the variable in text element.In conditions tab of text element check your condition.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/117032" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/117033" width="450" /&gt;&lt;/P&gt;&lt;P&gt;If you do like this this'll not print empty line, But you've to use this text element only to this line( for this variable).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 09:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931508#M1692484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-09T09:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms coding in the editor (Command Line; IF-condition)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931509#M1692485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx, !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;everything solved, case closed.&lt;/P&gt;&lt;P&gt;Customer happy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 07:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-coding-in-the-editor-command-line-if-condition/m-p/8931509#M1692485</guid>
      <dc:creator>rob_postema</dc:creator>
      <dc:date>2012-07-10T07:30:33Z</dc:date>
    </item>
  </channel>
</rss>

