How to save the workbook's result into table ?
Dear all:
Now I need to output the workbook's result into ta table ,what can i do now?
If I save a query's result into a table use rscrm_bapi,if the query have two structures ,the result table looks not well, how can do do?
Read the help files about APD
Similar Messages
-
How to insert the select query result into table?
How to insert the select query result into table?
SELECT top 20 creation_time
,last_execution_time
,total_physical_reads
,total_logical_reads
,total_logical_writes
, execution_count
, total_worker_time
, total_elapsed_time
, total_elapsed_time / execution_count avg_elapsed_time
,SUBSTRING(st.text, (qs.statement_start_offset/2) + 1,
((CASE statement_end_offset
WHEN -1 THEN DATALENGTH(st.text)
ELSE qs.statement_end_offset END
- qs.statement_start_offset)/2) + 1) AS statement_text
FROM sys.dm_exec_query_stats AS qs
CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) st
ORDER BY total_elapsed_time / execution_count DESC;
Thanks,
Tirumala1. SELECT INTO
Below method will create table when data is inserted from one table to another table. Its useful when you need exactly same datatype as source table.
Use AdventureWorks2008R2;
Go
---Insert data using SELECT INTO
SELECT AddressLine1, City
INTO BothellAddresses
FROM Person.Address
where City = 'Bothell';
GO
---VERIFY DATA
Select AddressLine1, City
FROM BothellAddresses
---DROP TABLE
DROP TABLE BothellAddresses
GO
2. INSERT INTO SELECT
Below method will need table to be created prior to inserting data. Its really useful when table is already created and you want insert data from
another table.
Use AdventureWorks2008R2;
Go
---Create Table
CREATE TABLE BothellAddresses (AddressLine1 NVARCHAR(60), City NVARCHAR(30))
---Insert into above table using SELECT
INSERT INTO BothellAddresses(AddressLine1, City)
SELECT AddressLine1, City
FROM Person.Address
where City = 'Bothell';
---VERIFY DATA
Select AddressLine1, City
FROM BothellAddresses
---DROP TABLE
DROP TABLE BothellAddresses
GO
Regards,
Vishal Patel
Blog: http://vspatel.co.uk
Site: http://lehrity.com -
How to save the selected rows from Advance table into database
Hi
I have requirement like..
In custom page , Manager Search the Candidates and selects the candidate ROWS from advance table.
The reqt is how to save the selected multiple rows into the database.hi Reetesh,
In Custom page
Supoose the Recruiter Search is for Position Finance Mangager , it retrieves 100 rows , out of which Recruiter select 10 rows .
So in Such scenario how to save this 10 rows against Recruiter
, i mean , Is i need to create custom table, to save Recruiter , these selected 10 rows.
I hope u understand my question -
How to save the item without displaying into the Page
hi
I have the reqt to save the item without displaying into the Page.
thanxIn your yyy Table View Object create one attribute for BusinessGroupId as you want to save it in your yyy table VO.
Now on click of save button capture this ViewObject and set this VO Attribute at run time. I am assuming that yyytableVO is EO based.
Snippet
Controller PFR Code
OAApplicationModule am = pageContext.getApplicationModule(webBean);
pageContext.getParameter("Save") != null)
OAViewObject vo = (OAViewObject)am.findViewObject("yyyTableVO");
if (vo != null)
vo.getCurrentRow.setAttribute("BusinessGroupId", value);//value is what you have capture from pageContext.getparameter
}Thanks
--Anil -
How to save the material of MM01 into MARA table with customer Distribution
Hi to everyone.
This is first project of mine.
There is some modification in TC VA01.
We should write a code in standard program. I'll show the Enhancement below.
Our Client wants to move the material distribution channel (M.DC) to customer's distribution channel (C.DC) if Customer Sales Organization and Material Sales Organization are equal.
IF ( Customer Sales Organization and Material Sales Organization are equal)
check for there distribution channel whether its equal.
If ( C. Dc and M.Dc) are equal.
some process.
else (c.Dc not equal to m. Dc)
Move (M.Dc to C. Dc)
follow the same process.
Where do we have to add this enhancement in the program.
Please help me out, its very urgent.
Thanks and Regards in advance.
A.Rafiquei think u have to check customer+material table that is MVKE .
Regards
prabhu -
How to convert the sql query result into xml ? PLease..Please..
I have a table Submission Record which contain a field with mix with text string and xml data type.
Table name: Submission Record
Field name: RCA
Jason
Tomato
<Record>AA</Record>
Fish
Brother
<Record>BB</Record>
<Record>CC</Record>
Tom is a girl
Its mixing with text and xml data.
I wish to convert all into xml data as per request from management.
my select statement is like below...but i think it may contain syntax error. Wish to get help from here.
sqltestagain = "select '<DATA>' || RCA || '</DATA>' from Submission Record".
Expect below will display
<DATA>Jason</DATA>
<DATA>Tomato</DATA>
<DATA><Record>AA</Record></DATA>
or any other solution for it ??
I've tried FOR XML....DBMS_XML......but none of it worked.....also look at xmlelement
SQL> select xmlelement("DATA", rca).getstringval() from
2 (
3 select 'Jason' RCA from dual union all
4 select 'Tomato' from dual union all
5 select '<Record>AA</Record>' from dual
6 )
7 /
XMLELEMENT("DATA",RCA).GETSTRI
<DATA>Jason</DATA>
<DATA>Tomato</DATA>
<DATA><Record>AA</Record></DATA>
SQL> -
How to save the form data into adobe db?
Hi All,
How to save the form data into adobe db?
I have designed one xdp file.
Through processFormSubmission(), I got the submitted form data as Document obj.
Then I have called the workflow kickoff program.
code:
InvocationRequest request = myFactory.createInvocationRequest ("myprocessname", //Specify the long-lived process name
"invoke", //Specify the operation name
params, //Specify input values (HashMap obj)
false); //Create an asynchronous request
It successfulyy started the workflow, but the submitted form data is not saved anywhere.
And also, How get the form data from tables?
Please provide the solution for the above.
Thanks in advance.
Regards,
Saravanan GYou need to create a process variable of type IN if you want to be able to pass data to your process. Then the params parameter (HashMap) contains a list of all the IN variables with their content that you want to pass to your process. They key is the name of the variable and the value the content. That way you should get it in your process.
Now LiveCycle will create a column in the database for every process variable, so the content will be saved in the database just by creating that process variable.
Jasmin -
How to save the music received in Whatsapp into iPhone?
How to save the music received in Whatsapp into iPhone?
This is not an iphone-specific problem. The person who sent you the files should have known that you cannot save them from WhatsApp person on any smart phone
Best help is to Contact whatsup support for iOS at [email protected]
I understand you think this is a Apple problem but Apple Haven't created this App -
How to save the setting in MDM import manager?
How to save the setting in MDM import manager? After I configure all things in MDM import manager, I try to save the setting, let's say, saved map name is " Test002", and then I export this map into desktop. After that, I logon Import manager again, and import this map file, system show me the same thing that I have to configure it again, because nothing was changed, what I configured before, were all disappeared.
Hi Alfred ,
are You not saving this map in Import Manager ? Import Manager itslef saves the map and remember it . Exporting map is only for backup .
Pls make changes and save the map . Exit and relogin . then see the map . It should be there . Pls let us know the result .
- An -
How to save scheduled Workbook output in a specified location on some server ?
Hi !
We have a requirement in which User wants to see output of the workbook in some specific shared location.
We know how to schedule the workbook , but seems like there is no option of saving the output in some location other than the default one. Am I wrong ?
Any help in this regard will be highly appreciated. It is kind of urgent.
Thanks and Regards,
ShobhitHello,
I have'nt got an answer yet. I dont know if our concern is the same, mine is the following :
A scheduled report is mostly intended to fasten the reading of data by running the SQL with it's joins & aggreagation by night for instance. I scheduled a workbook which agregates hundreds of thousands of rows into about thirty rows. The report run correctly by night and I find it with "ready" status in the morning. But when I try to open the result, I can see Discoverer desktop fetching 100,000 then 200,000 rows for more than hours.
Are'nt the result data stored somewhere ? What does mean a schedule if it is rerun each time you want to open your workbook. I think I've got a wrong setting somewhere. Could anybody help ?
Thanks -
How to save the data to sap abap using Adobe Flex
Hi Everybody......
I am new to Adobe flex with sap abap.
How to save the data in sap abap using Adobe Flex coding is Action Script and using RFC web service.
Please give me any suggisions on that.
Thank you
Venkatesh VHi Venkatesh,
Try with folowing coding...
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
initialize="initApp()">
<mx:Label x="10" y="23" text="Airline" width="90" id="lblAirline"/>
<mx:TextInput x="108" y="21" id="txtAirline"/>
<mx:Button x="10" y="49" label="Get Data" id="btnGetData" enabled="false" click="getData()"/>
<mx:DataGrid x="10" y="97" id="dgFlightData" dataProvider="">
</mx:DataGrid>
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.AbstractOperation;
import mx.rpc.events.FaultEvent;
import mx.rpc.soap.LoadEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.soap.WebService;
[Bindable] public var flightData:ArrayCollection;
private var flightWS:WebService;
private function initApp():void{
flightWS = new WebService();
flightWS.wsdl = "http://uscib20.wdf.sap.corp:50021/sap/bc/soap/wsdl11?services=ZGTEST&sap-client=000";
flightWS.addEventListener(FaultEvent.FAULT,onWSError);
flightWS.addEventListener(LoadEvent.LOAD,onWSDLLoaded);
flightWS.addEventListener(ResultEvent.RESULT,onFlightWSGotResult);
flightWS.loadWSDL();
private function getData():void{
var operation:AbstractOperation = flightWS.getOperation("ZGTEST");
var input:Object = new Object();
input.Airline = txtAirline.text.toUpperCase();
operation.arguments = input;
operation.send();
private function onWSError (event:FaultEvent):void{
private function onWSDLLoaded(event:LoadEvent):void{
btnGetData.enabled = true;
private function onFlightWSGotResult(event:ResultEvent):void{
flightData = event.result.SFLIGHT;
]]>
</mx:Script>
</mx:Application>
Regards,
Vinoth -
How to save the output of sap script in sap so that can be retrieved later
hi abapers
how to save the output of sap script in sap so that can retrieve the saved document later.
i have to save the rcia output from sap script in pdf document in sap so that it can be retrieved later
how to use dms
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Dec 26, 2008 11:01 AMHi Deepika,
Look into this link https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/401cca81-b861-2910-ada2-f416dfb3b3fe
Regards,
Pravin -
How to save the image in the form?
As thread, how to save the image into a file from the pdf form - image box?
I have Adobe Acrobat 9 Pro extended.Hi Sandy,
Sorry for Delay.Could you please provide script code for the Button and in which event we want to add the code
I want to Save the lot of images in the PDF. For that I kept Image field in the form.Here I am able to upload the images but those are not saved.
If possible please share the details document.
Please help me.
Thanks,
Ravi. -
Dynamically built query on execution How to save the data in Object Type
Hi,
In pl/sql I am building and executing a query dynamically. How can I stored the output of the query in object type. I have defined the following object type and need to store the
output of the query in it. Here is the Object Type I have
CREATE OR REPLACE TYPE DEMO.FIRST_RECORDTYPE AS OBJECT(
pkid NUMBER,
pkname VARCHAR2(100);
pkcity VARCHAR2(100);
pkcounty VARCHAR2(100)
CREATE OR REPLACE TYPE DEMO.FIRST_RECORDTYPETAB AS TABLE OF FIRST_RECORDTYPE;Here is the query generated at runtime and is inside a LOOP
--I initialize my Object Type*
data := new FIRST_RECORDTYPETAB();
FOR some_cursor IN c_get_ids (username)
LOOP
x_context_count := x_context_count + 1;
-- here I build the query dynamically and the same query generated is
sql_query := 'SELECT pkid as pid ,pkname as pname,pkcity as pcity, pkcounty as pcounty FROM cities WHERE passed = <this value changes on every iteration of the cursor>'
-- and now I need to execute the above query but need to store the output
EXECUTE IMMEDIATE sql_query
INTO *<I need to save the out put in the Type I defined>*
END LOOP;
How can I save the output of the dynamically built query in the Object Type. As I am looping so the type can have several records.
Any help is appreciated.
Thankshai ,
solution for Dynamically built query on execution How to save the data in Object Type.
Step 1:(Object creation)
SQL> ED
Wrote file afiedt.buf
1 Create Or Replace Type contract_details As Object(
2 contract_number Varchar2(15),
3 contrcat_branch Varchar2(15)
4* );
SQL> /
Type created.
Step 2:(table creation with object)
SQL> Create Table contract_dtls(Id Number,contract contract_details)
2 /
Table created.
Step 3:(execution Of procedure to insert the dynamic ouput into object types):
Declare
LV_V_SQL_QUERY Varchar2(4000);
LV_N_CURSOR Integer;
LV_N_EXECUTE_CURSOR Integer;
LV_V_CONTRACT_BR Varchar2(15) := 'TNW'; -- change the branch name by making this as input parameter for a procedure or function
OV_V_CONTRACT_NUMBER Varchar2(15);
LV_V_CONTRACT_BRANCH Varchar2(15);
Begin
LV_V_SQL_QUERY := 'SELECT CONTRACT_NUMBER,CONTRACT_BRANCH FROM CC_CONTRACT_MASTER WHERE CONTRACT_BRANCH = '''||LV_V_CONTRACT_BR||'''';
LV_N_CURSOR := Dbms_Sql.open_Cursor;
Dbms_Sql.parse(LV_N_CURSOR,LV_V_SQL_QUERY,2);
Dbms_Sql.define_Column(LV_N_CURSOR,1,OV_V_CONTRACT_NUMBER,15);
Dbms_Sql.define_Column(LV_N_CURSOR,2,LV_V_CONTRACT_BRANCH,15);
LV_N_EXECUTE_CURSOR := Dbms_Sql.Execute(LV_N_CURSOR);
Loop
Exit When Dbms_Sql.fetch_Rows (LV_N_CURSOR)= 0;
Dbms_Sql.column_Value(LV_N_CURSOR,1,OV_V_CONTRACT_NUMBER);
Dbms_Sql.column_Value(LV_N_CURSOR,2,LV_V_CONTRACT_BRANCH);
Dbms_Output.put_Line('CONTRACT_BRANCH--'||LV_V_CONTRACT_BRANCH);
Dbms_Output.put_Line('CONTRACT_NUMBER--'||OV_V_CONTRACT_NUMBER);
INSERT INTO contract_dtls VALUES(1,CONTRACT_DETAILS(OV_V_CONTRACT_NUMBER,LV_V_CONTRACT_BRANCH));
End Loop;
Dbms_Sql.close_Cursor (LV_N_CURSOR);
COMMIT;
Exception
When Others Then
Dbms_Output.put_Line('SQLERRM--'||Sqlerrm);
Dbms_Output.put_Line('SQLERRM--'||Sqlcode);
End;
step 4:check the values are inseted in the object included table
SELECT * FROM contract_dtls;
Regards
C.karukkuvel -
How to update the test case result in MTM using C#
Hi
I have tried the following code but when I execute the same I am getting the testcase result as "In Progress".
How to update the testcase execution result as Passed.
I tried the below code:
public
static
void UpdateResult()
TfsTeamProjectCollection tfs =
new
TfsTeamProjectCollection(TfsTeamProjectCollection.GetFullyQualifiedUriForName(server));
ITestManagementService tms = tfs.GetService<ITestManagementService>();
ITestManagementTeamProject proj = tms.GetTeamProject(project);
ITestPlan Plan = proj.TestPlans.Find(1);
ITestRun testRun = proj.TestRuns.Create();
testRun = Plan.CreateTestRun(false);
ITestPointCollection points = Plan.QueryTestPoints("SELECT
* FROM TestPoint");
foreach (ITestPoint
p in points)
testRun.AddTestPoint(p,Plan.Owner);// null);
testRun.State = TestRunState.Completed;
testRun.Save();
ITestCaseResultCollection results = testRun.QueryResults();
ITestIterationResult iterationResult;
foreach (ITestCaseResult
result in results)
iterationResult = result.CreateIteration(1);
foreach (ITestStep
testStep in result.GetTestCase().Actions)
ITestStepResult stepResult = iterationResult.CreateStepResult(testStep.Id);
stepResult.Outcome = TestOutcome.Passed;
iterationResult.Actions.Add(stepResult);
iterationResult.Outcome = TestOutcome.Passed;
result.Iterations.Add(iterationResult);
result.Save();
results.Save(true);
testRun.Save();
testRun.Refresh();Hi Mohammed,
Sorry for my delay.
According to your code, I have been modified your code in my side and it can work fine. So you can refer the following code to check your issue in your side.
Reference:
publicstaticvoidUpdateResult()
TfsTeamProjectCollectiontfs
= newTfsTeamProjectCollection(TfsTeamProjectCollection.GetFullyQualifiedUriForName(server));
ITestManagementServicetms
= tfs.GetService<ITestManagementService>();
ITestManagementTeamProjectproj
= tms.GetTeamProject(project);
ITestPlanPlan = proj.TestPlans.Find(1);
IStaticTestSuitesuite
= Plan.RootSuite.SubSuites.Where(s
=> s.Id == 1339).First()
asIStaticTestSuite;
ITestCasetestcase
= null;
testcase
= suite.Entries.Where(e
=> e.Title == "login").First().TestCase;
ITestRuntestRun
= project.TestRuns.Create();
testRun
= Plan.CreateTestRun(false);
ITestPointCollectionpoints
= Plan.QueryTestPoints("SELECT * FROM TestPoint WHERE TestCaseId ="+
testcase.Id);
foreach(ITestPointp
inpoints)
testRun.AddTestPoint(p,
Plan.Owner);// null);
//testRun.AddTestPoint(p, null);
testRun.State =
TestRunState.Completed;
testRun.Save();
ITestCaseResultCollectionresults
= testRun.QueryResults();
ITestIterationResultiterationResult;
foreach(ITestCaseResultresult
inresults)
iterationResult = result.CreateIteration(1);
foreach(ITestSteptestStep
inresult.GetTestCase().Actions)
ITestStepResultstepResult
= iterationResult.CreateStepResult(testStep.Id);
stepResult.Outcome
= TestOutcome.Passed;
iterationResult.Actions.Add(stepResult);
iterationResult.Outcome
= TestOutcome.Passed;
result.Iterations.Add(iterationResult);
result.Outcome
= TestOutcome.Passed;
result.State = TestResultState.Completed;
result.Save(true);
testRun.Save();
testRun.Refresh();
Note: you will need to
base on your requirement to modify the code such as modify the testsuite id and title in your side.
In addition, I find a blog about TFS API that can help you:
# Code snippets on Test Management APIs
http://blogs.msdn.com/b/aseemb/archive/2012/08/07/code-snippets-on-test-management-apis.aspx
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Will X1900 support a DVI to comp cable
I have a spare HD tv, and I would like to hook up my mac pro to the HDTV. I looked on line, and I saw a DVI to Comp cable. http://sewelldirect.com/DVI-to-Component-Adapter-Cable-10ft.asp I looked at the X-1900 from ATI and I thought it could support
-
Version control of stored procedure
Dear Sir, I'm using procedure builder to create stored procedures. However, when working in a team, there might be more than one person changing the same procedure at the same time and if update will definitely affect each other changes. Therefore, d
-
Hi all, I'm new to bi. can anyone help me what are the data-sources available in SD for billing,shipping and scheduling and related business content cubes in BI . like for sales-order header 2lis_11_VAHDR, for sales-order item 2lis_11_vaitm. Thank
-
Sound stuttering Probook 4535s
Hello, as a HP longtime fan, I bought HP Probook 4535s (LG856EA#ABU) 2 weeks ago. With Windows 7 Pro 64bit SP1. At first I think that audio sounds was perfect, but after few update packages, which came with HP Support Assistant I think, my sound star
-
Safari seems to jump to random webpages not related to the links I click