Copy-paste values from excel sheet into variable screen of SAP BI 7.0 query
Hello
Report has selection by material in the variable screen. Users would like to to run a report for a set of materials (100+ items). He wants to copy-paste materials into material variable to avoid manual entry.
I know its impossible. Are thee any ways to allow user not to enter this materials manually and run the report.
Set of materials can change over the time.
Thanks
Hi,
You might want to try with a text file (.txt).. place all the 100+ values into a text file.. like the notepad.. make sure you have only one column with all these number.. no headers or no blank spaces in the beginning..
then, in the variable (variable should have been defined as "select options" or "multiple single values"), if you can go the screen where we can make multiple entries, we will have an option to import from a file.. and select the text file you have created above.. then all the 100+ values will be imported..
we do this all the time..
rgds
Naga
Similar Messages
-
Upload data from excel sheet into md61
Hi Gurus,
Can anybody please tell me the solution like how to upload the data from excel sheet into the MD61
if u suggest me to write an ABAP code then its fine or any other way would be great
and can u also send me the abap code i would be thankful to allHi,
I can be done in 2 ways.
1. Using LSMW you can upload your MD61 demand thru Excel sheet.
2. You can use BDC to upload the demand from Excel. For this you need to take help from the ABAP. You need to record the macro usinf SHDB and the table maintenance will be taken care by the developer.
For LSMW you need not depend on your developer, as a functional consultant you can do it yourself.
Regards,
V. Suresh -
Pasting data from Excel sheet to Table in web dynpro View
Hii All,
Is it possible to copy data ( some rows) from Excel sheet and paste in table in a view?
I tried doing this, but only first element is getting pasted..
Does anybody know how to do this?
Is there any way to perform similar thing?
Pls help.
regards,
AmeyHi,
Copy paste may work if you have that many rows in your table(not sure).
One thing you can do is upload the excel and then populate the context of the node bound to the table by fetching data from the excel
For this you can make use of JXL or APACHE POI.
Regards
Ayyapparaj -
Uploading data from Excel sheet into SAP.
Dear All,
I want to upload data existing in Excel sheet into SAP. Is there any possibility with the following requirements?
1) Excel file contains serial numbers with different values.Like power(230Wp),Voc,Isc,Vmp and Imp.
2) We need to upload the same data into SAP with validations.
3) Validations are like no serial number should be repeated.
4) And depending on the Power value, the serial number should be assigned to different batches.Eg:The batches are as follows:
201 - 210
210 - 220
220 - 230
and if the Pmax of the serial number is 205.It should be assigned to batch 201 - 210 .
5) At present we are using MB31 to post the serial numbers which are existing in the flat file.
Thanks and Regards,
Varun SiddharthHi,
Refer to the following code:
DATA: lv_filetype(10) TYPE c,
lv_gui_sep TYPE c,
lv_file_name TYPE string.
lv_filetype = 'ASC'.
lv_gui_sep = 'X'.
lv_file_name = pa_dfile.
FM call to upload file
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = lv_file_name
filetype = lv_filetype
has_field_separator = lv_gui_sep
TABLES
data_tab = gi_zhralcon_file
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
The excel file must be a tab delimited file.
Hope it helps.
Regards,
Rajesh Kumar -
Copy the value from one item into another
Hi,
I have a page with 2 items on it: Field1 and Field2. When the user enters a value in Field1 and tabs out, I want to copy the value to Field2.
I have changed the setField1 method in the VORowImpl to call setField2 passing in the same value.
In the JHeadstart definition file I have set the Depends On Item property of Field2 to be Field1.
When I run the page and put a value in Field1 the page autosubmits as expected and the setField1 method runs. Unfortunately, the value does not appear in Field2.
Any ideas?
Thanks,
GavinHi Steven,
Checking the box does indeed get the value from Field1 into Field2.
What I want to do, though, is to populate Field2 from Field1 only if Field2 is empty. Unfortunately, Field2 is now cleared before the setter of Field1 executes and so it always overwrites Field2.
Any ideas?
Thanks,
Gavin -
How to read a Value from Excel Cell into Oracle Forms 10g with Java
Did any one Implamented a Java PJC to integrate Excel on Oracle Forms 10g?
I Open Excel Applikation.
Open a File like c:\import_test.xls
read a number 05 from A:1 (i get it as return value).
Save a number in a variable in Forms 10g
Can any one help my please?
Thankswhy don't you use webutil.
it has package client_ole2 which allows you to have programmatic interface with excel application.
this is especially useful if the excel to be read is available in the client. -
Office Control: Extract values from Excel sheet
Hello,
I would like to extract cell data of the excel office control.
e.g. I create a excel office control with a plain sheet. The user enters some data (A1=Test).
How can I extract the data of cell A1?
the oposite direction (exporting cell data) works in the example IOS_TEST_SPREADSHEET_MS with method
wd_this->document->activatexmlsource( EXPORTING xml = contentxmlsource
errorinformation = error_activatexmlsource_stru ).
but how can I IMPORT the data (after the user has changed it) again?
Thanks in advance!
Tobias Horstmann
Edited by: Tobias Horstmann on Jan 21, 2009 2:12 PMProviding you are using a windows based Oracle server and providing the Excel data is formatted as follows:
Each sheet in the workbook represents a "table"
The first row on each sheet gives the column names in each column.
All subsequent rows are the data for those columns.
You can use Oracle's Heterogeneous Services (HS) to connect to the spreadsheet as external database (via an ODBC datasource).
1- Go to Control Panel>Administrative Tools>Data Sources (ODBC)>System DSN and create a data source with appropriate driver. Name it EXCL.
2- In %ORACLE_HOME%\Network\Admin\Tnsnames.ora fie add entry:
EXCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.0.24)(PORT = 1521))
(CONNECT_DATA =
(SID = EXCL)
(HS = OK)
Here SID is the name of data source that you have just created.
3- In %ORACLE_HOME%\Network\Admin\Listener.ora file add:
(SID_DESC =
(PROGRAM = hsodbc)
(SID_NAME = <hs_sid>)
(ORACLE_HOME = <oracle home>)
under SID_LIST_LISTENER like:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = d:\ORA9DB)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = ORA9DB)
(ORACLE_HOME = d:\ORA9DB)
(SID_NAME = ORA9DB)
(SID_DESC =
(PROGRAM = hsodbc)
(SID_NAME = EXCL)
(ORACLE_HOME = D:\ora9db)
Dont forget to reload the listener
c:\> lsnrctl reload
4- In %ORACLE_HOME%\hs\admin create init<HS_SID>.ora. For our sid EXCL we create file initexcl.ora.
In this file set following two parameters:
HS_FDS_CONNECT_INFO = excl
HS_FDS_TRACE_LEVEL = 0
5- Now connect to Oracle database and create database link with following command:
SQL> CREATE DATABASE LINK excl
2 USING 'excl'
3 /
Database link created.
Now you can perform query against this database like you would for any remote database.
SQL> SELECT table_name FROM all_tables@excl;
TABLE_NAME
DEPT
EMPOr refer to this Article...
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4406709207206 -
How do I create a series of text frames using values from Excel list?
First of all, this is the very first script I'm attempting to write from scratch. I'm completely green at scripting, and I've picked up a few snippets from Adobe's ID scripting guide, but nothing has really stuck yet relating to this particular objective.
My supervisor keeps a master list of ad spaces, with the name of the account, how wide the space is, and how tall the space is, all in an Excel sheet. These spaces can number in the hundreds, and I am stuck manually drawing one rectangle for every space, which takes a very long time.
I'd like to create/have help creating a script that will take these values and "automagically" draw these spaces in the form of text frames, with the width (in columns) and the height (in inches) defined by the values in the master list, as well as the name of each account appearing in the subsequent text frames.
The script doesn't necessarily need to be able to pull the values straight from the Excel sheet; I can transfer the values to a support text file if needed, or directly into the script, changing it as I need it. A big thing (if it is not able to pull right from an Excel sheet) is that the number of spaces changes weekly, and so do the accounts, and the width and the height. Accordingly, it would be ideal if the values from the sheet could be changed easily, so as to create a new set of spaces as needed.
Positioning for each space is not crucial, only height and width. If they all appear on top of each other on the same page, that will be a result for me. The main idea is to not have to draw them all manually, one by one.
To me, this sounds like a tall order, but hopefully some experienced scripters out there can assist me, as I wish to become experienced as well.
So, the TL;DR version:
- Script needs to draw a series of text frames.
- Text frames dimensions need to be defined by width and height values from Excel sheet.
- Text frames must have account name as contents (from account names in Excel sheet).
- Accounts, width and height change every week in the Excel sheet, so must be relatively easy to exchange all of the values.
- The width values are on the Excel sheet as columns. It would be ideal if the script could convert those numbers into multiples of columns as needed.
- (Optional) Script can pull values directly from Excel sheet.
- (Optional) Script can define text frame fill color as gray. (If it works as I think it will, I could just select all the resulting text frames myself and set them all to gray at once... I'm not that lazy )
Thanks in advance to whomever can assist in any possible way, even if it is just a push in the right direction. This script will save 1-2 hours of tedium every week.Sound like the perfect thing for InDesign Scripting.
I would copy the Excel contents into a text file, to get a format that is easily read from InDesign, and there will automatically be a TAB for each "cell" just using copy/paste.
Here is a piece of code, that you perhaps could go on with (adding variable to change pages and location on page, and other stuff).
The readFileLineByLine function, can be easily re-used with any function using "callback". You simply supply the function to it, that you want to be executed for every line of text that is read:
const COLUMN_WIDTH = 2; // Define the column width in inch
var pageIndex;
var textFramesExported; // not implemented.
// Add a new dokument. Set myDoc to app.activeDocument to use
// the current document instead of creating a new one.
var myDoc = app.documents.add();
// The doSomethingWithTextRow function is called upon for every line of text read.
readFileLineByLine('c:\\test.txt', doSomethingWithTextRow);
function doSomethingWithTextRow(row){
// We expect the text line to be TAB separated (\t = TAB). We get that from just copying the contents of an
// excel file into a text document.
var cells = row.split('\t');
var companyName = cells[0]; // The Company name in the first slot of the array
var width = COLUMN_WIDTH * cells[1];
var height = cells[2];
// Create a new text frame for every row handled
if (pageIndex==undefined) pageIndex = 0; // Count up when you have exported a number of texts, I leave this for you to do.
var newTextFrame = myDoc.pages[pageIndex].textFrames.add();
newTextFrame.contents = companyName;
// The text frame is created in the top left corner.
newTextFrame.geometricBounds = [0, 0, height + ' in', width + ' in']; // Top, Left, Bottom, Right
// You might want to move the textframes to other positions, keeping track of how many you put out per page.
newTextFrame.move( [10, 10] );
function readFileLineByLine(path, callbackFn){
var myFileIn = new File(path);
if (File.fs == 'Windows'){
// This was probably added to recognize UTF-8 (even without its start marker?)
myFileIn.encoding = 'UTF-8';
myFileIn.open('r');
var myEncoding = myFileIn.encoding;
try{
if (!myFileIn.exists){
throw('Missing file: ' + myFileIn.fsName)
var ln = '';
while(!myFileIn.eof){
// Read the lines from the file, until an empty line is found [now as a remark].
ln = myFileIn.readln()
// if(ln !='' && ln!='\n'){
// Call the function supplied as argument
callbackFn(ln);
}catch(e){
alert(e);
gCancel = true;
finally{
myFileIn.close();
The file in C:\ in my example was saved as UTF-8 and looks like this (showing hidden characters):
Message was edited by: Andreas Jansson -
Urgent - Migrate data from Excel sheets
Hello all..
I want to move data from excel sheets into oracle9i Database
I have a bout 50 table with average of 5000 row per table
How could I do it
I will be so obligated if you could detail it for me
Thanks in advanceI want to insert data using loader in the table Tablename
Name Type
CL_CL_CODE NUMBER(3)
SUBCL_CODE VARCHAR2(50)
SUBCL_NAME NUMBER(2)
P_CODE_LENTH NUMBER(3)
SCE_NAME VARCHAR2(50)
I use this statement:
load data
infile 'D:\Sqlldr\load.dat'
replace
into table subclasses
FIELDS TERMINATED BY ";" OPTIONALLY ENCLOSED BY '"'
(CL_CL_CODE,SUBCL_CODE,SUBCL_NAME,P_CODE_LENTH SCE_NAME)
I need to use default value for the column SCE_NAME,P_CODE_LENTH
what is the formula for this
Thanks -
How to retrieve data from excel sheet
Hi,
How to retrieve data from excel sheet into a java file.janu05 wrote:
If we append a $ in the end of the table name it is showing an error saying "invalid name,should not contain any invalid character or punctuation"Great, I'm very happy for you.
Unless that was a question. In which case you might what to tell us a little more.
Like which API you are using (assuming we are still on "reading an Excel sheet". -
FM for uploading data into internal table from Excel sheet
Hi,
I have a slight problem in one of the function modules that I have created. Actually it has been copied from a standard SAP function module KCD_EXCEL_OLE_TO_INT_CONVERT. Now my created function module is throwing me a dump suggesting Data objects in a Unicode program are not convertible. Can anybody help me out in removing the error .
Actually the need of copying the standard FM to a ZFM is to increase the length of the column which can be uploaded thru this FM. The standard FM has a restriction of being able to upload 32 characters whereas my requirement is to upload data having at least 150 characters. So in order to care the need I made a ZStructure ZAKHIL_CELLS taking the Value parameters as 150 characters instead of 32 characters.
Well this is all done because I wanted to upload a excel sheet into an internal table and not use a tab delimited file. Can anybody help in this regard or suggest some other function module which can upload more than 150 characters from a excel sheet .
m also attaching structure of my ZStructure for ur reference .
STRUCTURE ZAKHIL_CELLS1 .
ROW KCD_EX_ROW_N NUMC 4 Flexible Excel upload: row number
COL KCD_EX_COL_N NUMC 4 Column
VALUE KCD_VALUE CHAR 150 External Data Transfer: Values of Parameters or Variables
Thanks & Rgds,
Akhilhi,
sample excel sheet.
coloumn 1 is name and column 2 is age
name age
A 8
C 13
D 55
DATA : int_excel LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE.
data : record like db_name_age occurs 0 with header line.
DATA : v_start_col TYPE i VALUE '1', "starting col
v_start_row TYPE i VALUE '1', " starting row
v_end_col TYPE i VALUE '2', " total columns
v_end_row TYPE i VALUE '10'. "total no of record
FORM f_upload .
CLEAR : int_excel, int_excel[].
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = wf_filename
i_begin_col = v_start_col
i_begin_row = v_start_row
i_end_col = v_end_col
i_end_row = v_end_row
TABLES
intern = int_excel
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
IF sy-subrc <> 0.
*Message is 'Unable to upload data from ' wf_filename.
MESSAGE e169(zm050) WITH wf_filename.
ELSE.
SORT int_excel BY row col.
REFRESH : record.
CLEAR : record.
LOOP AT int_excel.
CASE int_excel-col. "go thru each column.
WHEN 1.
record-name = int_excel-value.
WHEN 2.
record-age = int_excel-value.
ENDCASE.
AT END OF row.
APPEND record.
CLEAR record.
ENDAT.
ENDLOOP.
*inserting into table
ENDIF.
if this helped pld rewrd points,
rgrds
anver -
Copy and paste Values from Numbers to Pages
When I do simple copy and paste content from Numbers to Pages, I get a formula error message. All I want to copy and paste the values only, not the formulas, but on pages I cannot find a way to paste values only. When it tries to paste formula, it errors because some of the formulas references to other sheets on Numbers. What is the easy way to get values from Numbers tables to pages without passing formulas.
Or better yet! Is there a way to link tables to pages like charts with refresh capabilities so I don't have to copy and paste values to pages document every time Numbers table values changes?J,
There is no Paste Special in OSX, anywhere. You can Paste Values from the Edit menu in Numbers when that would be necessary.
In such cases where you would use Paste Values in Numbers, you can use Paste and Match Style in Pages for the same result.
Sometimes it's so obvious to Pages what should be done that it will give you what you need automatically, but sometimes you need to use Paste and Match Style to get the values rather than an error triangle.
Jerry -
Copy selected values from a table control into another table control
hi there,
as seen in the subject i need to copy selected values from a table control into another table control in the same screen. as i dont know much about table controls i made 2 table controls with the wizard and started to change the code... right now im totally messed up. nothing works anymore and i don't know where to start over.
i looked up the forums and google, but there is nothing to help me with this problem (or i suck in searching the internet for solutions)
i have 2 buttons. one to push the selected data from the top table control into the bottom tc and the other button is to push selected data from the bottom tc into the top tc. does somebody has a sample code to do this?you're funny
i still don't get it... can't believe, there is no tutorial or sample code around how to copy multiple selected rows from a tc.
here's my code, maybe you can tell me exactly were i have to change it:
tc1 = upper table control
tc2 = lower table control
SCREEN 0100:
PROCESS BEFORE OUTPUT.
MODULE status_0100.
MODULE get_nfo. --> gets data from the dictionary table
MODULE tc1_change_tc_attr.
LOOP AT it_roles_tc1
INTO wa_roles_tc1
WITH CONTROL tc1
CURSOR tc1-current_line.
ENDLOOP.
MODULE tc2_change_tc_attr.
LOOP AT it_roles_tc2
INTO wa_roles_tc2l
WITH CONTROL tc2
CURSOR tc2-current_line.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT it_roles_tc1.
CHAIN.
FIELD wa_roles_tc1-agr_name.
FIELD wa_roles_tc1-text.
ENDCHAIN.
FIELD wa_roles_tc1-mark
MODULE tc1_mark ON REQUEST.
ENDLOOP.
LOOP AT it_roles_tc2.
CHAIN.
FIELD wa_roles_tc2-agr_name.
FIELD wa_roles_tc2-text.
ENDCHAIN.
FIELD wa_roles_tc2-mark
MODULE tc2_mark ON REQUEST.
ENDLOOP.
MODULE ok_code.
MODULE user_command_0100.
INCLUDE PAI:
MODULE tc1_mark INPUT.
IF tc1-line_sel_mode = 2
AND wa_roles_tc1-mark = 'X'.
LOOP AT it_roles_tc1 INTO g_tc1_wa2
WHERE mark = 'X'. -
> big problem here is, that no entry has an 'X' there
g_tc1_wa2-mark = ''.
MODIFY it_roles_tc1
FROM g_tc1_wa2
TRANSPORTING mark.
ENDLOOP.
ENDIF.
MODIFY it_roles_tc1
FROM wa_roles_tc1
INDEX tc1-current_line
TRANSPORTING mark.
ENDMODULE. "TC1_MARK INPUT
MODULE tc2_mark INPUT.
IF tc2-line_sel_mode = 2
AND wa_roles_tc2-mark = 'X'.
LOOP AT it_roles_tc2 INTO g_tc2_wa2
WHERE mark = 'X'. -
> same here, it doesn't gets any data
g_tc2_wa2-mark = ''.
MODIFY it_roles_tc2
FROM g_tc2_wa2
TRANSPORTING mark.
ENDLOOP.
ENDIF.
MODIFY it_roles_tc2
FROM wa_roles_tc2
INDEX tc2-current_line
TRANSPORTING mark.
ENDMODULE.
thx for anybody who can help with this! -
Uploading data from excel sheets through BDC's into sap system
hi guys,
can you please help me with this. As we use gui_upload to upload data from flat file to sap system, which function module you use to upload data from Excel sheet to sap system through bdc'shello pavan,
welcome to SDN
check the below program
REPORT ZEXCEL_TO_INTERNAL .
data: begin of itab occurs 0,
name(20) type c,
addre(20) type c,
end of itab.
DATA : ITAB1 LIKE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
DATA : B1 TYPE I VALUE 1,
C1 TYPE I VALUE 1,
B2 TYPE I VALUE 100,
C2 TYPE I VALUE 9999.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME =
'C:\Documents and Settings\administrator\Desktop\ppcon001bd_24.xls'
I_BEGIN_COL = B1
I_BEGIN_ROW = C1
I_END_COL = B2
I_END_ROW = C2
TABLES
INTERN = itab1
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop at itab1.
write:/ itab1.
Endlop.
Regards,
Naveen -
I used to be able to copy and paste images from the internet into keynote slides and pages. Now when I copy and paste all I get is an empty box. My iskysoft iTube studio has also stopped downloading videos. Is there an extension I need to enable? Any ideas
Try dragging the image to the desktop, then drag the image to the slide you want it on
Maybe you are looking for
-
Changes to awesome -- xterm windows and stray icon
Hi All, I recently upgraded from awesome 3.3.4-1 to 3.4.3-2. There used to be a setting: -- Honor size hints: if you want to drop the gaps between windows, set this to false. c.size_hints_honor = false Doing this made my xterm windows take up the wh
-
Hello everyone. I have been using arch linux for a few months now and loving it, except for one weirdly persistent problem with my wireless. In fact this is the third time it has happened to me and have been unable to fix it. The last two times I sim
-
Formatting external drive for read/write PC/Mac & files greater than 4GB
I'm on Snow Leopard and deliver an external drive off-site to a video editor who needs to read/write to the drive and return the edited files and then I need to read/write all over again. All video files are greater than 4GB. How would I go about thi
-
IMac starts up (from shutdown) every day at midnight
I've probably accidentally fiddled with something, but could anybody give me any reasons why my computer starts itself up from a shut down state at 00:00 every day? It's getting quite annoying. :-D
-
Duplication of fields headings...
Hi All I have three fields from different tables (mara-lvorm, marc-lvorm, mard-lvorm), they displaying fine on the alv grid but when i export the data to excel the column headings are duplicated. What can i do to solve this problem beacuse i have cre