ABAP OO Spreadsheet Interface: is the cell merge possibe?

Hi all,
   We would like to use Spreadsheet Interface to create a new sheet of workbook in Excel Application and then insert all data into this sheet.
   But we meet a problem when merging some cells in this sheet. We have tried to find all methods of i_oi_spreadsheet. And no one is useful.
   So, our question: is it possible to use methods of  i_oi_spreadsheet in order to merge some cells of sheet in Spreadsheet Interface?
Thanks and best regards,
Vinh

Hi Vinh,
as far as I know you can not merge cells in Excel before Office 2007. The DOI interface is based on older versions. You could run a macro:
CALL METHOD document->execute_macro
  EXPORTING macro_string = macro_string
    param_count = param_count
    script_name = script_name
    param1 = param1
    param2 = param2
    param3 = param3
    param4 = param4
    param5 = param5
    param6 = param6
    param7 = param7
    param8 = param8
Please refer to the [Desktop Office Integration (BC-CI) documentation|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIOFFI/BCCIOFFI.pdf]
Regards,
Clemens

Similar Messages

  • OO ALV Cell Merge Problem when editable fields

    Hi there!
    I'm using OO ALV ( CL_GUI_ALV_GRID ) and experiencing a strange problem.
    I'm interested in the cells merging functionality of ALV, when i sort data for a specific field.
    It works fine but only if i do not set any field as editable ( lvc_s_fcat-edit = 'X' ).
    For some reason ALV loses some of its functionality when you set a field as editable.
    I've noticed it also with the functionality of expanding/supressing data when using subtotals.
    If any field is set as editable then subtotals come always expanded, you cannot supress them...
    Has anyone else experienced somethng like this before? Any help will be appreciated!
    BR
    George Zervas

    Hi,
    Check This [Thread|http://forums.sdn.sap.com/thread.jspa?threadID=928573]  to solve your issue.
    Check the  User Command, first line should be call method cl_gui->check_changed_data().
    Check this [url|http://wiki.sdn.sap.com/wiki/display/ABAP/InteractiveEditableOOALVgridwithdynamicitab,FCATandENTERkeyeventtrigger] for code to work on Interactive Editable OO ALV grid .
    Hope will solve your issue.
    Regards,
    Saravana.S
    Edited by: saravanasap on Feb 14, 2012 7:38 AM

  • ALV Sort with cell merge

    Please help!
    When i run an ALV report in foreground, there is cell-merge when a column is sorted.
    However, when the ALV run @ background, why the cell-merge cannot work ? All data is listed, rather than is summarized into a block for all rows with the same field content.
    Please Advice
    Regards
    Annie

    Hi,
    see this example.
    TABLES : vbak.
    TYPE-POOLS: slis.                      " ALV Global types
    SELECT-OPTIONS :
      s_vkorg FOR vbak-vkorg,              " Sales organization
      s_kunnr FOR vbak-kunnr,              " Sold-to party
      s_vbeln FOR vbak-vbeln.              " Sales document
    SELECTION-SCREEN :
      SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.
    PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    DATA:
      BEGIN OF gt_vbak OCCURS 0,
        vkorg LIKE vbak-vkorg,             " Sales organization
        kunnr LIKE vbak-kunnr,             " Sold-to party
        vbeln LIKE vbak-vbeln,             " Sales document
        netwr LIKE vbak-netwr,             " Net Value of the Sales Order
        waerk LIKE vbak-waerk,             " Document currency
      END OF gt_vbak.
    INITIALIZATION.
      v_1 = 'Maximum of records to read'.
    START-OF-SELECTION.
      PERFORM f_read_data.
      PERFORM f_display_data.
    *      Form  f_read_data
    FORM f_read_data.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
               FROM vbak
                 UP TO p_max ROWS
              WHERE kunnr IN s_kunnr
                AND vbeln IN s_vbeln
                AND vkorg IN s_vkorg.
    ENDFORM.                               " F_READ_DATA
    *      Form  f_display_data
    FORM f_display_data.
      DEFINE m_fieldcat.
        add 1 to ls_fieldcat-col_pos.
        ls_fieldcat-fieldname   = &1.
        ls_fieldcat-ref_tabname = 'VBAK'.
        ls_fieldcat-do_sum      = &2.
        ls_fieldcat-cfieldname  = &3.
        append ls_fieldcat to lt_fieldcat.
      END-OF-DEFINITION.
      DEFINE m_sort.
        add 1 to ls_sort-spos.
        ls_sort-fieldname = &1.
        ls_sort-up        = 'X'.
        ls_sort-subtot    = &2.
        append ls_sort to lt_sort.
      END-OF-DEFINITION.
      DATA:
        ls_fieldcat TYPE slis_fieldcat_alv,
        lt_fieldcat TYPE slis_t_fieldcat_alv,
        lt_sort     TYPE slis_t_sortinfo_alv,
        ls_sort     TYPE slis_sortinfo_alv,
        ls_layout   TYPE slis_layout_alv.
      m_fieldcat 'VKORG' ''  ''.
      m_fieldcat 'KUNNR' ''  ''.
      m_fieldcat 'VBELN' ''  ''.
      m_fieldcat 'NETWR' 'X' 'WAERK'.
      m_fieldcat 'WAERK' ''  ''.
      m_sort 'VKORG' 'X'.                  " Sort by vkorg and subtotal
      m_sort 'KUNNR' 'X'.                  " Sort by kunnr and subtotal
      m_sort 'VBELN' ''.                   " Sort by vbeln
      ls_layout-cell_merge = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                is_layout   = ls_layout
                it_fieldcat = lt_fieldcat
                it_sort     = lt_sort
           TABLES
                t_outtab    = gt_vbak.
    ENDFORM.
    rgds,
    bharat.

  • How to merge the cells on a  tittle's report

    Hi there!
    Considering a simple obiee report composed of a title and a pivot table. At the same time, the title is composed of a logo and a sentence. If I export it to excel, the logo in the title and the sentence are allocated to separated cells. Do you know how to merge the cells on the tittle?
    Any help will be GREATLY appreciated.
    Thank you very much indeeed!!!
    PS. Oracle Business Intelligence 11.1.1.6.4

    Hi There,
    I am also facing same issue. Please let me know if any one has solved it.
    Thanks in advance.

  • I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    Hi Wayne,
    Thank you for this response.  I have tried this but when I start enterring $ amounts some, such as $6.00, go in OK others such as $4.00 appear as a date ie 4 Oct 12.  
    Kind regards
    Paul

  • How is the interface between the Java Stack and ABAP stack is achieved?

    How is the interface between the Java Stack and ABAP stack is achieved?..Please send me the answer to [email protected]

    Hi,
    By interface, I assume you mean the connection between the ABAP and the Java stacks in a double stack system.
    The connection from Java to ABAP is through JCo connections defined in the WebDynpro section of the J2EE start page. So Java to ABAP requests are processed through JCo.
    The connection from ABAP to Java is through RFC connections defined in TA SM59. The ABAP to Java requests are processed through RFC.
    Refer https://dsd.esco-salt.com/StartPage/documents/integration/3.html for detailed explanation.
    The UME can be maintained in either ABAP or in JAVA depending on the persistence.
    Refer: http://help.sap.com/saphelp_nw70/helpdata/en/5b/5d2706ebc04e4d98036f2e1dcfd47d/frameset.htm
    Check UME data source configuration.
    Some quick FAQs can be found at:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ad47eb90-0201-0010-7cb2-ddfa5ed879ec
    Hope this helps.
    Best Regards,
    Srividya.R

  • How I can do to display the comments of the cells in an Excel spreadsheet? I have an iPhone (4S) and use the application Numbers

    how I can do to display the comments of the cells in an Excel spreadsheet? I have an iPhone (4S) and use the application Numbers

    I would write a LabVIEW VI to read the Excel file(s) on computer n°1 and publish the data in a shared variable over the network.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • List of all interfaces in the XI landscape

    Hi Experts,
    Currently my company is going through a merge project with a second company, and we want to integrate the SAP systems. This will inevitably mean more interfaces to be built. What we would like to have is a way to generate a list of all the current interfaces in the XI landscape, so we can get a good overview of what can be reused or copied.
    I know we can get a list by opening the ID and looking at the configured scenario's, but we would like to automate this. Are there any tables where the interface scenario names are stored, and where we can see which type of interface it is (IDOC / File / JDBC / ...)?
    If someone knows of a solution for this, it would be greatly appreciated. Otherwise this will remain a manual action, and as such, prone to mistakes or oversights...
    Our current XI landscape is XI 3.0, SP18.
    Thanks in advance,
    Yordy

    Hi,
    Solution is very simple: Use ABAP table SMPPREL3, this table contains all relationships (end-2-end) interface. You can use this table to know all about interface.
    Only caution is that this table also have some wild-card entries so total number of interface count can vary by 1-2%, but this happen on runtime only, this table will perfectly match your manual counting.
    Regards,
    Gourav
    <i>Reward points if it helps you</i>

  • Report Query - Highlighting the cells that have a new value...

    hello all,
    I have to display a report in alv in web dynpro abap.
    In that I have to display two fields and both the fields are locations of different months.
    If the location is different than the previous one then i have to display cell with the new location in red color or highlighted.
    How can I achieve this.???
    Only for the changed ones it has to be highlighted or different color.....  I repeat.
    Happy Coding.

    IF want to display 2 locations , one  corresponding to location of previous month  and other corresponding to location of curr month  ,and if 2 are not same then current month location should be highlighted or displaying in red color . If this is what u want to do then try following .
    1]    In context where  ur data to be display exist  - In LIST NODE along with attribute  Location_previous_month , Location_current_month add attribute "COLOR" TYPE WDUI_TEXTVIEW_SEM_COL .
    2]   Find out the column which has to be marked with a different colour based on its content ( Location_ Current_ Month in your case )  . Assign the context attribute "COLOUR"  to the "Cell Design Fieldname" attribute of the respective column. This can be done while setting Column attributes for each of the ALV Columns
    IF find any problem in implementing above step then go thro' this link :
    http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP%20Web%20Dynpro%20ALV%20-%20Change%20Cell%20Colour%20based%20on%20Content
    3] In the method to fill the data to  be displayed .
      CREATE INTERNAL TABLE OF TYPE List node
    FILLINTERNAL TABLE CREATED ABOVE  ( SAY ITAB  ) WITH VALUES FOR  LOCATION_ CURRENT_ MONTH  , LOCATION_PREVIOUS_MONTH .
    FILL COLOR VALUE FOR EACH ROW OF ITAB AS FOLLOW 
    LOOP AT  ITAB INTO LS_ITAB .
       IF LS_ITAB-LOCATION_CURRENT_MONTH  <> LS-ITAB- LOACTION_PREVIOUS_MONTH .
                     COLOR = 06 ." 06 IS COLOR CODE 
       ENDIF .
    4] BIND THIS INTERNAL TABLE WITH NODE LIST_NODE .
      DATA NODE_LS_NODE TYPE REF TO IF_WD_CONTEXT_NODE .
    NODE_LS_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = 'LIST_NODE' ) .
             NODE_LS_NODE->BIND_TABLE ( EXPORTING
                       NEW_TAB = ITAB ).
    Hope thid will help .
    THKS ,
    RUSHIKESH
    Edited by: RUSHI123 on Oct 31, 2009 8:59 PM

  • How can I make one cell search multiple other cells for a string of text and return whether or not the string appeared in the cells searched?

    https://www.icloud.com/iw/#numbers/BAI31boMQXsGKc8NH22BlqWRzbs8PdgWBs-F/2014-15_ Curriculum_Planning_w_CCSS_(Web_Shared)
    My document is above, if anyone wants to help this crazy teacher invent a better lesson planner.
    Here's my predicament.  The state in which I teach requires teachers to keep up with which of the Common Core State Standards (CCSS) their instruction is addressing and when the standards were addressed.  I got the bright idea to do this through a spreadsheet in Numbers because our school is getting iPads this year, so it'd be pretty sweet to be able to assemble all of my lesson plans in one massive spreadsheet.  On the "AP Lesson Plans" sheet, I've got a few weeks worth of lesson plans entered in.  I'm planning on going in and using the drop-down menu next to each lesson plan to add all the CCSS on a per-day basis.  This is simple enough, but here's where I run into a problem.
    I want the "AP Standards" sheet to concatenate, in cells D3 through G76, the dates on which a standard was covered.  What I need is some way for, say, Cell D3 to look at the table on the "AP Lesson Plans" sheet and concatenate the dates of every lesson which has the standard in column A (In this instance, RL.11-12.1).  At the end of the day, the functionality I need is that I can enter my lessons and CCSS on the "AP Lesson Plans" sheet and go to the other sheet and see a summary of which standards have been addressed, when, and how often.
    If that's as clear as mud, well, I teach literature, not technical writing, so my apologies.  I'm more at home with Jonathan Swift than spreadsheets.  I'll gladly help you help me if you'd let me know what you need to know.  Oh, and to illustrate my knowledge level (just enough to be dangerous), I've left you the formula of my best stab at making cell D3 behave as desired.  It's the gray box on the "AP Standards" sheet.  Yikes.

    Hi Arrdenet,
    Congratulations on the nested IFs. I haven't tested that formula, but it is impressive. It will be very difficult to debug if it doesn't work, and I think it would make Numbers very slow.
    Here is a different approach. After you enter all the CCSS, add another column with HLOOKUP.
    Edit:
    B2 (and Fill Down)
    A2 (and Fill Down)
    =IFERROR(HLOOKUP(A$1,C2:E2,1,0),"")
    HLOOKUP looks for the value in A1 in all the CCSS columns.
    IFERROR is to stop the error triangles appearing and returns "" (NULL) instead.
    Then sort by column A.
    Not a complete answer, but it might get you started.
    Regards,
    Ian.

  • How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?

    How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
    I currently run OS X 10.10.1
    Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
    Here is an example of what i want to happen.
    I will have 2 tabs: Contact | Sales
    Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
    for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
    Now how do i do this, Excel can do this so how can numbers do it?

    Hi Shegra,
    Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
    quinn
    Script starts:
    -- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
    property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
    property DataEntryTable : "Sales" --name of table with popups to be refreshed
    set copyRange to {}
    property PopValueSheet : "Sheet 1" --name of sheet with popup values table
    property PopValueTable : "Contacts" --name of table with popup values
    set PopStartRow to {}
    tell application "Numbers"
      set d to front document
      set ps to d's sheet PopValueSheet
      set pt to ps's table PopValueTable
      set s to d's sheet DataEntrySheet
      set t to s's table DataEntryTable
      set tf to t's filtered --this records filter setting on data Entry Table
      display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
      set PopStartRow to {text returned of result}
      tell pt --convert list to alphabetized popups
      set ptRows to count rows
      set copyRange to ("A2:" & name of cell ptRows of column "A")
      set selection range to range copyRange
      set selection range's format to text
      sort by column 1 direction ascending
      set selection range's format to pop up menu
      -- popupsmade
      set selection range to cell ptRows of column 1 of pt
      set v to value of cell ptRows of pt
      end tell
      activate application "Numbers"
      tell application "System Events" to keystroke "c" using command down
      tell pt
      set selection range to range copyRange
      set selection range's format to text
      end tell
      tell t
      set filtered to false
      set tRows to count rows
      set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
      set selection range to range pasteRange
      tell application "System Events" to keystroke "v" using command down
      set filtered to tf
      end tell
    end tell

  • Error Mail Merge Aborted due to error in creating the Mail Merge DataSource

    Dear All,
    please help me with this problem (Oracle release 12.0.4.)
    1. PROBLEM:
    When attempting to extract data, using Web ADI in HRMS, Word is selected as the viewer, but an Excel spreadsheet is generated rather than a MS Word document containing the data. Also error "Mail Merge Aborted due to error in creating the Mail Merge Data Source." appears on screen.
    We are using MS Office 2003.
    2. PROBLEM:
    Unable to create data source from HR form PAYWSLEE.
    We are using custom integrator. This integrator is attached to form function. Form function is attached to responsibility. We also created the layout.
    The next step would be to create data source from form PAYWSLEE, but we are not able to perform this...
    In release 11i we used this form (PAYWSLEE) to create datasource (for mailmerge), but in R12 this is not working... Something is missing here and I need your help to determine what. I checked the most documents on Oracle Support and didn't find solution for this problem...
    Please advise.
    Kind Regards,
    Andreja

    Hi all,
    Thanks for visiting our forum and sharing your experience here. It'll be benefited to our communicator.
    Have a good time.
    Regards,
    Thanks
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • Excel - Remove specific characters from entire worksheet if they are the first 2 in the cell

    Hello,
    I have a very large worksheet that is used to populate a SQL database.
    I need to have the data clean before I pass it on to the owner of that database.
    The data is riddled with "na" where the supplier of the data sometimes leaves it blank, like they should, but instead sometimes puts in "na" as either "not applicable" or "information not available". 
    I just need the all "na" removed.  If I highlight the entire sheet and replace "na" with nothing then where it says "international" it will say "inertional" and I can't have that.
    I need a routine, with an on-click for a button, probably, that removes all of the "na" that comes first in the cell.
    I've seen where you can do it with individual cells, but not looping through the whole spreadsheet.
    Thank you in advance for any help I can get! 
    Gee

    >>then where it says "international" it will say "inertional"
    Selecting the "match entire cell contents" option may give you what you want.

  • Custom Integrator - Date Picker/LOV does not return a value to the cell

    Hi,
    I have configured a webADI template with a date picker in it. Though the picker is rendered when i double-click on the cell, the selected date is not populated back. Same happens for any other list of values may render in the integrator. Any suggestions on debugging this issue.
    Regards,
    Vinayaka

    I have got the LOV working now. The issue was that I had not provided the table-select-column with the interface column name. It was set to the table column name.
    Regards,
    Vinayaka

  • Manipulati​ng the cell size in an Excel spreadshee​t

    Problem 1 of 2 (2 is in the same project but a different function so will place in separate post)
    Using LV 2013 on Windows 7 with Excel 2010
    I have a routine where I insert assorted data into an Excel spreadsheet based on a pre-formatted Excel template. Problem is, when one group of data is placed in the range of cells (ends up being a column because of the way the data array is formatted) that particular column width is reduced.
    Because once of the cells automatically formats as the Excel Date / Time format (as desired) the narrower width of the cell makes the value unreadable. (Just like when a real numerical value is longer than the cell is wide, all you see is hash marks)
    I verified my column width in the template is where it should be, it definitely is reduced when the data is entered. I also tried using the “Excel Set Cell Dimension.vi” to change the cell width back to what I need but it does not work. Not sure why. When I tried placing the function at the beginning of the routine, I think it created an error and the rest of the report/excel functions failed to work. I didn’t monitor the error wire to confirm this.
    My next approach will be to write a macro in the template file and call this at the end to fix the cell width but this seems like the long way around.
    Any thoughts on the best way to fix this? Or why the “Excel Set Cell Dimension” function does not work?
    Thanks…..
    Doug
    "My only wish is that I am capable of learning each and every day until my last breath."

    Am using report toolkit.   Have not looked inside the vi(s) but will do so to see if I can pull out some functions that I can manipuate to work my issue.
    Will report back when I figure something out.  Probably next monday, off work tomorrow,  Whoo Hoo
    Thanks......
    Doug
    "My only wish is that I am capable of learning each and every day until my last breath."

Maybe you are looking for

  • How can I play songs on iTunes on my computer that I purchased on my iPhone?

    iTunes won't let me play songs on my computer that I have purchased on my iPhone. They are in the iTunes music library, but i am unable to play them. Can any one help? Thanks

  • Tax calculation in CRM using R/3 pricing procedure

    Hello Experts We are using R/3 pricing procedure to calculate list prices in CRM. The condition record for Taxes are maintained for condition type UTXJ in SD which is calling for tax procedure TAXUSJ and condition type JR1.  The records are maintaine

  • Pages stopped versioning using lion 10.7.4

    Pages stopped versioning suddenly at the beginning of Sept only I didn't notice it until I wanted to browser versions. It shows a black screen with unable to display version. I am using lion 10.7.4 and the last iwork 09 updates was july 31 so that di

  • Creative Cloud won't let me launch apps

    had In Design trial > it ended > bought membership for Creative Cloud > downloaded app manager > it says ID is installed but on launch it asks for license as if I never  bought membership >> what is going on?

  • Issues opening Photoshop CS5 Design Premium

    When we try opening Photoshop CS5 we get this popup above and it does not allow us to open Photoshop.  Photoshop was working fine for several months before this and we did not do any major updates to our system.  I have tried uninstalling and reinsta