Multiple Paste from excel to table control

Hi All,
I need to provide a facility that will enable us to enter values on table control in a module pool by copy-pasting from an excel.
The problem is that it is only pasting the number of rows that can be seen on the screen. While I need to paste 100 lines.
I have set the 'Lines ' parameter as 100 and yet it is not working.
Kindly suggest a way .
regards,
Inesha

The solution is above.
Try the method CLIPBOARD_IMPORT of class CL_GUI_FRONTEND_SERVICES.
You can get all data in internal table and move all data into table control's internal table.

Similar Messages

  • When pasting from Excell the table border is not showing in Yahoo mail

    Dear Sir/Madam
    I am mis execitive , preparing the reports in Excell and sending it through email. But when i paste something from Ms excell , the table borders lines is not showing in Yahoo mail.
    Please help

    Dear All ,
    Even I got annoyed due to this stupid thing ,
    Let me share you how i worked around this ,
    (1)Once you copied the table from Excel or Open office Calc, to thunderbird mail , It will appear the table with dotted line.
    (2)Now you have to double click in any single cell it will prompt the ‘Table properties’ box .
    (3)Now click on ‘Table ’ tab and under ‘Borders and Spacing’ Section set ‘Border’ ‘1’ instead of ‘0 ‘
    That’s it ... it will show you the border lines of table copied from source file 

  • Transfering multiple fields from help in table control

    Hi everyone.
    I have a table control in a dynpro.
    The table control has many fields: x, y, z ...
    I have a module in PROCESS ON VALUE REQUEST for a field "x".
    The module calls a function to search values for field "x" and for field "y".
    How can I transfer the value of field "y" to the screen?
    I know that I can use the function DYNP_VALUES_UPDATE but it updates the field "y" in the wrong position of the table.
    Thanks so much for your help.

    Hi Sara
    It seems you are a new member; welcome to SDN forums. According to SDN customs, you can assign points to posts to thank people. You can do this by clicking the yellow star icon at header of each post. You can assign;
    - one 10 points (solved)
    - two 6 points (very helpful answer)
    - many 2 points (helpful answer)
    Kind regards...
    *--Serdar

  • Problems pasting from Excel 2008 to Numbers

    I'm trying to make the switch from Excel to numbers and ran into the following problem.
    If I cut a group of cells from Excel 2008 and try paste it into Numbers it does not work.
    I can paste into another place in Excel, Stickies or OpenOffice, but not Numbers.
    I can double click a cell in Numbers and paste all the copied into a single cell, but this is not what I want.
    Is this a Numbers problem or Excel 2008. Since I can paste from Excel to programs other than Numbers, it seems like a Numbers problem
    Anyone else have this problem.
    Cheers!

    Very weird! I don't think your table is too simple.
    I tried a simple table and it failed.
    In fact I can copy the table from Numbers and paste it into Excel 2008
    But when I copy the same table from Excel and try to paste into Numbers, it fails.
    I can however paste into stickies.
    *Copy from Numbers*
    *Paste into Excel 2008- No Problem*
    *Copy from Excel 2008*
    *Paste into Numbers - nothing!*
    *Paste into a singe cell - Fine*
    *Paste into Stickies - Fine*
    AAARRRRGGGHHH

  • Extract Multiple Rows from a Single Table into a Single Row in a New Table

    I have a table in a database that contains contact data like name, address, phone number, etc.
    The folks who designed the database and wrote the application wrote it so that all contact records are placed in that table, regardless of contact type. In fact, the contacts table does not even have a column for "type" even though there are many
    different types of contacts present in that table.
    I am trying to write a mail merge style report in SRSS, that gets sent to a specific type of contact, based on criteria provided that must be obtained from another table, and that data is then used to get back to a specific set of contacts from the contacts
    table.
    The attached file directly below describes my problem and all related information in an extremely detailed way.
    SRSSMailMergeIssue.pdf
    Unless there is a way to make a SRSS Tablix point to two different data sets in SRSS, it looks like I have to combine multiple rows from the same table into a new table.
    If anyone can review the details in the attached pdf file and possibly point me in the direction I need to run to solve this probelm, I would greatly appreciate it.
    I also included a document (below) that shows the tables I reference in the probelm description.
    dbtables.pdf

    I found a solution.... and posted it below
    select
    dk.ucm_docketnumber [UCM DocketNumber],
    dk.ucm_docketid [UCM DocketID],
    vc.FirstName [Victim FirstName],
    vc.MiddleName [Victim MiddleName],
    vc.LastName [Victim LastName],
    vc.Suffix [Victim Suffix],
    vc.Address1_Line1 [Victim AddressLine1],
    vc.Address1_Line2 [Victim AddressLine2],
    vc.Address1_Line3 [Victim AddressLine3],
    vc.Address1_City [Victim City],
    vc.Address1_StateOrProvince [Victim StateProvince],
    vc.Address1_PostalCode [Victim Postalcode],
    oc.FirstName [Offender FirstName],
    oc.MiddleName [Offender MiddleName],
    oc.LastName [Offender LastName],
    oc.Suffix [Offender Suffix],
    oc.Address1_Line1 [Offender AddressLine1],
    oc.Address1_Line2 [Offender AddressLine2],
    oc.Address1_Line3 [Offender AddressLine3],
    oc.Address1_City [Offender City],
    oc.Address1_StateOrProvince [Offender StateProvince],
    oc.Address1_PostalCode [Offender Postalcode],
    pc.FirstName [Arresting Officer FirstName],
    pc.MiddleName [Arresting Officer MiddleName],
    pc.LastName [Arresting Officer LastName],
    pc.Address1_Line1 [Arresting Officer AddressLine1],
    pc.Address1_Line2 [Arresting Officer AddressLine2],
    pc.Address1_Line3 [Arresting Officer AddressLine3],
    pc.Address1_City [Arresting Officer City],
    pc.Address1_StateOrProvince [Arresting Officer StateProvince],
    pc.Address1_PostalCode [Arresting Officer Postalcode]
    FROM ucm_docket dk
    left outer join ucm_victim v on dk.ucm_docketid = v.ucm_docketnumber
    left outer join contact vc on vc.contactid = v.ucm_victimlookup
    left outer join ucm_offender o on o.ucm_offenderid = dk.ucm_offenderlookup
    left outer join contact oc on oc.contactid = o.ucm_individualid
    left outer join contact pc on pc.contactid = dk.ucm_ArrestingOfficerLookup
    WHERE (dk.ucm_docketnumber = @DocketNUM)

  • Cannot Cut and Paste From Excel

    I am trying to simply cut and paste from Excel into the Xcelsius spreadsheet. Even though the user manual indicates to copy from Excel and right click where you want to paste, the Paste and Paste Special functions are greyed out. It is almost like the cells are locked or protected somehow. I selected Formal Cells -> Protection and unlocked the cells but still nothing. Any ideas? Excel 2007

    Hi,
    It seems your workbook was locked. Try the following... it might help you.
    I know some of you out there have hit this problem in the past and now we have a workaround...
    If you try to add/remove/modify a worksheet in the Xcelsius embedded Excel and you can't do it.
    1. Start to unprotect the workbook:
    Office 2007 (Ribbon menu in Xcelsius or Excel). Select Review > Protect Workbook > Protect Structure and Windows.
    Office 2003 (menu only in Excel). Select Tools > Protection > Unprotect Workbook.
    2. You will be prompted for a password.
    3. This is the password (the O is an uppercase o):
    fazOh1+u
    4. Click OK and the spreadsheet should no longer be locked.
    Let me know if still your problem exists.
    Regards,
    Anjani Kumar C.A.

  • Multiple Hierarchies from Single Dimension Table in OBIEE-11g?

    Is it possible to have Multiple Hierarchies from Single Dimension Table in OBIEE-11g?
    Like 1)Year-Qtr-Month-Weeks 2)Year-Month-Days

    Hi,
    or if your lowest level is the same like
    Day->month->year->Total
    Day->businessMonth->businessyear->Total
    Then yes, it is.
    Create the first, then you start to create the second by adding your top(business year) level on the same level as the one you have (year) both under your total.
    Then when you would add your second base level, there is a special option for it, something like use other hierarchy level/shared level (sorry can't recall and does not have a connection right now) then you select your existing day level under your businessmonth level.
    Hope this helps,
    Regards,
    D

  • Black output for picture (metafile, Word) pasted from Excel

    Hi,
    All pictures in the pdf result in black rectangles. The original document is Word and the pictures are pasted from Excel to Word as Picture (Windows or Enhanced Metafile). Word and Excel are 2007 and  Acrobat is 9Pro. Any guess how to get the pictures right in the pdf?
    Thanks in advance,
    Herman

    I'm guessing here.
    Do not copy and paste; I think the path to the source picture is being lost.
    Within Word, Insert the picture from the menu.

  • Is it possible to paste multiple selections from excel?

    How do you detect in Java whether a multiple selection in excel has been copied to the clipboard.
    For instance: I have an excel spreadsheet - 3 rows x 3 columns. I highlight the first 3 rows in column 1 and the first 3 rows in column 3 then I copy this to the clipboard (ctrl-c). If I now go to a text editor and paste this then the data from all 3 columns, not the expected 2 columns, appears.
    Likewise, in Java I have tried using the clipboard object looking at all the different data flavours to find a way of detecting that only data from the 1st and the 3rd columns were copied. But I can't find a way.
    This is most likely a microsoft issue in that they never make this information available from the clipboard.
    Can anyone shed any light on this one?

    Use the setSelectionMode(ListSelectionModel.SINGLE_SELECTION ) for your JList / JTable.

  • Script to upload data from excel to table.

    Hi,
    Am having a different scenario.
    I need to create a script to load the data from excel into oracle table.
    For eg: When user1 has emp1.csv file then the datas should be loaded into emp table. at the same time user 2 has emp2.csv file then the datas should be inserted in the same emp table. Likewise my user's has different .csv files of having same template. I need to upload all those datas into the same table.
    How can i achieve it
    regards,
    Prasad K T,
    9840021070.

    Hi Prasad,
    You can use Sql loader tool (sqlldr) in APPEND mode to load the data from csv file to the target table. The APPEND would not delete the existing data from the table.
    Your control file may look like this:
    LOAD DATA
      INFILE 'emp1.csv'
      BADFILE 'bad_emp1.csv'
      APPEND
      INTO TABLE mailing_list
      FIELDS TERMINATED BY ","
      ( field1,
         field2,
    Regards,
    Sahir

  • In InCopy, how can I paste from one InDesign table to another without also copying formatting?

    I'm attempting to paste information from one indesign document to another, but the styles are different. Pasting without formatting not working in a table. When I paste over, it retains the container style from the original table.
    I have "Text Only" selected from my Clipboard Handling preferences, so I'm not sure what else to do. I know I can hit escape to switch to the text selection instead of a container, but this only selects the text from one cell. I'd like to copy over the entire table, instead of copying cell by cell.
    How can I paste a table into another, without copying the formatting?

    Copy/Paste whole cells will always retain formatting.
    What you have to do is: Copy/Paste Without Formatting the text contents of the individual cell.
    You have to do that individually for each cell, if you want to copy over text of a whole table.
    A better approach would be to:
    1. Copy the whole table to Excel (or a different spread sheet application)
    2. Copy again from that
    3. Select one single cell and paste
    In that case "Text Only" should be selected from the Clipboard Handling Preferences.
    Uwe

  • BAPI for automatic Pr creation witth multiple files from excel sheet

    I have written a programm  for automatic PR creation  with the help of bapi , where its picks data from excel sheet and makes PR .It is picking excel files from one folder(Files) for PR creation and moving to another folder(Files sucess).
    now the problem is if Folder (Files) contains one excel sheet ,PR is created fine , but if the Folder(Files) have multiple excel sheet ,its is creating 1st PR right, but next PR's contains all the line item of 1st PR , 2nd PR and so on .can anyone suggest me where is the problem in codes.
    types : begin of x_file ,
            key1(10),
            pur_grp(4),
            maktx(40),
            plant(4) ,
            req(10),
            s_qty(13),
            wbs(24),
            gl(10),
            trackno(10),
            supl(4),
            deladd(255).
    types : end of x_file .
      data : str5 type char10.
      data : mm type char2.
      data : yyyy type char4.
      data : dd type char2.
      data : str9 type char10.
      data : str6 type char10.
      data : month type char2.
      data : year type char4.
      year = sy-datum+0(4).
      month = sy-datum+4(2).
      dd = sy-datum+6(2).
      yyyy = sy-datum+0(4).
      mm = sy-datum+4(2).
      dd = sy-datum+6(2).
      clear str6 .
      clear str5.
      concatenate  dd'.' month '.' year into str5 .
      concatenate  yyyy mm dd into str6 .
    DATA : file type rlgrap-filename .
    data : it_file type table of x_file .
    data : wa_file type x_file .
    data : it_header type table of x_file .
    data : wa_header type x_file .
    *&  Internal Table For Define Row and Coloum Postion
    data: col_start type i value 1 ,
          row_start type i value 2,
          col_end type i value 256 ,
          row_end type i value 65000 .
    *&  Internal Table For Retrieve  Data From Excel
    *data: excel_bdcdata like kcde_cells occurs 0 with header line.
    *data: excel_bdcdata1 like kcde_cells occurs 0 with header line.
    data: excel_bdcdata like ALSMEX_TABLINE occurs 0 with header line.
    data: excel_bdcdata1 like ALSMEX_TABLINE occurs 0 with header line.
    data: it_index type i.
    DATA : IT_INDEX1 TYPE I.
    *&  Define Field Symbol
    field-symbols: <fs> .
    data :   bdcdata like bdcdata    occurs 0 with header line.
    data :   messtab like bdcmsgcoll occurs 0 with header line.
    data : req_items type table of bapiebanc .
    data : wa_req_items type bapiebanc .
    data : req_acc_asg type table of bapiebkn.
    data : wa_req_acc_asg type bapiebkn.
    DATA : RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE .
    *data : return type table of     bapireturn.
    *data : wa_return type bapireturn .
    data : number type ebeln .
    *****************************MOVE FILES******************************
    data : xsource type string .
    data : xdestin type string .
    data : destin1 type string .
    data : destin2 type string .
    DATA : DEST1 TYPE STRING.
    DATA : DEST11 TYPE STRING.
    DATA : DEST2 TYPE STRING.
    DATA : DEST22 TYPE STRING.
    data : sou_dir_name like SALFILE-LONGNAME.
    data : tar_dir_name like SALFILE-LONGNAME.
    data : tar_dir_name1 like SALFILE-LONGNAME.
    data : sou_filename like EDI_PATH-PTHNAM .
    data : tar_filename like EDI_PATH-PTHNAM .
    data : filename1  type string .
    data : tar_filename1 like EDI_PATH-PTHNAM .
    data : file_itab like SALFLDIR occurs 0 with header line.
    data : wa_file_itab like SALFLDIR.
    data : file_count type i .
    data : dir_count type i.
    data : dir_table like sdokpath occurs 0 with header line.
    data : file_table like SDOKPATH occurs 0 with header line.
    data : wa_file_table like sdokpath.
    data : strr type string ,
           str1 type string ,
           str2 type string ,
           str3 type string .
    DATA : PA_VAL TYPE CHAR1.
    sou_dir_name = 'D:\barcodes\files\'.
    tar_dir_name = 'D:\barcodes\files-success\'.
        "success folder.
    CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
      EXPORTING
        DIRECTORY  = sou_dir_name
        FILTER     = '.'
      IMPORTING
        FILE_COUNT = file_count
        DIR_COUNT  = dir_count
      TABLES
        FILE_TABLE = file_table
        DIR_TABLE  = dir_table
      EXCEPTIONS
        CNTL_ERROR = 1
        OTHERS     = 2.
    IF SY-SUBRC <> 0.
    ENDIF.
    loop at file_table into wa_file_table.
    clear  :  strr , str1 , str2 , str3 .
      strr = wa_file_table-PATHNAME .
      concatenate sou_dir_name strr into str1 .
      concatenate tar_dir_name strr into str2 . " success
      concatenate tar_dir_name1 strr into str3 .         " failed
    FILE = STR1 .
    *start-of-selection.
    *&  Function For Retrieve Data From Excel
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        filename                      = FILE
        i_begin_col                   = col_start
        i_begin_row                   = row_start
        i_end_col                     = col_end
        i_end_row                     = row_end
      tables
        intern                        = excel_bdcdata
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3.
      IF sy-subrc NE 0.
    WRITE : / 'File Error'.
    EXIT.
    ENDIF.
      loop at excel_bdcdata.
        translate excel_bdcdata to upper case .
        move excel_bdcdata-col to it_index.
        assign component it_index of  structure  wa_file to <fs> .
        move excel_bdcdata-value to <fs>.
        at end of row.
          append wa_file to it_file .
            clear wa_file.
        endat.
      endloop.
    sort it_file by key1. "pur_grp maktx plant  .
    it_header[] = it_file[].
    delete adjacent duplicates from it_header comparing key1 pur_grp maktx
    plant .
    data : h_item(5) type n .
    data : h_pack(10) type n .
    data : line_no(5) type n .
    data : ln_no(5) type n .
    loop at it_header into wa_header .
    ln_no = 1.
    h_item = h_item + 10.
    h_pack = h_pack + 1.
    wa_req_items-preq_item = h_item .
    wa_req_items-doc_type = 'BOM'.
    wa_req_items-pur_group = wa_header-pur_grp .
    wa_req_items-MATERIAL = wa_header-maktx .
    wa_req_items-plant = wa_header-plant .
    wa_req_items-pckg_no =  h_pack .
    wa_req_items-deliv_date = str6 .
    wa_req_items-item_cat = '0'.
    wa_req_items-acctasscat = 'P'.
    *wa_req_items-distrib = '2' .
    **wa_req_items-gr_ind = 'X'.
    wa_req_items-ir_ind = '2'.
    wa_req_items-purch_org = 'TISL' .
    wa_req_items-QUANTITY =  wa_header-s_qty.
    wa_req_items-PREQ_NAME =  wa_header-req.
    wa_req_items-SUPPL_PLNT = wa_header-supl.
    wa_req_items-trackingno = wa_header-trackno.
    append wa_req_items to req_items .
    clear wa_req_items.
    wa_req_acc_asg-preq_item = h_item .
    wa_req_acc_asg-g_l_acct = wa_file-gl .
    WA_req_acc_asg-wbs_elem  = wa_header-wbs .
    append wa_req_acc_asg to req_acc_asg .
    clear wa_req_acc_asg.
    h_pack = h_pack + 1  .
    endloop.
    clear ln_no .
    ***BREAK-POINT.
    *& BAPI FUNCTION
    call function 'BAPI_REQUISITION_CREATE'
    importing
       number                               = number
      tables
        requisition_items                   = req_items
       requisition_account_assignment       = req_acc_asg
       return                               = return .

    Can someone please give me sol........

  • Copy and paste from Excel to Word, tabs get messed up intermittently

    I use a couple templates I've developed for quoting and have trouble using them since I've switched to Windows 8.1, and Office 2013.  I copy from Excel and paste into windows.  When I first installed the new software it worked fine.  Then
    it started doing crazy things with the tabs.  A column in Excel would be way wider in Word to the point my table would be off the screen.  Then it got better.  Then it got bad again.  The problem seems to be intermittent.  I just re-installed
    Office.  No change.
    I saw one person's note about having the file you are copying to open or closed when copying from Excel.  Tried that but no change.  Any ideas?  So two problems:
    1. pasting doesn't work
    2. the software seems unstable
    Just discovered a work around.  I think, since the problem does seem to come and go.  The template was initially developed in Office 2010.  It works fine in 2013, except for pasting apparently.  When I recreated the template in 2013, it
    seems to paste correctly - so far.    

    This is probably just like what you've discovered, these are old templates created in Office 2010, which might have compatibility issue.
    Re-created them within Office 2013 should fix this.
    Bhanu Tej

  • Multiple sheets from EXCEL

    Hi Everyone,
    My requirment is as follows to read multiple sheets from an EXCEL that contains MAcro and some Visual BAsic Components.
    I am using FM 'ALSM_EXCEL_TO_INTERNAL_TABLE' to read a single sheet which works fine.
    But it brings in only one Active sheet at a time.
    Please help me resolve this.
      CREATE OBJECT application 'EXCEL.APPLICATION'.
      CALL METHOD OF application 'Workbooks' = workbook.
      CALL METHOD OF workbook 'Open' EXPORTING #1 = p_file.
    *call METHOD of Workbook 'Sheets' EXPORTING
    Open the first sheet in the workbook
      CALL METHOD OF workbook 'Worksheets' = sheet EXPORTING #1 = 1.
      CALL METHOD OF workbook 'ActivateSheet'
        EXPORTING
          #1 = 1.
      CALL METHOD OF sheet 'Activate'.
      CALL METHOD OF sheet 'Save'.
      FREE OBJECT application.
      SET PROPERTY OF application 'visible' = 0.
      CALL METHOD OF application 'QUIT'.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = p_file
          i_begin_col             = '1'
          i_begin_row             = '1'
          i_end_col               = '60'
          i_end_row               = '32000'
        TABLES
          intern                  = it_data
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        WRITE:/ 'Upload Error ', sy-subrc.
      ENDIF.
      APPEND LINES OF it_data TO gt_data.
      BREAK-POINT.
      CREATE OBJECT application 'EXCEL.APPLICATION'.
      CALL METHOD OF application 'Workbooks' = workbook.
      CALL METHOD OF workbook 'Open' EXPORTING #1 = p_file.
    Open the second sheet in the workbook
      CALL METHOD OF workbook 'Worksheets' = sheet EXPORTING #1 = 2.
        CALL METHOD OF workbook 'ActivateSheet'
        EXPORTING
          #1 = 2.
      CALL METHOD OF sheet 'Activate'.
      CALL METHOD OF sheet 'Save'.
      SET PROPERTY OF application 'visible' = 0.
      FREE OBJECT application.
      CALL METHOD OF application 'QUIT'.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = p_file
          i_begin_col             = '1'
          i_begin_row             = '1'
          i_end_col               = '60'
          i_end_row               = '32000'
        TABLES
          intern                  = it_data
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        WRITE:/ 'Upload Error ', sy-subrc.
      ENDIF.

    Hi ,
    Check the below link.
    [http://wiki.sdn.sap.com/wiki/display/Snippets/ReadmultiplesheetsofanExcelfileintoSAPthroughABAP]
    Thanks.
    Subhankar

  • Copy and paste from excel to adobe form

    Hi everyone,
    a customer in a project based on WDJ + Adobe Interactive Form asks us the ability to copy areas of data (numeric and alphanumeric) from an Excel Spreadsheet (set of contiguous rows and columns), and paste them into a text field free PDF, preserving the formatting (ie the structure of rows and columns, font and size).
    Personally I think it is something not feasible unless a development at hoc.cosa do you think?
    Any advice is very welcome.
    Regards,
    Mirco

    Reading the documentation XFA at http://partners.adobe.com/public/developer/en/xml/xfa_spec_3_1.pdf (richtext reference) we understand that you can make the cut & paste from Word or, better still from a RTF. But in this case from the Excel table information is lost as it is aligned in a single line.
    The only way I think is to define a common layout to Excel and Adobe and use tables dynamically in the form
    I do not think this is a limitation of the SAP solution!
    regards,
    Mirco

Maybe you are looking for