Change tables order

Hi
I'm trying to do a java application, using unmanaged ras, which change tables order.
I tried 2 methods but the two of them seems to have a bug.
In the first one I tried to move one table to the end and when i displayed the tabels looked just fine but when I save the report the changes are lost.
In the second I saved the table in a temporary table I removed it (after i erase manually the field from the report just to see if this method works) and then I add the saved table.This method do what I want except the fact that the newtable that I add had other connection info even if i put it the connection info from the erased table.And now is like I select the data from 2 different datasources and I don't want that.I use odbc connection and the old table has
Database DLL : crdb_odbc.dll and the new one has Database DLL:crdb_query.dll and this is not the only difference.
Here I paste part of my code to clarify the things:
  public static void main( String[] args )
          init();     //this method initialize the ras server I don't paste
                        //the code because this works just fine and I think is
                        //not rellevant for my problems
          try{
               ReportClientDocument reportClientDocument1 = new ReportClientDocument(  );
               reportClientDocument1.setReportAppServer( reportAppSession.getReportAppServer(  ) );
               reportClientDocument1.open("rassdk://C:/tmp/bbb.rpt",0);     
              changetables(reportClientDocument1,alias );
               reportClientDocument1.saveAs("bbb1.rpt", "rassdk://C:/tmp",1);
               reportClientDocument1.close();
               System.out.println("doc bbb1 saved");
        catch(ReportSDKException ex1){
               ex1.printStackTrace();
          catch(IOException ex2){
               ex2.printStackTrace();
          try{
               ReportClientDocument reportClientDocument1 = new ReportClientDocument(  );
               reportClientDocument1.setReportAppServer( reportAppSession.getReportAppServer(  ) );
               reportClientDocument1.open("rassdk://C:/tmp/bbb.rpt",0);     
              removeaddtable(reportClientDocument1,alias );
               reportClientDocument1.saveAs("bb2.rpt", "rassdk://C:/tmp",1);
               reportClientDocument1.close();
               System.out.println("doc bbb2 saved");
        catch(ReportSDKException ex1){
               ex1.printStackTrace();
          catch(IOException ex2){
               ex2.printStackTrace();
public static void changetables(ReportClientDocument rpt,String alias)
     int poz;
     try{
     poz=rpt.getDatabaseController().getDatabase().getTables().findByAlias(alias);
     if (poz!=-1){
          ITable auxtable=rpt.getDatabaseController().getDatabase().getTables().getTable(poz);
          rpt.getDatabaseController().getDatabase().getTables().remove(poz);
          rpt.getDatabaseController().getDatabase().getTables().add(auxtable);
          System.out.println("change table method complete");
     }catch(ReportSDKException e){
          e.printStackTrace();
public static void removeaddtable(ReportClientDocument rpt,String alias)
     int poz;
     try{
     rpt.getDatabaseController().logon("snr","snr");
     poz=rpt.getDatabaseController().getDatabase().getTables().findByAlias(alias);
    if (poz != -1)
         IConnectionInfo ci=rpt.getDatabaseController().getDatabase().getTables().getTable(poz).getConnectionInfo();
         Table newTable=(Table)((Table)rpt.getDatabaseController().getDatabase().getTables().getTable(poz)).clone(true);
         rpt.getDatabaseController().removeTable(alias);
         TableLinks tl=rpt.getDatabase().getTableLinks();
         newTable.setConnectionInfo(ci);
         rpt.getDatabaseController().addTable(newTable, tl);
         System.out.println("removeaddtable method complete");
     }catch(ReportSDKException ex1){
               ex1.printStackTrace();
I hope you can tell me how should I modify the method changetables or
removeaddtable to obtain what I want.

Hi Jason,
How to change the order of tables within sheets
Make a table active by clicking in it once to select that table, then drag it by the 'bullseye' (top left, I have placed a red circle to show the bullseye):
After dragging the table down:
Table 1 is now below Table 2.
The blue line is an Alignment Guide
Two types of Guide:
1. Menu > View >Show Rulers. Drag Alignment Guides from a ruler to where you want them.
2. Menu > Numbers > Preferences > Rulers > Alignment Guides. Turn on (tick) both guides. That allows you to align objects with *each other* (as well as with the ruler guides). These guides help to align objects left, middle, right, top, bottom.
Alignment Guides do not show unless you are moving an object.
to drag/move table to another sheet in the one file
Not possible in Numbers 3. The Sheets Pane has gone. Instead, select the entire table (click once in the table to make it active, then click on the bullseye). Copy (or Cut if you are brave). Go to another Sheet and Paste.
Also can you change the size of sheet tab width on tab toolbar, so I can see more sheets at once??
No. Let's hope this will be added in future updates. However, you can drag a Sheet tab left or right to reorder them.
Another tip: each Sheet tab shows the contents of that Sheet, with some options such as Duplicate and Delete:
Regards,
Ian.

Similar Messages

  • Changing the order of fields in an internal table

    Hi all,
    I'm using field symbol as internal table. this table has got a standard database structure.
    I want to make the 3rd column of this internal table as 1st colums keeping rest of the columns as it is.
    Is there any way to do this?
    Thanks,
    Anil.

    Hi
        Instead of directly taking the type as a standard structure , declare the FS  internal table as type of types structure.
    Data: fs_scarr like type_s_scarr.
    FIELD-SYMBOLS <scarr2> TYPE fs_scarr
    In the types put the third column as first one and use into corresponding in select query
    or else
    while displaying the internal table change the order of the columns
    Loop at itab into fs_itab.
    write : col3
    col2
    col4
    endloop.
    Thanks,
    Viquar Iqbal

  • Is it possible to change the order of the fields in the int table?

    Hello
    Is it possible to change the order of the fields in the int table?
    Lets say itab has the following fields :
    F1, F2, F3
    I would like to see it as F2 F3 F1
    Thanks

    >
    Comandante Che Guevara wrote:
    > Lets say itab has the following fields : F1, F2, F3
    >
    > I would like to see it as F2 F3 F1
    What do you mean by "like to see" ? You can WRITE the fields in any order you want. If you want to display the internal table in an ALV you can manipulate the fieldcatalog.
    If you want something else other than display the field, you have to explain your req. in detail.
    BR,
    Suhas

  • How do I change the order of input tables in joiner?

    I have 3 input tables in a JOINER, how can I change the order? for instance, the order now is: t1, t2, t3, for some reason, I want to change to t3, t2,t1.
    I use outer join among tables, different table order cause OWB generated different sql statement.
    Please help! Thanks.

    Unfortunately you cannot... The only way is to remove one group, then create a new one instead and re-connect the group...
    JP

  • How do I change the order of columns in the responses table?

    How do i change the order of columns in the responses table in FormsCentral?  The default setting puts them in reverse order!

    Hi,
    The issue with the default ordering of columns in the response table is something that we hope to address in the next update to FormsCentral. In the meantime, you can reorder the columns by selecting them then click/drag using the gray area above the column name. As shown below, an orange marker will show you where the columns will be placed when you release the mouse button.
    Sorry for the inconvenience.
    Regards,
    Brian

  • Changing the order of columns in a table

    Can anyone tell me how to change the order of column in a table.
    I want a new column to be added in a table in 2nd position.
    Is there any way out for it?

    1) Does this have something to do with security? If not, it really ought to be posted in a more appropriate forum (Database - General for example).
    2) Why? If you care about the order of columns in a table, you're almost certainly doing something wrong. You can control the order of columns in a view, however, so you can put a view layer on top of the table to present the columns in a friendly fashion.
    3) Not without recreating the table. You can use the DBMS_REDEFINITION package to recreate the table with zero or minimal downtime but behind the scenes, you're really just creating a new table, copying the data over, dropping the old table, and renaming the new table to use the old table's name. DBMS_REDEFINITION does some extra work to track changes so that the original table can be available until the last possible moment.
    Justin

  • Database error changing table ADR2 - Inbound IDOC Create Order

    Hi experts,
    I have a backgroud job for program RBDAPP01 to process inbound IDOC message type OILLDD. It woked perfectly for years. Few days ago, the job got short dump and cancelled. In Error log, it shows error MESSAGE_TYPE_X Database error changing table ADR2 in function module ADDR_SAVE_INTERN.
    I already try to activate trace log to see sql statement but still couldn't find anything suspicious. Have anyone been through this problem before? Please suggest.
    Regards,

    Hi,
         Please check if this SAP note is useful.  1300825
    Regards,
    Srini.

  • How to change pricing Conditions in Sales order in change sales order bapi

    Hi Experts,
    How to change pricing Conditions in Sales order in change sales order bapi.
    I have used the 2 function modules bapi-changesalesorder and sd salesdocument change, But it is creating the new record , instead of changing the existing one, Could please assist regarding the same
    Thanks in Advance .
    NLN

    HI NLN
      I have just tried on my system and managed to overwrite the existing price by passing the following parameters.
      <b>Import Paramters:</b>
         SALESDOCUMENT - Sales Document Number
         ORDER_HEADER_INX - UPDATEFLAG as <b>'U'</b>.
         LOGIC_SWITCH - Import Structure - Pass 'X' to LOGIC_SWITCH-COND_HANDL.
      <b>Tables:</b>
         CONDITIONS_IN - ITM_NUMBER,
                         COND_COUNT, -> Condition counter same as KONV-ZAEHK generally it is <b>'01'</b>
                         COND_TYPE,
                         COND_VALUE,
                         CURRENCY.
         CONDITIONS_INX - ITM_NUMBER,
                          COND_COUNT,
                          COND_TYPE,
                          UPDATEFLAG as <b>'U'</b>,
                          CURRENCY.
       Hope i have clarified your query.
    Kind Regards
    Eswar

  • How do I change the order of the fields in my pdf form?

    I am using pdf. form I made in Acrobat and distributing with Adobe FormsCentral.  We use a table format for our teachers to fill out their field trip schedules and therefore use many different fields.
    How can I change the order of the fields (not for tabbing, we figured that out)...so that when we receive our notification email, I can see the inforamtion in a specific order (Date, Time, School, Program, etc).
    We would also like this same order to appear in the "View Responses" table.  I know you can drag and drop the order in the table but we have over 100 fields and that is going to take a really long time.
    Please help???
    DATE
    TIME
    To start/finish
    Name of Program  
    TEACHER’S
    NAME
    TEACHER’S EMAIL
    # OF
    STUDENTS
    Setup in
    Room #
    03-21-14
    Solids vs. Liquids
    03-21-14
    Solids vs. Liquids
    03-21-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids

    What do you mean by the "order they appear in the pdf structure"?  What is the "Pdf structure"? 
    thank you for your help... this is really upsetting, as I thought we finally found a solution with Adobe Forms : (
    We really need the fields to report back in a specific order and wouldn't have time to rearrange over 100 fields with every form that is submitted. We receive about 10-20 different forms a day (same form layout, just some of the fields will have to be prefilled depending on school/teacher reservation... so we have to name each form a different name, for each school).
    Thank you again and maybe one day they will change that.  Is there anyway to set it up in the web verison of Adobe FormsCentral to look similar to the table we have created?
    DATE
    TIME
    To start/finish
    Name of Program  
    TEACHER’S
    NAME
    TEACHER’S EMAIL
    # OF
    STUDENTS
    Setup in
    Room #
    03-21-14
    Solids vs. Liquids
    03-21-14
    Solids vs. Liquids
    03-21-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids

  • Adding a new check box in change purchase order screen

    Hi
      I have to add one custom field a check in the screen for change purchase order in EBP.
    We are using ITS.
    Kindly advice.
    Thanks and Regards
    Manoj

    Hello Manoj,
    you can define Customer Fields (CUF) at header, item, accounting level on any document type (including PO).
    Adding seach fields acts as old ABAP method of table append, i.e. those fields are stored in standard SRM tables. So you can process your own logic and checks against those fields.
    There is a BADI to control the display or not, the input or not, the default or input values.
    There is a BADI to control the ergonomy of CUF (by default they are added one after the other after standard fields).
    There have been many posts about CUF and linked OSS notes explaining own it works and which includes to use.
    Rgds
    Christophe

  • Unable to change the order quantity value during save of sales order

    Hi Experts,
    There is a need to change the order quantity value, based on some conditions, when pressed 'ENTER' or during 'SAVE' of the sales order (VA01, VA02).
    We are trying to change the order quantity value (KWMENG) in table XVBAP in the subroutines userexit_field_modification, userexit_save_document and userexit_save_document_prepare of the user exit 'MV45AFZZ'. But the change is not replicated to field on GUI.
    The order quantity value can be changed in subroutine 'userexit_move_field_to_vbap', but the subroutine is not getting triggered when user changes only the order quantity on screen.
    Please help us in resolving this issue.
    Regards,
    Santosh

    Thanks for your time guys. The issue is resolved.
    SAP is not triggering the vbap user exit as the order quantity on screen is in structure RV45A.
    There are two ways of resolving the issue.
    1. Implement the SAP note #513342 - Quantity change and USEREXIT_MOVE_FIELD_TO_VBAP. But, it is SAP modification note.
    2. Write the code in VBEP exit of MV45AFZZ. This user exit is called whenever the order quantity is changed. But, it is called multiple times in some cases. Hence, need to write code to limit our code execution only once e.g. maintain a global table with our quantity & uom. Check when the quantity and uom in our table is same as quantity on screen. If not, exit from user-exit.
    Edited by: Santosh Kacham on Nov 11, 2011 6:37 AM

  • How to change purchase order's cost center in batch

    Dear all :
    how to change purchase order's cost center in batch?

    Dear Manish :
    thanks so much for you reply.
    the filed which i wanted to change it's content is cost center (KOSTL) in table EKKN.
    i couldn't find it in this t-code when i select fields.

  • How to change the order of albums iOS 8?

    I recently upgraded from an iPhone 5 to a 6 Plus. Everything is fine except for the fact that some of my music is in the wrong order. There are some groups that released multiple albums in the same year, and I would like them to be in the order of when they were released. On my 5 I was able to put them in the right order by going on a computer, changing the sorting, then update iTunes Match to have it change on my phone as well. (example; group came out with album "1" and "2" same year and it defaults to "2" first, then "1." I was able to change it on the iPhone 5 to be in the right order by changing how they are sorted from my computer but that doesn't work on the 6 Plus.) I would like to order it where it goes top to bottom, with the newest on top going down. How would I do this?
    Thanks

    Hi Jason,
    How to change the order of tables within sheets
    Make a table active by clicking in it once to select that table, then drag it by the 'bullseye' (top left, I have placed a red circle to show the bullseye):
    After dragging the table down:
    Table 1 is now below Table 2.
    The blue line is an Alignment Guide
    Two types of Guide:
    1. Menu > View >Show Rulers. Drag Alignment Guides from a ruler to where you want them.
    2. Menu > Numbers > Preferences > Rulers > Alignment Guides. Turn on (tick) both guides. That allows you to align objects with *each other* (as well as with the ruler guides). These guides help to align objects left, middle, right, top, bottom.
    Alignment Guides do not show unless you are moving an object.
    to drag/move table to another sheet in the one file
    Not possible in Numbers 3. The Sheets Pane has gone. Instead, select the entire table (click once in the table to make it active, then click on the bullseye). Copy (or Cut if you are brave). Go to another Sheet and Paste.
    Also can you change the size of sheet tab width on tab toolbar, so I can see more sheets at once??
    No. Let's hope this will be added in future updates. However, you can drag a Sheet tab left or right to reorder them.
    Another tip: each Sheet tab shows the contents of that Sheet, with some options such as Duplicate and Delete:
    Regards,
    Ian.

  • Please send me fm regarding to get purchase order and change purchase order

    Hi,
    Please send me fm regarding to get purchase order and change purchase order .
    Regards,
    Gurprit Bhatia

    Hi,
    Function module to get the purchase order details:
    BAPI_PO_GETDETAIL.
    data: po_items type table of bapiekpo with header line.
    parameters: p_ebeln type ekko-ebeln.
    call function 'BAPI_PO_GETDETAIL'
      exporting
        purchaseorder                    = p_ebeln
      ITEMS                            = 'X'
      ACCOUNT_ASSIGNMENT               = ' '
      SCHEDULES                        = ' '
      HISTORY                          = ' '
      ITEM_TEXTS                       = ' '
      HEADER_TEXTS                     = ' '
      SERVICES                         = ' '
      CONFIRMATIONS                    = ' '
      SERVICE_TEXTS                    = ' '
      EXTENSIONS                       = ' '
    IMPORTING
      PO_HEADER                        =
      PO_ADDRESS                       =
    tables
      PO_HEADER_TEXTS                  =
       po_items                         = po_items
      PO_ITEM_ACCOUNT_ASSIGNMENT       =
      PO_ITEM_SCHEDULES                =
      PO_ITEM_CONFIRMATIONS            =
      PO_ITEM_TEXTS                    =
      PO_ITEM_HISTORY                  =
      PO_ITEM_HISTORY_TOTALS           =
      PO_ITEM_LIMITS                   =
      PO_ITEM_CONTRACT_LIMITS          =
      PO_ITEM_SERVICES                 =
      PO_ITEM_SRV_ACCASS_VALUES        =
      RETURN                           =
      PO_SERVICES_TEXTS                =
      EXTENSIONOUT                     =
    check sy-subrc  = 0.
    loop at po_items.
      write:/ po_items.
    endloop.
    Check this program too:
    RFFMFG_INV_CANC_ALL for BAPi_PO_GET_DETAIL.
    Hope it helps you.
    Regards,
    Anjali

  • Changing attribute order in a mapping operator

    Is there a way that I can easily change the position or order of a mapping operator or object (e.g. Joiner object) without having to remove all the attributes in an object, and then either entering them manually or pulling them from the source to the mapping object (the target).

    Hi Kurt,
    Unfortunately that is not possible, operator attributes always show in the order you created it.
    Only tables, views, snapshots, dimensions and cubes allow to change the order of their attributes, but then only in their respective editors, not in a mapping.
    Regards, Patrick

Maybe you are looking for

  • How to exclude the debit memo & credit memo out of COPA report (KE30)?

    As captioned, now the current KE30 default transfers all the data from sales orders interfaces (via VA01), such as common sales order, 3rd party drop shipment, credit memo and debit memo etc. Is there any idea to exclude the quantities display in KE3

  • Color and contrast different from Premiere Pro 2 DVD creation

    I found after creating DVD's via Premiere Pro 2 are more saturated and more neutral in color vs encoding through Encore. I made a si8de by side test, converted them back to AVI and grabbed the same still of each. The Encore still was lower in contras

  • RFC destination not defined for SAP global trade services

    HI friends, I have created a delivery against a sales order. Maintained the storage location and the picking quantity for the item. Now trying to post the goods issue but system is giving short dump and error message says: "RFC destination is not def

  • Why CNN video looks out of proportion in a iMac 27"?

    Since I bought my new iMac 27" a month ago, the videos that I watch in CNN they look "bigger. In my old 24" iMac they look just fine. Does it have something to do with the screen resolution? Or it might be the that CNN it doesn't support the much res

  • Exporting system procedural objects and actions

    Hi Version-Oracle 11.2.0 When i'm trying to export a blank dump it's getting hanged'.Even after 4 hours it's showing 'exporting system procedural objects and actions'. Following is the command 'exp username/password file=E:\Export\Blank.dmp log=E:\Ex