Call Bex Workbook with parameters via ABAP
Dear all,
I have a problem with Excel workbook run from the functional module and transfer parameters to it.
For this purposes I have used FM RSAH_LAUNCH_EXCEL. I use SAP BW 2004s version.
In fact this FM opens the Excel workbook but these parameters (that were defined in the table I_T_VAR) are not available in Excel. The window with variables pops up anyway and fields in this window are empty.
What I would like to do finally is to run this Excel workbook, send some parameters to avoid of appearing this window. It was possible to do in Sap BW 3.5 (according to my experience). Probably it is possible to do in some other way in 2004s? If you know please give me a clue.
One more question: I try to use the function SAPBEXsetVariable() in BeX that I used to use in 3.5. In 2004s it is not available. Does somebody know what can be used instead of it in 2004s?
Thanks in advance.
How about putting values of variables into filter area of WB?
Similar Messages
-
Call stored procedure(with parameters) via odbc
In my application I like to use the below statement to call a stored procedure with parameter and return a result set.
{CALL PP.getPerson('daniel')}
but this will just return errors to my application.
If I change the statement to:
{CALL PP.getPerson(?')}
and bind a parameter and its value, it will work.
My question is, is it possible to call a stored procedure via ODBC without binding parameters in application? I mean, what will be my SQL equivalent if I don't want to do parameter binding in my application?
Thanks in advance. I appreciate any help :-)hi
Please see the e.g bellow
create proc proc_test(@SchoolNumber int,@SchoolName
varchar(100),@StudentNumber int, @StudnentName
varchar(100)output ,
@StudentAddress varchar(100) output,
@Studentbirthdate datetime output,
@StudentPhoneNumber varchar(100) output,
@GuardianName varchar(100) output)
as
begin
select @StudnentName varchar=StudnentName ,
@StudentAddress =StudentAddress,
@Studentbirthdate =Studentbirthdate ,
@StudentPhoneNumber =StudentPhoneNumber,
@GuardianName =GuardianName
from table where schoolno=@SchoolNumber
and SchoolName=@SchoolName
and StudentNumber=@StudentNumber
return
end
http://technet.microsoft.com/en-us/library/ms187004(v=sql.105).aspx
http://www.lynda.com/SQL-Server-tutorials/Using-input-output-parameters/104964/113058-4.html
Please mark answered if I've answered your question and vote for it as helpful to help other user's find a solution quicker -
Call Plugin-Function with parameters via JavaScript
Hi!
I have following problem: I wrote a plugin for Illustrator CS2 in C++ and now I would like to call a function of the plugin from outside of illustrator (from a JavaScript).
This can be done with the Actionsuite. But how could I then give some parameters to my function?
For example:
In the plugin, I have a function "void myFun(char * test)" and I want to call this function in JavaScript with test="Hello World" for example.
The only possible way right now seems to write parameters into a file and open that file in the plugin to "receive" them.Hi,
Could you send your plugin coding.
Regards,
Maria -
Calling Transaction SP01 (Display spool requests) with parameters via URL
Hi,
I would like to be able to list all spool requests of a certain title via a URL.
Unfortunately ITS does not seem to work. A URL constructed like this
http://host:port/sap/bc/gui/sap/its/webgui/!?sap-system-login-basic_auth=X&sap-client=500&sap-language=EN&transaction=SP01&S_RQTITL-LOW=Testing123&okcode=CRET
causes a short dump that SP01 (Program RSOSP01NR) is a Module Pool.
I am therefore considering the following options:
1. BSP Program
2. Java WebDynpro
3. ABAP WebDynpro
Ideally, I want to be able to enter in my browser something like
http://host:port/<BSP_or_WebDynPro_stuff>&~title=Testing123
and for this to show in the browser a list of all spool requests that are named "Testing123".
Can someone advise whether any of the above options are preferable?
Also, whether such a program should call transaction SP01 with parameters (skipping first screen) or look to using the associated function modules.
Many thanks for any assistance.
Regards
AdrianSolved myself. Thanks
-
BEx query with variant from ABAP
Hello,
I'm looking for possibility to start BEx query with variant (variant is created with tx RSRT) from ABAP. There are some funktion modules, which start queries (launch excel), for example RSAH_LAUNCH_EXCEL or RSSEM_QUERY_LAUNCH, but they are ending with short dump, when there are variables in the query. Is there any standard FM, which starts the query with variant or accepts parameters?
regards,
KrzysztofHi,
the short dump was my fault, I've passed query name instead of genuniid to the RSAH_LAUNCH_EXCEL.
What I'm trying to do is to I'll start BEx query with parameters (I don't want to get selection-screen from the query, I need to fill it from ABAP).
Here is my example, which is not working.
DATA:
lv_query(30) TYPE c,
lv_genuniid TYPE rsrrepdir-genuniid,
ls_var TYPE rrx_var,
lt_var TYPE TABLE OF rrx_var.
lv_query = 'YB_MAKLER_DETAIL'.
CALL FUNCTION 'CONVERSION_EXIT_GENID_INPUT'
EXPORTING
input = lv_query
IMPORTING
output = lv_genuniid.
IF lv_genuniid = ''.
WRITE: / 'There is no Query', lv_query.
ELSE.
ls_var-vnam = 'YS_MKLE'.
ls_var-sign = 'I'.
ls_var-opt = 'EQ'.
ls_var-low = '0000005100'.
APPEND ls_var TO lt_var.
ls_var-vnam = 'YS_VTGJ'.
ls_var-sign = 'I'.
ls_var-opt = 'EQ'.
ls_var-low = '1999'.
APPEND ls_var TO lt_var.
CALL FUNCTION 'RSAH_LAUNCH_EXCEL'
EXPORTING
i_genuniid = lv_genuniid
I_OBJVERS = 'A'
i_hide_sapgui = 'X'
TABLES
I_T_VAR = lt_var.
ENDIF.
If parameter 'i_hide_sapgui' is empty, I'm getting empty selection-screen,
If parameter 'i_hide_sapgui' equals 'X' I'm getting selection-screen filled with values, which were used last time manualy, not with values from the internal table 'lt_var'.
Do you have any idea how to pass parameters to the query with this function module?
Regards,
Krzysztof -
Calling Bex Workbooks from the Web Dynpro
Hi All,
I'm calling Bex Workbooks from my dynpro using the following code:
create reentrance ticket
call function 'CREATE_RFC_REENTRANCE_TICKET'
importing
ticket = l_ticket
exceptions
ticket_logon_disabled = 1
ticket_creation_failed = 2
kernel_too_old = 3
others = 4.
check sy-subrc = 0.
system number
call function 'GET_SYSTEM_NUMBER'
importing
instancenumber = l_sysno.
create the shortcut
CONCATENATE '[System]' cl_abap_char_utilities=>cr_lf
'GuiParm=' sy-host ` ` l_sysno cl_abap_char_utilities=>cr_lf
'Client=' sy-mandt cl_abap_char_utilities=>cr_lf
'[User]' cl_abap_char_utilities=>cr_lf
'Name=' sy-uname cl_abap_char_utilities=>cr_lf
'at="MYSAPSSO2=' l_ticket '"' cl_abap_char_utilities=>cr_lf
'Language=' sy-langu cl_abap_char_utilities=>cr_lf
'[Function]' cl_abap_char_utilities=>cr_lf
'Title=' cl_abap_char_utilities=>cr_lf
'Command=*RRMXP WBID=' l_workbookid cl_abap_char_utilities=>cr_lf
'Type=Transaction' cl_abap_char_utilities=>cr_lf
'[Configuration]' cl_abap_char_utilities=>cr_lf
'GuiSize=Normal window' cl_abap_char_utilities=>cr_lf
'Workplace=true' cl_abap_char_utilities=>cr_lf
'[Options]' cl_abap_char_utilities=>cr_lf
'Reuse=0' cl_abap_char_utilities=>cr_lf
into l_content.
lo_conv = cl_abap_conv_out_ce=>create( ).
lo_conv->write( data = l_content ).
l_content_x = lo_conv->get_buffer( ).
concatenate l_workbookid `.sap` into l_filename.
cl_wd_runtime_services=>attach_file_to_response(
i_filename = l_filename
i_content = l_content_x
i_mime_type = `application/octet-stream`
i_in_new_window = abap_false
i_inplace = abap_true ).
Most of the time it's working fine - but some user experience a "Host Unknown" failure ?? - I suspect than it has something to do with contacting Excel, but I can't figure out exactly what goes wrong. The users have all needed componets of course, and they can run Workbooks from SAP GUI without getting this error.
Thanx Ahead.Look at below link: it might help you.
[WAD URL Call for BEX|/thread/268199 [original link is broken];
Raja -
How to call PDF Report with parameters in jdeveloper 10.1.3
Hi all,
how to call PDF Report with parameters in jdeveloper 10.1.3
for example I have Report name is repdept.pdf with parameter as deptno
and I want call this Report from JSP page ?
thanks
frankHi all,
how to call PDF Report with parameters in jdeveloper 10.1.3
for example I have Report name is repdept.pdf with parameter as deptno
and I want call this Report from JSP page ?
thanks
frank -
How to call BEx workbooks from EP?
Hi!
How to call BEx workbooks from EP (in new window)?
P.S. For creation iView for workbooks I use "Role Upload" in Portal (System Administrator -> Transport -> Role Upload). Automatically created iView (for workbooks), unfortunately, do not work (bad argument in RRMXP transaction).Maxim
The role migration does not do this properly so you will have to do this manually.
Create a transaction iview using transaction RRMX. Then add the following to the Application Parameter field
WBID=XXXXXXXXXXX (the workbook ID).
Then change the AutoStart Parameter to True.
Viola! -
Office control ms_word - runmacro, calling a macro with parameters
How can I call word macro with parameters?
I have ms word document with macro, for example:
Sub Makro1(ByVal bookmark As String, ByVal text As String)
' Makro1 Makro
Selection.GoTo What:=wdGoToBookmark, Name:=bookmark
Selection.TypeText text:=text
ActiveDocument.Bookmarks(bookmark).Delete
End Sub
I try call this macro from webdynpro:
TRY.
CALL METHOD
wd_this->document->IF_IOS_APPLICATIONPROPERTIES~RUNMACRO
EXPORTING
NAME = 'Makro1("z1","test")'
ERRORINFORMATION = co_error_getcontent_stru
IMPORTING
RESULT =
CATCH CX_IOS_APPLICATIONPROPERTIES .
CATCH CX_IOS_COMMUNICATIONWRAPPER .
CATCH CX_IOS_ENVIRONMENT .
ENDTRY.
This macro cannot call. )
Calling a macro without parameters is ok.
Sub Makro2()
Call Makro1("z1", "test")
End Sub
CALL METHOD
wd_this->document->IF_IOS_APPLICATIONPROPERTIES~RUNMACRO
EXPORTING
NAME = 'Makro2'
ERRORINFORMATION = co_error_getcontent_stru
IMPORTING
RESULT =
Greats Radek1. Yes. Download from some location as binary file.
2. Unzip by class CL_ABAP_ZIP. For filling bookmarks i need file 'word/document.xml'.
CL_ABAP_ZIP->GET
Unzipped files are only in memory.
3. For parsing and filling bookmarks i use classes and interfaces cl_ixml, if_ixml*
* create a DOM from the xstring
lr_ixml = cl_ixml=>create( ).
lr_stream_factory = lr_ixml->create_stream_factory( ).
lr_istream = lr_stream_factory->create_istream_xstring( iv_docx ).
lr_document = lr_ixml->create_document( ).
gr_document = lr_document.
lr_parser = lr_ixml->create_parser( document = lr_document
istream = lr_istream
stream_factory = lr_stream_factory ).
CALL METHOD LR_PARSER->ADD_PRESERVE_SPACE_ELEMENT
RECEIVING
RVAL = lv_rval.
IF lv_rval <> abap_true.
* Err in parser XML
ENDIF.
CALL METHOD LR_PARSER->SET_XML_SPACE_AWARE.
IF lv_rval <> abap_true.
* Err in parser XML
ENDIF.
* Finding and filling bookmarks
lr_root = gr_document->get_root_element( ).
* All elements "w:bookmarkStart"
lr_elements = LR_ROOT->GET_ELEMENTS_BY_TAG_NAME(
* DEPTH = 0
NAME = 'bookmarkStart'
NAMESPACE = 'w'
lr_itr_bookmarkStart = lr_elements->create_iterator( ).
DO.
lr_node = lr_itr_bookmarkStart->get_next( ).
IF lr_node IS INITIAL. EXIT. ENDIF.
lr_attributes = lr_node->get_attributes( ).
* Read attribute "w:name" of element "w:bookmarkStart"
lr_attribute = lr_attributes->get_named_item(
NAME = 'name'
NAMESPACE = 'w'
lv_name = lr_attribute->get_value( ).
if iv_name <> lv_name. continue. endif.
* Element "w:fldSimple" was found, iv_name = Name of bookmark to fill
lv_bookmark_found = abap_true.
lr_node_bookmarkStart = lr_node.
* Read attribute "w:id" of element "w:bookmarkStart"
lr_attribute = lr_attributes->get_named_item(
NAME = 'id'
NAMESPACE = 'w'
lv_id_start = lr_attribute->get_value( ).
clear lv_id_end.
* .... work with parser
* find element w:bookmarkEnd for relevant w:bookmarkStart, bookmarkEnd with the same id as bookmarkStart
lr_node_next = lr_node->get_next( ).
do.
IF lr_node_next IS INITIAL. EXIT. ENDIF.
lr_node = lr_node_next.
lv_name = lr_node->get_name( ).
if lv_name = 'bookmarkEnd'.
lr_attributes = lr_node->get_attributes( ).
* Read attribute "w:id" of element "w:bookmarkEnd"
lr_attribute = lr_attributes->get_named_item(
NAME = 'id'
NAMESPACE = 'w'
lv_id_end = lr_attribute->get_value( ).
endif.
if lv_id_start = lv_id_end.
lr_node_parent = lr_node->get_parent( ).
lr_node_bookmarkEnd = lr_node.
er_node_bookmarkEnd = lr_node.
exit.
else.
lr_node_next = lr_node->get_next( ).
* remove elements between bookmarkStart and bookmarkEnd
lr_node->remove_node( ).
endif.
enddo.
* insert new elements between boomarkStart and bookmarkEnd
CALL METHOD me->XML_RUN_TEXT_ADD
EXPORTING
IR_PARENT = lr_node_parent
IR_REF = lr_node_bookmarkEnd
IV_VALUE = iv_value
IMPORTING
EV_OK = lv_bookmark_ok.
EXIT.
ENDDO.
For example, XML with bookmark:
<w:bookmarkStart w:id="0" w:name="testing123"/>
<w:r>
<w:t>This is sentence two.</w:t>
</w:r>
</w:p>
<w:p>
<w:r>
<w:t xml:space="preserve">This </w:t>
</w:r>
<w:bookmarkEnd w:id="0"/>
4. replace file 'word/document.xml' in zip (.docx) with class CL_ABAP_ZIP.
CL_ABAP_ZIP->DELETE
CL_ABAP_ZIP->ADD
5. You can store result where you need.
6. You can use for editing by users classic dynpro with container with word. -
FRM-92101 Error by calling the form with parameters
Hi All!
After the migration Oracle Forms from version 6i to 10g by calling the form with parameters the error FRM-92101 occurs. In Application Server log shows the following:
08/12/01 10:26:20 formsweb: Forms session <5> aborted: unable to communicate with runtime process.
08/12/01 10:26:20 formsweb: Forms session <5> exception stack trace:
java.io.IOException: FRM-93000: Unexpected internal error.
Details : No HTTP headers received from runform
at oracle.forms.servlet.ListenerServlet.forwardResponseFromRunform(Unknown Source)
at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
System: Oracle Application Server 10.1.2.0.2 with Red Hat Enterprise Linux Release 4. Client PC: Windows XP SP3 and Internet Explorer 7.
Please help me if anybody has this problem before.
SergeyHi Sergei,
I've just finished a three day search for a FRM-92101problem, so I want to post my case, just in case it helps someone.
My case is similar to yours, in that you have a Forms 6i form migrated to 10g and deployed on Linux, although my problem was "very" specific, and thus very hard to find, this might give you some light.
I had a visual attribute that defined the property "Fill Pattern" as "none" applied to a canvas, and it deployed without any problem on 10gR2/Windows, but when deployed on Linux (10gR2/SUSE 9) it would abort the application getting a FRM-92101.
The solution in this case was just changing "none" to "Transparent".
Hope this helps.
Regards,
Miguel. -
How to call BW report from CRM via ABAP
Hello,
I want to call a BW report from CRM, this I want to invoke from a screen with some parameter.
I have a BW user which I also wants to pass from CRM screen, while calling BW report as parameter.
Can some one help me, how to invoke a BW report (in browser) from CRM ABAP code with passing username and password (which is a generic user to all) and with some parameters to BW report, so that can directly see the report output in the browser.
Thanks a lot in advance.
With Best Regards,
-Praveen SoniPraveen,
all you basically have to do is construct a URL in your ABAP program and call the browser with it. In the URL you can pass the right parameters. Execute your query in transaction RSRT with option HTML and you see parameters. Or execute it directly in the browser.
When you have the URL, just do call function 'CALL_BROWSER'.
Regards,
Marc
SAP NetWeaver RIG, US BI -
Calling stored procedures with parameters with the Database Connectivi​ty Toolkit
Hi all,
I am new to the forum and am having difficulty finding a solution to a particular problem I am having regarding using the LabVIEW Database Connectivity Toolkit on a project I am currently working on at my job. I have a database in which I have tables and stored procedures with parameters. Some of these stored procedures have input, output, and return parameters.
I have been trying to follow this example but to no avail: http://digital.ni.com/public.nsf/allkb/07FD130746083E0686257300006326C4?OpenDocument
One such stored procedure I am working on implementing is named "dbo.getAllowablePNs", which executes "SELECT * from DeviceType" (DeviceType is the table). In this case, it does not require an input parameter, it has an output parameter that generates the table [cluster], and has a return parameter which returns an integer value (execution status code) to show if an error occurred. The DeviceType table has 3 columns; ID (PK, int, not null), PN (nvarchar(15), null), and NumMACAddresses (int, null). I have gone over many examples and have talking to NI support to try to implement this and similar stored procedures in LabVIEW but have not been successful. I am able to connect to the database with the Open Connection VI without error, but am running into some confusion following this step. I am then trying to use the Create Parameterized Query VI to call the stored procedure and set the parameters. I assume I would then use the Set Parameter Value VI for each parameter that is wired into the parameters input on the previous Parameterized Query VI? I am also having some confusion during and following these steps as well. I would greatly appreciate any advice or suggestions anyone might have in regards to this situation as I am not a SQL expert. Also, I would be happy to provide any more information that would be helpful.
Regards,
Jon
Solved!
Go to Solution.Also, I don't know if this would be helpful but here is the actual stored procedure in SQL:
CREATEPROCEDURE [dbo].[getLastSequenceNumber]
@p1 nvarchar(10)='WO-00000'
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SETNOCOUNTON;
-- Insert statements for procedure here
selectmax(SequenceNumber)from Devices where WorkOrderNumber= @p1
END
GO -
Calling a method with parameters in jstl?
i need to call a method with a series of String parameters what am i doing wrong?
the java
public ArrayList getEmployeeSkills(String ename, String snmae, String yearsexp)the jstl
<jsp:useBean id="empskill" class="com.Database.EmployeeSkill"/>
<c:forEach var="emp" items="${empskill.EmployeeSkills(null, null, null)}">
</c:forEach>this works:
<jsp:useBean id="empskill" class="com.Database.EmployeeSkill" scope="page">
<jsp:setProperty name="empskill" property="ename" value="Helen Smith"/>
<jsp:setProperty name="empskill" property="sname" value="Java"/>
</jsp:useBean>but this part isnt:
<c:forEach var="empskill" items="${empskill.EmployeeSkillsReport}">
</c:forEach>ive removed the get part from the method as i have done before from the java class it is calling:
public ArrayList getEmployeeSkillsReport()
but it produces:
org.apache.jasper.JasperException: Exception in JSP: /main.jsp:146
143: </jsp:useBean>
144:
145:
146: <c:forEach var="empskill" items="${empskill.EmployeeSkillsReport}">
147: </c:forEach>
148:
149:
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
javax.servlet.ServletException: An error occurred while evaluating custom action attribute "items" with value "${empskill.EmployeeSkillsReport}": Unable to find a value for "EmployeeSkillsReport" in object of class "com.Database.EmployeeSkill" using operator "." (null)
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:843)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:776)
org.apache.jsp.main_jsp._jspService(main_jsp.java:244)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "items" with value "${empskill.EmployeeSkillsReport}": Unable to find a value for "EmployeeSkillsReport" in object of class "com.Database.EmployeeSkill" using operator "." (null)
org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:109)
org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:129)
org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:75)
org.apache.taglibs.standard.tag.el.core.ForEachTag.evaluateExpressions(ForEachTag.java:155)
org.apache.taglibs.standard.tag.el.core.ForEachTag.doStartTag(ForEachTag.java:66)
org.apache.jsp.main_jsp._jspx_meth_c_forEach_3(main_jsp.java:590)
org.apache.jsp.main_jsp._jspService(main_jsp.java:232)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) -
Calling Stored procedure with Parameters in PowerPivot DataModel
Hi All,
I wanted to call a SQL stored procedure from PowerPivot(Excel) on based on changing slicer's value.
Currently, we can call stored procedure wihtout any parameter from Data Model tab using
Exec stored_proc_name in Table Properties window.
What if I want to call the same procedure with a parameter whouse value will come by changing slicer's value. I meant, changing slicer value will act as a parameter to that stored procedure & it should return updated results.
Is this possible in PowerPivot?Hi Rameshwar,
According to your description, you call a SQL Server stored procedure in PowerPivot data model, now the problem is that you need to pass a parameter to the stored procedure, right?
Based on my research, it seems that we cannot achieve this requirement directly in current version of PowerPivot data model. Here is a similar thread for you reference.
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/5350228d-bc62-4a3b-a1a6-e847483e2858/powerpivot-for-excel-2013-call-execute-stored-procedure-with-parameters?forum=sqlkjpowerpivotforexcel
If you have any concern about this behavior, you can submit a feedback at
http://connect.microsoft.com/SQLServer/Feedback and hope it is resolved in the next release of service pack or product. Your feedback enables Microsoft to make software and services the best that they can be, Microsoft might consider to add this feature
in the following release after official confirmation.
Regards,
Charlie Liao
TechNet Community Support -
In SQLScript, how to use EXEC to call another procedure with parameters in procedure?
Hi experts,
In SQLScript, How to use EXEC to call another procedure with input and output parameters in procedure?thanks very muchHi Sagar,
thank you! I generate another procedure with an input parameter and an output parameter in a procedure. Then i need to call the generated procedure using EXEC. Here is my code:
create procedure ftest1(out sum_num bigint)
as
begin
declare fa_output bigint;
declare v_sql_drop varchar(200);
declare v_sql varchar(500);
declare cursor c_cursor1 for select num from TABLE1;
--v_sql_drop := 'drop procedure fe';
--exec v_sql_drop;
v_sql := 'create procedure fe(in i_num bigint,out o_num bigint) as begin';
v_sql := :v_sql || ' o_num := :i_num * 2 + :i_num * :i_num;';
v_sql := :v_sql || ' end';
exec v_sql;
open c_cursor1;
for c_item as c_cursor1 do
exec 'call fe(c_item.num,o_num=>fa_output)';
if sum_num is null then
sum_num := fa_output;
else
sum_num := :sum_num + fa_output;
end if;
end for;
close c_cursor1;
end;
The underline code is using exec to call the generated procedure. But this method cannot work. Any suggestion? thanks again!
Maybe you are looking for
-
How can I get my money back???
I have really had it an AWFULL time with this machine and. I do raeally no longer want the u410, but I am stuck: From day one it only had problems. Trying to re-partition the HDD caused BSOD issues. I tried One-Key-Recovery to no avail. BSOD continu
-
How do I get my speakers to play the Apple TV? My TV is recognizing the Apple TV and the sound is playing out of the TV speakers, but even though I plug my speakers into my TV, it does not play what the TV speakers are playing. Do I have to plg the
-
Submitting to broadcast and iTunes
This isn't so much a FCP question as it is a video production question, but with specific needs for iTunes. I'm just finishing my first music video for a record label and they will most likely be submitting it for broadcast and also to iTunes. I over
-
How does one configure an Adobe Acrobat executable other than the one included with the Test Stand CD to read the help files. I want to use Acrobat 4.0, not Acroread 4.05. Once installed, Test Stand tries to launch Notepad to view the help files. Tha
-
MSS Implementation on mySAP ERP 2005 & Portal 7.0
Does anyone know what has happened to the appraisals functionality in MSS BP 1.0 mySAP ERP 2005? The BP documentation indicates that the Appraisals Overview, Edit Appraisals, Appraisals Inbox & Status Overview functionality has been replaced by the n