ABAP - Editable report using Excel view
hi friends
In my report i am using REUSE_ALV_GRID_DISPLAY
Function module to display the data in alv format. I am using the view in
Excel format.
My requirement is,
If i change the data in the
excel sheet that should reflect in the internal table.
I am able to do changes, but the data is not getting change in the internal
table.
The purpose of this is, the output of this report will be the
input of another program after changing the output in excel(only, bcoz in
excel they will change using some formulas).
Note:
I am
getting the changes to internal table if i use grid display not in excel
format.
Can anyone suggest me how to solve this problem?
Hi u can esily do this using Object oriented ALVs. Heres the code :
*& ALV using objects : ADD, MODIFY RECORDS
Data Declaration
DATA : ITAB1 TYPE TABLE OF SFLIGHT,
G_CUST1 TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
G_GRID1 TYPE REF TO CL_GUI_ALV_GRID,
LT_FCAT1 TYPE LVC_T_FCAT,
LS_FCAT TYPE LVC_S_FCAT.
Start of selection
START-OF-SELECTION.
PERFORM POPULATE_TABLE.
END-OF-SELECTION.
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
PBO module
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'ZSAB1'.
SET TITLEBAR 'xxx'.
IF G_CUST1 IS INITIAL.
CREATE OBJECT G_CUST1
EXPORTING
CONTAINER_NAME = 'CC1'.
CREATE OBJECT G_GRID1
EXPORTING
I_PARENT = G_CUST1.
ENDIF.
PERFORM FCAT_SFLIGHT.
to display the ALV Grid
CALL METHOD G_GRID1->SET_TABLE_FOR_FIRST_DISPLAY
CHANGING
IT_OUTTAB = ITAB1
IT_FIELDCATALOG = LT_FCAT1.
transfering the grid from display mode to editable mode
CALL METHOD G_GRID1->SET_READY_FOR_INPUT
EXPORTING
I_READY_FOR_INPUT = 1.
ENDMODULE. " STATUS_0100 OUTPUT
*& Form fcat_sflight
Filling Field Catalog
FORM FCAT_SFLIGHT.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
I_STRUCTURE_NAME = 'SFLIGHT'
I_CLIENT_NEVER_DISPLAY = 'X'
I_BYPASSING_BUFFER = 'X'
CHANGING
CT_FIELDCAT = LT_FCAT1.
LOOP AT LT_FCAT1 INTO LS_FCAT.
IF LS_FCAT-FIELDNAME EQ 'PRICE'
OR LS_FCAT-FIELDNAME EQ 'PLANETYPE'
OR LS_FCAT-FIELDNAME EQ 'FLDATE'.
LS_FCAT-EDIT = 'X'.
LS_FCAT-CHECKTABLE = '!'. "do not check foreign key relations
MODIFY LT_FCAT1 FROM LS_FCAT.
ENDIF.
ENDLOOP.
ENDFORM. " fcat_sflight
*& Module USER_COMMAND_0100 INPUT
PAI module
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'SAVE'.
PERFORM SAVE_DATA.
WHEN 'LEAV' OR 'CANC' OR 'BACK'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. "USER_COMMAND_0100 INPUT
*& Form save_data
checking the changed or added data is consistent
FORM SAVE_DATA.
DATA: L_VALID TYPE C.
CALL METHOD G_GRID1->CHECK_CHANGED_DATA
IMPORTING
E_VALID = L_VALID.
IF L_VALID IS NOT INITIAL.
PERFORM UPDATE_DATABASE.
MESSAGE S000(0K) WITH TEXT-S01.
ENDIF.
ENDFORM. "save_data
*& Form update_database
Update records to DB table
FORM UPDATE_DATABASE.
DATA: LS_SFLIGHT TYPE SFLIGHT,
LS_OUTTAB LIKE LINE OF ITAB1,
LT_INSTAB TYPE TABLE OF SFLIGHT.
LOOP AT ITAB1 INTO LS_OUTTAB.
MOVE-CORRESPONDING LS_OUTTAB TO LS_SFLIGHT.
APPEND LS_SFLIGHT TO LT_INSTAB.
ENDLOOP.
MODIFY SFLIGHT FROM TABLE LT_INSTAB.
ENDFORM. "update_database
*& Form POPULATE_TABLE
POPULATE TABLE I_KNA1
FORM POPULATE_TABLE .
SELECT * FROM SFLIGHT INTO TABLE ITAB1.
ENDFORM. " POPULATE_TABLE
Similar Messages
-
List Edit Reports using Excel Displays
Guys,
I've known about this functionality for some time, but never got round to investigating the potential..
In many of the PM/CS list-edit reports (e.g. IW38) we can also view the data in Excel format. SAP has provided two files as follows:
- SAP_MM.XLS: has two macros assigned (ALV_SAP_Exit and ALV_CUS_Exit)
- SAP_MM.XLS: no macro assignment
See [OSS Note 548409|https://service.sap.com/sap/support/notes/548409] for more details relating to these files.
You can copy the standard XLS files (see OSS Note) to your own customer specific files. You can then use the marcos within these fields to include pivot tables, charts, filters, images, etc.
Also posted [here|http://www.sapfans.com/forums/viewtopic.php?f=7&t=333861]
PeteAHi,
Note [696069|https://service.sap.com/sap/support/notes/696069] explains some security settings can help with this.
-Paul -
Although I buried and posted the following question indirectly in a recent post, I would like to do so here to try and elevate it in the hope that I can get an answer.
It is in regards to creating reports using Excel 2103 to querry Project Server 2013 Online using oData. I would like to be able to control the langauge of my reports that I create for others to view.
Just creating and then saving the Report and Data Connections in a language directory does not seem to drive or determine the language of the report. A colleague of mine over here is using the same directories as I am, and his turn
out to be French like his environment. Mine, even though I save the files in same the French directories, display in English.
Any ideas on how I can create reports so that they display in another language, eg., French when using Excel to create reports? I know that we can set the language in an internet browser to control the language that the result is returned, for instance,
when querying https://.../pwa/_api/ProjectData/$metadata
\Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)Correction! Thanks to Doug Welsby of Microsoft and some our other MS friends who worked behind the scenes to correct/ assist me on this, I got the right answer after all... the difference between, example a French oData command/ statement,
and an English one is the inclusion of the square brackets with the language abbreviation/ code e.g., "[Fr..]" in the oData connection string/ statement. For further reference, see the connection files provided by Microsoft in the Reports and
compare the syntax for the same report/ different language. There is where you will see what and how Excel is able to differentiate/ control what language that the report result will return.
\Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada) -
Error while designing Deski reports using excel 2010(xslx) as data source
Hi All
We are using BOXI R3.3 on Windows 2003 Server.
When we are trying to create DESKTOP INTELLIGENCE REPORTS using EXCEL 2010(xlsx) format prompting with below error.
"Cannot update.Database or object is read only(3207) "
Could you please clarify whether BOXI supports MS EXCEL 2010 version(xslx) version or not?
If not what is the work around for this?
Regards
boseHere is what Supported Platforms Guide says : Microsoft Office 2010 (starting with FP 3.4)**
As you are on FP3.3, Office 2010 is not supported in your implementation.
You need to either upgrade, or use pre-Office 2010 formats. -
Performance Issue with Crosstab Reports Using Disco Viewer 10.1.2.48.18
We're experiencing Performance Issue (retrieving 40000 rows) with Crosstab Reports Using Disco Viewer 10.1.2.48.18 ( > 01 Minute , executing "Building Page Axis" or executing a Refresh).
Are there parameters to tun (in pref.txt file) , in order to reduce "Building Page Axis" execution ?
Note : We've got the same performance problem , using Discoverer Desktop 10.1.2.48.18.
Thank's in advance for your Help.Hi
Well if the same issue occurs in both Desktop and Viewer then you have your answer. It's not the way that Discoverer is running the workbook its the way the workbook has been constructed.
For a start, 40000 rows for a Crosstab is way over the top and WILL cause performance issues. This is because Discoverer has to create a bucket for every data point for every combination of items on the page, side and top axes. The more rows, page items and column headings that you have, the more buckets you have and therefore the longer it will take for Discoverer to work out the contents of every bucket.
Also, whenever you use page items or crosstabs, Discoverer has to retrieve all of the rows for the entire query, not just the first x rows as with a table. This is because it cannot possibly know how many buckets to create until it has all the rows.
You therefore to:
a) apply sufficient filters to reduce the amount of data being returned to something manageable
b) reduce the number of page items, if used
c) reduce the number of items on the side or top axis of a crosstab
d) reduce the number of complex calculations, especially calculations that would generate a new bucket
If you have a lot of complex calculations, you should consider the use of a materialized view / summary folder to pre-calculate the values.
Does this help?
Best wishes
Michael Armstrong-Smith
URL: http://learndiscoverer.com
Blog: http://learndiscoverer.blogspot.com -
BIP report using HTML view in dashboard printing without scrollbars, parts
Have created BI Publisher report in the MS Word using Landscape page settings.The report is printing without scrollbars in the OBIEE Dashboard using HTML view.
Could not see the whole page output...have tried using resolution property settings in the dashboard configuration...havent found any solution.
Have tried to use MHTML but the logos are missing.
Any quick solution for the above will be very helpful.
Thanks
BaddamHi Venkat,
Thanks for your quick respond.
1.) Auto Run is enabled. And the report runs automatically as well. But then it ignores the dashboard prompt (as a regular report would do as well). But when I choose some values in the prompt and then press go. Then it says I have to press on view as well.
2.) no that is not the case. My report is so big that it always need a scroll bar ;) also adjusting the size settings in the dashboard doesn't help. The only occurs when viewing in HTML, when previewing in excel or RTF it all just work fine.
3.) true, but ow well this is the least importetant one ;) so if this doesn't work, than it doesn't work ;)
4.) Ok, I will have a look on that.
5.) I did enabled HTML and EXCEL outputs in my BIP report. But when the first point is working, then I don't want to see the control bar anymore and I want to have the output on the dashboard in HTML and then I want to build a button, or a link or something that exports the request to excel. Is that possible? -
Open BI Publisher report using URL View activity
Hi,
i need to call BI Publisher report and I want to use URL View activity (i followed instruction on http://oraclebizint.wordpress.com/2007/07/30/customizing-obi-ee-%e2%80%93-go-url-parameters/ but i can't have HTML Form inside af:form)
But parameters on URL View activity are visible and i have to send username and pass..
Is there another way?
Tnx.
AndrejaYes, I can put HTML form at top or bottom of page but i wanted to put in panelCollection (because of page design)....
but I will think out something to look nicely too :)
Tnx -
Creating a crystal report using excel
I have an excel spreadsheet that I would like to access to create a crystal reports. But it seems that I have to first save it as an access or other database file. But this information changes frequently so I it would be more efficient to access the excel file directly. I tried using the crystal wizard addin in excel, but then when I run the report I get the error message "Server has not yet been opened". Any other ideas on how to create report of excel data directly?
Hello Guys ,
I have something similar problem ,but not exactly.
our requirement is We are scheduling one crystal report to generate excel and sent to FTP location.This Excel file (in FTP) should be the input of new Crystal Report using ODBC (RDO) connection.
I am able to create the ODBC connection,but that ODBC connection is not showing me the selected excel sheet in the Crystal Report ODBC Connection.I tried with Remote as well as local drive Excel also.
I tried on different machine (thought ,it could be Driver specific),but all machines does have same issue.
Is there any settings or driver upgrades require for CR XI R2 /2008 in order to use ODBC (RDO) for EXCEL FILES.I didnt find any comments /resolution in Google too.
My steps -
1) Create a sample Excel file - only few records
2) Created a System ODBC connection pointing this excel file say "TEST1"
3) Opened A Blank Crystal Report
4) Create a New connection
5) Select ODBC RDO
6) Create new connection and selected the newly created SYSTEM DSN "TEST1"
7) check the selected excel is displayed in ODBC RDO connection??
If it is a Crystal Report issue or ODBC Driver issue ,please let me know if anyone have came across similar issues.
thanks in advance.
Nitin -
Poor performance: portal report using inline views
I have created a portal report that uses inline views that performs terribly. It has 6 inline views. When I cut out half the views, the performance doubles. When I run the same query in sql + on my portal database with all the views, I get the results back instantly. Any ideas on what is causing the performance hit in portal? Any ideas on a remedy?
More info
SELECT patch_no, count(*) frequency
FROM users_requests
WHERE patchset IN (SELECT arps2.patchset_name
FROM aru_bugfix_relationships abr, aru_bugfixes ab, aru_status_codes ac,
aru_patchsets arps, aru_patchsets arps2
WHERE arps.patchset_name = '11i.FIN_PF.E'
AND abr.bugfix_id = ab.bugfix_id
AND arps.bugfix_id = ab.bugfix_id
AND abr.relation_type = ac.status_id
AND arps2.bugfix_id = abr.related_bugfix_id
AND abr.relation_type IN (601, 602))
AND included ='Y'
GROUP BY patch_no
order by frequency desc, patch_no
Runs < 1 sec from SQL navigator and from portal (if i hardcode the value for fampack.
Takes ~50 secs if i replace with :fampack and set default value to 11i.FIN_PF.D -
Edit CSS using Code View when double-clicking in CSS Panel
In CS4, when I wanted to open a linked style sheet for editing, I could right click or double click any CSS entry in the CSS panel to Go to Code. This would open the style sheet and goes to the line where the rule is defined. It's properly set in the Preference pane to Edit using Code view but hasn't worked ever since upgrading to CS5 and it is a real hinderance on my productivity.
Does anyone else have this problem. More importantly what is the fix?
(I noticed this question had been asked before but was never answered http://forums.adobe.com/message/210015)OK, I may have found something. It seems to be an issue with template (.dwt) files. Can you reproduce and test this theory?
When I open a template child page, everything seems to work as expected. It doesn't seem like I can reproduce your symptoms. -
i am having code which create report in excel.but it prints only single page. if content is more than size of template than insted of tacking new page it prints only single page.Please help me out.
Anyone has material for learning activeX in labview? Please mail me on [email protected]
PBP (CLAD)
Labview 6.1 - 2014
KUDOS ARE WELCOMED.
If your problem get solved then mark as solution.Hi thanks for reply.....
PBP (CLAD)
Labview 6.1 - 2014
KUDOS ARE WELCOMED.
If your problem get solved then mark as solution. -
Editable data in excel view of alv grid
hi friends..
now i am displaying the data in alv grid..
my requirement is i want to display the data in excel format.. (not in seperate excel..)
i want to display the excel sheet with data within the screen itself.
for this
i tried this scenario by fallowing steps
in layout->view tab->microsoft excel..
(layout button in the application toolbar i.e pf-status)
it show excel sheet within report and data with excel sheet.
now i got data in excel sheet.
but my requirement is if i made any changes in data in excel means
i want those updated or edited data in the another internal table..
this scenario is work in the case of abap list viewer (instead of microsoft excel)
for this i use one button in the pf-status (UPDATE).
after made changes in grid data i export those modified data to abap memory and download to another internal table..
how can i get the same scenario in micosoft excelHi,
Please make sure that you have made a <b>global</b>
<b>declaration</b> for the ALV Grid control.If not try
with this
Please reward points if this explanation is useful.
Regards,
Siva -
hi friends..
now i am displaying the data in alv grid..
my requirement is i want to display the data in excel format.. (not in seperate excel..)
i want to display the excel sheet with data within the screen itself.
for this
i tried this scenario by fallowing steps
in layout->view tab->microsoft excel..
(layout button in the application toolbar i.e pf-status)
it show excel sheet within report but no data with excel sheet.
how can i get the data into that excel sheet.
its very important..can you please tell meSelva,
This is security setting issue in Excel.
Open up MS Excel on your desktop...
From the Excel menu bar, choose: Tools > Macro > Security...
In the pop-up, change to the Security Level to Medium (or Low - if necessary).
And don't forget points for helpful answers!!! -
Report using excel sheet as data source not working when deployed to production.
I have a set of SSRS reports that use an excel sheet as a datasource.
Now when I preview the reports or run them in the Visual Studio IDE on my local machine i.e
the development machine, the reports run fine & display all correct results.
However, when we deploy the reports to the Production machine which is on a separate server,
the following error message is displayed :
"The current action cannot be completed. The user data source credentials do not meet the requirements to run this report. Either the user data source credentials are not stored in the report server database, or the user data source is configured not to
require credentials but the unattended execution account is not specified. (rsInvalidDataSourceCredentialSetting)"
I've copy pasted the connection string used for connecting to the excel file as reference :
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\MyFolder\CurrentFile.xlsx;Extended Properties="Excel 12.0;HDR=Yes;";
The excel file has also been uploaded to the machine housing the reporting server (i.e to C:\MyFolder location)Hi Aaakar,
From the error message, please try to change the setting of Credential type for the data source on report manager as follows:
Go to the Data Sources properties page.
For the Connect Using option, select Credentials stored securely in the report server.
In User Name and Password, type credentials that can be used to access the database. If you are using SQL Server as the data source, the user name must be valid for both logging on to the server and for accessing the database that contains the data for
the report.
If the user name and password are credentials for a Windows account, select Use as Windows Credentials.
If you want the report server to pass the credentials of the user accessing the report to the server hosting the external data source, click Windows Integrated Security. In this case, the user is not prompted to type a user name or password.
For more details about Configure Data Source Properties, please see:
http://technet.microsoft.com/en-us/library/ms155882.aspx
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Interactive Report using a View with a Pipelined Function
Hello fellow Apex people,
I'm Using Application Express 4.1.0.00.32
I've got an interactive report that references a view (STOCK) and a pipelined function
The basic query is listed below.
SELECT S.CHANGED_TIME "Changed Time"
, S.CHANGED_BY "Changed By"
, S.ID "Id"
, STKST_DESCRS.STOCK_STATUS_CODES "Stock Status Codes"
, STKST_DESCRS.STOCK_STATUS_DESCRS "Stock Status"
, S.ORIGINAL_CONTAINER "Original Container"
FROM STOCK S
, table(LWS_StkstStatus (S.ID)) STKST_DESCRS
ORDER BY S.CO_ID,
S.SEQUENCE_NUM;
When the page is first run all the data is displayed correctly,
If I define a filter, sort or a blank search the data from the pipelined function (STKST_DESCRS.) becomes null and isn't displayed.
Does anyone know what is happening?
Many ThanksI'm curious why you find this dangerous. I want a report that looks like this:
Opportunity X:
4 - 2-apr-2008 - Closed deal
3 - 1-mar-2008 - Called Joe again
2 - 12-feb-2008 - Called Joe
1 - 14-jan-2008 - Initial call with customer.
When you enter a new note, I want it to be numbered 5. The only problem I can imagine is someone deleting a note, which will almost never happen, and if it does, it just leaves a numbering gap. I don't see how using the function in a SELECT will accomplish this.
Maybe you are looking for
-
Some videos stop and go whats going on?
I have owned an iphone for a couple of weeks. It seems that often (or maybe always) when playing a video from apps and youtube, the video keeps stopping. If you keep pressing the play button, the video may play for a couple of seconds but then stops.
-
ABAP WebDynPro User Interface Elements not shown on layout while designing
Hi, When I create a new custom ABAP WedDynpro, the UI Element library is not shown on the view layout. I have tried a lot of options in exploring this. Kindly help me Thanks Sai.
-
Enable user in AD after creating in LDAP
I have config a meta-dir to sync user between AD and external LDAP, but when I create a user in LDAP, the entry in AD is not activated. I have to manually activete it in AD. Is there a way to automatic enable the entry through meta-dir ? Wilson.
-
Hello All, I have 2 webdynpro applications. In mt first webdynpro application I have a view in that I have used View container UI element and in that I have embedded my 2nd webdynpro application. This view contains the button called "back" to 1st app
-
My international keyboard for Vietnamese works in pages but not in the appleworks 6 wordprocessor. Can anyone tell me why?