How we can use the stored procedures  in sap b one -pld,

HI , actualli i m a fresher in PLD and want to add a new field in preiview ofr which we have to bind the data  using stored procedure which is the inbuilt given option for the properties of any field (in contents).Is anyone help me egarding this .
then pls mail me the solution at:[email protected]
bye

Hi Premraj,
PLD only supports User Defined Queries generated through the Query Wizard or the Query Generator in the Reports Module of SAP B1. Though I would personally recommend NOT to use Stored Procedures since they are not supported by  B1 solution certification guidelines. Instead take a look at PLD Tutorials available on the SDN Site and formulate a query accordingly.
Regards
Rizwan Hafeez
Team Lead
SAP Addon Development Section
Abacus Consulting - Pakistan

Similar Messages

  • How to use the Stored Procedure to update my UDF

    I want to use the Stored Procedure to update my UDF U_InstokCS when the warehouse "OnHand" was changed. The UDF is display the stock by cases. I copied the query as follewing. I couldn't see any thing in the UDF after I made some transactions. Can anybody tell me why? How to continue it?
    if @transaction_type in ('A','U','D') and @Object_type='64'
    begin
    Update OITW
    Set U_InstokCS = OnHand/(Select T0.NumInBuy from [DBO].[OITM] T0
    Where T0.ItemCode = @list_of_cols_val_tab_del)
    Where ItemCode = @list_of_cols_val_tab_del
    end
    Thanks.
    Ying Zhang

    Ying,
    The use of any stored procedures against the SAP Business One database is not allowed per SAP Support.  There is not an instance where you can use SP's.  The ONLY SP that you are allowed to use is the SBO_SP_TransactionNotification SP that comes with SAP Business One itself. You can read about the use of this SP from this article...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e991e2b9-0901-0010-0395-ef5268b00aaf
    Eddy

  • Im having trouble changing my security questions, they are from years ago so i do not remember them and the reset email is no longer active,and i dont know how i can use the account because i added money to it but it asks for the questions. anybody help??

    im having trouble changing my security questions, they are from years ago so i do not remember them and the reset email is no longer active.., and i dont know how i can use the account because i added money to it but it asks for the questions. anybody help??
    this says it all..

    Welcome to the Apple Community.
    Contact Apple through iTunes Store Support, and explain that you have forgotten your 3 security questions, that you can reset your password, but doing so doesn't reset your security questions.
    Remember, support will receive hundreds, if not thousands of requests per day, some from people trying it on, others with little explanation and others that are written extremely poorly. Take the time to explain your situation properly, be precise and concise, brief but comprehensive.

  • How i can use the new Trailers (iPhone, iPad) on my mac?

    Hello, sorry for my bad english.
    With the new version on the app Imovie on Iphone and Ipad with 5.1 sync there are a few of new trailers. but on Imovie (Mac) tere are the old traditionel trailers.
    How i can use this new trailers on my mac?

    Does iTunes see the iPod?
    Is the computer authorized for the account that purchased the items?
    iTunes Store: Authorize or deauthorize your Mac or PC

  • How i can use the turbulence tool in adobe Photoshop 6?

    where i can find this option pls

    With the pen tool in Indesign, is there a way of making the points not join if you want to make a few single lines?

  • I bought an iPad in the USA and registered it in Sweden  now back in USA and I can't use an iTunes card on my iPad because it not registered in USA . Does anyone know how I can use the iTunes card ?

    I need help using an iTunes card on my iPad purchased when I was in the USA and registered it at home in Sweden.  Now I am back in USA and the iPad says iTunes card won't work on a foreign iPad. Is there a way to use this iTunes card?
    Thanks

    What store are you trying to purchase in? If its a U.S. card - you have to use it in the U.S. store.
    Go to Settings>General>International>Region Format>United States. Then go to Settings>Store>Tap your Apple ID. Tap View Apple ID. Enter your password. Go to country/region and make sure that you are in the U.S. store in there.

  • I found how you can use the WORK INTRANET on iOS7

    ALL YOU NEED IS TO DOWNLOAD GOOGLE CHROME FROM THE APPS, IT WORKS PERFECTLY. ENJOY

    Yes, you only have to make an icloud backup on your old phone and restore from that backup on your new phone. If everything goes well, you can safely restore your old phone.

  • HIDE THE STORED PROCEDURE

    how i can HIDE THE STORED PROCEDURE for other user oracle version 9i
    Edited by: razagold on Jun 5, 2010 6:29 AM
    Edited by: razagold on Jun 5, 2010 6:30 AM

    Hardly anyone uses C or C++ with Oracle any more. If you are in an environment where this is done it is a very rare environment these days.
    Try to find an Oracle conference, or job description at dice.com, that asks for Oracle and C any more. Rarer than requests for Korn shell scripting.
    Your argument with respect to keeping the customer in the dark has nothing to do with Open Source. Perhaps you have not worked in the business of selling Oracle-based applications but you need to consider what reality looks like. The customer opens a support ticket. Do you ask to see the source code the minute they open the ticket? They have a problem that your support engineers can not solve in one day. Do you review all of your source code after 24 hours? When do you reach the threshold that doing so makes sense? Remember you application has many tens or hundeds of thousands of lines of code. By the time you do you have spent a small fortune in support costs. Your customer is angry with you. And the moron that made the change doesn't even work there any more so what are you going to do? Cut off their support and lose them to a competitor? No. Very simply you wrap your code and make alterations impossible.
    With respect to lawsuits. Not to pick on any country but just as an example. Lets assume you are in North America and sell an application. And lets further assume your code ends up in a commercial application sold by a company in China. You're going to sue them? Let's assume you don't have a team of lawyers on your payroll like Bill and Larry. You're going to sue them? Not realistic by any measure. Wrapping is simple and wrapping is free.

  • How to pass the parameter values to the stored procedure from java code?

    I have a stored procedure written in sqlplus as below:
    create procedure spInsertCategory (propertyid number, category varchar2, create_user varchar2, create_date date) AS BEGIN Insert into property (propertyid, category,create_user,create_date) values (propertyid , category, create_user, create_date); END spInsertCategory;
    I am trying to insert a new row into the database using the stored procedure.
    I have called the above procedure in my java code as below:
    CallableStatement sp = null;
    sp = conn.prepareCall("{call spInsertCategory(?, ?, ?, ?)}");
    How should I pass the values [propertyid, category, create_user, create_date) from java to the stored procedure?[i.e., parameters]
    Kindly guide me as I am new to java..

    Java-Queries wrote:
    I have a stored procedure written in sqlplus as below:FYI. sqlplus is a tool from Oracle that provides a user interface to the database. Although it has its own syntax what you posted is actually PL/SQL.

  • Crystal Reports can't add stored procedure using Oracle Provider for OLE DB

    Hello,
    I am trying to bind an oracle stored procedure to a crystal report through Visual Studio 2008.
    This oracle stored procedure returns a ref cursor.
    I am using an oracle 11g database (11.2.0.2.0) .
    When I use the Oracle Provider For OLE DB driver to bind the store procedure with the report, I get the following error message:
    Description : ORA -06550 Line 1 Column 7
    PLS 00306 wrong number of types or arguments to the "Strored Procedure Name"
    But When I use the Microsoft OLE DB provider for oracle driver, I can bind the stored procedure to the report successfully .
    I cannot use the Microsoft OLE DB provider for oracle driver because it does not support the CLOB data type which I plan on having the stored procedure return once I can get everything working.
    I have tried setting PLSQLRSET = 1 IN "HKEY_LOCAL_MACHINE\SOFTWARE\KEY_OraDb11g_home1\OLEDB", but that does not seem to work either
    Any assistance would be greatly Appreciated
    My Stored procedure is very simple as the moment (I just need to get it working then I'll add more stuff). Here's what it looks like:
    CREATE OR REPLACE PACKAGE PROMO.PKG_REPORT as
    TYPE OUT_Type IS REF CURSOR;
    procedure Report_ThisReport (
    p_ThisIdField IN number,
    IO_CURSOR IN OUT OUT_Type
    end PKG_REPORT;
    CREATE OR REPLACE PACKAGE BODY PROMO.PKG_REPORT as
    procedure REPORT_ThisReport (
    p_ThisIdField IN number,
    IO_CURSOR IN OUT OUT_Type
    IS
    BEGIN
    OPEN IO_CURSOR FOR
    SELECT ThisField
    FROM ThisTable
    WHERE ThisIdField = p_ThisIdField ;
    END REPORT_ThisReport;
    end PKG_REPORT;
    Edited by: 894988 on Nov 3, 2011 2:45 PM
    Edited by: 894988 on Nov 3, 2011 2:46 PM
    Edited by: 894988 on Nov 3, 2011 2:47 PM

    It seems that some questions posted here on the XE forum are really questions about other Oracle technologies.
    Concretely, for you there is an Oracle Provider for OLE DB Forum that is active and a terrific resource for you to use.
    Oracle Provider for OLE DB
    Cheers!

  • How to output value from stored procedure

    Hi folks, I need to output the OrderFK from a stored procedure not really sure how to achieve this any help or tips much appreciated.
    Sql code below
    USE [TyreSanner]
    GO
    /****** Object: StoredProcedure [dbo].[AddCustomerDetails] Script Date: 11/12/2014 20:56:34 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[AddCustomerDetails]
    /***********************Declare variables ***********************/
    /******tblCustomer******/
    @Forename nvarchar(50),
    @Surname nvarchar(50),
    @HouseNo nvarchar(50),
    @CustAddress nvarchar(50),
    @Town nvarchar(50),
    @Postcode nvarchar(50),
    @ContactNo nvarchar(50),
    @EmailAddress nvarchar(50),
    /******tblLink_OrderProduct******/
    @ProductQuantity int,
    @TotalProductSaleCost decimal,
    @ProductFK int,
    @FittingDate date,
    @FittingTime Time
    As
    DECLARE @CustomerFK int;
    DECLARE @OrderFK int;
    Begin TRANSACTION
    SET NOCOUNT ON
    INSERT INTO [TyreSanner].[dbo].[Customer](Forename, Surname, HouseNo, CustAddress, Town, Postcode, ContactNo, EmailAddress)
    VALUES (@Forename,@Surname,@HouseNo,@CustAddress,@Town,@Postcode,@ContactNo,@EmailAddress)
    Set @CustomerFK = SCOPE_IDENTITY()
    INSERT INTO [TyreSanner].[dbo].[Order] (CustomerFK)
    VALUES (@CustomerFK)
    SET @OrderFK = SCOPE_IDENTITY()
    INSERT INTO [TyreSanner].[dbo].[Link_OrderProduct](OrderFK, ProductFK, ProductQuantity, TotalProductSaleCost, FittingDate, FittingTime)
    VALUES
    (@OrderFK, @ProductFK, @ProductQuantity, @TotalProductSaleCost, @FittingDate, @FittingTime)
    COMMIT TRANSACTION

    Hi brucey54,
    There’re several ways to capture the value from a Stored Procedure. In you scenario, I would suggest 2 options, by an output parameter or by a table variable.
    By an output Parameter, you need to make a little bit modification on your code as below:
    USE [TyreSanner]
    GO
    ALTER PROCEDURE [dbo].[AddCustomerDetails]
    @Forename nvarchar(50),
    @FittingDate date,
    @FittingTime Time,
    @OrderFK int output
    As
    DECLARE @CustomerFK int;
    --DECLARE @OrderFK int;
    Run the following code, Then @OrderFKvalue holds the value you’d like.
    DECLARE @OrderFKvalue int;
    EXEC AddCustomerDetails(your parameters,@OrderFKvalue output)
    Anyway if you don’t like to add one more parameter, you can get the value by a table variable as well. Please append “SELECT @OrderFK;” to your Procedure as below:
    USE [TyreSanner]
    GO
    ALTER PROCEDURE [dbo].[AddCustomerDetails]
    SET @OrderFK = SCOPE_IDENTITY()
    INSERT INTO [TyreSanner].[dbo].[Link_OrderProduct](OrderFK, ProductFK, ProductQuantity, TotalProductSaleCost, FittingDate, FittingTime)
    VALUES
    (@OrderFK, @ProductFK, @ProductQuantity, @TotalProductSaleCost, @FittingDate, @FittingTime);
    SELECT @OrderFK;
    Then you can call the Stored Procedure as below:
    DECLARE @T TABLE (OrderFK INT);
    INSERT @T EXEC AddCustomerDetails(your parameters) ;
    SELECT OrderFK FROM @T;
    There’re more options to achieve your requirement, please see the below link:
    How to Share Data between Stored Procedures
    If you have any question, feel free to let me know.
    Best Regards,
    Eric Zhang

  • How to convert SQL server stored procedures to Oracle 11g

    Hi Experts,
    In SQL server 30 stored procedures are there how to convert all the stored procedure
    from SQL server to Oracle 11g.
    Please help me,
    Thanks.

    ramya_162 wrote:
    In SQL server 30 stored procedures are there how to convert all the stored procedure
    from SQL server to Oracle 11g.
    The single most fundamental concept you need to understand (grok in its fullness) is:
    ORACLE IS NOT SQL-SERVER
    There is very little, to NOTHING, in common between T-SQL (a language extension to SQL) and PL/SQL (integration of SQL with the language Ada, part of ALGOL family of languages that includes Pascal and C++).
    So taking a T-SQL procedure and porting it as is to PL/SQL is plain stupid.
    Why?
    Oracle sucks at trying to be SQL-Server.
    So how do you migrate from SQL-Server to Oracle?
    By taking the REQUIREMENTS that the T-SQL procedures address, and addressing these requirements using Oracle SQL and PL/SQL.

  • Trace the stored procedure

    Hi all..
    Can someone guide me how to trace stored procedure that we already created.
    How simple is it.
    thanks in advance.

    Hi Zakariya,
    We can trace the Stored procedures which you have created in USER_OBJECTS and USER_SOURCE data dictionary views.
    for example:
    sql > select object_name,object_type from user_objects
    where object_name= 'PROCEDURE';
    SQL > SELECT TEXT FROM USER_SOURCE
    WHERE NAME = 'P';
    WHERE 'P' IS NAME OF THE PROCEDURE.
    HOPE THIS WILL SOLVE UR PROBLEM
    RGS
    PRASANT K V N

  • How we can use Bar codes in Sap-script?

    Hi,.
    Can any body please tell me how  we can use <b>Bar codes in Sap-script</b>?
    Please tell me the steps .
    Regards,
    Prabhudutta

    Hi,
    Check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/de/ee0769ebd211d18e370000e83dd9fc/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94fc51ea11d189570000e829fbbd/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm
    Regards,
    Sonika

  • Can rs.last() be used after calling the stored procedure?

    Can rs.last() be used after calling the stored procedure? If yes what should be the CURSOR types?

    Can rs.last() be used after calling the stored
    procedure? If yes what should be the CURSOR types?That would depend on the driver/database.
    And as I said in your other post it is far more efficient to count records by just returning a count rather than a complete collection regardless of how you get to the end.

Maybe you are looking for