Skip to Content
author's profile photo Former Member
Former Member

execute stored procedures in XI

Hi Friends,

Can anyone plz tell me how to execute a stored procedure in XI.

What is the syntax that should be specified in the JDBC Sender Adapter in ID.

I have given EXEC ProcedureName and EXECUTE ProcedureName.

But this doesn't work. And the same command works in Oraclq sql plus.

What is the correct Syntax.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 17, 2005 at 09:52 AM

    Hi,

    try this weblog:

    JDBC Stored Procedures

    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures

    Regards,

    michal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2005 at 10:56 AM

    Hi Narayana

    You will need to create a datatype abiding with the following schema for stored procedure,

    <root>

    <StatementName5>

    <storedProcedureName action=” EXECUTE”>

    <table>realStoredProcedureeName</table>

    <param1 [isInput=”true”] [isOutput=true] type=SQLDatatype>val1</param1>

    </storedProcedureName >

    </StatementName5>

    </root>

    as explained in the following link,

    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm

    I picked up a sample datatype example from an alternate thread, hope it helps you in creating a similar datatype for your requirement,

    Re: Using SQL stored procedure in XI 3.0

    Posted: Apr 26, 2005 4:47 PM Click to reply to this topic Reply E-mail this post E-mail this post

    sample datatype:

    <?xml version="1.0" encoding="UTF-8" ?>

    <MT_Employee_Procedure>

    <root>

    <qryEmployee action="EXECUTE">

    <table>TOTS_PROCEDURES.qryEmployee</table>

    <pUserID isInput="true" type="VARCHAR">helps</pUserID>

    <pEmployee isOutput="true" type="VARCHAR">empty</pEmployee>

    </qryEmployee>

    </root>

    </MT_Employee_Procedure>

    This produced the result:

    <MT_Employee_Procedure_response>

    <root_response>

    <pEmployee>Help, Samuel R.</pEmployee>

    </root_response>

    </MT_Employee_Procedure_response>

    cheers

    Sameer

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      HI

      Thanks for the Reply.

      But Iam using JDBC Sender and I want to retrive data from Oracle database by executing the stored procedure in the JDBC Sender. And if I give EXEC or EXECUTE in JDBC Sender, it says invalid SQL statement.

      So how is the datatype provided by you is helpful to me?

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.