CANNOT TRANSFER DATA IN OWN TYPE TO BI PUBLISHER

Hi!
I created type like
create or replace
type fee_rec is object (
total_atm       NUMBER(23,5),
total_pvn       NUMBER(23,5),
total_settl_atm NUMBER(23,5),
total_settl_pvn NUMBER(23,5));
Then I created function in a package like
FUNCTION ncredfee (PDATEFROM IN varchar2,PDATETO IN varchar2)
RETURN fee_rec
IS
fee fee_rec:=fee_rec(0,0,0,0);
+...+
BEGIN
+'''+
RETURN fee;
END ncredfee;
When I issue query like this in database
select tst.ncredfee('01-08-2011','31-08-2011') as A from dual;
I get following
PRBB.FEE_REC(785933.78,1230.05,67816624.2,120170.27)
and everything works well.
But When I paste this query in a data model section there is no data when I execute the report.
+<ROWSET>+
+<ROW>+
+<A/>+
+</ROW>+
+</ROWSET>+
I tried sql query data model and data template data model but neither didn't work.
I am able to generate xml in database like
select SYS_XMLGEN(tst.ncredfee('01-08-2011','31-08-2011')) as a from dual;
But I cannot tranfer it to BI Publisher because it looks like
+<?xml version="1.0"?>+
+<ROW>+
+<TOTAL_ATM>785933,78</TOTAL_ATM>+
+<TOTAL_PVN>1230,05</TOTAL_PVN>+
+<TOTAL_SETTL_ATM>67816624,2</TOTAL_SETTL_ATM>+
+<TOTAL_SETTL_PVN>120170,27</TOTAL_SETTL_PVN>+
+</ROW>+
when I apply SYS_XMLGEN function to output.
Could anyone please help me to solve this problem?
How do I transfer data to BI Publisher?
thanks in advance.
BI EE
Release 10.1.3.4
Edited by: Ruslan on 18.11.2011 0:10
Edited by: Ruslan on 18.11.2011 0:50

Solved it=) Generated XML
SELECT
xmlelement("TEST",inner.a).getClobval() ta
FROM (
select tst.ncredfee('01-08-2011','31-08-2011') as a from dual
) inner
Worked for me

Similar Messages

  • HOW TO TRANSFER DATA FROM CHAR TYPE TO NON CHAR TYPE

    HI EXPORTS,
             THIS IS SASIDHAR, I HAD UPLOADED DATA FROM FLAT FILE INTO DYNAMICAL INTERNAL TABLE NAME <T_UPLOAD>. THIS INTERNAL TABLE FIELDS ARE CONVERTED INTO CHAR TYPE FIELDS. NOW I HAVE TO TRANSFER THIS DATA INTO ANOTHER INTERNAL TABLE  <DYN_TABLE> WHICH CONTAINS BOTH CHARACTER AND NON CHARACTER FIELDS. PLEASE ANY ONE GUIDE ME REGARDING THIS ISSUE.
    THANKS AND REGARDS
    SASIDHAR.V

    there is no specific CASTING operation in ABAP, so just do following:
    non-char-field = char-field.
    as long as it is possible ABAP does implicit casting and you dont have to care about anything.

  • I cannot transfer data from my external hard drive to my new mac

    I had to get a new hard drive put into my macbook pro because it was failing. So, I moved all my data onto an external hard drive so I would not lose anything. But now I cannot get iphoto or imovie back onto my computer. It says I cannot open it because it is a time machine back up. I don't want to have to purchase iPhoto and iMovie again just because I had to replace my hard drive.

    Copying the files directly from a Time Machine backup may be possible but I don't recommend it. Your new hard disk is essentially a new computer to Time Machine, and it will have problems understanding where to put the individual files. What you're trying to do is just not the right way to go about it.
    To restore from a Time Machine backup, boot Lion Recovery and select "Restore from Time Machine backup".
    See Pondini's explanation here: http://pondini.org/TM/14.html

  • EA3500 Phones can connect to wireless router, but cannot transfer data

    Ok, Since Cisco is completely helpless on helping me (this is why we are switching from Cisco stuff to other brands like Aruba at my work) I was thinking you guys would help me.  I got hanged up twice on this problem.  TWICE.
    So, my phone and my friends phones can connect to the wifi but I cannot receive nor send data from it.  The phones work completely fine elsewhere.  Here is the kicker, my computer works completely OK on the router and my phone used to work for 3-4 hours before this issue started going again.  Now it is constantly.  I restarted the modem, default reset it and still nothing.  I get an IP address too and it stays connected.  Any help.  Cisco thinks its the phone, but its multiple phones that are having the problem and my phone and other works completely fine at other places.

    The quickest way to get your phones working is to configure them staticly. More than likely........either your modem, your firewall, your router, or your ISP is blocking the proxy. Try using Google Public DNS. 8.8.8.8 and 8.8.4.4 Disable any proxy blocking features of your modem or firewall.
    Sometimes simply changing the DNS on your router to Google Public DNS might fix the problem.
    http://www.ehow.com/how_8275878_put-static-ip-iphone.html
    http://unlockforus.blogspot.com/2012/05/how-to-use-static-ip-address-at-android.html
    http://homekb.cisco.com/Cisco2/GetArticle.aspx?docid=816d2158e9e84c6da97fc236b4234ae2_3954.xml&pid=8

  • Mac Outlook 2011 crashes when trying to export; cannot transfer data to Mac Outlook 365

    I downloaded the new Outlook 365 for the Mac, but I want to transfer all my Mac Outlook 2011 data into it. It doesn't seem to read that there is any Outlook 2011 data on my computer, so I attempted to go into Outlook 2011 and export all email data. Unfortunately
    it crashes the program every time, without any message that a normal human being can interpret. So I'm stuck on Outlook 2011 right now.
    I have tried rebuilding my identity from scratch in Outlook 2011 and it did nothing to solve the problem, except make my "Unread Emails" smartfolder stop working (it no longer refreshes, and shows both read and unread emails and no new emails).
    So in trying to solve one problem I caused another.

    Hi,
    For Outlook for Mac for Office 365, we recommend you remove Outlook for Mac 2011 before installing it. If you installed it side-by-side with Outlook 2011, you can import data from it after the installation, but you should be aware of these
    known issues in Outlook for Mac for Office 365 first.
    For the detailed steps on how to import data from Outlook for Mac 2011, please take a look at this article:
    http://office.microsoft.com/en-sg/mac-outlook-help/import-items-into-outlook-for-mac-for-office-365-HA104375761.aspx
    Please note that since you've already made some attempts in Outlook 2011 which introduced some issues, I'd suggest you to post in the forum of
    Office for Mac to get those issues addressed first.
    Current forum only focuses on questions and feedback for
    Windows-based Microsoft Office client. Any further issues about this, please post in the forum of
    Office for Mac, where you can get more experienced responses:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011?tab=Threads
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Transfer data from one type of table to another

    Can some kind soul put me out of my misery and explain how I can get the data from Table1 to Table2
    I'm really struggling!
    Table1
    MerchID
    MatchesSKU
    1
    BR34
    1
    BD16
    2
    DE11
    3
    HB12
    3
    DX15
    3
    DR19
    Table2
    MerchID
    MatchesSKU1
    MatchesSKU2
    MatchesSKU3
    1
    BR34
    BD16
    2
    DE11
    3
    HB12
    DX15
    DR19

    I've got a page which shows a piece of merchandise in detail. Below that is a section called "you may also like..." and it shows 3 matching items to the main merchandise.
    I currently hold the matching data in a table like Table1 but I've been getting some performance issues and have narrowed it down to the query that gets the 3 matches.
    I was thinking if I place the 3 matching merchID's into the corresponding row of the main merchandise being shown, it saves hitting the database for the 3 matching items?
    Here's the SQL used to find the matching items
              SELECT *
              FROM merchandise
              INNER JOIN matches_with
              ON merchandise.supplier_code = matches_with.matches_with_supplier_code
              WHERE matches_with.merchandise_ID = '#URL.ProductID#'
    I limit the CFQUERY to MAXROWS=3

  • Can i transfer data from one icloud itunes account to another

    my son has used my i cloud to back up his school work and would like to transfer it to his i cloud account so he can use it on his other devices , computer etc
    is this possible?
    I have very little on the i cloud account but do use it for photos etc

    You cannot transfer data from one account to another.

  • How do i transfer data from my usb to android phone on mac book pro

    Hi,
    I cannot transfer data from my usb to my samsung galaxy note on mac book pro.Please help me solve this issue.
    Thanks
    Arshad Azeez

    What are you trying to transfer? What does the manual say for the Samsung to get whatever data it is that you want to transfer from one device to the other? This may be something you want to ask in a Samsung forum, since you are trying to manipulate a Samsung phone.

  • Cannot transfer transactional data

    Hi Experts,
    I really need your help regarding this incident.
    I am having problems with the APO system. I cannot transfer the transactional datas from APO to R/3. However, I am able to successfully transfer the transactional data from R/3 to APO. When I had run /SAPAPO/CCR, it returns the error "No Active Integration Model". Isn't it that integration models are only configured in R/3? I think the integration models in R/3 are properly created coz I am able to transfer the transactional data from R/3 to APO.
    I would really very much appreciate your help.
    Thanks again.
    Sincerely yours,
    Ria

    Hi Ria,
    Suggest you to again review CIF setting and make sure right logical system is defined :
    CIF Settings in R/3 :
    Check ALE settings or activate ALE settings
    Define the logical system BD54
    Assign logical system to a client SCC4
    Set the RFC destination SM59
    Assign target system and queue type CFC1
    Maintain the SAP APO release NDV2
    Activate BTEs for SAP APO integration BF11
    User parameters for CIF CFC2
    CIF Settings in APO :
    Check ALE settings or activate ALE settings
    Define the logical system BD54
    Assign logical system to a client SCC4
    Set the RFC destination SM59
    Set up business system group
    Create BSG /SAPAPO/C1
    Assign logical systems to BSG /SAPAPO/C2
    Maintain distribution definitions /SAPAPO/CP1
    User parameters for CIF /SAPAPO/C4
    Make sure you have right setting in SAPAPO/C4
    Logging :Detail
    Debug : Debugging off
    Also check in SM58 for any error and SM59 for connect and check below thread
    APO with Variant Configuration - Characterisitcs based SNP
    Manish

  • Error message "Data cannot be maintained for set type COMM_PR_PUR_1

    Hi
    While replicating the material master through R3AS I am getting an error for which the details to be checked in SMW01. In SMW01 when I selected the record for error details I am getting above error message.  How to resolve ? Pls guide me stepwise. For your information I has cleared SMQ1 in R3 & SMQ2 in SRM
    For curioisity next I selected all such error logs & deleted. It gave me one warning (some inconstinecies error) which I ignored. After that I checked SMQ1 of R3 & SMQ2 of SRM. No log
    But I observed a strange thing. Whatever material codes I am creating it is going straightway to SRM without running R3AS transaction. I checked R3AM1, selected the row and cancelled. But still going without any interferrance. Why ? How shall I stop this.
    Thanks

    Hello,
    >
    BNR wrote:
    > Hi
    > While replicating the material master through R3AS I am getting an error for which the details to be checked in SMW01. In SMW01 when I selected the record for error details I am getting above error message.  How to resolve ? Pls guide me stepwise. For your information I has cleared SMQ1 in R3 & SMQ2 in SRM
    >(...)
    Have a look at OSS note 1049693 - Data cannot be maintained for set type COMM_PR_PUR_1.
    Regards.
    Laurent.

  • How to transfer data from macbook pro to an external hard drive, im using (WD 1TB 3.0) ???. I cannot copy anything from my mac to it not a single file.

    how to transfer data from macbook pro to an external hard drive, im using (WD 1TB 3.0) ???. I cannot copy anything from my mac to it not a single file.

    ok - since you'll be sharing it with a PC - connect it to your windows pc - then format from there - instead of NTFS format - choose exFAT.
    or, you can read the link below on how to do it in dos mode.
    http://answers.microsoft.com/en-us/windows/forum/windows_7-files/how-can-i-forma t-external-drive-in-exfat-not-in/0f6bf19a-19d6-4470-ae05-53ddf26bb476?msgId=1860 eae3-3488-4eea-8326-f87b89d9851b
    once you've formatted it - you can now use it in both your macbook and windows computer.

  • Cannot create a date in cfformitem type="script"

    I tried to create date variables using "new Date" in
    cfformitem type="script" and got an error about the "new" reserver
    word. Therefore, I removed the "new" and tested the script. It
    worked with the wrong result because the todayDate and selectedDate
    in the CheckDate2 were the same. By some reason, it ignored all the
    input parameters. However, everything worked fine in the
    cfsavecontent.
    Anyone has idea? Thanks in advance.
    Here is the script:
    <cfsavecontent variable="CheckDate1">
    var todayDate = new Date(myForm.todayYear,
    myForm.todayMonth, myForm.todayDate, 0, 0, 0, 0);
    var selectedDate = new Date(
    myForm.select_date1.substr(6, 4),
    myForm.select_date1.substr(0, 2) - 1,
    myForm.select_date1.substr(3, 2),
    0, 0, 0, 0
    alert("Today's Date in the cfsavecontent:\n" + todayDate +
    "\n\n" +
    "Seleced Date in the cfsavecontent:\n" + selectedDate);
    if (selectedDate > todayDate)
    alert("You cannot select a date greater than today's date");
    else
    alert("You are ok.");
    </cfsavecontent>
    <cfform name="myForm" format="Flash">
    <cfformitem type="script">
    function CheckDate2():Void
    var todayDate = Date(myForm.todayYear, myForm.todayMonth,
    myForm.todayDate, 0, 0, 0, 0);
    var selectedDate = Date(
    myForm.select_date2.substr(6, 4),
    myForm.select_date2.substr(0, 2) - 1,
    myForm.select_date2.substr(3, 2),
    0, 0, 0, 0
    alert("Today's Date in the cfformitem:\n" + todayDate +
    "\n\n" +
    "Seleced Date in the cfformitem:\n" + selectedDate);
    if (selectedDate > todayDate)
    alert("You cannot select a date greater than today's date");
    else
    alert("You are ok.");
    </cfformitem>
    <CFCALENDAR name="select_date1" height="150" width="310"
    onchange="#CheckDate1#">
    <CFCALENDAR name="select_date2" height="150" width="310"
    onchange="CheckDate2()">
    <cfinput type="text" name="todayYear"
    value="#DateFormat(Now(), 'yyyy')#" label="todayYear">
    <cfinput type="text" name="todayMonth"
    value="#DateFormat(Now(), 'm') - 1#" label="todayMonth">
    <cfinput type="text" name="todayDate"
    value="#DateFormat(Now(), 'd')#" label="todayDate">
    </cfform>

    > I am using CF 7.0.2.
    Good. That's that sorted.
    > The problem is the cfformitem does not allow
    “new” or other reserved words
    As I'm sure you're already aware, it is so by design. For
    security reasons, the Coldfusion Flash form compiler does not allow
    the creation of objects in an event handler. It therefore prohibits
    the use of the "new" keyword in an event handler script. In fact,
    It may not even allow its occurrence in a comment!
    > When I put the function in a .as file and include it in the
    CFM file or use
    > cfsavecontent to store the as function, the CF compiler
    accepts the reserved
    > word “new” and the script works fine.
    It's a hack, one design gremlin that got away. In programming
    as in nature there are (un)lucky accidents.
    > the Date constructor ignores the input parameters and
    creates the
    > current system date in the date objects.
    We should be glad it even gets that far. Without the "new"
    keyword, it should not be possible to create a new Date object. The
    flash compiler encounters a familiar constructor pattern, and
    simply makes do by creating the default date of today, right down
    to hours, minutes and seconds. Your arguments are ignored.
    Thus, the following will all return the same result, namely,
    the date of today.
    var todayDate = Date(myForm.todayYear, myForm.todayMonth,
    myForm.todayDate, 0, 0, 0, 0);
    var todayDate = Date(myForm.todayYear, myForm.todayMonth,
    myForm.todayDate);
    var todayDate = Date(0);
    var todayDate = Date(100000000000);
    var todayDate = Date();
    Even then, the todayDate variable doesn't behave properly
    like a Date object. For example, function calls like
    todayDate.getDate() fail. Comparing dates also fails. That is
    possibly because the machine cannot cast the todayDate variable.
    However, here is an approach that does what you want.
    <cfformitem type="script">
    function CheckDate2() {
    var todayDate:Date = Date();
    var todayDateInMillis =
    Date.UTC(myForm.todayYear,myForm.todayMonth,myForm.todayDate);
    var selected_date:Date = select_date2.selectedDate;
    var selected_dateInMillis = selected_date.getTime();
    alert("Today's Date from cfformitem tag :\n" + todayDate +
    "\n\n" + "Selected Date from cfformitem tag:\n" + selected_date);
    if (selected_dateInMillis > todayDateInMillis) alert("You
    cannot select a date greater than today's date");
    else
    alert("You are ok.");
    </cfformitem>

  • Transfer Order : Data for storage type search is not defined (A   )

    Dear Experts ,
    While trying to use the Transfer Order and trying to determine the storage type this error appears :
    Data for storage type search is not defined (A   )
    Message no. L3007
    Diagnosis
    Information on the storage type search has not been defined.
    How ever , I have already configured the search and here is the Storage Type search's data in OMLY
    1. Warehouse number : W10
    2. Operation : A "Stock Removal"
    3. Indicator :   E
    4. Stock Category : Blank
    5. Special Stock Category : Blank
    6. Storage Location Ref :10
    7. Storage Type : 10E
    Please Advice
    Edited by: Sap Sap on Feb 24, 2011 10:54 AM

    Hello,
    The storage type in which you want to place the material or pick the material from has not been defined in the storage type search sequence.
    You need to define the search sequence in customization so that storage type is determined automatically when the transfer order is created;
    SPRO>>Logistics Execution>>Warehouse Management>>Strategies>>Activate Storage Type Search
    In this go to determine search sequence and then
    for warehouse number W10, operation as stock removal 'A' and in this maintained the relevant the storage type (10E) so that it is determined automatically.
    I hope this helps.
    BR,
    Tushar

  • Movement type 453 (Transfer posting to own stock from returns from customer

    Hi all,
    I have problem in goods movement type 453 (Transfer posting to own stock from returns from customer)
    it picking from from profit center from in material master under  sales:general/plant tab   but we need picking from based on account assignment group  in the material maser sales org.2.
    Other movement types are picking from based on account assignment group only . for that what i can do please help me on this.
    K.Satish

    Hi,
    In Co controlling are the automatic account assignment is only the default and it on the Priority.
    if you think what is picked up from the mm is wrong.
    the best way out will be to go with the substitution  rule.
    based on the movement type use the rule.
    hope this is clear , assign points.
    With regards
    Krishna

  • Allowing some Att types to transfer data to HR infotype using Tcode CAT6

    Dear Experts,
    I would like to know is there any option to allow only some attendance types to transfer data from CATS to HR info type 2002 using transaction code CAT6.
    With regards,
    Chandra Sekhar

    Hi Revathi,
    Using transaction code CATS_APPR_LITE I changed the processing status from 20 to 30 and updating in HR Master info type 2002 or 2001.
    But in this T.code there is a problem that even if it is personnel number locked this will not update the infotype and will not give any error message.
    So again I used CAT6 T.code with repeated transfer and status "Last retrivel unsuccessful" and updating selected attendance and absence types to HR Master.
    With regards,
    Chandra sekhar

Maybe you are looking for

  • Delete Vendor Evaluation

    Dear Folks, In the vendor evaluation, there is a deletion flag where we can set to delete the vendor evaluation scores. The SAP help information provide says that this flat determines whether this vendor evaluation is to be deleted during the next re

  • Unexplained UnpublishNotify on Edge Server

    I have and FMS (3.0.2) running as an edge server, republishing a stream from another ingest FMS that is recieving a stream from Adobe Flash Media Encoder (2.5). After almost exactly 5 minutes the edge FMS unpublished the stream even though I have a s

  • FDM SCRIPTING - MID Function

    I need to trim the values of a column based on the position of characters like below. Original Trimed Output New York [1000] 1000 London [12001] 12001 Paris [45] 45 I use the below syntax.  But it gives me an error : 5 - Invalid procedure call or arg

  • Weird problem with ipod...not sure how to fix

    My ipod was filled to the max...like 950 songs and i couldnt fit anymore. i had it on set up mannually, but one day when i plugged it in to my computer it acted as if it was a new ipod and switched to "update automatically." Then it updated by deleti

  • HT201210 removing a previous backup that has been corrupted

    how do I delete a previoius backup from iphone 4?