How to run the program with variant automatically

Hi experts,
I want to know how can I run the program with a variant automatically without defining any transactions or jobs. I want my program to run with a variant automatically, when I press F8.

Try doing this way...
First Create a Sel Screen varient, 'ZTEST123' in this case
Report ZTEST.
parameters:
  w_kunnr type kna1-kunnr,
  w_flag type c no-display.
start-of-selection.
if w_flag eq ' '.
  submit ZTEST USING SELECTION-SET 'ZTEST123' with w_flag eq 'X'.
endif.
end-of-selection.
  write:  w_kunnr.
Thanks.

Similar Messages

  • How to Run std program with a specific variant for specific user?

    Hi guys
    We have a std program which will be run by different users in the company. Now the requirement is to make sure that each user runs the report with a specific varaint. Can we control this if yes how?
    one options we thought about was to create a transaction in SE93 and define the program to run with a predefined varaint and assign the new custom tcode to the user profile. But we have many different users and we will end up with creating many transactions which we would like to avoid. Is there any other option to control the std program such that each user can run the program only with a pre-defined varaint and the one which only the user is suppoed to run. thanks in advance.

    We have a std program which will be run by different users in the company. Now the requirement is to make sure that each user runs the report with a specific varaint. Can we control this if yes how
    you can do this..
    You can create a Custom table
    userid     keyfield
    program  keyfield
    variant    keyfield
    programdesc
    Make the table Maintaintable(usnig table maintenance )
    Now create another Program
    It takes input of the Program name( using selection screen)
    LOGIC
    in side that place a logic ,
    Based on the user name  and program name Get the variant name from above table
    Now Submit the program with the variant you have selected above.
    Use Variant Addition when you use SUBMIT
    So now program executed based on user variant.
    Now you create a Transaction for this program.
    When use Runs the Transaction , user needs to input the Program name which he wants to execute.
    and Output will be shown based on the variants
    Regards
    Vijay Babu Dudla

  • How to run the program in back ground with out selection screen ?

    Hi,
    I want to run the program in back ground but don't have selection screen. How to run this program in back ground
    as program has no selection screen.
    Waiting for quick response.
    Best Regards,
    Padhy
    Moderator message: basic, please search for available information/documentation.
    Edited by: Thomas Zloch on Feb 21, 2011 12:43 PM

    Hi,
    Go to transaction SE38 --> Execute --> Background.
    If your program contains selection screen, you have to pass your input values as variants.

  • How to run Struts program with the help of tomcat

    Hello Everybody
    This is Adesh.I am a newcomer of java and facing a problem with struts, so if any one know how to set the path of struts and how to run struts program, so plz inform me.
    THX in Advance.............................................

    struts-config.xml
    <struts-config>
    <action-mappings>
         <action path  = "/welcome"
                    type  = "Welcome"
                    scope="session">
                <forward name="success" path=".welcome"/>
                <forward name="failure" path=".base.error"/>
         </action>
    </action-mappings>
        <plug-in className="org.apache.struts.tiles.TilesPlugin">
            <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
            <set-property property="definitions-debug" value="1"/>
            <set-property property="definitions-parser-details" value="0"/>
            <set-property property="definitions-parser-validate" value="true"/>
        </plug-in>
    </struts-config>tiles-defs.xml
    <tiles-definitions>
         <definition name = ".base" path = "/include/template.jsp">
              <put name = "title" value = "${title}"/>
              <put name = "header" value = "/include/top.jsp"/>
              <put name = "body" value = "${body}"/>
              <put name = "footer" value = "/include/footer.jsp"/>
         </definition>
    </tiles-definitions>web.xml
    <servlet>
            <servlet-name>action</servlet-name>
            <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>
    <init-param>
                <param-name>definitions-config</param-name>
                <param-value>/WEB-INF/tiles-defs.xml</param-value>
            </init-param>
            <load-on-startup>1</load-on-startup>
        </servlet>
    <servlet>
            <servlet-name>init</servlet-name>
            <servlet-class>Init</servlet-class>
            <load-on-startup>2</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>action</servlet-name>
            <url-pattern>*.do</url-pattern>
        </servlet-mapping>
      <jsp-config>
        <taglib>
            <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/wall.tld</taglib-uri>
            <taglib-location>/WEB-INF/wall.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/c.tld</taglib-uri>
            <taglib-location>/WEB-INF/c.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/fn.tld</taglib-uri>
            <taglib-location>/WEB-INF/fn.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/fmt.tld</taglib-uri>
            <taglib-location>/WEB-INF/fmt.tld</taglib-location>
        </taglib>
    </jsp-config>
        <resource-ref>
            <description>DB Connection</description>
            <res-ref-name>jdbc/SQLServerDB</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
        </resource-ref>
    </web-app>This should help....

  • How to run the program  UMB_BSC_TABLE_CLEAN ?

    Hi Friends,
    I am getting a message telling inconsistency in the selection criteria while assigning the characteristic value in value fields of a measure of scorecard in SEM application. It's suggesting me to run the program "UMB_BSC_TABLE_CLEAN".
    In the selection screen of "UMB_BSC_TABLE_CLEAN" apart from field for scorecard name there are 2 bullets - one for "Clean" and another for "Repair" and a checkbox named "Check".
    Can anyone please tell me what are these selection screen options for ? Also to solve my problem how i'll run this program ?

    From the documentation of the program:
    <b>Selection</b>
    <i>Scorecard</i>: select the scorecards whose database tables are to be cleaned or repaired.
    <i>Type of Table Change</i>:
    <u>Clean Up</u>:
    Deletion of Scorecard elements that are no longer used or no longer need to be displayed
    Deletion of value fields with value field selections that do not have a SAP BW counterpart
    <u>Repair</u>
    Restoration of inconsistent value field selections
    Deletion of value fields for which the value field selections cannot be restored.
    <i>Check</i>: If you set this indicator, all inconsistent entries are listed without changing the database table(s).

  • How to run the program "RSR_GEN_DIRECT_ALL_QUERIES" in planning fuction?

    Hi all:
    How can i  run the program "RSR_GEN_DIRECT_ALL_QUERIES" in planning fuction?
    hope for your help.
    thanks.

    Hi,
    "RSR_GEN_DIRECT_ALL_QUERIES" is a report which can run in SE38.This is the report used to generate all the changes to reflect in BEx( also generate all BI queries for a info provider, or even all queries/mass generation  in the system).
    In the above , this can be assigned to variant in the process chain, which can  trigger  this  through customized planning function( Generate Button).
    Regards
    CSM Reddy

  • How to run native program with Java program?

    Hello
    I've got following problem. I'd like to write file browser which would work for Linux and
    Windows. Most of this program would be independent of the system but running programs not. How to run Linux program from Java program (or applet) and how to do it in Windows?.
    Cheers

    Try this:
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec("ls -l");
    InputStream stream = proc.getInputStream();
    InputStreamReader isr = new InputStreamReader(stream);
    BufferedReader br = new BufferedReader(isr);
    String line = null;
    while ( (line = br.readLine()) != null) .....
    "if the program you launch produces output or expects input, ensure that you process the input and output streams" (http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html)

  • How to run the programes in NetBeans

    any body know how to run the java progarm in NetBeans.
    can u please guide me?
    Advance in thanks

    thanks for ur reply.
    this is my code.
    public class sample11 {
    /** Creates a new instance of sample11 */
    public sample11() {
    public static void main(String args[])
    System.out.println("nithya");
    i did watever u told. but i don't have o/p. wat can i do? how to it display the o/p?

  • How to run the program in the applet

    I have installed the JDK 1.3 and succesfully compiled my first Java application (appropriately named HelloWorld.java). I could compile the source file also.But i am getting an error when i am trying to run the program in the applet iam getting an error as
    "start applet not initialised"
    and the program is
    * The HelloWorldApp class implements an application that
    * displays "Hello World!" to the standard output.
    public class HelloWorldApp {
    public static void main(String[] args) {
    // Display "Hello World!"
    System.out.println("Hello World!");
    so please help me out
    Thanks in advance

    Hmm... this is a console based application...
    So it won't work using an applet viewer.
    You can try coding an applet instead.
    I hope I didn't misunderstand your question.

  • How to run the Program given in JavaMail 1.4 Demos (folderlist.java)

    Hi All,
    in the distribution of JavaMail 1.4, some programs are given, i want to run folderlist.java. But i m unable to run it? Can somebody tell me how to run it?
    i tried like this:
    java folderlist -T IMAP -H email.abcdef.com -U user -P password
    java folderlist -T POP -H email.abcdef.com -U user -P password
    But it is not working giving some error like :
    Exception in thread "main" javax.mail.NoSuchProviderException: No provider for POP
    at javax.mail.Session.getProvider(Session.java:455)
    at javax.mail.Session.getStore(Session.java:530)
    at javax.mail.Session.getStore(Session.java:510)
    at folderlist.main(folderlist.java:117)

    Hi bshannon,
    I had tried with the protocol names you given, but same is the result, can u tell me i m giving only protocol, host, user, password.
    Is this sufficient to connect or i need to supply all the params like url , root, verbose, pattern, etc.
    I m getting the access to server in other programs. Since our server doesn't support imap. so i tried like this
    E:\downloads\javamail-1.4\demo>java folderlist -P pop3 -H email.abc.com -U username -P password
    Exception in thread "main" javax.mail.NoSuchProviderException: Invalid protocol: null
            at javax.mail.Session.getProvider(Session.java:431)
            at javax.mail.Session.getStore(Session.java:530)
            at javax.mail.Session.getStore(Session.java:510)
            at javax.mail.Session.getStore(Session.java:496)
            at folderlist.main(folderlist.java:119)

  • How to run the program using specific classpath

    Recently I installed Javamail 1.2 and JAF1.0.1 on my NT Box and set up the classpath. I can compile my java email code by using: javac myEmail.java. But when I tried to run the code using java myEmail, it always gives the error: Exception in thread "main" java.lang.NoClassDefFoundError: myEmail.
    when I use -verbose and found that it always goes to:
    C:\Program Files\JavaSoft\JRE\1.3.1\lib\rt.jar to find classes even I use -cp option to point Javamail\mail.jar and activation.jar.
    what is wrong with it? Thank you in advance!!!!!!

    What does this have to do with JMS. I suggest that this should have been posted to the Java Programming forum where you would have gotten a quick response as this is a simple problem to diagnose.
    The problem is that the class myEmail, which you created, is not on the class path so it cannot find it. It has nothing to do with the location of mail.jar and activation.jar, although this may cause problems later.
    What you need to do is check the classpath in the environment variables section of the System dialog box. Make sure it refers to . (the current directory) as well as the locations of mail.jar and activation.jar. Also when you invoke myEmail ensure you are in the same directory.
    Hope this helps

  • How tu run the program in background

    Hi SapAll.
    actually iam new to ABAP ,i just want to know on how i can run the particular program  in background .
    can any one explain me in steps .
    i also want to know on how to delete the particular job which has been already created in sm36 .
    will be waiting for best response.
    regards.
    Varma

    Hi
    Find the below steps to be defined.
    1. Go to SM36 -
    > Give the Program Name
    2. If you have priority defined that to in Job class
    3. Click -
    > Start Condition
    4. Select Data/Time Tab
    5. Give the Date and Time for the job execution. (If you want to certain intervale provide it)

  • How to find the programs with message no?

    Knowing the error message no, i.e. V1 456, is there way to find out what ABAP programs issue this error message? So a debug point can be set in the right program.
    Thanks.
    Richard

    Hi,
        You can findout like below...
    1) Go to SE91 transaction
    2) Give message class as - V1 & message number as - 456
    3) Click on Display
    4) Select the message again by clicking the push button against 456 message
    5) Click on where used list on menu (or) CtrlShftF3
    6) Select - Programs in next popup screen ...
    so you will get list of the programs which used this message class & number
    Regards,
    Dj
    reward, if its useful

  • How to run the program for specified time

    Dear Friends,
    I have a small problem, I want to run my labview program for specified amount of time, Say for example it might be 1 hour or 5 hours or 10 minutes or even milliseconds(The time will be specified by the user).
    How to write programs for this
    And I want to get the system time in an instance, how it can be achieved,
    Could you please help me?
    Regards,
    Rathan

    Hi,
    Herewith my screenshot attached. There are thre inputs thres, tempX, xValue, it is in side the while loop.'xValue' will be acquired every iteration, It will be saved through shift register and acquired to 'tempX' for the next iteration, 'thres' is a constant value. I'm doing some logic, and calculating the dvalue and convert it to a string and concatenate it with end of line character, then after writing it into a file.
    In the logic, inside of the functional logic  I'm assigning some values dValue, if the logic is true or else dvalue will be 0
    What I require is I don't want to write the dValue in to a file, if it is equal to zero. Could you please help me, how to tackle this problem?
    Thanks.
    Regards,
    Rathan   
    Attachments:
    writing except 0.GIF ‏9 KB

  • How to run a program with a specific WM?

    I am unsure if this is programming related, or what.. but:
    I am programming something and when I run it I have no visible window manager. This is probably because I use DWM. However, when I compile and run this on a machine with a DE the application has a window manager bar, such as GTK, or what ever the DE uses. My question is, how in my setup (DWM or in any DE-less environment) can we force an application to use a title bar/window manager bar such as GTK?

    Firstly, we've got to get some terminology straight :-)
    I think what you're referring to is usually called one of several things:
    - A client's parent window.
    - A client's decorations.
    - A client's extents.
    - A client's frame.
    Also, GTK is a GUI toolkit... Like Qt, tkinter, or wxWidgets. They are not responsible for a client's decorations. Traditionally (with the famous exception being Chrome), window managers create those decorations by re-parenting the window you create.
    Usually, tiling window managers don't bother with decorations (although, they may still re-parent the client for other reasons).
    In short, you can't "force" your application to use a title bar, unless you physically create one yourself (again, like Chrome... and they do it so tabs can be at the very top). I don't think toolkits do this, since window managers traditionally do this manually.
    You don't need to have a DE to have window decorations. If you were just running Openbox, you would see a title bar too.
    If a window manager doesn't create decorations for you, you need to create your own (probably from scratch, unless a toolkit exists to do this for you, but I'm not aware of any). This is a non-trivial task that would probably require low level X programming (using Xlib or XCB). If you want to pursue this venue, I'd be happy to give you a few pointers. (I am building a re-parenting window manager right now.)

Maybe you are looking for

  • Customised Flavor Drag and Drop in Indesign CS3

    Hello All, I'm implementing a to Drag & Drop from an external application (say windows Desktop) on to Indesign CS3 Document. I have implemented a Custom Flavor helper and a Data Exchange helper for my custom Flavor. I have registered my Custom Flavor

  • I did the last update on my Iphone 5 like a week or so ago...

    Now it shows all "recents" on the screen (the recent people I've communicated with - their name shows in a small blue circle).  I can't stand these stupid little circles!  How do I get these off and stop it from continuing to add more names/circles??

  • Web Dynpro ABAP application's link in UWL.

    Hi Experts,                  As per my project requirement i need to send the web dynpro abap application's link for another SAP user by using UWL concept. My requirements are :            After triggering the workflow i am getting the tasks inside m

  • DVD SP 4.0 on new iMac?

    Hi all, I waited and waited for FCPx and was sorley dissapointed that DVD Sp is no longer an option So... I managed to secure a retail boxed version of DVD SP 4.0 from ebay - old stock I guess but still original software. However it would not install

  • Windows 2003 Server Guest - Could not start guest after conversion

    Hi, i am trying to start a converted VM (Windows Server 2003) from VMWARE. The conversion with the VM Manager finished successful. But when i want to start the VM, i get the following error; failed:<Exception: return=>failed:<Exception: xm create '/O