Interface/Method question (how to use the method insert_table)

Hi people!
I'm working with DOI (desktop office integration).
So far I've been able to reflect flat variables from my ABAP program into a Word Doc, but when it comes to internal tables I'm not sure how to achieve this.....
I find out in the interface i_oi_word_processor_document the method insert_table, but I can't find a single simple example on how to use it....
If no one knows how to use this method, does anyone know how to reflect an internal table fron my program into a Word Doc by another mean?
Thanks in advance!!!
Regards,
Laura

Hi Laura
If you want you can use direct OLE calls. For this, you can refer to the tutorial <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1d54348-0601-0010-3e98-bd2a2dcd9e6c">"An Easy Reference For OLE Automation"</a> published at SDN.
Kind Regards
*--Serdar
[email protected]

Similar Messages

  • How to use the method "getChildrenRemoved()" declared in ElementChange?

    How to use the method "getChildrenRemoved()" declared in DocumentEvent.ElementChange?

    I have tried to use it,but the code below alway say "Yes"....
    I really have no ideas about why ec is always a null.
    public void removeUpdate(DocumentEvent ee) {
           DocumentEvent.ElementChange ec = ee.getChange(doc.getDefaultRootElement());
           if(ec == null)
              System.out.println("Yes");
                     }

  • How to use the method getParameterValues() of request object in JSP?

    I'm trying to use the method
    String a[]=request.getParameterValues("ch_box");
    to retrieve the values from the form
    but it gives the error
    "Method getParamaterValues(java.lang.String) not found in interface javax.servlet.http.HttpServletRequest."
    so plz tell me how to overcome this hurdle?
    thanx

    Well, just one note... either you have a typo in your code, or else in your post.
    If you cut and pasted the error message (which it looks like you did), then the method getParamaterValues() should be getParameterValues() instead (notice the spelling difference), so you probably just have a typo in your code.

  • How to use the method for field-exit to trigger the workflow?

    Dear all,
         I want the workflow to trigger , when ever the check box for DELIVERY COMPLETED is checked in ME22N .
         I have developed a method in SE18 for the corresponding field and defined function module SWE_EVENT_CREATE with BOR bus2012 and event CHANGED.
        Now how to use this method to make my workflow to trigger?Shall I create an event in delegated bus2012 and can I call this method?
    Thanks and regards,
    S.Suresh

    Hi
    You want to place your method which is defined for particular filed.right?
    For that you can go for BADI. First you check whether any badi is getting called form that tcode ME22N. Then to place your method, implement that BADI.  So whenever that BADI is getting called, it will call your event. Through Event workflow will be getting triggered.
    Regards,
    Hemalatha.

  • How to use the method  setReadTimeout(int longtimes) in HttpUrlConnection?

    I have to use the HttpUrlConnection to download files ,sometimes the speed is very slow or just blocked for no reason.(no Exception was throw and I can't see any changes from my swing Interface)
    It seems the thread is dead. I try to use setReadTimeout() to control the read . but it isn't working ,
    Now I have to questions?
    one how to use the setReadTimeout() so it can throw the SocketTimeoutException like the API said
    second how to solve the problem I metioned before : sometimes the speed is very slow or just blocked for no reason
    Please somebody help me !!!

    That is not true. For example ajax continuous, http monitor or media streaming in client side is unusable without nio http client (or implementation is much simple and better). All logic is coming to client side from server. Modern client are very powerful and same time servers are overloaded.

  • How to use the method finalize () ? It has protected access...

    Here is the program : the structure is the way I would write in Pascal.
    I need new object question at each turn in the loop ! But question is already defined outside the loop. So, I thought to the method finalize (). But the compilator doesn't agree.... It would be a good thing however to destroy objects wich are obsolete !
    public class MM {
       public static void main (String [] args) {
          Base base = new Base ();
          base.demanderNbCouleurs ();
          base.demanderNbPions ();
          Combi solution = new Combi ();
          solution.demander ();
          Combi question = new Combi ();
          question.cueillir ();
          question.afficher ();
          Reponse reponse = new Reponse ();
          reponse.demander ();
          boolean trouve = reponse.getBP () == base.getNbPions ();
          boolean erreur = false;
          while (! trouve & ! erreur) {
             question.enregistrer (reponse.getBP (), reponse.getMP ());
             question.finalize ();
             Combi question = new Combi ();
             question.cueillir ();
             while (! question.compatible () & ! question.getVide ()) {
                question.cueillir ();
             if (question.compatible ()) {
                question.afficher ();
                reponse.demander ();
                trouve = reponse.getBP () == base.getNbPions ();
             } else {
                erreur = true;
          conclusion (trouve);
       }

    So, I did ;
             question = new Combi ();And it's magical ! The program works...
    Now, I would like to give colors to my researcher Mastermind :
    1 2 3 4
    4 4 1 1 ... BP MP : 0 2
    1 1 6 5 ... BP MP : 1 0
    1 3 4 3 ... BP MP : 1 2
    1 2 3 4 ... BP MP : 4 0
    Trouve !
    I want the 1 to be red, the 2 be yellow, the 3 be green and so on...
    Is there any procedure " textColor " ?
    here is my method afficher () :
       public void afficher () {
          // Affiche le tableau 'combi'.
          for (int i = 0; i < NB_PIONS; i++) {
             // textColor (couleur [combi );
    System.out.print (" " + combi [i]);

  • How to use the method calendar.getTimeInMillis() and setTimeInMillis(bb)

    I have met some problems in writing my programme,I want to know what the time is after every 20 minutes so have written some codes as below ,but the compilar warned me that there are some errors in them ,and I don't know how to use them correctly ,can you help me?
    Thank you very much!
    the code is:
    begin=datime+" 00:00:00";
    Calendar calendar=Calendar.getInstance();
    DateFormat df = DateFormat.getDateInstance();
    Date start=df.parse(begin);
    calendar.setTime(start);
    long aa=calendar.getTimeInMillis();
    calendar.setTimeInMillis(aa);

    Hopefully the following snippet of code will help you out (note that the Date class seems more appropriate for what you need to do):
    import java.util.*;
    import java.text.*;
          String begin="00:00:00";
          SimpleDateFormat df = new SimpleDateFormat("HH:mm:ss");
          df.setTimeZone(TimeZone.getTimeZone("GMT"));
          Date start=new Date();
          try {
             start=df.parse(begin);
          } catch (Throwable e) {
             System.out.println("Invalid time format");
          long aa=start.getTime();   // to get the time in milliseconds
          System.out.println(aa);    // just to see what the answer is (should be zero)
          start.setTime(aa);         // to set the time in milliseconds
    ...V.V.

  • How do use the method record(int score) in this code?

    how do i use record(int score) from the class Stats to record a new score?
    public class ScoreInfo {
    private int score;
    private int numStudents;
    public ScoreInfo(int aScore){
          score = aScore;
          numStudents=1;
    public void increment(){numStudents++;}
    public int getScore(){return score;}
    public int getFrequency(){return numStudents;}
    import java.util.ArrayList;
    import java.*;
    public class Stats
    private ArrayList<ScoreInfo> scoreList;
    public boolean record(int score)
         int k=0;
         while(k<scoreList.size() && score > scoreList.get(k).getScore()){
              k++;
         boolean found = k<scoreList.size() && score == scoreList.get(k).getScore();
          if(found){scoreList.get(k).increment();}
          else{scoreList.add(k,new ScoreInfo(score));}
          return found;
    public void recordScores(int[] stuScores)
    static int score = 50;
    public static void main(String[] args) throws Exception
    Stats stats = new Stats();
    ScoreInfo thestat = new ScoreInfo(score);
    stats.scoreList.add(thestat);
    }

    hiwa wrote:
    In your main() method, or in any code which tries to create a new score, below is wrong:
    ScoreInfo thestat = new ScoreInfo(score);
    stats.scoreList.add(thestat);They should be:
    stats.record(thestat); // record() method creates a new ScoreInfo
    // and add it to the scoreList, see your own posted code
    stats.record(thestat); will not work because record has a parameter that needs an integer not an object
    i tried public static void main(String[] args) throws Exception
    Stats stats = new Stats();
    ScoreInfo thestat = new ScoreInfo(7);
    stats.record(7);
    but i get this error Exception in thread "main" java.lang.NullPointerException
    at Stats.record(Stats.java:13)
    at Stats.main(Stats.java:39)

  • How to use the method substituion in variable ODI

    Hi folks,
    I have a variable that run the follow query;
    select GER_LOT_EXEC_ODI('Fluxo', 1, 'C') FROM DUAL
    GER_LOT_EXEC_ODI is a function, and i need to pass the data shema name before this:
    I'd like that stay this:
    select data_shema_user.GER_LOT_EXEC_ODI('Fluxo', 1, 'C') FROM DUAL
    I tryed with the follow method and not worked:
    select <%=odiRef.getInfo( <"SRC_SCHEMA"> )%>.GER_LOT_EXEC_ODI('Fluxo', 1, 'C') FROM DUAL
    Error log
    900 : 42000 : java.sql.SQLException: ORA-00900: invalid SQL statement
    java.sql.SQLException: ORA-00900: invalid SQL statement
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3026)
         at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.execStdOrders(SnpSessTaskSqlV.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTaskTrt(SnpSessTaskSqlV.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTask(SnpSessTaskSqlV.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    what is wrong?
    Thanks in advance
    Bovolini

    Hi,
    use <%=odiRef.getSchemaName("D")%>
    D as parameter if it is the Data Schema or W if you need the schema from Work Schema
    Your command will be like:
    select <%=odiRef.getSchemaName("D")%>.GER_LOT_EXEC_ODI('Fluxo', 1, 'C') FROM DUAL
    Works?
    Cezar Santos
    http://odiexperts.com

  • How to use a method in sequence diagram from a class diagram

    Hello, can someone tell me how to use the method from class diagram in sequence diagram? so far i only can add a classifier to the object lifeline but i still cannot add the method from the class...
    thx

    Now that Web Services is around, I'd look at possibly implement a Web Service call in your applet, which can then be given back any object(s) on return. Set up your server side to handle Web Service calls. In this way, you can break the applet out into an application should you want to (with very little work) and it will still function the same

  • How to use addPasswordToPasswordHistory method

    Hi
    Can some one please tell me how to use the method addPasswordToPasswordHistory from the class WSUser.I have a requirement to add user password to password history whenever user changes his password through my custom password change workflow.Custom workflow changes the password in idm but it will not add the previous password to the password history.
    It will be helpfull if you paste the code to use this method
    Regards
    Karthik P

    Hi Amar
    Thanks for the reply
    I tried setting the password through setPassword method but its giving an exception ==>java.lang.NoSuchMethodException: java.lang.String.setPassword(com..waveset.util.EncrypteData)
    Then I decrypted the password but no luck getting ==>java.lang.NoSuchMethodException: java.lang.String.setPassword() exception.
    Am i missing something here.do i need to pass the encrypted password in byte array format? if yes how to do that.
    Here encrypted password is coming from a form.
    regards
    karthik p
    .

  • How to use the multi-touch trackpad to adjust icon size?

    After I upgrade my OS X 10.6 to 10.9.2, I lost.
    Everyday I search the forum to look for the "feeling" of using Mac OS (migrate from windows to OS X10.6). The OS X 10.6 is just great.
    Now the questions, how to use the multi-touch trackpad to adjust icon size with simple pinch open or close gesture?
    Thank you.

    Welcome to Apple Support Communities. We're users here and don't speak for "Apple Inc."
    Using the multi-touch trackpad to 'zoom' in or out is temporary.
    The best way to permanently change icon size on the Desktop is to Command+click on an empty place on the Desktop screen and select Icon Size from the Desktop preference pane:

  • HT3390 OS X 10.9.2 how to use the Multi-Touch trackpad to adjust icon sizes in the Finder like previous OS?

    After I upgrade my OS X 10.6 to 10.9.2, I lost.
    Everyday I search the forum to look for the "feeling" of using Mac OS (migrate from windows to OS X10.6). The OS X 10.6 is just great.
    Now the questions, how to use the multi-touch trackpad to adjust icon size with simple pinch open or close gesture?
    Thank you.

    I might also add, you can run 10.6.8 Server in virtualization, if you need access to Rosetta applications:
    https://discussions.apple.com/docs/DOC-2295#ROSETTALION

  • How to use the index method for pathpoints object in illustrator through javascripts

    hii...
    am using Illustrator CS2 using javascripts...
    how to use the index method for pathpoints object in illustrator through javascripts..

    Hi, what are you trying to do with path points?
    CarlosCanto

  • How to use the POST method In Oracle APEX 3.1

    Hi,
    In APEX if we are submitting the page the parameters( Variables ) will pass through URL.
    How to hide the these parameters from URL??
    I Hope POST method will solve this problem.
    How to use the POST method in APEX???
    Help me out to solve this problem.
    thanks in advance.
    Cheers,
    Shan

    In APEX if we are submitting the page the parameters( Variables ) will pass through URL.No they won't. Submission POSTs the <tt>wwv_flow</tt> form.
    Sometimes a branch may be performed after submission, generating a URL in which parameter values are visible. To avoid this, use the save state before branching option.
    Other actions&mdash;like using navigation lists, or clicking a link in a report&mdash;will perform a GET using parameters in the URL. In these cases using Session State Protection is advised.

Maybe you are looking for

  • Warehouse management flow document needed

    hi all Can any one give the link which gives the bussiness flow of warehouse management. Please dont give Oracle standard document. I want the document that should be manually created. should be like this http://erpschools.com/Apps/oracle-application

  • RE: code falls apart when add this to idl: string getClient1Name();

    I have a counter object that has at most two clients connected to it. I do not want the same two clients in the regClients String[]. Since restriction is that we only want two registered clients we can just check position one of array. Note array sta

  • Can I use the original iphone in India, with a local simcard?

    I've got an old 8GB 2G iphone (the first model) bought in the UK. Roaming's turned on, and I'm currently using it as a phone in India with a UK number. However, now I've got an Indian simcard (Airtel) and I want to use it with my iphone. Will this wo

  • Error for starting up the ERP server - Dispatcher (disp+work.EXE) stopped

    Hi All,      We recently purchased and received a V3 Discovery System from Fujitsu.      We are having a problem starting the ERP server so that we can register the license key.      The problem is that the Dispatcher (disp+work.EXE) is not connectin

  • I'm trying to update my macbook....

    I'm trying to update my computer with the snow leopard so I can update it later with the lion,but in the middle on the installation it restarts and won't turn back on.