How to add authorisation check to a program?

Hi all :
      Could you please tell me how to add authorisation check to a program?  
      Thanks a lot.

Hi,
Check SAP help for authority-check. You can search on SDN on that.
AUTHORITY-CHECK
Basic form
AUTHORITY-CHECK OBJECT object
ID name1 FIELD f1
ID name2 FIELD f2
ID name10 FIELD f10.
Thanks
Nidhi

Similar Messages

  • Reg:How to add availability check in sales view

    hi all
    How to add availability check in sales view
    regards
    JK

    HI Janardan..
    Check out the help.sap link for Availability check. It has a lot of info.
    http://help.sap.com/saphelp_erp2005/helpdata/en/6b/2785347860ea35e10000009b38f83b/frameset.htm
    If it helps Reward with points..
    Regards Rk

  • How to add a check if entered number is even

    hi!
    I need some help. I need user to enter the size of the figure to be printed out. It has to ba an even number (otherwise it will print out with error). I need to add a check if entered size is an even number, otherwise display an error message and prompt user for entering the size again. If it is an even number the program should proceed and print out a figure. Any suggestions for the piece of code I need to add? Many thanks in advance!
    import java.util.*;
    public class Question2 {
    public int Size;
    public static void main(String[] args) {
    Scanner keyboard = new Scanner(System.in);
    System.out.print("Please enter the size of a triangle you want to print out (it has to be an even number): ");
    int Size = keyboard.nextInt();{
    if (Size%2==0){
    line(Size);
    drawtop(Size);
    middleline(Size);
    drawbtm(Size);
    line(Size);
    public static void line(int Size) {
    System.out.print("|");
    for (int i = 1; i <= Size / 2; i++) {
    System.out.print("-");
    System.out.print("*");
    for (int i = 1; i <= Size / 2; i++) {
    System.out.print("-");
    System.out.print("|");
    System.out.println(" ");
    public static void drawtop(int Size) {
    for (int line = 1; line <= Size / 2; line++) {
    System.out.print("|");
    for (int space = 1; space <= Size / 2 - line; space++) {
    System.out.print(" ");
    for (int star = 1; star <= (line * 2 + 1); star++) {
    System.out.print("*");
    for (int space = 1; space <= Size / 2 - line; space++) {
    System.out.print(" ");
    System.out.println("|");
    public static void middleline(int Size) {
    System.out.print("*");
    for (int i = 1; i <= Size / 2; i++) {
    System.out.print("**");
    System.out.println("**");
    public static void drawbtm(int Size) {
    for (int line = 1; line <= Size / 2; line++) {
    System.out.print("|");
    for (int space = 1; space <= line - 1; space++) {
    System.out.print(" ");
    for (int star = -1; star <= (2 * Size / 2 - 2 * line) + 1; star++) {
    System.out.print("*");
    for (int space = 1; space <= line - 1; space++) {
    System.out.print(" ");
    System.out.println("|");
    }

    Its really unbelievable that if you have written the code of printing triangles by yourself, how you got stuck at a trivial problem like this. Please just dont copy and paste the code for completing your assignments.
    Anyway the solution is trivial and I am giving you a work-through-:
    Think what the if condition is doing in the below code :
    if (Size%2==0){
    } It does nothing.
    You need a condition in which to print a message to ask user to input an even number and ask again if the number is not even. Doesnt this look like that u need a loop, And you dont know the how many times to loop but you do know when to end the loop. SO you need a WHILE loop with appropriate condition checked of even number.
    Now I hope you can complete the program.

  • How to put Authorisation Check?

    Hi,
    I have built a Module Program. In this there is a Save Button where information in the screen is saved to a Z table.
    I need to put an Authorisation check to this save button. That is only users who have “Save” capability could save.
    Simply there should be an authorisation check before the Save where it will check if the User has the Save option.
    Please guide me on how to do this.
    Thanks,
    Kishan

    Hi Kishan,
    1. AUTHORITY-CHECK
       The above statement is required for authority checking.
        Just see help on it for syntax purpose.
    2. Moreover,
       u will also have to know which authorisation object
       is necessary for your purpose.
       (or else new authorisation object may need tobe created)
    Hope the above helps.
    Regards,
    Amit M.

  • How to add a check box

    Hi all,
    How can I add a check box in a interactive report???

    This link will help you
    http://docs.oracle.com/cd/E1437301/apirefs.32/e13369/apex_item.htm_

  • How to add a check box in ALV Grid using SAP R/3 release 4.6b?

    Hello everyone,
    I hope you all fine.
    I'm writing because I have a requirement with ALV Grid,  what I need to do, is to insert a checkbox into a cell, I already read the forum to know how to do that, but I'm using a SAP R/3 release 4.6b, and when I execute the program the checkbox is displayed greyout,  because this release doesn't have the EDIT property into the slis_t_fieldcat_alv.
    Does any body know how to enable the checkbox cell in the ALV Grid for this release?, so it will allow the user to mark the desired rows.
    I'll really appreciate if you guys could help me to find a solution.
    Thanks for your time.
    Regards,
    Guillermo

    Hi,
    if you need just a check box for each line, try to get rid of this line from your layout.
    g_layout-box_fieldname = 'ZZCHECK'.
    SAP uses this field to store info about selected lines. Hence you click on the second check box, you select different line and the first line is erased. You can select more line by holding SHIFT + CTRL
    Cheers

  • How to add the activity report or program in CIC0 win client

    Dear Sir,
    Please kindly advise if I would like to add the new program or monitor activity report  to display in t-code : CIC0 . Is it possible for the screen of agent.
    Thank you and best regards,
    Vimol

    Hi Vimol,
    As we said for the action box you can open it from the cic0 in another screen.
    Then with the standard facsheet you can't do it, but if you want to develop it, should be no problem, but I think it's quite hard. Look in forum for facsheet modifications, and you'll have an idea, of what it can suppose.
    Explain a bit more, why do they want this report? how are they going to use it? so I can give you other ways to arrive to the same point.
    Regards,
    TPT

  • How to add buttons to a standart program

    Hi experts,
    It is easy to add a button in a call screen. But i want to add a button in a standart program which doesnt call a screen. For example an alv report. But i want the button near the exit, back buttons. not in the alv.
    I searched standart program has the screen 1000 for it. I see this in the screen flow logic
    PROCESS BEFORE OUTPUT.
    MODULE %_INIT_PBO.
    MODULE %_PBO_REPORT.
    MODULE %_PF_STATUS.
    MODULE %_S_WERKS.
    MODULE %_S_MATNR.
    MODULE %_S_BUDAT.
    MODULE %_S_EBELN.
    MODULE %_S_LIFNR.
    MODULE %_END_OF_PBO.
    PROCESS AFTER INPUT.
      MODULE %_BACK AT EXIT-COMMAND.
      MODULE %_INIT_PAI.
    which ones i need to create to create my button. I know i need one pbo and one pai. But which module how can it be done ?
    Thanks

    hi
    PROCESS AFTER INPUT.
    MODULE %_INIT_PAI.
    Regards
    Aditya

  • How to add requaired library to your programe

    I have a problem with a program Im developing. This program connects to all databases that has a JDBC Driver then you can browse tables and its contents and shows relation between tables and procedures.....etc
    The problem is:
    When a user wants to connect to a database he will need to setup a required library ( JDBC Driver JAR file location and the Driver Class ), then the program updates the classpath to include the new path and adds the Driver Class to the Driver Class list.
    When using the following:
    Class.forName (CurrentDriver); where CurrentDriver is one of the Driver class listed in the program the following exception thrown. "ClassNotFoundException".
    But, when using the following:
    URL[] pathes = new URL[count];
    Pathes[0] = new URL("file", null, "D:/hdkjashdk.jar");
    Pathes[1] = new URL("file", null, "A:/gdhsga/hdg/sadj.jar");
    Pathes[2] = new URL("file", null, "C:/hksffs/fhsj.jar");.
    URLClassLoader loader= new URLClassLoader(pathes);
    Class.forName(currentDriver,true,loader);No "ClassNotFoundException" was thrown.
    And after that, when using
    DriverManager.getConnection (url, user, password); An SQLException : No Suitable Driver thrown.
    Why, and how can I fix this problem.

    opps. the prevous code is the old one sorry, here is the new one.
    package betasniper;
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import java.net.*;
    /* When you want to use one or all of this methods you have to setup the "theParentFrame"
    or "theParentDialog" so the class know how is the parent window to throw the exception dialog*/
    public class PickupDriversAndSettingClasspath
      public static Properties allDriver;
      public static Vector allPathes;
      public static Frame theParentFrame;
      public static Dialog theParentDialog;
    // Method to set up all Valide Drivers.
      public static void settingDriver()
        allDriver= new Properties();
        String record= "";
        try
          RandomAccessFile random = new RandomAccessFile("jdc.srs", "r");
          while(random.getFilePointer() < random.length() )
            record= random.readUTF();
            if( record.startsWith("#") )
              String[] kv= stringTokenDriver(record);
              allDriver.setProperty(kv[0],kv[1]);
        catch( FileNotFoundException fnfe )
          if( theParentFrame != null )
            theParentFrame.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentFrame, "", false);
            ew.erroMessage(
               "PickUpAndSetting-100 Error, File were JDBC Drivers are stored could not be found.");
            ew.stackTrace(fnfe.toString());
            fnfe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentFrame.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentFrame=null;
            ew.pack();
            ew.show();
          if( theParentDialog != null )
            theParentDialog.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentDialog, "", false);
            ew.erroMessage(
                "PickUpAndSetting-100 Error, File were JDBC Drivers are stored could not be found.");
            ew.stackTrace(fnfe.toString());
            fnfe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentDialog.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentDialog=null;
            ew.pack();
            ew.show();
        catch( IOException ioe )
          if( theParentFrame != null )
            theParentFrame.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentFrame, "", false);
            ew.erroMessage(
               "PickUpAndSetting-101 Error, I/O Error please try again.");
            ew.stackTrace(ioe.toString());
            ioe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentFrame.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentFrame=null;
            ew.pack();
            ew.show();
          if( theParentDialog != null )
            theParentDialog.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentDialog, "", false);
            ew.erroMessage(
                "PickUpAndSetting-101 Error, I/O Error please try again.");
            ew.stackTrace(ioe.toString());
            ioe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentDialog.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentDialog=null;
            ew.pack();
            ew.show();
    // Method to set up ClassPath.
      public static void settingClasspath()
        allPathes= new Vector();
        String record= "";
        try
          RandomAccessFile random = new RandomAccessFile("jdc.srs", "r");
          while(random.getFilePointer() < random.length() )
            record= random.readUTF();
            if( record.startsWith("#") )
              if( !allPathes.contains(stringTokenPath(record)) )
                allPathes.addElement(stringTokenPath(record));
          StringBuffer sb= new StringBuffer(System.getProperty("java.class.path"));
          int num= allPathes.size();
          for( int i=0; i < num; i++ )
            sb.append(";");
            sb.append((String)allPathes.elementAt(i));
          System.setProperty("java.class.path", new String(sb));
        catch( FileNotFoundException fnfe )
          if( theParentFrame != null )
            theParentFrame.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentFrame, "", false);
            ew.erroMessage(
               "PickUpAndSetting-200 Error, File were JDBC Drivers are stored could not be found.");
            ew.stackTrace(fnfe.toString());
            fnfe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentFrame.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentFrame=null;
            ew.pack();
            ew.show();
          if( theParentDialog != null )
            theParentDialog.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentDialog, "", false);
            ew.erroMessage(
                "PickUpAndSetting-200 Error, File were JDBC Drivers are stored could not be found.");
            ew.stackTrace(fnfe.toString());
            fnfe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentDialog.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentDialog=null;
            ew.pack();
            ew.show();
        catch( IOException ioe )
          if( theParentFrame != null )
            theParentFrame.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentFrame, "", false);
            ew.erroMessage(
               "PickUpAndSetting-201 Error, I/O Error please try again.");
            ew.stackTrace(ioe.toString());
            ioe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentFrame.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentFrame=null;
            ew.pack();
            ew.show();
          if( theParentDialog != null )
            theParentDialog.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentDialog, "", false);
            ew.erroMessage(
                "PickUpAndSetting-201 Error, I/O Error please try again.");
            ew.stackTrace(ioe.toString());
            ioe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentDialog.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentDialog=null;
            ew.pack();
            ew.show();
    // Method to load and register all driver..
      public static void loadAndRegister()
        settingClasspath();
        settingDriver();
        int count= allPathes.size();
        URL[] pathes= new URL[count];
        for( int i=0; i < count; i++ )
          String currentPath=(String)allPathes.elementAt(i);
          currentPath.replace('\\','/');
          try
            pathes[i] = new URL("file:///" + currentPath);
          catch(MalformedURLException mue)
            if( theParentFrame != null )
              theParentFrame.setEnabled(false);
              ErrorWindow ew = new ErrorWindow(theParentFrame, "", false);
              ew.erroMessage(
                "PickUpAndSetting-300 Error, Malformed URL Error.");
              ew.stackTrace(mue.toString());
              mue.printStackTrace(new PrintStream(ew.theOutput));
              Dimension parentDimension = theParentFrame.getSize();
              Dimension dialogDimension = ew.getSize();
              int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                              ( (dialogDimension.getWidth()) / 2));
              int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                              ( (dialogDimension.getHeight()) / 2));
              ew.setLocation(x, y);
              theParentFrame=null;
              ew.pack();
              ew.show();
            if( theParentDialog != null )
              theParentDialog.setEnabled(false);
              ErrorWindow ew = new ErrorWindow(theParentDialog, "", false);
              ew.erroMessage(
                 "PickUpAndSetting-300 Error, Malformed URL Error.");
              ew.stackTrace(mue.toString());
              mue.printStackTrace(new PrintStream(ew.theOutput));
              Dimension parentDimension = theParentDialog.getSize();
              Dimension dialogDimension = ew.getSize();
              int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                              ( (dialogDimension.getWidth()) / 2));
              int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                              ( (dialogDimension.getHeight()) / 2));
              ew.setLocation(x, y);
              theParentDialog=null;
              ew.pack();
              ew.show();
        URLClassLoader loader= new URLClassLoader(pathes);
        Enumeration enum= allDriver.propertyNames();
        while( enum.hasMoreElements() )
          String currentName= (String)enum.nextElement();
          String currentDriver= allDriver.getProperty(currentName);
          try
            Class.forName(currentDriver, true, loader);
          catch(ClassNotFoundException cnfe )
            if( theParentFrame != null )
              theParentFrame.setEnabled(false);
              ErrorWindow ew = new ErrorWindow(theParentFrame, "", false);
              ew.erroMessage(
               "PickUpAndSetting-301 Error, The Driver CLass could not be found.");
              ew.stackTrace(cnfe.toString());
              cnfe.printStackTrace(new PrintStream(ew.theOutput));
              Dimension parentDimension = theParentFrame.getSize();
              Dimension dialogDimension = ew.getSize();
              int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                              ( (dialogDimension.getWidth()) / 2));
              int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                              ( (dialogDimension.getHeight()) / 2));
              ew.setLocation(x, y);
              theParentFrame=null;
              ew.pack();
              ew.show();
            if( theParentDialog != null )
              theParentDialog.setEnabled(false);
              ErrorWindow ew = new ErrorWindow(theParentDialog, "", false);
              ew.erroMessage(
                "PickUpAndSetting-301 Error, The Driver CLass could not be found.");
              ew.stackTrace(cnfe.toString());
              cnfe.printStackTrace(new PrintStream(ew.theOutput));
              Dimension parentDimension = theParentDialog.getSize();
              Dimension dialogDimension = ew.getSize();
              int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                              ( (dialogDimension.getWidth()) / 2));
              int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                              ( (dialogDimension.getHeight()) / 2));
              ew.setLocation(x, y);
              theParentDialog=null;
              ew.pack();
              ew.show();
      public static String stringTokenPath(String record)
        String path= "";
        StringTokenizer token= new StringTokenizer(record,"|");
        int count =0;
        while( token.hasMoreTokens() )
          String s= token.nextToken();
          count += 1;
          if( count == 3 )
            path= s.substring(0, s.length()-2);
        return path;
      public static String[] stringTokenDriver(String record)
        String[] driver= new String[2];
        StringTokenizer token= new StringTokenizer(record, "|");
        int count= 0;
        while( token.hasMoreTokens() )
          count += 1;
          String s= token.nextToken();
          if( count == 1 )
            driver[0]= s.substring(1, s.length());
          if( count == 2 )
            driver[1]= s;
        return driver;
      /*void viewing()
        Enumeration enum= allDriver.propertyNames();
        while( enum.hasMoreElements() )
          String key= (String)enum.nextElement();
          String value= allDriver.getProperty(key);
          System.out.println(key+"------"+value);
    }

  • How to add a check box to a table?

    I'm new to the Swing portion of Java. Most of the stuff we write is for backend processing and does not require any GUI's. However, I need to write a screen that needs to have a table and that table needs to have a checkbox. How do I add a checkbox for a column in the DefaultTableModel? Does anyone have any examples?
    Thanks

    [http://java.sun.com/docs/books/tutorial/uiswing/components/table.html]
    If the TableModel's column class is Boolean, you'll get the column rendered with checkboxes. Take a look at some of the examples in the tutorial.

  • How to Skip Authorisation Checks when i use LDB PNPCE

    Hi Experts,
    I have requirement to skip authorization checks in PNPCE LDB.
    Please let me know how it is possible , it is quite urgent
    Thanks a lot in Advance!
    Regards,
    Akila
    Moderator message: do not skip authorization checks, do not post "urgent" issues here.
    Edited by: Thomas Zloch on Aug 7, 2011 9:53 PM

    Hi Akila,
    Its not the good idea to ignore the authorization check, There should be a legitimate reason why it has implemented at first place?
    (If programmatic)The one who implemented the Auth check is he right person to approach how to ignore,just a matter of checking sy-subrc(But i would hesitate to apply that) . Or if this applied by roles then Security person might help you.
    @Prasenjit: How Dummy value could serve this purpose?
    Cheers
    Amit

  • How to add a check constraint to a column to accept values in the following format: "L214"?

    All I could come up with is this:
    check (column_name like '____');
    But That doesn't enforce the first character to be a letter and the other three to be numbers.

    Hi,
    "PS: Why the f***you have so many subforums here?"
    Because it is much easier to seperate and let experts answer to specific details of SQL Server. SQL Server is not a small product as many people think ;-)
    Here is the solution:
    CREATe table SampleA (A INT, B VARCHAR(MAX) CHECK (B LIKE '[A-Z][0-9][0-9][0-9]'))
    INSERT INTO SampleA VALUES (1,'0000')
    Msg 547, Level 16, State 0, Line 2
    The INSERT statement conflicted with the CHECK constraint "CK__SampleA__B__38B96646". The conflict occurred in database "master", table "dbo.SampleA", column 'B'.
    The statement has been terminated.
    INSERT INTO SampleA VALUES (1,'L000')
    --(1 row(s) affected)
    INSERT INTO SampleA VALUES (1,'L0001')
    Msg 547, Level 16, State 0, Line 2
    The INSERT statement conflicted with the CHECK constraint "CK__SampleA__B__38B96646". The conflict occurred in database "master", table "dbo.SampleA", column 'B'.
    The statement has been terminated.
    -Jens
    Jens K. Suessmeyer http://blogs.msdn.com/Jenss

  • How to add iespell check button to toolbar

    kmnmknknm

    Firefox has its' own spell checker. <br />
    https://support.mozilla.com/en-US/kb/Using+the+spell+checker

  • How to add Starting Window, image in program

    I want to display a picture for a while as starting window of the program. Can any one help me to do so.

    Here, try this;-
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class The_Start extends JWindow {
    ImageIcon img = new ImageIcon("new.jpg");;
           public The_Start() {
              super();
              setBounds(300, 250, 100, 75);
            addMouseListener(new MouseAdapter(){
               public void mousePressed(MouseEvent e) {
                  setVisible(false);
                  dispose();
            setVisible(true);
        public void paint(Graphics g) {
           g.fillOval   (2, 2, 96, 71);
           g.setColor   (Color.cyan);
           g.drawString ("... loading :-", 15, 25);
           g.drawImage(img.getImage(), 30, 30, this);
       public static void main(String []args) {
          new The_Start();
    }

  • How to add multiple seletions to the Program.

    Hi Folks,
    The requiremnet as below.
    Currently we have a Program to download to desktop  from applicatin server.
    Using this Program we can download a single dataset to desk top.
    Now the user required they need multiple selections to download the files to desk top from Appliation server.
    Please help me to resolve this issue.
    Thanks&Regards
    Sandeep

    HI,
    Follow this code
    HI,
      do you mean to say that you want to read all the files in a directory of a application server and download it onto desktop...
    use select options for your application server path entry in the selection screen.
    tables : RLGRAP.
    select-options : s_fname for  RLGRAP-FILENAME no intervals.
    data : begin of itab occurs 0,
             filename(50),
             end of itab.
    start-of-selection.
    loop at s_fname.
    itab-filename = s_fname-low.
    append itab.
    endloop.
    *now itab will have all the files in the application server.
    loop at itab.
    open dataset itab-filename.
    transfer to itab.
    close dataset itab-filename.
    gui_download..
    endloop.
    Thanks
    mahesh

Maybe you are looking for