How can I Create function with an  out Parameter

how all
how can I Create function with an out Parameter
I try to create it it sucess but how can I CALL it , it give me error
please I want A simple example
thanks

3rd post on same question by same user :
Re: how can I Create function with an  out Parameter
how can I Create function with an  out Parameter

Similar Messages

  • How can I create banners with 100% height?

    I want the homepage to load with 100% height and there buttons that anchor to sections further down the website that I also want to be 100% height when scrolled to.

    3rd post on same question by same user :
    Re: how can I Create function with an  out Parameter
    how can I Create function with an  out Parameter

  • How can i create messenger with java tv API on STB

    deal all.
    how can i create messenger with java tv API on STB.
    how can Xlets communicate each other?
    how?
    i am interested in xlet communications with java tv.
    is it impossible or not?
    help all..

    You can create a messenger-style application using JavaTV fairly easily. JavaTV supports standard java.net, and so any IP-based connection is pretty easy to do. The hard part of the application will be text input, but people have been using cellphone keypads to send SMS messages for long enough that they're familiar with doing this. This doesn't work well for long messages, where you really need a decent keyboard, but for short SMS-type messages it's acceptable.
    The biggest problem that you need to work around is the return channel. Many receivers only have a dial-up connection, ties up the phone line and potentially costs people money if they don't get free local calls. Always-on return channels (e.g. ADSL or cable modem) are still pretty uncommon, so it's something that you nee to think about. Of course, if you do have an always-on connection then this problem just goes away.
    This is really one of those cases that's technically do-able, but the infrastructure may not be there to give users a good experience.
    Steve.

  • APEX Report - how can i create column with serial numbers in a report

    Need help
    I have created a report with displaying no of rows resticted to 43, every time i genarate this report i would like to add serial numbers from 6 to 48
    apear in additional column. How can i do this?

    This is not really an APEX question, and would have been better posted on the {forum:id=75} forum.
    Note also that the best way to get fast, effective answer to questions is to provide sufficient information for people to fully understand them:
    http://tkyte.blogspot.com/2005/06/how-to-ask-questions.html
    You should also ensure that your forum profile is updated with a better handle than "user8308442".
    Getting back to the question, one way to do this is using the analytic function ROW_NUMBER():
    with t as (
    -- Test data. Replace with actual query. ---------------------------------------
      select
                dbms_random.string('a', 10) query_data
      from
                dual
      connect
                by rownum <= 43)
    select
              5 + row_number() over (order by query_data) sn -- use required ordering here
            , t.query_data
    from
              t
    order by
              sn
    SN                     QUERY_DATA
    6                      CApoRenlch
    7                      CDiUiSYdMo
    8                      FsjsWFpTMT
    9                      KbbzXvYmQv
    10                     MrjEPqAzFs
    11                     QKOPSdVWpr
    12                     REIXjjdLtD
    13                     RijqpNTzmv
    14                     RngzthgaFv
    15                     SKcPxsdlBE
    16                     SuqFKzMqbB
    17                     TxlglIYENC
    18                     TyWlxKbDIg
    19                     VdRbUOUOPz
    20                     XIQxzkBuKY
    21                     YVcWUJrswt
    22                     aVoYNlMkfx
    23                     cHZPsOlzYM
    24                     cTUEztIOae
    25                     etdNGqQasP
    26                     fVGoGWmdLL
    27                     gHANXpbvMW
    28                     gRNBnwtEhO
    29                     iyefgszgLT
    30                     jRaliUJjKS
    31                     jpzAvQXBwY
    32                     kJifAaetUN
    33                     kfbTWGGCpR
    34                     mTPtqYGvrG
    35                     mhAPgdzezZ
    36                     pdXidmikRX
    37                     pwNdAsqpIV
    38                     rPTBTObdKg
    39                     sFoNLHLeMH
    40                     squTbOYVUM
    41                     tPxSMqPpnQ
    42                     uJtqCybjXB
    43                     vEvrwnGnyJ
    44                     xOOseicRRy
    45                     xqqXBKURog
    46                     ydOPurqyvo
    47                     yqEZvoNsbg
    48                     zsWFLHjVLK
    43 rows selected

  • How to define a function with table type parameter

    Hello All,
    Here is the requirement ..
    cursor c is select first_name, last_name , ssn from employee ;
    TYPE employee_type IS TABLE OF c%rowtype;
    tbl_employee_type employee_type;
    I want to pass the parameter to a function the ssn -: tbl_employee_type(1).ssn
    how the formal parameter should be declared
    ===========================
    function chk_notnull_blank ( ? ) return boolean is
    BEGIN
    if ( colname is NOT NULL and colname in ( -8E14, -7E14, -6E14, -5E14, -4E14, -3E14, -2E14, -1E14, -1E9 )) then
    RETURN TRUE ;
    else
    RETURN FALSE ;
    end if;
    END chk_notnull_blank;
    ======================
    pls advice
    thanks/kumar

    You cannot define a generic argument in a function,
    but you can overload several funtions with the same name and different types of arguments in a package,
    in this way (not tested):
    create table employees as
    select employee_id ssn, first_name, last_name from hr.employees;
    create or replace
    PACKAGE chk
    IS
      cursor c is select first_name, last_name , ssn from employees ;
      TYPE employee_type IS TABLE OF c%rowtype;
      TYPE employee_ssn_type IS TABLE OF employees.ssn%TYPE;
      TYPE employee_num_type IS TABLE OF number;
      FUNCTION chk_notnull_blank ( colname  employees.ssn%TYPE) RETURN boolean;
      FUNCTION chk_notnull_blank ( colnames  employee_type) RETURN boolean;
      FUNCTION chk_notnull_blank ( colnames  employee_ssn_type) RETURN boolean;
      FUNCTION chk_notnull_blank ( colnames  employee_num_type) RETURN boolean;
    END chk;
    create or replace
    PACKAGE BODY chk
    IS
      FUNCTION chk_notnull_blank ( colname  employees.ssn%TYPE) RETURN boolean IS
      BEGIN
        if ( colname is NOT NULL and colname in ( -8E14, -7E14, -6E14, -5E14, -4E14, -3E14, -2E14, -1E14, -1E9 )) then
          RETURN TRUE ;
        else
          RETURN FALSE ;
        END IF;
      END chk_notnull_blank;
      FUNCTION chk_notnull_blank ( colnames  employee_type) RETURN boolean IS
      BEGIN
         FOR i IN colnames.FIRST .. colnames.LAST LOOP
            IF NOT chk_notnull_blank( colnames( i ).ssn )
            THEN
               RETURN FALSE;
            END IF;
         END LOOP;
         RETURN true;
      END chk_notnull_blank;
      FUNCTION chk_notnull_blank ( colnames  employee_ssn_type) RETURN boolean
      IS
      BEGIN
         FOR i IN colnames.FIRST .. colnames.LAST LOOP
            IF NOT chk_notnull_blank( colnames( i ) )
            THEN
               RETURN FALSE;
            END IF;
         END LOOP;
         RETURN TRUE;
      END chk_notnull_blank; 
      FUNCTION chk_notnull_blank ( colnames  employee_num_type) RETURN boolean
      IS
      BEGIN
         FOR i IN colnames.FIRST .. colnames.LAST LOOP
            IF NOT chk_notnull_blank( colnames( i ) )
            THEN
               RETURN FALSE;
            END IF;
         END LOOP;
         RETURN TRUE;
      END chk_notnull_blank; 
    END chk;I assumed in this example that if the argument of the function chk_notnull_blank is of the table (collection) type,
    then the function returns true if all table elements pass the check, otherwise it returns false.

  • How to call a function with generic table parameter

    Hi everybody
    I need to call function module RSAR_ODS_API_GET (from BW). It recive an internal table with request ids and should return in E_T_DATA "unstructured" data from the psa and in E_T_RSFIELDTXT the description of the data structure, I guess
    from sap help only thing I have reggarding how to use the function module is :
    "You can call up the function module RSAR_ODS_API_GET with the list of request IDs given by the function module RSSM_API_REQUEST_GET. The function module RSAR_ODS_API_GET no longer recognizes InfoSources on the interface, rather it recognizes the request IDs instead. With the parameter I_T_SELECTIONS, you can restrict reading data records in the PSA table with reference to the fields of the transfer structure. In your program, the selections are filled and transferred to the parameter I_T_SELECTIONS.
    The import parameter causes the function module to output the data records in the parameter E_T_DATA. Data output is unstructured, since the function module RSAR_ODS_API_GET works generically, and therefore does not recognize the specific structure of the PSA. You can find information on the field in the PSA table using the parameter E_T_RSFIELDTXT."
    unfortunately I when running de report bellow, I get a dump which says:
    Function parameter "E_DATA" is unknown
    in the definition of the interface E_DATA has no type, which  means it can recive any table type, right?
    So I have two questions?
    1) How to get the code working
    2) How do I use the parameter E_T_RSFIELDTXT to parse the data returned in E_DATA
    by debuging RSSM_API_REQUEST_GET for this code I found it try to put an internal table with the struct of the database table /BIC/B0000151000 in E_DATA
    Thanks a lot for any help
    rgds
    my test report is:
    REPORT  ZTEST_PSA_API.
    TABLES: /BIC/B0000151000 .
    TYPE-POOLS: RSSM.
    TYPES: BEGIN OF STC_REQ_LINE,
      sign(1),
             option(2),
             low  TYPE rsa_request,
             high TYPE rsa_request,
             END OF STC_REQ_LINE,
      IT_REQUEST TYPE STC_REQ_LINE OCCURS 0.
    DATA: lit_request TYPE RSSM_T_API_REQUEST_GET WITH HEADER LINE,
          lc_system TYPE RSSM_T_API_LOGSYS,
          lit_request1 TYPE IT_REQUEST WITH HEADER LINE.
    DATA: lc_dtarget_name TYPE RSA_ODSNAME,
          lit_meta_data TYPE RSARC_T_RSFIELDTXT.
    DATA: lt_psa_data LIKE /BIC/B0000151000 OCCURS 0.
    CALL FUNCTION 'RSSM_API_REQUEST_GET'
      EXPORTING
        I_SOURCE    = '2LIS_13_VDITM'
        I_TYP       = 'D'
        I_DATEFROM  = '20060627'
      IMPORTING
        E_T_REQUEST = lit_request[]
        E_T_LOGSYS  = lc_system
        EXCEPTIONS  = 1.
    READ TABLE lit_request.
    lit_request1-sign = 'I'.
    lit_request1-option = 'EQ'.
    lit_request1-low = lit_request-request .
    APPEND lit_request1 .
    break-point .
    CALL FUNCTION 'RSAR_ODS_API_GET'
      EXPORTING
        I_T_REQUEST = lit_request1[]
      IMPORTING
        E_ODSNAME = lc_dtarget_name
        E_T_RSFIELDTXT = lit_meta_data
      TABLES
        E_DATA = lt_psa_data
      EXCEPTIONS
        NO_DATA_FOUND = 1
        PARAMETER_FAILURE = 2
        REQUEST_NOT_AVAILABLE = 3
        NO_REQUEST_FOUND = 4
        NO_FIELDS_TO_ODS = 5
        NO_ODS_FOUND = 6
        PACKAGE_LOCKED_BY_LOADING = 7 .

    Try to pass table parameter without "[]" :
    CALL FUNCTION 'RSAR_ODS_API_GET'
    EXPORTING
    I_T_REQUEST = lit_request1
    IMPORTING
    E_ODSNAME = lc_dtarget_name
    E_T_RSFIELDTXT = lit_meta_data
    TABLES
    E_DATA = lt_psa_data

  • I have a MacBook and created a slideshow on IPhoto. I made copies (discs) of the slideshow and they did not come out well...how can I create discs with the same quality as the original?

    I created an IPhoto slideshow.... the quality was wonderful on my MacBook and through my projector. I was told to export to my desktop and create copies via IDVD. I did that and the copies are terrible quality. 1. How to I make a copy to look exactly like the original and 2. I do I save as a backup should my Mac crash? Please.... this took a long time to create and I really need help. Thanks!

    Why is there no iDVD on my new Mac? How do I get it and how do I install it?
    https://discussions.apple.com/docs/DOC-3673

  • How can I create pages with different backgrounds

    Hello,
    I'm creating flash site which will have different backgrounds for each page. I'll load the individual pages with "MovieClipLoader." My understanding about MovieClipLoaders is that, it doesn't matter the background of your mc, the page to which you are loading will maintain it's background.
    How do I achieve that?
    Thank you!

    Hello,
    Thanks for the reply, I think it's a very good suggestion. I'm going to try it out and I hope to fill you in.
    Thanks once again.

  • How can I create Hyperlinks with a Fixed-Ratio EPUB?

    I am using InDesign 2014's fixed ratio epub exporter. It looks great but all my hyperlinks are lost and I can't find any resources on how to maintain them or to recreate them in a reader program, if possible. Any help much appreciated?

    Are the hyperlinks you want to make supposed to go to specific pages of the document, or to a url.
    If it's to go to pages of the document, then click the Create Bookmarks when creating the TOC, it's in the bottom left, you may need to Show Options in the TOC dialog box.
    If it's for a URL, or to link to a different page other than what the TOC points to, then you can
    New Hyperlink Destination
    Choose URL/Page
    Insert a unique name
    Insert the url/page no.
    Then say ok
    Go to Hyperlink Options
    Type: URL
    Name: Choose the unique name you've created
    URL: it should show up as what you've put in the Name, if not just type it in
    similar for page no.
    Remember to inlcude bookmarks and hyperlinks when creating the PDF too.

  • How can i create groups with my contacts?

    I am wondering if apple has made it possible to add groups to my contacts. It takes forever to send one message to 30 people when you have to select them individually from your contacts. Also worry about missing one of the contacts that needs the message. Any help or news?

    I don't know if there is a limitation to the number of characters you can have in an email address line in contacts, but you could try the following:
    Create a list of email addresses in notepad separated in by commas.  Highlight and copy the list.  Create a new contact.  Paste the list into one of the email fields. Create a new email and select the new entry from the contact list.  When you send the email you will get a message indicating that the emal address appears to be invalid.  Tap the send any way button.

  • How can I create projects with identical settings?

    Hi,
    I'm using FM10 and RH9 and have just completed my first project of generating WebHelp output
    from a framemaker book. Hopefully, completed subeject to feedback...
    I now have three other manuals to produce, much larger and more detailed, but with almost
    identical settings. What is the easiest way to ensure that I keep all the settings I've made in
    RH in the new projects, without duplicating all the effort. Could anyone pass on any tips please.
    Also, can anyone let me know if there's anything I should be careful to avoid when trying to
    duplicate settings for projects.
    Many thanks in advance & best wishes,
    Karen
    PS Apologies for the duplicate posting, have just been advised this would be better here than in RH HTML.

    And now, for an answer to the question!
    Basically you would just copy your desired project to a new folder. Then rename it. Then you would re-link to the new Frame stuff and do as Jeff suggested and use an ISF. (I think)
    I'm a bit confused with the ISF bit, so others will have to guide you on that aspect.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to call a procedure with SYS_REFCURSOR OUT parameter

    Hi,
    Using Oracle 11g R2.
    I'd like to know if it is possible to display the results of a SYS_REFCURSOR in a query. For example, if I had the following stored procedure
    create or replace procedure testprocedure (result OUT sys_refcursor)
    as
    begin
       open result for
          select 1 from dual
          union all
          select 2 from dual;
    end;
    I'd like to call this procedure similar to the way a query is called and executed. Like this
    select * from testprocedure
    I've seen plenty of examples on the web which show how it is possible to loop through results of a sys_refcursor inside of an anonymous block and display the results using dbms_output.putline, but this isn't the method I am looking for.

    I'd like to know if it is possible to display the results of a SYS_REFCURSOR in a query. For example, if I had the following stored procedure
    No - you can only use schema object types (SQL) in SQL queries and only then if you call a function.
    The function can return a SQL collection type or it can be a PIPELINED function whose return value is a SQL collection type. Either way your query will use the TABLE function and be of the form:
    select * from TABLE(testfunction);
    This is sample code for a PIPELINED function based on the SCOTT.EMP table. The function takes a department number parameter and returns the EMP rows for that department:
    -- type to match emp record
    create or replace type emp_scalar_type as object
      (EMPNO NUMBER(4) ,
       ENAME VARCHAR2(10),
       JOB VARCHAR2(9),
       MGR NUMBER(4),
       HIREDATE DATE,
       SAL NUMBER(7, 2),
       COMM NUMBER(7, 2),
       DEPTNO NUMBER(2)
    -- table of emp records
    create or replace type emp_table_type as table of emp_scalar_type
    -- pipelined function
    create or replace function get_emp( p_deptno in number )
      return emp_table_type
      PIPELINED
      as
       TYPE EmpCurTyp IS REF CURSOR RETURN emp%ROWTYPE;
        emp_cv EmpCurTyp;
        l_rec  emp%rowtype;
      begin
        open emp_cv for select * from emp where deptno = p_deptno;
        loop
          fetch emp_cv into l_rec;
          exit when (emp_cv%notfound);
          pipe row( emp_scalar_type( l_rec.empno, LOWER(l_rec.ename),
              l_rec.job, l_rec.mgr, l_rec.hiredate, l_rec.sal, l_rec.comm, l_rec.deptno ) );
        end loop;
        return;
      end;
    select * from table(get_emp(20))

  • How can we create a table with more than 64 fields in the default DB?

    Dear sirs,
    I am taking part in the process of migrating a J2ee application from JBoss to SAP Server. I have imported the ejb project.
    I have an entity bean with 79 CMP fields. i have created the bean and created the table for the same also. but when i tried to build the dictionary, i am getting an error message as given below,
    "Dictionary Generation: DB2:checkNumberOfColumns (primary key of table IMP_MANDANT): number of columns (79) greater than allowed maximum (64) IMP_MANDANT.dtdbtable MyAtlasDictionary/src/packages"
    Is it mean that we can not create tables with fields more than 64?
    How can i create tables with more than 64 fields?
    Kindly help,
    Thankyou,
    Sudheesh...

    Hi,
      I found a link in the help site which says its 1024 (without key 1023).
    http://help.sap.com/saphelp_nw04s/helpdata/en/f6/069940ccd42a54e10000000a1550b0/content.htm
      Not sure about any limit of 64 columns.
    Regards,
    S.Divakar

  • Why i can't create PDF with right format by LiveCycle?

    Hello,
    As we know that PDF format has four sections, the header, object body, cross-reference table and trailer.
    But after I create a PDF by Adobe LiveCycle, and open it by UltraEdit or Notepad, I cannot find the cross-reference table and some objects, “trailer” word either .
    I try to download several PDF files by follow link:
    https://my.adobeconnect.com/_a295153/p10077996/?launcher=false&fcsContent=true&pbMode=norm al ,
    and open them as the same way as before, it was the normal format I learn.
    So, why my PDF is not the right format? And how can I create PDF with right format?
    Thank you a lot!
    Ellie

    Adobe LiveCycle Designer makes XFA forms - a thin PDF wrapper around XML, no useful PDF page objects. Still, they are valid PDF. Like any PDF, you might not find a trailer or xref if a cross reference stream is used. See ISO 3200-1 7.5.8 "Cross-Reference Streams".

  • How can I create a DVD and/or share (email, etc.) a slideshow I created with iPhoto?

    How can I create and/or share a slideshow I made with iPhoto?...Thanks!

    I am sure there is a way however I don't use iPhoto, you may want to repost on the iPhoto forums which is where the iPhoto gurus hang out.

Maybe you are looking for

  • Itunes won't open no error

    I downloaded the newest version of iTunes and while it seemed to work (no errors) and Quicktime works fine, when I click on the iTunes icon it will not open. All it does is flashes and momentarily the icon changes to a pic of a sheet of paper but the

  • A problem in downloading a DRM pdf file.

    Hi, Today I purchased an ebook via Kobo's site: http://www.kobobooks.com/ebook/Applied-Natural-Language-Processing-Identification/book-dR0 XnmDKKk27gMjojat8DQ/page1.html It is in my library and when I go to ADOBE DRM PDF in order to download it and r

  • Making Preview the default pdf reader

    For some reason, some pdf files try to open with Safari as the default reader. The only way I can use Preview in this instance is to save the file, then I get an option to open with preview. How do I make Preview the default reader for pdf files?

  • Devtools 0.5.1-1

    Good morning Sinze Yesterday afternoon, the devtools 0.5.1-1 are not in "extra" and also not in "testing"! Somebody can fixing it please [root@arch-01 jada]# pacman -Syu :: Synchronizing package databases... core is up to date extra is up to date com

  • Blocking of Duplicate Customer Ref Number in AR Invoice

    Good Morning Experts, Just want to know how to block duplicate customer reference number in AR Invoice Entry.  System is currently give message that "Customer ref number already exists in this document type..".  My set up for Document Remarks Include