Data trasfer from maint. view to excel sheet
I have one maint. view , How to trasfer the data from that maint view to excel through bdc?
Thanks,
Regards,
Vishal Bhagwat.
Hi Vishal,
In BDC call the below FM
You can try using KCD_EXCEL_OLE_TO_INT_CONVERT FM.
Add values to internal table
SORT t_cells BY row col.
LOOP AT t_cells INTO wa_cells.
MOVE : wa_cells-col TO l_index.
ASSIGN COMPONENT l_index OF STRUCTURE itab TO <f_value>.
MOVE : wa_cells-value TO <f_value>.
AT END OF row.
APPEND itab
CLEAR itab.
ENDAT.
ENDLOOP.
Regards,
Aarti.
Similar Messages
-
Gui_download for transferring the data from internal table to excel sheet.
hi all,
i am using gui_download for transferring the data from internal table to excel sheet.
I have a internal table with 3 columns col1,col2,col3 and I am getting the file at the specified path,but my problem is that,in the excel sheet(path specified) all the 3 columns values are printed in one column.Please help me.
Thanks in advance.Hi Venkata,
plz use FM 'SAP_CONVERT_TO_XLS_FORMAT' :
call function 'SAP_CONVERT_TO_XLS_FORMAT'
exporting
* I_FIELD_SEPERATOR =
* I_LINE_HEADER =
i_filename = p_file
* I_APPL_KEEP = ' '
tables
i_tab_sap_data = t_mbew
* CHANGING
* I_TAB_CONVERTED_DATA =
* EXCEPTIONS
* CONVERSION_FAILED = 1
* OTHERS = 2
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Hope this helps,
Erwan -
Facing a Problem while downloading the data from ALV Grid to Excel Sheet
Hi Friends,
Iam facing a problem while downloading the data from ALV Grid to excel sheet. This is working fine in Development server , when comes to Quality and Production servers I have this trouble.
I have nearly 11 fields in ALV Grid and out of which one is PO number of length 10 , all the ten numbers are visible in the excel sheet if we download it from development server but when we download it from Quality or Production it is showing only 9 numbers.
Can any one help me out in this case.hi...
if this problems happens dont display the same internal as u finally got.
just create new internal table without calling any standard data elements and domains... but the new internal table s similar like ur final internal table and move all the values to new int table.
for eg.
ur final internal int table for disp,
data : begin of itab occur 0,
matnr like mara-matnr,
end of itab.
create new like this,
data : begin of itab occur 0,
matnr(12) type N,
end of itab. -
How to I convert data from oracle database into excel sheet
how to I convert data from oracle database into excel sheet.
I need to import columns and there datas from oracle database to microsoft excel sheet.
Please let me know the different ways for doing this.
Thanks.asktom.oracle.com has an excellent article on writing a PL/SQL procedure that dumps data to an Excel spreadsheet-- search for 'Excel' and it'll come up.
You can also use your favorite connection protocol (ODBC, OLE DB, etc) to connect from Excel to Oracle and pull the data out that way.
Justin -
I need to restrict users to submit data from Smart view or Excel Addin.
Hi All,
I need to restrict users to submit data from Smart view or Excel Addin.
I cant provision them as read access because I want them to write from the Hyperion Planning Web Form.
Any help on the same will be highily appriciated.John,
Thanks for the reply . if i dont give them essbase write role user cant submit data through smartview or Excel addin. at the same users want to see adhoc reports making connection in smartview through planning, then users can send data.
1. I want users to restrict export dataform to smartview, if they can export dataform to smartview it automatically makes connection using planning and users can pretty much change data.
2. is there any way to restrict users making connection through planning in smartview.
3. when users make smartview connection through essbase, the secuirty works fine and they cant change the data.
Please let me know if you any solution ....
advance thanks,
NM -
How to download data from abap-ouput to excel sheet with logo
how to download data from abap-ouput to excel sheet with standard logo
Edited by: Harish Kasyap on Nov 18, 2008 8:19 AM
Edited by: Harish Kasyap on Nov 18, 2008 8:20 AMFor saving the report you can goto System -> List -> Save -> Local File -> Location where you want to save in your presentation server.
You can also give a option in your selection screen to save the file to Presentation server using FM GUI_DOWNLOAD.
Hope it helps.
Thanks,
Jayant. -
Download data from internal table to excel sheet from the background
Hello Experts,
I have written a code where the data is stored in the internal table . Now when i run this code in the background i want this internal table data to get downloaded in the excel sheet. The function module GUI_DOWNLAOD is not supported in the background. So is there any other function module that can be used or is there any other way to do this
Thanks in advanceHi Aditya,
I would provide you 2 advice:
1. save the file on the application server as text file and the fileds in it separated by TAB,you can download the file whenever you want and open it with excel.
2.generate excel files and send it to the email address whatever you specify in the selection-screen.
Thanks,
Sam -
Write data of a table to an excel sheet
Hi
How i can write data of a table to an excel sheet?
regard
deemySearch this forum for 1.2 Jiga-examples...
-
Download bom from pull list in excel sheet.
please tell hw to download bom from pull list in excell sheet.
Hi,
try CS11/CS12/CS13 for downloading the BOM to the excel sheet.
Please check and revert.
Thanks,
Hrishi -
Problem when exporting Query from Web template to Excel Sheet.
Hello,
Im encoutering a problem when im trying to export query output from web template to excel sheet.
A popup windown appears when excel sheet opens which reads.."problem cameup in the following areas during load : Cell Value".The report layout appears to be fine but the totals shows unwanted values starting with * followed by number.
Any valuable inputs, what could be the problem. where can i rectify the same.
Regards
ElloraHello A K,
Thanks for ur time and response but the option u mentioned did not serve my purpose.
The problem seems to be only with pirticular cells.As mentioned earlier the layout appears properly..all the values are seen..but the end result..totals are disturbed.
eg: If the report shows in template the total value :20,668,554...when exported the values is shown as **668553.88000000600000.
So what could be the problem ? any template setting ? global setting to look at ?
Regards
Ellora -
Exporting filterded data from a view to excel
I have a requirement, where i have to export data from a list to excel after applying some filter to it.
Say i filter the view by selecting employee dept="Teaching", now i want to export only the filtered rows to excel.
Is there any way to achieve this.
Thanks in advance.Hi,
You can create a view with required filters. Then you can export to excel after switching on to filtered view.Refer following link to create filtered view.
http://office.microsoft.com/en-in/sharepoint-workspace-help/create-view-filters-in-a-lists-tool-design-in-sharepoint-workspace-2010-HA010336352.aspx
Hope it helps!
Avni Bhatt -
Reading data in a tab in an excel sheet
Hi,
I would like to read the data in an excel sheet and upload into an internal table for processing. I was able to do it using function module ALSM_EXCEL_TO_INTERNAL_TABLE but I am not able to read a particular tab. My excel sheet has tabls like A, B, C and D and I want to read only tab C. But currently, it reads data in tab A.
regards,
Srini.Pls check this and review it once. it works for 2 excel sheets in single excel file to read. Pls reward me if its helpful. Thanks !
FUNCTION z_uploading_from_2sheets.
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(FILE_NAME) TYPE RLGRAP-FILENAME
*" REFERENCE(START_ROW_SHEET1) TYPE I
*" REFERENCE(START_COLUMN_SHEET1) TYPE I
*" REFERENCE(START_ROW_SHEET2) TYPE I
*" REFERENCE(START_COLUMN_SHEET2) TYPE I
*" REFERENCE(END_ROW_SHEET1) TYPE I
*" REFERENCE(END_COLUMN_SHEET1) TYPE I
*" REFERENCE(END_ROW_SHEET2) TYPE I
*" REFERENCE(END_COLUMN_SHEET2) TYPE I
*" TABLES
*" IT_DATA1 STRUCTURE ALSMEX_TABLINE
*" ALSMEX_TABLINE STRUCTURE ALSMEX_TABLINE
*" EXCEPTIONS
*" INCONSISTENT_PARAMETERS
*" UPLOAD_OLE
TYPES: ty_t_sender(1500) TYPE c.
DATA: excel_tab TYPE TABLE OF ty_s_senderline,
excel_tab1 TYPE TABLE OF ty_s_senderline.
DATA: ld_separator TYPE c.
DATA: application TYPE ole2_object,
workbook TYPE ole2_object,
sheet TYPE ole2_object,
range TYPE ole2_object,
worksheet TYPE ole2_object.
DATA: h_cell TYPE ole2_object,
h_cell1 TYPE ole2_object.
DATA: ld_rc TYPE i.
DATA: it_data TYPE STANDARD TABLE OF alsmex_tabline.
*MESSAGE DEFINATION
DEFINE m_message.
*Function Module To Upload Data From
*Excel File Into Two Internal Tables
*© 2005 SAP AG 6
case sy-subrc.
when 0.
when 1.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
when others. raise upload_ole.
endcase.
END-OF-DEFINITION.
*PARAMETER CHECK.
IF start_row_sheet1 > end_row_sheet1.
RAISE inconsistent_parameters.
ENDIF.
IF start_column_sheet1 > end_column_sheet1.
RAISE inconsistent_parameters.
ENDIF.
IF start_row_sheet2 > end_row_sheet2.
RAISE inconsistent_parameters.
*Function Module To Upload Data From Excel File Into Two Internal Tables
ENDIF.
IF start_column_sheet2 > end_column_sheet2.
RAISE inconsistent_parameters.
ENDIF.
CLASS cl_abap_char_utilities DEFINITION LOAD.
ld_separator = cl_abap_char_utilities=>horizontal_tab.
*OPENING EXCEL FILE
IF application-header = space OR application-handle = -1.
CREATE OBJECT application 'Excel.Application'.
m_message.
ENDIF.
CALL METHOD OF
application
'Workbooks' = workbook.
m_message.
CALL METHOD OF
application
'Workbooks' = workbook.
m_message.
CALL METHOD OF
workbook
'Open'
EXPORTING
#1 = file_name.
m_message.
CALL METHOD OF
application
'Worksheets' = sheet
EXPORTING
#1 = 1.
*Function Module To Upload Data From Excel File Into Two Internal Tables
m_message.
CALL METHOD OF
application
'Worksheets' = sheet
EXPORTING
#1 = 1.
m_message.
CALL METHOD OF
sheet
'Activate'.
m_message.
GET PROPERTY OF application 'ACTIVESHEET' = sheet.
m_message.
*MARKING OF WHOLE SPREADSHEET
CALL METHOD OF
sheet
'Cells' = h_cell
EXPORTING
#1 = start_row_sheet1
#2 = start_column_sheet1.
m_message.
CALL METHOD OF
sheet
'Cells' = h_cell1
EXPORTING
#1 = end_row_sheet1
#2 = end_column_sheet1.
m_message.
CALL METHOD OF
sheet
'RANGE' = range
EXPORTING
#1 = h_cell
#2 = h_cell1.
m_message.
CALL METHOD OF
range
'SELECT'.
m_message.
*Function Module To Upload Data From Excel File Into Two Internal Tables
*Copy marked area (SHEET1) into Clippboard
CALL METHOD OF
range
'COPY'.
m_message.
*Read clipboard into ABAP
CALL METHOD cl_gui_frontend_services=>clipboard_import
IMPORTING
data = excel_tab
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE a037(alsmex).
ENDIF.
PERFORM separated_to_intern_convert TABLES excel_tab it_data
USING ld_separator.
APPEND LINES OF it_data TO it_data1.
*Function Module To Upload Data From Excel File Into Two Internal Tables
*Clear the clipboard
REFRESH excel_tab.
CALL METHOD cl_gui_frontend_services=>clipboard_export
IMPORTING
data = excel_tab
CHANGING
rc = ld_rc
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
*Working in Second Excel Work Sheet
CALL METHOD OF
application
'Worksheets' = sheet
EXPORTING
#1 = 2.
m_message.
CALL METHOD OF
sheet
'Activate'.
m_message.
*Function Module To Upload Data From Excel File Into Two Internal Tables
GET PROPERTY OF application 'ACTIVESHEET' = sheet.
m_message.
*Mark Sheet2
CALL METHOD OF
sheet
'Cells' = h_cell
EXPORTING
#1 = start_row_sheet2
#2 = start_column_sheet2.
m_message.
CALL METHOD OF
sheet
'Cells' = h_cell1
EXPORTING
#1 = end_row_sheet2
#2 = end_column_sheet2.
m_message.
CALL METHOD OF
sheet
'RANGE' = range
EXPORTING
#1 = h_cell
#2 = h_cell1.
m_message.
CALL METHOD OF
range
'SELECT'.
m_message.
*Copy Marked Area (Sheet2) into Clippboard
CALL METHOD OF
range
'COPY'.
m_message.
*Function Module To Upload Data From Excel File Into Two Internal Tables
*Read Clipboard into ABAP
CALL METHOD cl_gui_frontend_services=>clipboard_import
IMPORTING
data = excel_tab1
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE a037(alsmex).
ENDIF.
*PERFORM separated_to_intern_convert TABLES excel_tab1 IT_DATA2
PERFORM separated_to_intern_convert TABLES excel_tab1 it_data
USING ld_separator.
*Clear Clipboard.
REFRESH: excel_tab1.
APPEND LINES OF it_data TO it_data1.
CALL METHOD cl_gui_frontend_services=>clipboard_export
*Function Module To Upload Data From Excel File Into Two Internal Tables
IMPORTING
data = excel_tab1
CHANGING
rc = ld_rc
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4
*Leaving Application
CALL METHOD OF
application
'QUIT'.
m_message.
* >>>>> Begin of change note 575877
* to kill the Excel process it's necessary to free all used objects
FREE OBJECT h_cell. m_message.
FREE OBJECT h_cell1. m_message.
FREE OBJECT range. m_message.
FREE OBJECT worksheet. m_message.
FREE OBJECT workbook. m_message.
FREE OBJECT application. m_message.
* <<<<< End of change note 575877
ENDFUNCTION. -
How to convert an output retrieved from database to an excel sheet?
Hello friends,
I am preparing an online JSP based project for our training and placement department.
In this context, I am showing an output into a JTable format to the user for the shortlisted candidates by retrieving this information from my database (MySQL).
Now I need to convert this output into the Excel Sheet so that I can perform various operations over there.
So, what are the things required to perform from my side for implementing the same.The easiest thing for you to do would be to save it as CSV (Comma Separated Values). In general, your fields would be separated by commas, and any fields that are not numbers would be surrounded with double quotes:
1,"text",...
Dates and times are semi-tricky, but excel is pretty good about accepting "YYYY/MM/DD" and "HH:MI AM" format.
Other than that, you'll be learning the internal structures of Excel or perhaps there is a third-party library that can do this for you... -
Reg: Download alv grid data with top of page into excel sheet
Hi All,
I have a selection screen with radio button for download .
If that radio button was selected then the data will download into excel sheet (like if we execute normal ALV grid display from there we can download top-of-page and body as it is).
AOO : 2009P
Fiscal year : 2009
Posting period : 00
Local Currency : USD
CO Area Currency :
Accounting standard:
Sector : 23
BB code Period Value LC Periodic Quantity
AHDKGKAJ 200 0Did not get your question
-
Download from SAP system to Excel sheet
Hi,
I have a list of materials, would like to download it from SAP system to an Excel sheet.
Kindly let me to know the procdure to do it.
Thanks
NDSHi,
Please execute T code MM60 or the required T code to get the list of materials and Go to sap menu Bar ->setting->list->save->local to spreedsheet and save it your desk top to create an Excel file.
Regards
Ram
Maybe you are looking for
-
Error during copy of partner: Partner role VN
I am creating an Inbound Delivery from an Outbound using SPED output type on the Outbound Delivery. When I process the output using vl71 I get the following error. Can anyone tell me what im missing. The same scenario works for other plants except th
-
Preset panel in develop module is missing
I have lightroom 2.2. Somehow, I accidently removed the preset panel from the develop module and I can't figure out how to restore it. Any help would be greatly appreciated.
-
ACE 4710 VIP not pingable even with "always" selected.
Hello, I have a somewhat complicated setup in order to allow one particular VIP to answer for the same serverfarm on two different ports (this was a previous question here.) Here is the scrubbed config below. The setup works, but the issue is that th
-
Hi Gurus, I Have got a problem in Invoice Printing.I had attached a Pgm Name say <b>Z_PGM_NAME</b>, Form Name <b>Z_ROUT_NAME1</b> And Smartform say SF_NAME1.The Invoice No I used to pick from NAST-OBJKY.Also the NAST Table entries were used to get
-
Cant use subtitution variable in dlr header
Hi all, I want to put in the dlr header the current year subtitution variable and for some reason the essbase ignore this variable when Im launching the dlr. my syntax is (on header): member1, member2, &CurrYear I'm getting warning message: "No data