Question about BAPI function BAPI_PP_TIMETICKET

I would like to post a production order confirmation by using the function BAPI_PP_TIMETICKET, however, an error "Total confirmation quantity not equal to planned confirmation quantity" is raised.
However, when I did it manually in CO11N, I could save the transaction successfully despite "Total confirmation quantity not equal to planned confirmation quantity" since it was only a warning instead of error.
I would like to know how can I do the same using this function (or using other function?)? i.e. create the confirmation even though "Total confirmation quantity not equal to planned confirmation quantity". Thanks!

Hi ,
It  is Total Planned Qty. TYPO Error.
May be this code is Help ful :
this is a Sample Code Only :
CALL FUNCTION 'CO_DB_AFVG_SELECT_SINGLE'
    EXPORTING
      APLZL_IMP = WA_AFRU-APLZL        " afvc-aplzl
      AUFPL_IMP = WA_AFRU-AUFPL        " afvc-aufpl
    IMPORTING
      AFVGD_EXP = XAFVGD
    EXCEPTIONS
      NOT_FOUND = 1
      OTHERS    = 2.
  CLEAR XTTL_ACTIV.
  XAFVGD-MGVRG =  VAL.      " Confirmed Qty that you have selected or Yield Qty
  CALL FUNCTION 'CO_R0_DET_TOTAL_ACTIVITY'
    EXPORTING
      ACT_AFVGD             = XAFVGD
      ACT_FLG_CONSIDER_CONF = 'X'
      ACT_QUANTITY          = XAFVGD-MGVRG   "P_YIELD_QTY
      ACT_DATUM             = SY-DATUM
      ACT_ARBID             = WA_AFRU-ARBID
      ACT_WERKS             = WA_AFRU-WERKS
    IMPORTING
      EXP_ACTIVITIES        = XTTL_ACTIV
    EXCEPTIONS
      DIVISION_BY_ZERO      = 01.
*--populating BAPI tables
_____ Add values to BAPI tables
APPEND ZBAPI_PP_TIMETICKET.
  CLEAR ZBAPI_PP_TIMETICKET.
  CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
    EXPORTING
      POST_WRONG_ENTRIES = '0'
      TESTRUN            = ' '
    IMPORTING
      RETURN             = ZRETURN
    TABLES
      TIMETICKETS        = ZBAPI_PP_TIMETICKET
      DETAIL_RETURN      = ZBAPI_CORU_RETURN.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT = 'W'.
Need More help . Please let me know.
Regards,
Lanka

Similar Messages

  • Question about the function module (RFC_READ_TABLE)

    Dear everyone
    Could I ask you a question about the function module (RFC_READ_TABLE)?
    I was asked if it's possible to create a report which compares the data between different SAP systems (both production systems).
    Now, the easiest way would be to use the function module (RFC_READ_TABLE) within a SAP infoset query (SQ01 type query).
    But I heard the rumor that using the function module (RFC_READ_TABLE) is not advisable due to the security reason.
    However, I am not exactly sure what sort of security problems this function module can possibly have...
    Would you help me on this?
    I also would like to know if using "remote enabled module" type function module can always overcome this possible security issue.
    Or, are there any points that I need to be careful about even when I use "remote enabled module" function module?
    Thank you very much in advance.
    Takashi

    Dear Fred-san
    Thank you very much for your support on this.
    But, may I double check about what you mentioned above?
    So, what you were mentioning was that if some user executes the query with
    the function module (RFC_READ_TABLE), under the following conditions, he can access to
    the HR data even when he does not have the authorizations for HR transactions?
    <Conditions>
    1. the user has the authorization for HR database tables themselves
    2. RFC_READ_TABLE is called to retrieve the data from HR database
    <example>
    Data: LF_HR_TABLE like  DD02L-TABNAME value 'PA0000'.
    CALL FUNCTION 'RFC_READ_TABLE'
       EXPORTING
        query_table                = LF_HR_TABLE
      TABLES
       OPTIONS                    =
       fields                     =
       data                       =    .
    But then, as long as we call this function module for a non-critical tables such as
    VBAP (sales order) or EKKO (purchase order) within our query, it wouldn't seem to be
    so security risk to use RFC_READ_TABLE...
    Besides, each query (infoset query) has got the concept of user groups, which limits
    the access to the queries within the user group.
    ※If someone does not belong to the user group, he cannot execute the queries within that
       user group, etc
    So, my feeling is that even infoset queries does have authorization concept...
    Would you give me your thought on this?
    I also thank you for your information for SCU0.
    That is an interesting transaction
    Kind regards,
    Takashi

  • Question about Percent Function

    This kinda goes along with my question about the plus sign. That was answered by the fact it means there is more than can be displayed in the field with the plus sign. The problem I am having is all of the fields with the plus sign are formated to be PERCENT. These fields are filled in via the C# program. The values are calculated in the C# program and outputed to the PDF form in the form of 00.00 - 100.00. Thus if I am filling in these fields with values that are within a PERCENT range, then why are they showing a plus sign. I have even go as far as to wipe the field clean, re-do the Text box, re-format as PERCENT, with the text centered, and the No Calculation radio button set true. The only other thing I do these fields is set the FONT to 10 point or otherwise the huge in size.

    Thank you all for the help on this. What I found is:
    it is correct that the incoming value to a fillable field for a PERCENT must be between 0 and 1 BUT this is NOT the complete answer.
    If I filled the field with 33.33 then it will display  33.33 + which says the display is too big.
    If I filled the field with .3333 thin it will display .3333 without the PLUS sign, but is still not correct because the FORMAT is set to PERCENT.
    What I had to do is add the following JAVA script.
    // Custom Calculate script for text field
    (function () {
        // Get the field values
        var v1 = getField("NO_FEAR_ASSOC_WITH_TARGETED_DISABILITY_PERCENT_1").value;
        // Set this field value
        event.value = v1;
    Now if the input is .3333 the display is now 33.33% which is correct. Sense the JAVA Script is basicly a NOP, this tells me that the PERCENT format requires some kind of trigger. Sense a FILL is NOT a trigger, the display comes out incorrect.

  • Question about 2 functions.

    OK, new question from me.
    I have two functions, bassicly they are smilar, but the problem is that I need that second function to start up or become active, after certain amount of time or when "x" reaches 1000. How can I do this?
    And second question is, both functions make objects apper on stage in exact coordinates (5 spots), how can I make that objects woun't apper on the same spot, bassicly it would check if that position is occupied, it chooses other spot. (spot choosing is performed by random)
    Oh, and third question.
    I want to make the object to be active for two seconds, and then it disapper, my thought was to make tween, but couldn't find the type of appearance.

    1. You can check the condition to determine if you should do something, i.e.
    if (x >= 1000) {
        // do something
    2. First randomise an Array [Spot 1, Spot 2, Spot 3, Spot 4, Spot 5], then place your object to the spot in the order of the array item.
    3. My favorite way is to use TweenLite.delayedCall(). For example if you want to remove something in 2 seconds time you do:
    TweenLite.delayedCall(2, remove, [anObject]);
    function remove(displayObject:DisplayObject):DisplayObject {
        return removeChild(displayObject);
    (You can use Timer class etc for this but TweenLite wins always )

  • Question about sdo_relate function

    My application has to check if a point geometry is inside (MASK='ANYINTERACT') a polygon geometry. I am trying to figure out if sdo_relate function works with rectangle only or if it works with polygon. I have wrote a few sql test and it seems to work with polygons, but I dont know how it works.
    My question is, if the geometry is not a rectangle, why dont I have to use projection to project both geometry into a plane first?
    For example if I have a polygon (-140, 35, -139, 36, -139, 35, -140, 34, -140, 35) and a point(-139.3, 35.6) how does sdo_relate finds out if the point is within the polygon without projecting them?
    Thanks.

    how does oracle connects the points in a polygon that's not on the same latitude or longitude?Your question is a little ambiguous. What do you mean by 'not on the same latitude..'? Are you talking about different coordinate systems? Or do you just mean how does Oracle know whether your point is inside the polygon or not?
    If its the former then read:
    http://download-uk.oracle.com/docs/html/B14255_01/sdo_cs_concepts.htm#i882173
    If the latter, then suffice to say that Oracle Spatial knows how to work these things out in order to return the correct result.
    Have a read of the spatial concepts documentation:
    http://download-uk.oracle.com/docs/html/B14255_01/sdo_intro.htm

  • Another beginner question about targeting functions

    I've read what I thought was an excellent thread about scope in EA, but I'm still not getting some of the basics (btw the thread was http://forums.adobe.com/message/5287753#5287753).
    I have "slides" in the symbol library and in the main composition compositionReady script I've set up a generic script for playing back sound. That script works fine when I bind it within the compositionReady script to a symbol and click, so I know the funciton itself is fine. My question, I'm programmatically loading the slides from the library as I go along and want to use the generic function I created in the compositionReady script, but I can't seem to create the proper syntax to call the script. Here's some that I have tried. What is the correct syntax? The script is on frame inside the slide symbol.
    //sym.getComposition().getStage().playSound();
    //sym.getComposition().playSound();
    //Edge.getComposition("CER_1").playSound();

    Thanks for having a look. Yea, it's getting to the script fine but it doesn't like the syntax. Console always indicates javascript error, which is what happens when Edge throws an exception because it doesn't know what to do. The article that Elaine posted on above gives me the sense that it might be best to change the function to a variable, then it would be in scope to call but I have parameters I'd like to pass with it and I don't think  I can pass a parameter with to a variabalized (word?) function. I know it's just me moving from ActionScript to Edge JavaScript and scope. Whereas I could always find a homebase in ActionScript with the stage, it seems that the stage in Edge is just another symbol and calling a function within the stage is never getting there. Elaine hints at putting outside the stage closure and it would be accessible, which, of course, has led me to start readying JavaScript books and learning more about scope etc. It seems like that is life as a developer. I  dont' get that, oh, better take a day or two to  understand that concept, oh, that function works now, next problem. ;-)

  • Few questions about sql2008 functions and commands

    hello,
    I am learning sql2008 implementation and maintenance,I am just 2 weeks bussy.there is some questions in my mind wich I can't answer it.
    1-when I can use  USE MASTER statement
    2-can a database for example (test) have many and unlimmited file groups?
    3-what is the diferrence between file and filegroup! is the term of file means  tables in filegroup?
    4-with boundary points does mean the data type when creating partition function!
    5`what is diferrence between full text index and index,where you have to use the index and wher you have to use full text index?
    6-each filegroup must have one partition or one partition can have many filegroups in partition scheme!
    7-do you have to partition every scheme or not! where do you have to partition a scheme and where not?
    8-can you give a little example with switch operator!
    9-again do you have to partition every table and index in the real world or not!
    thanks
    johan
    h.david

    Hi,
    Let me try to answer your questions:
    You need to use USE MASTER whenever you need to do some work in the MASTER database and the database context is not that.
    Yes, a database can have many filegroups. Please check this article:
    http://msdn.microsoft.com/en-us/library/ms179316.aspx
    Please check this article:
    http://msdn.microsoft.com/en-us/library/ms179316.aspx
    As per BOL:
    boundary_value is a constant expression that can reference variables. This includes user-defined type variables, or functions and user-defined functions. It cannot reference Transact-SQL expressions.
    boundary_value must either match or be implicitly convertible to the data type supplied in
    input_parameter_type, and cannot be truncated during implicit conversion in a way that the size and scale of the value does not match that of its corresponding
    input_parameter_type. For more details check
    http://msdn.microsoft.com/en-us/library/ms187802.aspx
    For simplicity: Full-Text index is used to search in a LOB/text data in a column, index is used to speed up your queries. Please check these articles:
    http://msdn.microsoft.com/en-us/library/ms142571.aspx,
    http://msdn.microsoft.com/en-us/library/ms189271.aspx
    As per BOL: When you create a partition scheme, you define the filegroups where the table partitions are mapped, based on the parameters of the partition function. You must specify enough filegroups to hold the number of partitions. You can specify that
    all partitions map to a different filegroup, that some partitions map to a single filegroup, or that all partitions map to a single filegroup. You can also specify additional, "unassigned" filegroups in the event you want to add more partitions later. For
    more info, please check
    http://msdn.microsoft.com/en-us/library/ms188730.aspx
    8. Please read the concept of partitioning here:
    http://msdn.microsoft.com/en-us/library/ms190199.aspx and for SWITCH operator, please check the sliding window example at here:
    http://msdn.microsoft.com/en-us/library/aa964122(SQL.90).aspx
    9. It depends :) but you always will have at least 1 partition!
    I hope it helps.
    J.
    There are 10 type of people. Those who understand binary and those who do not.

  • Question about BAPI Performance

    I am currently evaluating options to implement interface between legacy systems and SAP. We have a requirement to post goodsmovement from external application. As some of my team claim that the BAPI approach can cause performance problems. I would like to cross check whether the claim is true.
    And if it is, May I have your advice how can we prevent such problem about performance?
    Ho w can I get additional source of information?
    Kindly advise.
    The BAPI which we are going to use is BAPI_GOODSMVT_CREATE
    Thank you

    No performance problem is there.
    Infact BAPI is advisable against BDC. Also since BAPI is like FM there is no issue.
    I am using it in lot of the objects we have created.
    Cheers
    Regards
    Nishant

  • Considering Purchase of Wacom Cintiq 27 HD Touch - Questions about Touch Functionality in Lightroom 5 & Photoshop CS6

    I am considering purchase of a Wacom Cintiq 27 HD Touch monitor. I have a few questions relative to two Adobe programs and their use of "touch" functionality - Lightroom 5.7 and Photoshop CS6 running on Windows 7.
    1. Have the problems related to touch functionality in Photoshop CS6 and Lightroom 5 been resolved that you see on this and Wacom's forums from a year ago?
    2. If so, is there enough value gained via touch functionality in Lightroom 5 and Photoshop CS6 to warrant the $500 difference in price between the Cintiq 27 HD vs HD Touch? (I realize that this is a subjective question based on the abundance of one's cash.)
    3. I plan to stay with CS6 as long as humanly possible to avoid a monthly software subscription, BUT I do wonder if purchasing the HD Touch now may provide additional touch functionality in future versions of these software products that are not currently available. (So this is a pie in the sky sort of question.)
    Thanks,
    Kent

    Photoshop Touch support is added in CC 2014.2.2.  However Wacom tablets like the Intuos Pro with touch can be use with prior versions of Photoshop and the Wacom Tablets Configurator can customized the tablets touch features to be used with Photoshop.  I do not use LR but I'm sure the same would be true for it. You can configure setting for many applications. The device driver knows which application its interfacing with and uses the setting set for each..
    I disable most of touch when using Photoshop.  The Main reason I have a tablet is Photoshop Brush type tools. Like eraser, clone stamp, etc nothing is better then a pen when it come to creating layer mask.  For most programs I still use a mouse and I use the Keyboard, Mouse and Pen with Photoshop....
    I never wanted a Cintig I like not having my hand  between my eyes and work. I not an artist though.

  • DML question about LAG function

    Hello,
    I am trying to get a month-to-date number on a value that is stored as YTD in the cube. That is, for today's month-to-date number, I want to subtract today's value, from last month's value. I am trying to do this with the following statement:
    data - lag(chgdims(data limit lmt(time to parents using time_parentrel)),1,time)
    I'm pretty new to DML, but I know that this is clearly not the correct formula. Does anyone have any ideas on how to do this?
    Thanks

    Dear Fred-san
    Thank you very much for your support on this.
    But, may I double check about what you mentioned above?
    So, what you were mentioning was that if some user executes the query with
    the function module (RFC_READ_TABLE), under the following conditions, he can access to
    the HR data even when he does not have the authorizations for HR transactions?
    <Conditions>
    1. the user has the authorization for HR database tables themselves
    2. RFC_READ_TABLE is called to retrieve the data from HR database
    <example>
    Data: LF_HR_TABLE like  DD02L-TABNAME value 'PA0000'.
    CALL FUNCTION 'RFC_READ_TABLE'
       EXPORTING
        query_table                = LF_HR_TABLE
      TABLES
       OPTIONS                    =
       fields                     =
       data                       =    .
    But then, as long as we call this function module for a non-critical tables such as
    VBAP (sales order) or EKKO (purchase order) within our query, it wouldn't seem to be
    so security risk to use RFC_READ_TABLE...
    Besides, each query (infoset query) has got the concept of user groups, which limits
    the access to the queries within the user group.
    ※If someone does not belong to the user group, he cannot execute the queries within that
       user group, etc
    So, my feeling is that even infoset queries does have authorization concept...
    Would you give me your thought on this?
    I also thank you for your information for SCU0.
    That is an interesting transaction
    Kind regards,
    Takashi

  • Odd question about BAPI to return doc number in BKPF-AWKEY ...

    One of my colleagues here needs to retrieve doc number from within AWKEY in BKPF.
    He knows he can do it with a simple select followed by a substring operation, but someone on the functional side is saying that it would be better if he could find an SAP-delivered FM or BAPI that returns the doc number within the AWKEY.
    Any one know whether there is an FM or a BAPI that performs this specific retrieval of doc number from within AWKEY?
    I don't see why there should be one, but maybe there is ....

    aRs -
    This is funny.
    The developer got back to me this morning - he does want to pass the awkey and get the docno.
    So the BAPI you suggested:
    BKK_RFC_GL_GET_DOCNO_BY_AWKEY
    is exactly what he wanted.
    Thanks again.
    Dave

  • Question about Export functions

    hi,
    i'm considering getting into STP but would like to know about its export functions especially when it comes to interchange projects with other DAWs in particular Pro Tools.
    What exactly are the import / export options?
    ie: OMF, AAF, AES31, etc...
    ideally i would want to do sound editing (for film work) in STP, then transfer the edit session to Pro Tools for the mix stage.
    thanks, manioca
    MacBook Pro   Mac OS X (10.4.6)  

    If your talking about Pro Tools HD, then who gives a **** about a simple program like this one! Don't waste peoples time who don't have spare change for plugins that actually work after paying for that kind of a system. Real players know that PTHD won't hold a candle to either profesional live or studio sets and little programs like Logic and Soundtrack pro are only the backup of the process. Soundtrack Pro is particularly suited for the finished project, going backwards from it is stupid beyond words.
    [and if you don't have PTHD then you're really lost in space here, this forum is for Soundtrack Pro.]
    PMacG5 2.Ghz iBookg4 1.42   Mac OS X (10.4.7)   2.5mem Singin'ShureLynx16x M-AOzonicProKeys88Motu896ARTubesGolden FCS-Lp 7.2.☮

  • Question about using Functions in BC4J

    I know that it is possible to call a store procedure from a ViewObject using a DataWebbean can I do the same thing but calling a function.
    Please I need to know, as soon as possible because I am working on it.

    Following are two ideas but to tell you truth still I am looking for better way.
    1-convert your function to a procedure and execute it as a procedure.
    2-Execute a direct select statement against database function as follow.
    String sQuery = "SELECT func_name() FROM dual";
    DbAccess db = SessionInfo1.getDbAccess();
    Object dynamicQueryRowsetAccess = db.executeRetrieval(sQuery,"infobus:/oracle/SessionInfo1/DynamicQuery",null);
    if ( dynamicQueryRowsetAccess instanceof ScrollableRowsetAccess ){
    ScrollableRowsetAccess rs = (ScrollableRowsetAccess)dynamicQueryRowsetAccess;
    if (rs.getRowCount() > 0){
    //take the value returned by function here
    null

  • Have a question about  using functions  in JSP 2.0

    Hello,
    Does someone try to create functions in JSP2.0?
    the following codes is from http://developer.java.sun.com/developer/technicalArticles/javaserverpages/JSP20/
    Code Sample:math.jsp
    <%@ taglib prefix="my" uri="http://jakarta.apache.org/tomcat/jsp2-example-taglib %>
    <HTML>
    <HEAD>
    <TITLE>Functions</TITLE>
    </HEAD>
    <BODY>
    <H3>Add Numbers</H3>
    <P>
    <FORM action="math.jsp" method="GET">
       X = <input type="text" name="x" value="${param["x"]}">
       <BR>
       Y = <input type="text" name="y" value="${param["y"]}">
       <input type="submit" value="Add Numbers">
    </FORM>
    <P>
    The sum is: ${my:add(param["x"],param["y"])}
    </BODY>
    </HTML>Compute.java
    package jsp2.examples.el;
    import java.util.*;
    public class Compute {
       public static int add(String x, String y) {
          int a = 0;
          int b = 0;
          try {
            a = Integer.parseInt(x);
            b = Integer.parseInt(y);
          }catch(Exception e) {}
          return a + b;
    }I put function tags in C:\Tomcat\webapps\jsp-examples\WEB-INF\jsp2\jsp2-example-taglib.tld
      <function>
            <description>add x and y</description>
            <name>add</name>
            <function-class>jsp2.examples.el.Compute</function-class>
            <function-signature>int add(java.lang.String,java.lang.String)</function-signature>
        </function>But get the error messages:
    The server encountered an internal error () that prevented it from fulfilling this request.
    org.apache.jasper.JasperException: /jsp2-tutorial/math.jsp(11,22) equal symbol expected
    Am I missing somethig?
    Thanks.

    Well, i think the code is perfectly fine , what you should look after : is there any servlet.jar exist in the jre/lib/ext on you java sdk ,you can determine whether EL 2 works by trying some jsp 2 examples provide with tomcat 5 alpha version .
    If it works , then it is not the alternative servlet.jar issue , most probably is your configuration errors.
    I have try my custom function and it worked well under tomcat 5 after resolving the earlier servlet.jar issue.
    By the way you don't have to put your tld file as described , simply place it under your /WEB-INF and edited your tomcat 5 web.xml to like my example given below .
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
    version="2.4">
    <display-name>Display Name of the application</display-name>
    <description>
    application name
    </description>
    <jsp-config>
    <taglib>
    <taglib-uri>
    your tld file
    </taglib-uri>
    <taglib-location>
    /WEB-INF/your tld file.tld
    </taglib-location>
    </taglib>
    </jsp-config>
    </web-app>
    Please give it a try and let me know whether it works , I will provide more assistance if required.

  • Question about Table Function inside a Package

    Hi … I am new in PL/SQL, I am trying to use a table function to create depending on a value passed to it (I am using 10g). Everything works great but the moment I add a parameter everything explode, I am creating it on a package.
    SQL that work
    CREATE OR REPLACE PACKAGE BODY financial_reports AS
    FUNCTION Fund_Amount
    RETURN financial_reports.Fund_Amount_Table
    pipelined parallel_enable IS
    cur_row financial_reports.Fund_Amount_Record;
    BEGIN
    FOR cur_row IN
    SELECT
    to_number(substr(bu5.usrdata, 1, 1)) As SECTION_ID
    ,to_number(substr(bu5.usrdata, 2, 1)) As SUB_SECTION_ID
    ,to_number(substr(bu5.usrdata, 4, 2)) AS LINE_NUMBER
    ,to_number(substr(bu5.usrdata, 7, 2)) As FUND_ID
    ,sum(be.amt) AS AMOUNT
    FROM
    linc.budgetdb_usr5@stjohnsfp bu5
    JOIN linc.budgetdb_event@stjohnsfp be ON
    bu5.keyvalue = be.acctno
    WHERE
    bu5.keyvalue like '__-__-__-____-____-_____'
    AND bu5.usrdata like '__-__-__'
    AND bu5.fieldnum = 1
    AND bu5.ispecname = 'GLMST'
    AND to_number(substr(bu5.usrdata, 7, 2)) = 1
    GROUP BY
    bu5.usrdata
    ORDER BY
    bu5.usrdata
    LOOP
    PIPE ROW(cur_row);
    END LOOP;
    END Fund_Amount;
    END financial_reports;
    SQL that do not work …
    CREATE OR REPLACE PACKAGE BODY financial_reports AS
    FUNCTION Fund_Amount (Fund_Id IN NUMBER)
    RETURN financial_reports.Fund_Amount_Table
    pipelined parallel_enable IS
    cur_row financial_reports.Fund_Amount_Record;
    fund_id_int NUMBER;
    BEGIN
    fund_id_int := Fund_Id;
    FOR cur_row IN
    SELECT
    to_number(substr(bu5.usrdata, 1, 1)) As SECTION_ID
    ,to_number(substr(bu5.usrdata, 2, 1)) As SUB_SECTION_ID
    ,to_number(substr(bu5.usrdata, 4, 2)) AS LINE_NUMBER
    ,to_number(substr(bu5.usrdata, 7, 2)) As FUND_ID
    ,sum(be.amt) AS AMOUNT
    FROM
    linc.budgetdb_usr5@stjohnsfp bu5
    JOIN linc.budgetdb_event@stjohnsfp be ON
    bu5.keyvalue = be.acctno
    WHERE
    bu5.keyvalue like '__-__-__-____-____-_____'
    AND bu5.usrdata like '__-__-__'
    AND bu5.fieldnum = 1
    AND bu5.ispecname = 'GLMST'
    AND to_number(substr(bu5.usrdata, 7, 2)) = fund_id_int
    GROUP BY
    bu5.usrdata
    ORDER BY
    bu5.usrdata
    LOOP
    PIPE ROW(cur_row);
    END LOOP;
    END Fund_Amount;
    END financial_reports;
    Error … (This works without the parameter)
    Error starting at line 43 in command:
    select * from table(financial_reports.Fund_Amount(1) )
    Error at Command Line:1 Column:14
    Error report:
    SQL Error: ORA-22905: cannot access rows from a non-nested table item
    Any help would be greatly appreciated

    try renaming your parameter so as not to confuse with what you are using in your column " to_number(substr(bu5.usrdata, 7, 2)) AS FUND_ID":
    CREATE OR REPLACE PACKAGE BODY financial_reports AS
      FUNCTION Fund_Amount (pFund_Id IN NUMBER)
        RETURN financial_reports.Fund_Amount_Table
        pipelined parallel_enable IS
        cur_row financial_reports.Fund_Amount_Record;
        fund_id_int NUMBER;
      BEGIN
        fund_id_int := pFund_Id;
        FOR cur_row IN ( SELECT to_number(substr(bu5.usrdata, 1, 1)) As SECTION_ID,
                                to_number(substr(bu5.usrdata, 2, 1)) As SUB_SECTION_ID,
                                to_number(substr(bu5.usrdata, 4, 2)) AS LINE_NUMBER,
                                to_number(substr(bu5.usrdata, 7, 2)) As FUND_ID,
                                sum(be.amt) AS AMOUNT
                           FROM linc.budgetdb_usr5@stjohnsfp bu5
                                  JOIN linc.budgetdb_event@stjohnsfp be ON bu5.keyvalue = be.acctno
                          WHERE bu5.keyvalue like '__-__-__-____-____-_____'
                            AND bu5.usrdata like '__-__-__'
                            AND bu5.fieldnum = 1
                            AND bu5.ispecname = 'GLMST'
                            AND to_number(substr(bu5.usrdata, 7, 2)) = fund_id_int
                         GROUP BY bu5.usrdata
                         ORDER BY bu5.usrdata ) LOOP
          PIPE ROW(cur_row);
        END LOOP;
      END Fund_Amount;
    END financial_reports;

Maybe you are looking for

  • My PC no longer recognises my HP lasaerjet 5100tn printer.

    Hi Windows 7 64-bit, HP laserjet 5100tn - parallel port to USB connection. I disconnected everything from my PC and hid it for security during  a recent holiday. When re-connecting I probably did not put things back in the same USB slots but everythi

  • Trouble installing Acrobat

    I am having the same problem ran uninstall and then the cleaner tool - cloud still says it is installed and won't reinstall it

  • Day Wise Depreciation Calculation Issue

    Hi Team, I have an issue regarding day wise depreciation calculation. I have selected Dep for the Day check box and it is calculating day wise depreciation but here it is taking as 366 days for base it should be 365 days (2011 is we have only 365 day

  • Where can I find the text fillColor for an empty TextFrame? [CS3]

    I've got a Javascript that needs the fillColor for text in a TextFrame. You can set the text fill color on an empty frame and InDesign will use that value when you enter text...but before you enter text, where can I get this value? Currently, for emp

  • Why does the colours change when I import a video?

    When I play my fresh footage in quicktime the colours look fine, as soon as I add the footage to final cut the colouring goes all odd. It has a Red tinge to it and the blues look as if they have turned to a sort of purple? They look like this in 'All