Very Very Urgent Issue: Restricted Key Figure does not return any data

Hi all,
Please help me solving this urgent issue.
created customer exit variable on characterstics version and also
other customer exit variable on Value type.
I coded that in variable exit. Problem is when I include these in
restrickted keyfigure My query does not return me any data.
But if I remove from restrickted key firgure and put it as normal
charaterstics I see the variable is getting populated.
Also in RSRT the SQl generated when these are included in RKF is not
correct.
I debugged and know they are getting populated. As when included in RKF
I can also see the values of customer exit variables from information
tab.
I also know that there is data in cube for those restrictions.
I posted one OSS Notes regarding this urgent issue. But got no reply from SAP.
FYI: We are using BEx 3.5 Browser SAP GUI 6.4 Patch 20 BW Patch 11
Thanks
SAP BW
**Please do not post the same question twice: Very Urgent Issue: Restricted Key Figure does not return any data

Hi,
Everyone out there this is very urgent. If someone can help me solving this problem.
We are using BEx 3.5 Browser SAP GUI 6.4 Patch 20 BW Patch 11.
I posted one oss notes also regarding this issue. But got no reply from SAP.
So, Please help me solving this issue.
Thanks
SAP BW

Similar Messages

  • Very Urgent Issue: Restricted Key Figure does not return any data

    Hi all,
    created customer exit variable on characterstics version and also
    other customer exit variable on Value type.
    I coded that in variable exit. Problem is when I include these in
    restrickted keyfigure My query does not return me any data.
    But if I remove from restrickted key firgure and put it as normal
    charaterstics I see the variable is getting populated.
    Thanks
    SAP BW

    Hi,
    Everyone out there this is very urgent. If someone can help me solving this problem.
    We are using BEx 3.5 Browser SAP GUI 6.4 Patch 20 BW Patch 11.
    I posted one oss notes also regarding this issue. But got no reply from SAP.
    So, Please help me solving this issue.
    Thanks
    SAP BW

  • Key figure does not exist

    Hi APO Gurus ,
    After  SCM and Liive Cashe migration    , when  we run transaction  /SAPAPO/SDP94 the following error message is appearing :
    "  Key figure does not exist " .
    Does somebody has any Ideas ? any logical flow for resolution ?
    Appreciate your help ,
    Yoni

    Hi Yoni,
    Check on the following
    1) Check whether the planning area is initialised after migration
    2)  Look for any pending transports during migration
    3) Check any key figures maintained with calculation type N
    4) Check sap note 1352371
    5) In case if the error still exists, run report
    /SAPAPO/PSTRUCONS
    Regards
    R. Senthil Mareeswaran.

  • The product key entered does not match any of the Windows images available for installation. Enter a different product key.

    how do you manage to install windows 7 when the message on the screen is "The product key entered does not match any of the Windows images available for installation. Enter a different product key. "

    That's a really helpful answer and not smug at all, thanks Carey.
    I just downloaded a DVD image from my university's MSDN Academic Alliance program, named "Microsoft
    Windows 7 with Service Pack 1 Debug/Checked Build 64-bit (English)", which I wanted to use to install over an existing 32-bit version. I thought the install screen was giving this weird unskippable error described in the OP before I even entered
    a key because the 32-bit key I had used on the HDD was somehow interpreted to be used in an upgrade, but no. Even after I wiped the hard drive, this error persisted.
    Guess I'll go Google some more on how to install my legit copy of Windows, because this self-serving shit sure isn't helping.
    edit: IF YOU GOOGLED THIS AND ARE STILL LOOKING FOR YOUR ANSWER, CHECK HERE:
    http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_install/the-product-key-entered-does-not-match-any-of-the/47e6f575-5792-404b-9b7f-2065bdb91011

  • Corresponding table in the source system does not contain any data -URGENT

    Hi Guru's,
    I have already uploaded master data.
    I have created infosource added infoObjects to it and activated it to create communication strucure.
    M using RSA1OLD transaction.
    and assigned datasource to infosource ie source system name and clicked ok.
    save datasource to infosurce assigned msg displayed, clicked ok.
    transfer rules r created, i have also created update rules and assigned infosource to it.
    then created infopackage n added execel file name .csv
    in datatargets tab selected data target as infocube. n then in schedule tab start data load immediately and clicked ok.
    everything is fine upto schedule n in monitor it does not display any data.
    what will be the problem??

    i have also created update rules and assigned infosource to it.
    then created infopackage n added execel file name .csv ??
    Are you loading the data from flat file or R3? If you are loading it from R3, why are you giving the Flat file name?
    In this case, check in RSA3 (R3 side), whther the datas source is getting the value.
    In case you are loading a flat file, you need to create a flat file data source and assign to the infosource.
    Thanks..
    Shambhu

  • Managed System Configuration ! The table does not contain any data !

    Hi,
    In Sol Man Setup , Managed System Configuration, in phase 6 - Create Logical Componets -
    There is no Product Version and Product Instance Available.
    The message is :  " The table does not contain any data "
    How can correct this problem ?
    Thanks

    Hi,
    while creating new Logical Component via SMSY , you need to specify Product first.
    e.g. if you managed system is ERP 6.0 , select Product as SAP ERP
    once you select Product , it automatically fetches information for product Version and Main Instance depending upon Product field input.
    Please check and let us know if issue still persits.
    Thanks,
    Rupali

  • Product Revenue Bookings and Backlog Dashboard does not display any data

    Product Revenue Bookings and Backlog Dashboard does not display any data even though the load completed successfully.
    They are able to see just the parameters.
    Not sure if the upgrade of the database from 9.2.0.6 to 10.2.0.3 is a factor.
    What can I check?
    Is there some table to verify that the data exists for display in the Product Revenue Bookings and Backlog Dashboard?
    Screenshot is at:
    https://gtcr.oracle.com/gtcr-dir/gtcr_5637/6415786.993/Product_Revenue_Bookings_Backlog_Dashboard.doc
    Support suggested to create a new request set and run the initial load with load all summaries option; but there was no change in the Product Revenue Bookings and Backlog Dashboard.
    Any ideas?

    hi
    We have faced the similar problem after the upgrade to 10G
    What we did was
    Ran the initial load of time dimension, Item setup request set, and the request set of all the dash board in the clear and initial load mode..
    we were able to get the data once the clear and load is completed successfully
    Regards
    Ramesh Kumar S

  • BI Publisher Word Template The report does not contain any data fields.

    I have OBIEE BI Publisher report (10.3.4) working fine using BIP but using MS Word 2003 I want to create new template and want to add charts etc.
    Step 1. In MS Word I successfully login Oracle BI Publisher as Administrator
    2. Oracle BI Publisher -> Open (I open the report)
    3. Go to Insert -> Table Wizard
    I get this error:
    The report does not contain any data fields. Please make sure that the reports generates data with the default settings or provide a valid XML file.
    Please help

    Hi
    How do I load XML data? Also why XML data load is required? Do I have to export XML data from BIP View screen and load from the same file from the word?
    Please clarify
    Thanks

  • File Screening Audit Report does not contain any data : report statistics is empty

    Hi ,
     I have enabled File screen audit and Record file screening activity in auditing database options in file server 2008. 
    I am getting details of file screen audit in Event log  , But incident report file screen audit report does not contain any value.
    Getting report for each incident of file screen audit  , But it does not contain any data in report statistics.
    Data available in scheduled report of file screen audit.. not available in incident report only..
    Please assist...
    Thanks,
    Vasanth.M
    Thanks, Vasanth.M.

    Please note that, If the Record file screening activity in the auditing database check box is cleared, the File Screening Audit Reports will not contain any information. To configure file screen audit, I would refer you on this informative
    technet library :
    https://technet.microsoft.com/en-us/library/cc754540.aspx
    Carlo

  • Search Item drop-down does not show any data for Advanced Search.

    Hi,
    I have a requirement to add a new criteria to the existing Advanced Search region of 'My Employee Information' in Manager Self Service responsibility. I substituted the AdvancedSearchVO to include the new column. Using personalization i did the below steps to show the new column in the page,
    1) Created a 'Message Styled Text' item under Table Layout region to display the result. I associated the View Instance (AdvancedSearchVO1) and View Attribute (AttrColumn).
    2) In Advanced Search Panel created a new CriteriaRow and set the 'Search Allowed' property to True.
    3) In Advanced Search Mappings i tried to create the new mapping but the Search Item drop-down does not show any of the CriteriaRow item. But Results Item shows the 'Message Styled Text' item created in step 1 above.
    Any idea what i would be missing becasue of which 'Search Item' property does not show any data?
    I am using OAF version 12.1.1.
    Thanks, Suresh

    Hi,
    I faced the same situation but i still waiting for the solution.. this is my problem's thread..
    Addition of LOV Search Filter using Personalization
    But when i tried to create a new custom page with advanced table and created a new LOV column via personalization. i was able to create new search mapping.. but this is not happening in the seeded page case :(.
    I m also looking for solution...if any one can provide some inputs on it , will be highly appreciated.
    Thanks
    Renu

  • Xquery does not return any results on 10.2.0.4, does work on 10.2.0.5

    I have a Xquery statement that works as expected on Oracle 10.2.0.5 but does not return any results on Oracle 10.2.0.4.
    Is this the result of a badly written query? A bug in 10.2.0.4?
    Is there a way to rewrite the query so that is does work on 10.2.0.4?
    Testcode:
    declare
       l_xml xmltype;
       -- Select layers with TileMatrixSet EPSG:28992
       cursor c_layer(p_xml xmltype) is
          select t.*
            from xmltable(xmlnamespaces(default 'http://www.opengis.net/wmts/1.0'
                                       ,'http://www.opengis.net/ows/1.1' as "ows"
                                        ,'http://schemas.opengis.net/gml' as "gml"
                                        ,'http://www.w3.org/1999/xlink' as "xlink"
                                        ,'http://www.w3.org/2001/XMLSchema-instance' as "xsi")
                          ,'for $d in //Layer[TileMatrixSetLink/TileMatrixSet="EPSG:28992"] return $d' passing
                          p_xml columns title varchar2(100) path 'ows:Title'
                          ,format varchar2(100) path 'Format'
                          ,style xmltype path 'Style') as t;
    begin
       l_xml := xmltype.createxml('<?xml version="1.0" encoding="UTF-8"?>
    <Capabilities xmlns="http://www.opengis.net/wmts/1.0"
    xmlns:ows="http://www.opengis.net/ows/1.1"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd"
    version="1.0.0">
    <Contents>
      <Layer>
        <ows:Title>brtachtergrondkaart</ows:Title>
        <ows:Identifier>brtachtergrondkaart</ows:Identifier>
        <Style isDefault="true">
          <ows:Identifier>_null</ows:Identifier>
        </Style>
        <Format>image/png8</Format>
        <TileMatrixSetLink>      <TileMatrixSet>EPSG:28992</TileMatrixSet>
        </TileMatrixSetLink>  </Layer>
      <Layer>
        <ows:Title>top10nl</ows:Title>
        <ows:Identifier>top10nl</ows:Identifier>
        <Style isDefault="true">
          <ows:Identifier>_null</ows:Identifier>
        </Style>
        <Format>image/png8</Format>
        <TileMatrixSetLink>      <TileMatrixSet>EPSG:28992</TileMatrixSet>
        </TileMatrixSetLink>  </Layer>
      <Layer>
        <ows:Title>bgt</ows:Title>
        <ows:Identifier>bgt</ows:Identifier>
        <Style isDefault="true">
          <ows:Identifier>_null</ows:Identifier>
        </Style>
        <Format>image/png8</Format>
        <TileMatrixSetLink>      <TileMatrixSet>EPSG:28992</TileMatrixSet>
        </TileMatrixSetLink>  </Layer>
    </Contents>
    </Capabilities>');
       for r_layer in c_layer(l_xml)
       loop
          dbms_output.put_line(r_layer.title);
       end loop;
    end;Result on 10.2.0.5:
    brtachtergrondkaart
    top10nl
    bgt

    This one's strange indeed.
    I can reproduce on 10.2.0.4 and one of the following seems to fix it :
    1) Specifying the column list in the SELECT, instead of t.* :
       -- Select layers with TileMatrixSet EPSG:28992
       cursor c_layer(p_xml xmltype) is
          select t.title, t.format, t.style
            from xmltable(or,
    2) Using an extended FLWOR expression :
    for $d in //Layer
    where $d/TileMatrixSetLink/TileMatrixSet = "EPSG:28992"
    return $dMaybe you've already noticed but the problem only occurs within a PL/SQL context.
    The same query run from SQL is OK.

  • How to Create a record if vo.executequery does not return any rows

    I would like to update a single record on adf form. However if the record does not exist would like to create a row and save it in the table.
    The user does not want to add a "create" button on the screen. Hence would need to add the create code if vo.execute does not return any rows...
    How to add this and where to add?

    you can have a TF router for for exists and does not exist and based on that execute transient VO and other VO.
    Add a method call activity like below to create a row in transient VO
    public Row createRow()
    ViewObjectImpl tVO = (ViewObjectImpl)getTVO();
    tVO.executeEmptyRowSet();
    Row newRow = tVO.createRow();
    tVO.setCurrentRow(newRow);
    tVO.insertRow(newRow);
    return newRow;
    }

  • Xen / pygrub issues: VmError: Boot loader didn't return any data!

    Hardware:
    2x Intel Xeon Quad-Core 2.33GHz
    24GB FBDIMM RAM
    2x 2TB HDD in RAID-1
    Intel Server Board S5400SF
    Setup:
    Arch Linux x86_64
    Xen 4.1.2
    Grub2 Multiboot
    Synopsis:
    I set up a new VM for Debian Squeeze following instructions here: http://www.howtoforge.com/installing-de … 86_64-dom0. Partitioning & installation completed correctly. When I tried to run the VPS afterwards, I got this output:
    | [root@srv0 xen]# xm create -c /etc/xen/xm-debian.cfg
    | Using config file "/etc/xen/xm-debian.cfg".
    | Error: Boot loader didn't return any data!
    I've attached a more complete log output at the end of the mail.
    This is the first VM I have tried to create on this setup.
    Additional:
    I can mount the partition within the lvm:
    | [root@srv0 xen]# kpartx -av /dev/VPS/fennec
    | add map VPS-fennec1 (253:2): 0 83881984 linear /dev/VPS/fennec 2048
    | [root@srv0 xen]# mount /dev/mapper/VPS-fennec1 /mnt
    | [root@srv0 xen]# cd /mnt
    | [root@srv0 mnt]# ls
    | bin   etc      lib     lost+found  opt   sbin     sys  var
    | boot  home      lib32  media         proc  selinux  tmp  vmlinuz
    | dev   initrd.img  lib64  mnt         root  srv        usr
    | [root@srv0 mnt]# cd boot
    | [root@srv0 boot]# ls
    | config-2.6.32-5-amd64  initrd.img-2.6.32-5-amd64  vmlinuz-2.6.32-5-amd64
    | grub               System.map-2.6.32-5-amd64
    | initrd               vmlinuz
    | [root@srv0 boot]# cd grub
    | [root@srv0 grub]# cat menu.lst
    | timeout 5
    | default 0
    |
    | title Linux
    | kernel /boot/vmlinuz root=/dev/xvda1
    | initrd /boot/initrd
    As you can see, the kernel (which is 2.6.32) and vmlinuz (also 2.6.32) exist in the /boot directory.
    Pygrub:
    Attempting to pygrub the VPS LVM gives the following output:
    | [root@srv0 /]# pygrub --kernel=/boot/vmlinuz --ramdisk=/boot/initrd /dev/VPS/fennec
    | Traceback (most recent call last):
    |   File "/usr/bin/pygrub", line 774, in <module>
    |     raise RuntimeError, "Unable to find partition containing kernel"
    | RuntimeError: Unable to find partition containing kernel
    domU Config File:
    | name = "fennec"
    | memory = 1024
    | maxmem = 1024
    | cpus = "2-7"
    | disk = [
    |     'phy:/dev/VPS/fennec,xvda,w',
    |     'phy:/dev/VPS/fennec-swap,xvdb,w'
    | ]
    | vif = ['']
    | bootloader = "pygrub"
    | bootargs = "--kernel=/boot/vmlinuz --ramdisk=/boot/initrd"
    I have tried this with and without the bootargs line without any success.
    About The Filesystem:
    /dev/VPS is a vg on a RAID-1 array
    /dev/VPS/fennec is an lv on VPS vg
    The fennec lv has a single ext3 partition of 40GB
    xend.log Output:
    [2012-07-20 09:35:17 907] DEBUG (XendDomainInfo:103) XendDomainInfo.create(['vm', ['name', 'fennec'], ['memory', 1024], ['maxmem', 1024], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['vcpus', 1], ['cpus', '2-7'], ['oos', 1], ['bootloader', '/usr/bin/pygrub'], ['bootloader_args', '--kernel=/boot/vmlinuz --ramdisk=/boot/initrd'], ['image', ['linux', ['videoram', 4], ['tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity', 1], ['device', ['vbd', ['uname', 'phy:/dev/VPS/fennec'], ['dev', 'xvda'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:/dev/VPS/fennec-swap'], ['dev', 'xvdb'], ['mode', 'w']]], ['device', ['vif']]])
    [2012-07-20 09:35:17 907] DEBUG (XendDomainInfo:2498) XendDomainInfo.constructDomain
    [2012-07-20 09:35:17 907] DEBUG (balloon:187) Balloon: 22794808 KiB free; need 16384; done.
    [2012-07-20 09:35:17 907] DEBUG (XendDomain:476) Adding Domain: 17
    [2012-07-20 09:35:17 907] DEBUG (XendDomainInfo:2836) XendDomainInfo.initDomain: 17 256
    [2012-07-20 09:35:17 25157] DEBUG (XendBootloader:113) Launching bootloader as ['/usr/bin/pygrub', '--output=/var/run/xend/boot/xenbl.15844', '--kernel=/boot/vmlinuz', '--ramdisk=/boot/initrd', '/dev/VPS/fennec'].
    [2012-07-20 09:35:17 907] ERROR (XendBootloader:214) Boot loader didn't return any data!
    [2012-07-20 09:35:17 907] ERROR (XendDomainInfo:488) VM start failed
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 474, in start
        XendTask.log_progress(31, 60, self._initDomain)
      File "/usr/lib/python2.7/site-packages/xen/xend/XendTask.py", line 209, in log_progress
        retval = func(*args, **kwds)
      File "/usr/lib/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 2838, in _initDomain
        self._configureBootloader()
      File "/usr/lib/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 3285, in _configureBootloader
        bootloader_args, kernel, ramdisk, args)
      File "/usr/lib/python2.7/site-packages/xen/xend/XendBootloader.py", line 215, in bootloader
        raise VmError, msg
    VmError: Boot loader didn't return any data!
    [2012-07-20 09:35:17 907] DEBUG (XendDomainInfo:3071) XendDomainInfo.destroy: domid=17
    [2012-07-20 09:35:17 907] DEBUG (XendDomainInfo:2406) No device model
    [2012-07-20 09:35:17 907] DEBUG (XendDomainInfo:2408) Releasing devices
    [2012-07-20 09:35:17 907] ERROR (XendDomainInfo:108) Domain construction failed
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 106, in create
        vm.start()
      File "/usr/lib/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 474, in start
        XendTask.log_progress(31, 60, self._initDomain)
      File "/usr/lib/python2.7/site-packages/xen/xend/XendTask.py", line 209, in log_progress
        retval = func(*args, **kwds)
      File "/usr/lib/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 2838, in _initDomain
        self._configureBootloader()
      File "/usr/lib/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 3285, in _configureBootloader
        bootloader_args, kernel, ramdisk, args)
      File "/usr/lib/python2.7/site-packages/xen/xend/XendBootloader.py", line 215, in bootloader
        raise VmError, msg
    VmError: Boot loader didn't return any data!
    Appreciate any suggestions.

    Hi,
    I have a very similar issue. I've managed to create PVM guests under 3.0.1 and upgraded via YUM to 3.0.3. I now have 2 Hosts and created a guest Server that I downloaded from the Oracle Software Cloud. This boots fine and is accessible. I cannot create a standalone guest (I want to create a RHEL 5 Server) as this gives me the same error. The Server Pool has one Server Pool LUN and one Repo for the Guests.
    I can create the guest and and add a small boot ISO from the ISO Repositiory, which I then intent to Kickstart the rest of the installation. When starting the Guest, the following is received:
    Starting operation 'Virtual Machine Start' on object '0004fb0000060000951b61a25a250dc9 (csitestvl14)'
    Job Internal Error (Operation)com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: dispatch to server: gbahel71.gb.xxxxxx.com failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/1 start_vm 0004fb00000300009edc3a187ae931f0 0004fb0000060000951b61a25a250dc9, Status: org.apache.xmlrpc.XmlRpcException: exceptions.RuntimeError:Command ['xm', 'create', '/OVS/Repositories/0004fb00000300009edc3a187ae931f0/VirtualMachines/0004fb0000060000951b61a25a250dc9/vm.cfg'] failed (1): stderr: Error: Boot loader didn't return any data!
    , stdout: Using config file "/OVS/Repositories/0004fb00000300009edc3a187ae931f0/VirtualMachines/0004fb0000060000951b61a25a250dc9/vm.cfg".
    Edited by: LeeUK on 20-Mar-2012 08:54

  • ReportViewer control used with a remote report does not display any data.

    Hi there,
    I have this .rdl report that runs just fine on our reporting server (I can see that when I try to run the report by accessing its URL in a browser). However, when I run it in my Windows-based application, I do not see any data. My report has two input parameters
    and it needs to impersonate the caller's identity because the database uses Windows Authentication.
    Here is the code I use:
    var reportViewer = new ReportViewer();
    // Set Processing Mode
    reportViewer.ProcessingMode = ProcessingMode.Remote;
    // Set report server and report path
    reportViewer.ServerReport.ReportServerUrl = new Uri("http://MySsrsServer/reportserver");
    reportViewer.ServerReport.ReportPath = "/Reports/MyReport";
    // set the credentials
    reportViewer.ServerReport.ReportServerCredentials.ImpersonationUser = WindowsIdentity.GetCurrent();
    // create report parameters and set them in the report
    var param1 = new ReportParameter("First_Param", "Some string");
    var param2 = new ReportParameter("Second_Param", "Some other string");
    reportViewer.ServerReport.SetParameters(new ReportParameter[] { param1, param2 });
    using (var reportForm = new ReportForm(reportViewer))
    reportForm.ShowDialog();
    The ReportForm is just a regular Form that has a member of type ReportViewer. In the class' constructor, I assign the member:
    public ReportForm(ReportViewer reportViewer)
    InitializeComponent();
    try
    this.reportViewer = reportViewer;
    reportViewer.SetDisplayMode(DisplayMode.PrintLayout);
    reportViewer.Dock = DockStyle.Fill;
    reportViewer.ZoomMode = ZoomMode.Percent;
    reportViewer.ZoomPercent = 100;
    reportViewer.RefreshReport();
    catch (Exception exception)
    MessageBox.Show(exception.Message);
    Using database level tracing, we were able to confirm that the two Stored Procedures used by the report are called and they return correct and valid records. However, in the form nothing shows up:
    Any suggestions?
    TIA,
    Ed

    Good to know CR doesn't like joins of Stored Procedures to something else.
    But in my testcase, I finally dropped the link between the ttx file and the stored procedure. Doing so, I was able to run the report from the designer with the stored procedure as datasource instead of the ttx file. At that moment, I still had missing data in my report, while the resultset of the stored procedure returns me all the correct data !
    In the mean time, I changed the layout a bit, especially the text fields containing name, address, country and postal code and city of the customer, by just adding some spaces between those seperate databasefields. In fact, there is one text box with all those database fields concatenated one to the other.
    And by just adding some spaces in between, my report works fine again ?!
    Strange, strange, strange,....

  • Function Does Not Return any value .

    Hi ,
    I am wrtting the below funtion without using any cursor to return any message if the value enters by parameters
    does not match with the value reterived by the function select statement or it does not reterive any value that
    for the parameters entered .
    E.g:
    CREATE OR REPLACE FUNCTION TEST_DNAME
    (p_empno IN NUMBER,p_deptno IN NUMBER)
    RETURN VARCHAR2
    IS
    v_dname varchar2(50);
    v_empno varchar2(50);
    V_err varchar2(100);
    v_cnt NUMBER := 0;
    BEGIN
    SELECT d.dname,e.empno
    INTO v_dname ,v_empno
    FROM scott.emp e , scott.dept d
    WHERE e.empno=p_empno
    AND d.deptno=p_deptno;
    --RETURN v_dname;
    IF p_empno IS NOT NULL AND p_deptno IS NOT NULL
    THEN IF v_dname is NULL THEN
    v_err :='Not Valid';
    RETURN v_err;END IF;
    ELSIF p_empno IS NOT NULL AND p_deptno IS NOT NULL
    THEN IF v_dname is NOT NULL THEN
    RETURN v_dname; END IF;
    ELSE
    RETURN v_dname;
    END IF;
    END;
    Sql Statement
    SELECT TEST_DNAME(1234,30) FROM dual
    AND IF I enter a valid combination of parameter then I get the below error :
    e.g:
    SQL> SELECT TEST_DNAME(7369,20) FROM dual
    2 .
    SQL> /
    SELECT TEST_DNAME(7369,20) FROM dual
    ERROR at line 1:
    ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at "SCOTT.TEST_DNAME", line 24
    Where I am missing .
    Thanks,

    Format you code properly and look at it:
    CREATE OR REPLACE
       FUNCTION TEST_DNAME(
                           p_empno IN NUMBER,
                           p_deptno IN NUMBER
        RETURN VARCHAR2
        IS
            v_dname varchar2(50);
            v_empno varchar2(50);
            V_err varchar2(100);
            v_cnt NUMBER := 0;
        BEGIN
            SELECT  d.dname,
                    e.empno
              INTO  v_dname,
                    v_empno
              FROM  scott.emp e,
                    scott.dept d
              WHERE e.deptno=d.deptno
                AND e.empno=p_empno
                AND d.deptno=p_deptno;
            --RETURN v_dname;
            IF p_empno IS NOT NULL AND p_deptno IS NOT NULL
              THEN
                IF v_dname is NULL
                  THEN
                    v_err :='Not Valid';
                    RETURN v_err;
                END IF;
            ELSIF p_empno IS NOT NULL AND p_deptno IS NOT NULL
              THEN
                IF v_dname is NOT NULL
                  THEN
                    RETURN v_dname;
                END IF;
             ELSE
               RETURN v_dname;
           END IF;
    END;
    /Both p_empno and p_deptno in
    SELECT TEST_DNAME(7369,20) FROM dualare not null. So SELECT will fetch some v_dname and v_empno. Since p_empno and p_deptno iare not null your code will go inside outer IF stmt and will execute its THEN branch. That branch consist of nothing but inner IF statement. And since v_dname is NOT NULL it will bypass that inner IF and exit the outer IF. And there is no RETURN stmt after that outer IF. As a result you get what you get - ORA-06503. Also, both if and elsif in your code check same set of conditions which makes no sense.
    SY.

Maybe you are looking for

  • Need help with OSx server and profile manager

    I messed up my OS X server and seems like it has stopped working. I cannot access my server remotely or locally and it shows Safari cannot connect to server. I made mistake resetting keychain to default and all certificates were missing.I restored sy

  • ODSM is no longer available to install with IDM 11g

    Hello, I am in the process of trying to re-install odsm after it failed the original installation. 1. I have deleted the cluster through the WebLogics admin cosole. 2. I have run the ./runInstaller.sh -d and removed the ASInstance from the cluster. 3

  • Migrating from SQL Server to Oracle 8i

    Hi all :), I am trying to migrate from SQL Server to Oracle 9i. I am using the Migration Workbench. Everything goes fine during Capturing phase, but while creating Oracle model the Workbench just hangs at "Mapping Tablespaces" for over three hours. (

  • Still Using OS 10.4.8 - Should I Update?

    So I haven't bothered to update m iMac to 10.4.11 as I am a little concerned that it might create some problems that aren't there at the moment. I wanted to ask you guys if you think I should update or if I should just leave things as they are? The r

  • Export iMovie HD to Gallery

    I have made a movie in iMovie HD 6.0.4, exported it to iMovie 08 7.1.4 and then sent it to my gallery page. (This is the only way I know how to get a movie made with HD into my gallery). If I use the "tell a friend" link, no video is visible, but the