How to set pdn12.trancat mandatory in this stored procedure?

How can i make PDN12.transcat in this Stored Procedure
USE [zIRC DEMO]
GO
/****** Object:  StoredProcedure [dbo].[SP_CHECK_MANDATORY_IN_OPDN]    Script Date: 03/07/2014 10:37:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[SP_CHECK_MANDATORY_IN_OPDN]
  @list_of_cols_val_tab_del NVARCHAR(255), @error_message NVARCHAR(255) OUTPUT
AS
BEGIN
--invoice type
  select
  @error_message='In header line number(s), '+ substring
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  where
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND isnull(OPDN.U_InvType,'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ),1
  ,LEN((
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  WHERE
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND isnull(OPDN.U_InvType,'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ))-1
  )+' Invoice Type is missing'
-- num at card
  if(ISNULL(@error_message,'')='')
  BEGIN
  select
  @error_message='In header line number(s), '+ substring
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  where
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(OPDN.NumAtCard,'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ),1
  ,LEN((
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  WHERE
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(OPDN.NumAtCard,'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ))-1
  )+' Vendor ref. number is missing'
  END
-- transporter
  if(ISNULL(@error_message,'')='')
  BEGIN
  select
  @error_message='In line number(s), '+ substring
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  where
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(OPDN.U_Transport,'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ),1
  ,LEN((
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  WHERE
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(OPDN.U_Transport,'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ))-1
  )+' Transporter is missing'
  END
--dealer
  if(ISNULL(@error_message,'')='')
  BEGIN
  select
  @error_message='In line number(s), '+ substring
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  where
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(OPDN.U_dealer,'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ),1
  ,LEN((
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  WHERE
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(OPDN.U_Dealer,'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ))-1
  )+' Dealer is missing'
  END
--base price
  if(ISNULL(@error_message,'')='')
  BEGIN
  select
  @error_message='In line number(s), '+ substring
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  where
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S') AND isnull(PDN1.U_BasePrice,0)=0
  order by
  PDN1.LineNum FOR XML PATH ('')
  ),1
  ,LEN((
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  WHERE
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S') AND isnull(PDN1.U_BasePrice,0)=0
  order by
  PDN1.LineNum FOR XML PATH ('')
  ))-1
  )+' Base Price is missing'
  END
--taxcode
  if(ISNULL(@error_message,'')='')
  BEGIN
  select
  @error_message='In line number(s), '+ substring
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  where
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(PDN1.TaxCode,'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ),1
  ,LEN((
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  WHERE
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(PDN1.TaxCode,'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ))-1
  )+' Taxcode is Missing'
  END
-- ed rate
  if(ISNULL(@error_message,'')='')
  BEGIN
  select
  @error_message='In line number(s), '+ substring
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  where
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S') AND isnull(PDN1.U_EDRate,'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ),1
  ,LEN((
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  WHERE
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S') AND isnull(PDN1.U_EDRate,'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ))-1
  )+' Excice Duty Rate is missing'
  END
-- ed duty
  if(ISNULL(@error_message,'')='')
  BEGIN
  select
  @error_message='In line number(s), '+ substring
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  where
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S') AND isnull(PDN1.U_EDuty,0)=0
  order by
  PDN1.LineNum FOR XML PATH ('')
  ),1
  ,LEN((
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  WHERE
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S') AND isnull(PDN1.U_EDuty,0)=0
  order by
  PDN1.LineNum FOR XML PATH ('')
  ))-1
  )+' Excice Duty is missing'
  END
  if(ISNULL(@error_message,'')='')
  BEGIN
  select
  @error_message='In line number(s), '+ substring
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  where
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND ISNULL(PDN1.U_MfgInvNo,'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ),1
  ,LEN((
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  WHERE
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND ISNULL(PDN1.U_MfgInvNo,'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ))-1
  )+' Mfg. invoice number is missing'
  END
  if(ISNULL(@error_message,'')='')
  BEGIN
  select
  @error_message='In line number(s), '+ substring
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  where
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND isnull(convert(nvarchar(10),U_MfgInvDt,112),'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ),1
  ,LEN((
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  WHERE
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND isnull(convert(nvarchar(10),U_MfgInvDt,112),'')=''
  order by
  PDN1.LineNum FOR XML PATH ('')
  ))-1
  )+' Mfg. invoice date is missing'
  END
  if(ISNULL(@error_message,'')='')
  BEGIN
  select
  @error_message='In line number(s), '+ substring
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  where
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND PDN1.U_MfgQty=0
  order by
  PDN1.LineNum FOR XML PATH ('')
  ),1
  ,LEN((
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  WHERE
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND PDN1.U_MfgQty=0
  order by
  PDN1.LineNum FOR XML PATH ('')
  ))-1
  )+' Mfg. invoice Quantity is missing'
  END
  if(ISNULL(@error_message,'')='')
  BEGIN
  select
  @error_message='In line number(s), '+ substring
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  where
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND PDN1.U_MfgValue=0
  order by
  PDN1.LineNum FOR XML PATH ('')
  ),1
  ,LEN((
  select CONVERT(char(2),PDN1.LineNum)+','
  from
  OPDN
  inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
  WHERE
  OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND PDN1.U_MfgValue=0
  order by
  PDN1.LineNum FOR XML PATH ('')
  ))-1
  )+' Mfg. Assessble value is missing'
  END
  if(ISNULL(@error_message,'')<>'')
  BEGIN
  return -1
  END
  else
  begin
  return 0
  end
END

Hello Nabil
Could you explain what is the point of making PDN12.Trancat mandatory? I am asking this because at my end that field has got NULL value in all PDN12 table entries, and I am not sure if this field can be updated manually when creating a Good Receipt PO. Considering this, it seems that by making this field mandatory TN will block all Good Receipts from addition.
Regards

Similar Messages

  • How can I automatically prepend comment blocks to stored procedures?

    How can I automatically prepend comment blocks to stored procedures?
    In my organization, the standard is to comment all stored procedures with a comment block that looks like this:
    /*-- =============================================
    -- Created by: <Owner>
    -- Created date: 01/08/2012
    -- Purpose: Inserts new setting value, code and description
    -- Modifications:
    -- Modified by: <Owner>
    -- Modification date: 01/08/2012
    -- Purpose: Inserts new setting value, code and description
    -- =============================================*/Thanks.
    select * from v$version;
    BANNER                                                                        
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production             
    PL/SQL Release 11.2.0.2.0 - Production                                          
    CORE     11.2.0.2.0     Production  Edited by: xDeviates on 01-ago-2012 7:37
    Edited by: xDeviates on 01-ago-2012 8:31

    Hi,
    If I want to write a package called pk_fubar, I copy the following script and call it fubar.sql
    --     ==========  package_name.sql starts here  ==========
    --     Package_Name.sql
    SPOOL     &home_dir\package_name.lst
    PROMPT     .     H   H  EEEE     A    DDDD
    PROMPT     .     H   H  E       A A   D   D
    PROMPT     .     HHHHH  EEE    A   A  D   D
    PROMPT     .     H   H  E      AAAAA  D   D
    PROMPT     .     H   H  EEEEE  A   A  DDDD
    @@package_name_head
    PROMPT     .     BBBB    OOO   DDDD   Y   Y
    PROMPT     .     B   B  O   O  D   D   Y Y
    PROMPT     .     BBBB   O   O  D   D    Y
    PROMPT     .     B   B  O   O  D   D    Y
    PROMPT     .     BBBB    OOO   DDDD     Y
    @@package_name_body
    SPOOL     OFF
    @@package_name_test
    -- EXIT
    --     ==========  package_name_head.sql starts here  ==========
    CREATE OR REPLACE PACKAGE     pk_package_name
    AS
    FUNCTION     sign_in
    (     in_user_name     IN     VARCHAR2
    ,     in_password_txt     IN     VARCHAR2
    RETURN     PLS_INTEGER
    END     pk_package_name;
    SHOW ERRORS;
    GRANT     EXECUTE     ON pk_package_name     TO schema_name_some_role;
    --     ==========  package_name_body.sql starts here  ==========
    CREATE OR REPLACE PACKAGE BODY     pk_package_name
    AS
    --  Procedures related to SCHEMA_NAME ...
    --  2012 July 23 -- Package started with proc_x.  (Frank Kulash)
    --     **   local procedures and variables   **
    --     **   x   **
    --     **   initialization section   **
    --     The following code is executed once per session, when the package is loaded.
    BEGIN
         set_var     ( 'DT_FMT_TXT'
              , 'YYYY-MM-DD HH24:MI:SS'
    END     pk_package_name;
    SHOW ERRORS;
    --     ==========  package_name_test.sql starts here  ==========
    --     PACKAGE_NAME_TEST.SQL -- Test procedures in schema_name.pk_package_name
    SET     DOCUMENT     OFF
    SET     SERVEROUTPUT     ON     SIZE     10000
    ALTER SESSION     SET NLS_DATE_FORMAT = 'DD-Mon-YYYY HH24:MI:SS';
    SPOOL     @@package_name_test.lst
    PROMPT
    PROMPT     ***********************
    PROMPT     **  Testing x  **
    PROMPT     ***********************
    PROMPT
    SPOOL     OFFThen I replace package_name with fubar, and schema_name with the actual schema name. Finally, I cut off parts from the end to create fubar_test.sql, fubar_body.sql and fubar_head.sql. You could easily include a multi-line procedure comment template in this script. Every time you add a procedure or function, ciopy and paste that comment template, and then modify the copy.

  • How do I return two values from a stored procedure into an "Execute SQL Task" within SQL Server 2008 R2

    Hi,
    How do I return two values from a
    stored procedure into an "Execute SQL Task" please? Each of these two values need to be populated into an SSIS variable for later processing, e.g. StartDate and EndDate.
    Thinking about stored procedure output parameters for example. Is there anything special I need to bear in mind to ensure that the SSIS variables are populated with the updated stored procedure output parameter values?
    Something like ?
    CREATE PROCEDURE [etl].[ConvertPeriodToStartAndEndDate]
    @intPeriod INT,
    @strPeriod_Length NVARCHAR(1),
    @dtStart NVARCHAR(8) OUTPUT,
    @dtEnd NVARCHAR(8) OUTPUT
    AS
    then within the SSIS component; -
    Kind Regards,
    Kieran. 
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Below execute statement should work along the parameter mapping which you have provided. Also try specifying the parameter size property as default.
    Exec [etl].[ConvertPeriodToStartAndEndDate] ?,?,? output, ? output
    Add a script task to check ssis variables values using,
    Msgbox(Dts.Variables("User::strExtractStartDate").Value)
    Do not forget to add the property "readOnlyVariables" as strExtractStartDate variable to check for only one variable.
    Regards, RSingh

  • Plz help me in this stored procedure

    Create a stored procedure called usp_OrderInsert. This stored procedure should accept all field values of the Orders table, including OrderID, as parameters. It should insert an order record into the Orders table.

    It would be helpful if you post the table structure and other details.Anyways please see the below
    create or replace procedure usp_OrderInsert(
    p_OrderID orders.OrderID%TYPE,
    IS
    declaration-
    begin
    Insert into orders (order_id,....)
    values(p_order_id,....);
    commit;
    exception
    when others then
    dbms_output.put_line(sqlerrm);
    end;

  • How to return a VARRAY datatype in a stored procedure

    I have declared a type using
    create type list1 as VARRAY(1000) of number(5);
    I want to return a list of values from a stored procedure. I created a stored procedure using
    create procedure getlist(mylist OUT list1) is
    begin
    end;
    The type and procedure creation was successful. But when I call this stored procedure from a PL/SQL module I get the following error.
    ORA-06531: Reference to uninitialized collection
    The PL/SQl module is
    declare
    s1 list1(1,2);
    begin
    getlist(s1);
    end;
    I want the procedure to return around 1000 values. Any solutions.
    Mohan
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by MOHAN [email protected]:
    I have declared a type using
    create type list1 as VARRAY(1000) of number(5);
    I want to return a list of values from a stored procedure. I created a stored procedure using
    create procedure getlist(mylist OUT list1) is
    begin
    end;
    The type and procedure creation was successful. But when I call this stored procedure from a PL/SQL module I get the following error.
    ORA-06531: Reference to uninitialized collection
    The PL/SQl module is
    declare
    s1 list1(1,2);
    begin
    getlist(s1);
    end;
    I want the procedure to return around 1000 values. Any solutions.
    Mohan<HR></BLOCKQUOTE>
    I am also having the same problem ..plzz help me someone
    null

  • Help me in this stored procedure

    Create a stored procedure called usp_OrderInsert. This stored procedure should accept all field values of the Orders table, including OrderID, as parameters. It should insert an order record into the Orders table.

    You have the requirements to build the stored procedure, what have you got so far?
    Post your attempt and any errors or issues that you might be experiencing. Writing the whole procedure for you (without the table structure even) is going to be difficult.

  • What is the problem with this Stored Procedure

    Hi ,
    What is the problem with this Stored Procedure ?Why is it giving errors ??
    CREATE or replace  PROCEDURE getEmpName
    *(EMP_FIRST OUT VARCHAR2(255))*
    BEGIN
    SELECT ename INTO EMP_FIRST
    FROM Emp
    WHERE EMPNO = 7369;
    END ;
    */*

    You don't specify precision in procedure arguments.
    (EMP_FIRST OUT VARCHAR2(255))should be
    (EMP_FIRST OUT VARCHAR2)Since you asked what's wrong with it, I could add that it needs formatting and the inconsistent use of upper and lower case is not helping readability.

  • How to set receiving batch mandatory in MIGO-mov type 303

    Hi gurus,
    We want to set receiving batch mandatory in MIGO-mov type 303.
    We already made this field (UMCHA) as Required in OMJJ under Field selection-Enjoy and Field selection (from 201)/Batch search procedure, but when do transaction, the field still not even appear. Can you help to know how to do that?
    Many thanks in advance

    Hello HongNguyen ,
    Please try the following customzing path in your system if you haven't already:
    - Transaction SPRO
       - IMG
         - Materials Management
          -  Inventory Management and Physical Inventory
            - Settings for Enjoy Transactios
               - Settings for Goods Movements (MIGO)
                  -   Field Selection per Mvt Type
    Please check your settings for Movement Type 303 and see if they are set to "Mandatory".
    I hope this information has been helpful.
    Best Regards,
    Frank

  • How to set field as Mandatory

    Hi,
    I want to set a field as mandatory. It we didn't give any data in a field and save it should not accept the null value how to set it.
    Regards,
    Madhavi

    Hi David,
    I wrote that code but the error comes where  oSBO and  bmt_Short comes. What should i do for that.
    And i gave a code for combo Mandatory
    Dim oForm2 As SAPbouiCOM.Form
                            Dim oCombo As SAPbouiCOM.ComboBox
                            oForm2 = SBO_Application.Forms.Item(pVal.FormUID)
                            oCombo = oForm2.Items.Item("cbocate").Specific
                            If oCombo.Selected.Value = "" Or oCombo.Selected.Value = Nothing Then
                                BubbleEvent = False
                                oCombo.Active = True
                                SBO_Application.SetStatusBarMessage("Category Code should not be left blank")
                            End If
    Its working but an error come 'Object Reference Not added to the Instance of an Object'
    But the same code is working for EditText without any error

  • How to set array length correctly in this case

      class RunJavaCode implements ActionListener{
        public void actionPerformed(ActionEvent e){
          try{
            Process proc=Runtime.getRuntime().exec("java javaapp");
            InputStream input=proc.getInputStream();
            byte[] b=new byte[3000];
            input.read(b);              
            String javaReport=new String(b);
            input.close();
            outputText.setText(javaReport);
          }catch(IOException ioex){System.out.println("IOException is "+ioex);}
      }how to set this array(byte[] b) length correctly? I mean this array length should not only save memory,but also enough to use('enough to use' mean that read outputed info from console to this byte array never overflow)

    Hi,
    you cannot know in advance, how many bytes will be read. But the read-method returns the number of bytes actually read and this is important!
    So at least you have to write:        int r = input.read(b);
            String javaReport=new String(b, 0, r); However, you still do not know, whether there is even more output available. You could however retrieve the data in a loop and append it e.g. to a StringBuffer, until EOF is encountered.

  • How do I retrieve a variable from a stored procedure in Access?

    Given a stored procedure like the one below,
    PROCEDURE getSomething(
                   pVar1           in float,
                   pVar2               in float,
                   pVar3               in float,
                   pVar4               in float,
                   pResults          out varchar2
    How would I retrieve the value in pResults using VBA on Access? Thanks.

    Using this, you can set the value to the session bean
    <c:set property="docID" target="${SessionBean1}" value="${pg_view_doc.hiddenField3.value}"/>
    But before that you have to create a property called docid in the sessionbean1.
    So once the property is set, through getDocID() method u can retrieve the value
    ex: String value=getSessionBean1().getDocID();
    will return the value in the required JSF Page bean

  • How do i handle out parameter from a stored procedure in a vb form?

    hi all,
    I want to return a varchar2(500) type of out parameter from a pl/sql stored procedure to a vb form?? how do i do this??
    regards
    akshay

    Well, when you create the parameter collection for your command object, just set the correct value for the direction component.
    You would set it to one of the below, depending on if the parameter is IN OUT or only OUT:
            <parameter_obj>.Direction = ParameterDirectionEnum.adParamInputOutput
            <parameter_obj>.Direction = ParameterDirectionEnum.adParamOutput

  • How to use signed classes/Jars in Java Stored Procedure?

    I am using java encryption API in my java application that I want to deploy as java stored procedure. The API is kept in the signed jar files.
    The Application is running in the MS-DOS environment but not in Oracle8i.
    It gives me following error.
    java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set
    up certs for trusted CAs
    at javax.crypto.b.<clinit>([DashoPro-V1.2-120198])
    at javax.crypto.KeyGenerator.getInstance([DashoPro-V1.2-120198])
    at DesKey.GenerateKey(DesKey.java:63)
    declare
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.ExceptionInInitializerError
    ORA-06512: at line 4
    (Note: I have enabled the java output in SQL Plus editor otherwise it will give only the second part of error that starts from ERROR at line 1:)
    please guide me how to solve this problem.
    Salman Hameed

    Salman,
    If you do not get a reply on this forum, I recommend you post this question on the Oracle JVM discussion forum as well.
    In addition, I would recommend checking the documentation for Oracle8i. The Oracle8i Java Developer's Guide, the Java Stored Procedures Guide, and the JDBC Developer's guide may have some information on this topic. You can get to this doc from the OTN Documentation page. Click on Oracle8i, then General Documentation, Release 2 (8.1.6), then scroll down to see the link for the Oracle8i Java Developer's documetation. All of the books mentioned above are available from that link.

  • How to convert simple SQL Select statements into Stored Procedures?

    Hi,
    How can I convert following SELECT statement into a Stored Procedure?
    SELECT a.empno, b.deptno
    FROM emp a, dept b
    WHERE a.deptno=b.deptno;
    Thanking in advance.
    Wajid

    stored procedure is nothing but a named PL/SQL block
    so you can do it like this see below example
    SQL> create or replace procedure emp_details is
      2  cursor c1 is SELECT a.empno, b.deptno
      3  FROM scott.emp a, scott.dept b
      4  WHERE a.deptno=b.deptno;
      5  begin for c2 in c1
      6  LOOP
      7  dbms_output.put_line('name is '||c2.empno);
      8  dbms_output.put_line('deptno is ' ||c2.deptno);
      9  END LOOP;
    10  END;
    11  /
    Procedure created.and to call it use like below
    SQL> begin
      2  emp_details;
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> set serveroutput on;
    SQL> /
    empno is 7839
    deptno is 10
    empno is 7698
    deptno is 30
    empno is 7782
    deptno is 10
    empno is 7566
    deptno is 20
    empno is 7654
    deptno is 30
    empno is 7499
    deptno is 30
    empno is 7844
    deptno is 30
    empno is 7900
    deptno is 30
    empno is 7521
    deptno is 30
    empno is 7902
    deptno is 20
    empno is 7369
    deptno is 20
    empno is 7788
    deptno is 20
    empno is 7876
    deptno is 20
    empno is 7934
    deptno is 10Edited by: Qwerty on Sep 17, 2009 8:37 PM

  • How to get tab delimited text file when Stored Procedure executes ?

    Hello Everyone,
    I have a stored procedure which returns 1 result set as an output.
    I want the output as a Tab Delimited Text file.
    I know that I can use SSIS and get the same output but I am not allowed to use SSIS in this case.
    Is there any other ways ?
    I will be really appreciate If someone can answer with, How many different ways I can get Tab delimited text file ?
    Thanks in advance
    Henary

    you can do that by using SQLCMD
    http://blog.sqlauthority.com/2013/03/05/sql-server-exporting-query-results-to-csv-using-sqlcmd/
    you can also use BCP 
    EXEC master..xp_cmdshell 'bcp "select * from tempdb.dbo.orders" queryout "c:\output.txt" -c -T'
    EXEC master..xp_cmdshell 'bcp "exec usertest.dbo.proctest" queryout "c:\output.txt" -c -T'
    --Prashanth

Maybe you are looking for

  • PR and PO attachment

    Hi Gurus, My organization need to attach quotation scanned copy to PR and PO.I have following questions regarding PR and PO attachment.can any expert focus light on them? Right now we have not Configured the Document Management System.Latter we want

  • HTTP response contains unexpected content-type(100,101) in SAP ADS?

    Hi, Our current landscape is SAP ECC EHP7 on SAP NW 7.40 and SAP ADS is installed on Central HUB system which is SAP NW 7.4 SP08 Java Stack System. We have done configuration on both ABAP & JAVA Stack but when we run FP_PDF_TEST_00 program in SE38 th

  • IChat is unable to connect using a .Mac account

    Hello, I have tried to connect using iChat and a .Mac account (no, I do not have an AIM membership and am only a .Mac member). When I tried to add a friend to the buddy list (there are only Bonjour and AIM lists available, but I'm a member of neither

  • Can I use my NZ iPhone 4 in Korea?

    My girlfriend and I both have iphones. Mine is from Vodafone NZ and I bought hers through the Apple store. In a few weeks time we will leave NZ to live in Daegu, Korea for a year. We would really appreciate it, if anyone knew what we should come to e

  • Trigger an outband call

    Hello! Not sure how should be the best approach for my scenario, I tried to look for it on google but it seems I'm not making the correct question. What I need: From a UCCX script I need to capture Calling ID and Customer Service Queue with the purpo