<?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 problem in variant in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959395#M1156199</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;I am working on a report in which i taking variant for all the plants and the problem comes when i assign the variable it removes the date from the selection screen and it becomes blank as i have to update the table for the previous date. i am using this variant :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SYSDATE -1. &lt;/P&gt;&lt;P&gt;so that the data is to be uploaded for the preivous date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz provide me guidelines how to solve this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Dec 2008 08:46:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-09T08:46:56Z</dc:date>
    <item>
      <title>problem in variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959395#M1156199</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;I am working on a report in which i taking variant for all the plants and the problem comes when i assign the variable it removes the date from the selection screen and it becomes blank as i have to update the table for the previous date. i am using this variant :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SYSDATE -1. &lt;/P&gt;&lt;P&gt;so that the data is to be uploaded for the preivous date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz provide me guidelines how to solve this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 08:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959395#M1156199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T08:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: problem in variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959396#M1156200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that the selection screen field's data type is a date type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 08:54:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959396#M1156200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T08:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem in variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959397#M1156201</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;Delete the old variant and create new variant with all your plant details and date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vishal Kapoor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 08:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959397#M1156201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T08:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem in variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959398#M1156202</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;Yes,the data type of the screen field is date  data type . but still it is not executing the program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 09:30:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959398#M1156202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T09:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: problem in variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959399#M1156203</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;You can assign this in the AT SELECTION-SCREEN OUTPUT event and assign this date field with sy-datum - 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if possible you can make it grey mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you  can do the same with Event LOAD-OF-PROGRAM event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ramchander krishnamraju on Dec 9, 2008 10:35 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 09:34:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959399#M1156203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T09:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem in variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959400#M1156204</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;it is not working. plzz provide me guidelines for solving this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 10:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959400#M1156204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T10:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem in variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959401#M1156205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deleting a Report Variant &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. On the report entry screen, follow the menu path: Goto &amp;gt;&amp;gt; Variants &amp;gt;&amp;gt; Delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: The "Find Variant" screen is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Click the Execute button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: The "Delete Variant" screen appears with a list of variants you created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Double-click on the variant you want to delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: A dialogue box asks "In all clients" or "Only in current clients."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Select "In all clients" and click Continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: A dialogue box asks you if you want to delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Click Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: You return to the report entry screen with a message on the bottom saying that your variant has been deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing a Report Variant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important&lt;/P&gt;&lt;P&gt; You need to change your report variant if the report fields have changed. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Display the variant on the report entry screen. If you need to find your variant first, see Finding a Report Variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Type over the values in the fields you selected for the variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Click the Save as variant button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: The "Save as Variant" screen appears. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Click the Save button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: A dialogue box appears, asking if you want to overwrite your variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Click Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: The report entry screen reappears with the values you changed in the fields. A message notifies you that the variant has been saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a Report Variant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a variant before a report. In the following example, a variant is created for the Summary Statement, though the procedure is the same for creating a variant of any report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following navigation path from the SAP User Menu screen or type in the transaction code from any screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Navigation Path:&lt;/P&gt;&lt;P&gt; - User menu&lt;/P&gt;&lt;P&gt;- Role ZMIT&lt;/P&gt;&lt;P&gt;- Reports&lt;/P&gt;&lt;P&gt;- Summary Statement&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Transaction Code :&lt;/P&gt;&lt;P&gt; /nzstm&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Enter the values that you want to save in the report fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Click the Save as variant button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: The "ABAP: Save as Variant" window appears. Show below is a portion of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Type in the name of the variant following the naming conventions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Type in a Description so that you and others can identify the variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. In the Created for selection screens field, accept the default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Click in the check box next to Protect variant if you want to make sure that your variant can only be changed by the person who created it or the last person who changed it. Even though you check this box, other people can still use your variants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. Click the Save button  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: The report screen returns with a message at the bottom that the variant has been saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points to Note&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To prevent others from changing your variant, choose Protect Variant on the "ABAP: Save Attributes of Variant" screen (see Step 6 above).&lt;/P&gt;&lt;P&gt;.. &lt;/P&gt;&lt;P&gt;To help identify your variants, you can type in part of your username as the last seven digits of the variant name. You can also use your name in the Description field.&lt;/P&gt;&lt;P&gt;.. &lt;/P&gt;&lt;P&gt;While other users can run your report variants, if they do not have the authorization to view the cost objects you have selected, SAP will not display the data entry.&lt;/P&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;If a report selection screen is changed, some of the existing variants may not work, depending upon the type of changes made. If the fields have changed, the values you saved may not match the fields displayed on the screen. If you attempt to execute a report with an invalid variant, a message beginning with "Variant xxxxx of program yyyyy is not the current versionu2026" will be displayed.&lt;/P&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;To make sure you are using a current variant, be sure to display the contents of your variant before using it. You can do this either by opening up the variant on the input report screen or by choosing Goto &amp;gt;&amp;gt; Variants &amp;gt;&amp;gt; Display.&lt;/P&gt;&lt;P&gt;See Displaying a Report Variant for more information.&lt;/P&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;Variants can be created using individual cost object values and/or ranges of cost objects. If a new cost object is created within the range of values saved with a variant, it will automatically be included in the report the next time the report is run using the variant. However, if a new cost object does not fall within the range specified when the variant was first created, the user must remember to add the individual cost object to the variant to include it in the report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after doing all this your problem will be solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 10:19:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959401#M1156205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T10:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: problem in variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959402#M1156206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is this happening even when you run the program in foreground and choose the variant manually ?&lt;/P&gt;&lt;P&gt;Also make sure that you are not initializing the date in the program somwhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 10:27:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-variant/m-p/4959402#M1156206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T10:27:16Z</dc:date>
    </item>
  </channel>
</rss>

