ORA-19208: parameter 1 of function XMLFOREST must be aliased

I'm running the below query on 10gR2 against the sample HR schema and getting the ORA-19208 error. I've aliased everything I can see and am still getting the error. What am I missing?
Thanks,
Bob S.
select XMLRoot(
XMLElement("DEPARTMENT",
XMLForest(D.DEPARTMENT_ID as "D1",
D.DEPARTMENT_NAME as "D2",
D.MANAGER_ID as "D3",
D.LOCATION_ID as "D4") as "AAA",
XMLForest(
(select XMLAgg(
XMLElement("EMPLOYEE",
XMLForest(E.EMPLOYEE_ID as "E1",
E.FIRST_NAME as "E2",
E.LAST_NAME as "E3",
E.EMAIL as "E4",
E.PHONE_NUMBER as "E5",
E.HIRE_DATE as "E6",
E.JOB_ID as "E7",
E.SALARY as "E8",
E.COMMISSION_PCT as "E9",
E.MANAGER_ID as "E10",
E.DEPARTMENT_ID as "E11") as "BBB",
XMLForest(
(select XMLAgg(
XMLElement("JOB HISTORY",
XMLForest(JH.EMPLOYEE_ID as "JH1",
JH.START_DATE as "JH2",
JH.END_DATE as "JH3",
JH.JOB_ID as "JH4",
JH.DEPARTMENT_ID as "JH5") as "CCC" ))
from HR.JOB_HISTORY JH
left outer join HR.EMPLOYEES E on E.EMPLOYEE_ID = JH.EMPLOYEE_ID
left join HR.DEPARTMENTS D2 on D2.DEPARTMENT_ID = JH.DEPARTMENT_ID
left join HR.JOBS J2 on J2.JOB_ID = JH.JOB_ID)) as "EEE"))
from HR.EMPLOYEES E
join HR.JOBS J on J.JOB_ID = E.JOB_ID
where D.DEPARTMENT_ID = E.DEPARTMENT_ID
) as "DDD")
,VERSION '1.0', STANDALONE NO) as "XXX"
from HR.DEPARTMENTS D;

The two subqueries were not aliased, I've added aliases "MAX1" and "MAX2"...
select XMLRoot(
         XMLElement("DEPARTMENT",
                    XMLForest(D.DEPARTMENT_ID as "D1",
                              D.DEPARTMENT_NAME as "D2",
                              D.MANAGER_ID as "D3",
                              D.LOCATION_ID as "D4"
                              ) as "AAA",
                    XMLForest(
                               (select
                                  XMLAgg(
                                    XMLElement("EMPLOYEE",
                                               XMLForest(E.EMPLOYEE_ID as "E1",
                                                         E.FIRST_NAME as "E2",
                                                         E.LAST_NAME as "E3",
                                                         E.EMAIL as "E4",
                                                         E.PHONE_NUMBER as "E5",
                                                         E.HIRE_DATE as "E6",
                                                         E.JOB_ID as "E7",
                                                         E.SALARY as "E8",
                                                         E.COMMISSION_PCT as "E9",
                                                         E.MANAGER_ID as "E10",
                                                         E.DEPARTMENT_ID as "E11"
                                                         ) as "BBB",
                                               XMLForest(
                                                          (select
                                                              XMLAgg(
                                                                 XMLElement("JOB HISTORY",
                                                                            XMLForest(JH.EMPLOYEE_ID as "JH1",
                                                                                      JH.START_DATE as "JH2",
                                                                                      JH.END_DATE as "JH3",
                                                                                      JH.JOB_ID as "JH4",
                                                                                      JH.DEPARTMENT_ID as "JH5"
                                                                                      ) as "CCC"
                                                             from HR.JOB_HISTORY JH
                                                             left outer join HR.EMPLOYEES E on E.EMPLOYEE_ID = JH.EMPLOYEE_ID
                                                             left join HR.DEPARTMENTS D2 on D2.DEPARTMENT_ID = JH.DEPARTMENT_ID
                                                             left join HR.JOBS J2 on J2.JOB_ID = JH.JOB_ID
                                                           ) as "MAX1" -- This was one missing alias
                                                         ) as "EEE"
                                  from HR.EMPLOYEES E
                                  join HR.JOBS J on J.JOB_ID = E.JOB_ID
                                 where D.DEPARTMENT_ID = E.DEPARTMENT_ID
                                ) as "MAX2" -- This was another missing alias
                              ) as "DDD"
               VERSION '1.0',
               STANDALONE NO
               ) as "XXX"
  from HR.DEPARTMENTS D;Max
[My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/17/supporto-di-xml-schema-in-oracle-xmldb/]

Similar Messages

  • ORA-01678  parameter log_file_name_convert

    Hi,
    in my init.ora file I have :
    LOG_FILE_NAME_CONVERT=("s:\ORADATA\DB1","u:\ORADATA\DB2","u:\ORADATA\DB1","u:\ORADATA\DB2")
    And I receive this error :
    ORA-01678: parameter log_file_name_convert must be two strings, a pattern and a replacement
    Do you have any idea ?
    Many nthanks.

    Thanks, as you can see here
    http://www.lc.leidenuniv.nl/awcourse/oracle/server.920
    /a96536/ch1104.htm
    we can have :
    LOG_FILE_NAME_CONVERT
    Parameter type
    String
    Syntax
    LOG_FILE_NAME_CONVERT = [(]'string1' , 'string2' ,
    'string3' , 'string4' , ...[)]
    several couple of logfiles like what I have in my
    init.ora file. But it does not function for me.
    Message was edited by:
    user522961Refer to a document at 9i, and performing actions on what you stated was 817. They are not the same.
    To quote the 817 propaganda specified in my first post (had you read it closely):
    The DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT parameters must have two strings. The first string is a sequence of characters to be looked for in a primary database filename. If that sequence of characters is matched, it is replaced by the second string to construct the standby database filename.
    (emphasis is mine)
    http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76995/standby.htm#23603
    as in the following example from the same reference:
    ample: Managed Standby Database on Same Host as Primary Database
    Following are some sample initialization parameter settings for a managed standby database that resides on the same host as primary database PROD1.
    COMPATIBLE = 8.1.6
    CONTROL_FILES = /oracle/work/standby/dbs/cf1.f
    DB_FILE_NAME_CONVERT = /oracle/dbs/tbs, /oracle/work/standby/dbs/standby
    DB_NAME = prod1
    LOCK_NAME_SPACE = stby # required for a standby on the same host as the primary
    LOG_ARCHIVE_DEST = /oracle/work/standby/dbs/arc/
    LOG_ARCHIVE_FORMAT = arc_%t_%s.ar
    LOG_ARCHIVE_TRACE = 8
    LOG_FILE_NAME_CONVERT = /oracle/dbs/t1, /oracle/work/standby/dbs/standby_t1
    STANDBY_ARCHIVE_DEST = /oracle/work/standby/dbs/arc/
    Example: Managed Standby Database on Different Host from Primary

  • Pass table name as a parameter to function

    Is there a way to pass table name as a parameter to functions? Then update the table in the function.
    Thanks a lot.
    Jiaxin

    Hi, Harm,
    Thank you very much for your suggestion and example. But to get my program work, i need to realise code like follows:
    CREATE OR REPLACE FUNCTION delstu_func(stuno char) RETURN NUMBER AS
    BEGIN
    EXECUTE IMMEDIATE 'DELETE FROM student s' ||
    'WHERE' || 's.student_number' || '=' || stuno;
    LOOP
    DBMS_OUTPUT.PUT_LINE('record deleted');
    END LOOP;
    END;
    SELECT delstu_func('s11') FROM STUDENT;
    The intention is to check if such a function can perform operations such as update, delete and insert on occurence of certain values. When executing the above statement, the system returns an error message:
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    ORA-06512: at "SCMJD1.DELSTU_FUNC", line 3
    Could you tell me where is wrong?
    Jiaxin

  • ORA-06575: Package or function EDN_DEQUEUE_OAOO_DELIVERY is in an invalid s

    After migrating Data from one 11g server to a new one, restart SOA EM, error persists background:
    background server is still reporting: "<Warning> <oracle.integration.platform.blocks.event.saq> <SOA-31013> <Error handling message (rolling back).
    java.sql.SQLException: ORA-06575: Package or function EDN_DEQUEUE_OAOO_DELIVERY is in an invalid state
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:74)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:135)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:210)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:473)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:423)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1095)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:201)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1036)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1379)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3568)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3739)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:8150)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1535)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:99)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.readOAOODelivery(SAQBusinessEventBus.java:1302)
    at
    oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.handleSingleOAOODelivery(SAQBusinessEventBus.java:750)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.handleQueueEvents(SAQBusinessEventBus.java:669)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.access$000(SAQBusinessEventBus.java:71)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus$1.run(SAQBusinessEventBus.java:319)
    at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:105)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
    at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)"
    ===================================================
    We found the EDN_DEQUEUE_OAOO_DELIVERY is a storage process, it failed after re-complied, details as below:
    SQL> alter procedure DEV_SOAINFRA.EDN_DEQUEUE_OAOO_DELIVERY compile;
    Warning: Procedure altered with compilation errors.
    SQL> show error;
    Errors for PROCEDURE DEV_SOAINFRA.EDN_DEQUEUE_OAOO_DELIVERY:
    LINE/COL ERROR
    2/9 PL/SQL: Item ignored
    2/9 PLS-00201: identifier 'DBMS_AQ' must be declared
    3/10 PL/SQL: Item ignored
    3/10 PLS-00201: identifier 'DBMS_AQ' must be declared
    8/3 PL/SQL: Statement ignored
    8/3 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    9/3 PL/SQL: Statement ignored
    9/3 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    LINE/COL ERROR
    10/3 PL/SQL: Statement ignored
    10/3 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    12/3 PL/SQL: Statement ignored
    12/59 PLS-00320: the declaration of the type of this expression is
    Anybody have any suggestion will be highly appreciated.
    Thanks,
    Katherine

    I did what could be the reason?Did it compile successfully? Do you still get the same error?
    What is the status of the package now?
    SQL> select owner, object_type, status
    from dba_objects
    where object_name = '<PACKAGE NAME>';The package may have been invalidated for different reasons (like editing the code without compiling it, one of more the objects referenced in the package became invalid, new columns added to tables/views which are used by the package, ..etc).
    Thanks,
    Hussein

  • Special Character as parameter in Function....

    Hi All,
    Can we pass ~ (tild) as parameter in Function. Actually, i have created a function where i am passing 2 parameters. 1 is branchname and second is branchid. It might possible that a branch can have 2 branchid. Both are same except that second branchid contains '~01' at end. example : if branchid = 789 then second branchid will be 789~01.
    When i pass 789, the function is working fine & gives desired result. But when i pass 789~01. It is not executing. I have checked the source table & found that data are available for 789~01. Both parameters are VARCHAR2 datatype.
    I have also checked the logic in the function by DBMS_OUTPUT.PUT_LINE. It gives all information for branchid 789, but no information for 789~01.

    ace_friends22 wrote:
    Hi All,
    Can we pass ~ (tild) as parameter in Function. Actually, i have created a function where i am passing 2 parameters. 1 is branchname and second is branchid. It might possible that a branch can have 2 branchid. Both are same except that second branchid contains '~01' at end. example : if branchid = 789 then second branchid will be 789~01.
    When i pass 789, the function is working fine & gives desired result. But when i pass 789~01. It is not executing. I have checked the source table & found that data are available for 789~01. Both parameters are VARCHAR2 datatype.
    I have also checked the logic in the function by DBMS_OUTPUT.PUT_LINE. It gives all information for branchid 789, but no information for 789~01.Works fine for me:
    SQL> CREATE OR REPLACE FUNCTION test_func (in_var IN VARCHAR2)
      2     RETURN VARCHAR2
      3  AS
      4  out_var VARCHAR2(20) := 'NULL';
      5  BEGIN
      6     SELECT col_1 into out_var FROM TEST_TAB where col_1 = in_var;
      7     DBMS_OUTPUT.put_line ('Value Passed: ' || in_var);
      8     RETURN out_var;
      9     EXCEPTION
    10     WHEN NO_DATA_FOUND THEN
    11      RETURN 'No Data';
    12  END;
    13  /
    Function created.
    SQL> show err;
    No errors.
    SQL> SELECT * FROM TEST_TAB
      2  /
    COL_1
    789
    789`01
    ~~~~~
    789~01
    4 rows selected.
    SQL>  SELECT TEST_FUNC('789')  FROM Dual
      2  /
    TEST_FUNC('789')
    789
    1 row selected.
    Value Passed: 789
    SQL>  SELECT TEST_FUNC('789~01') FROM Dual
      2  /
    TEST_FUNC('789~01')
    789~01
    1 row selected.
    Value Passed: 789~01
    SQL> SELECT TEST_FUNC('ABC') FROM Dual;
    TEST_FUNC('ABC')
    No Data
    1 row selected.
    SQL> You have to post your function code.
    Regards,
    Jo

  • Fetch data from table(ET_) which is exporting parameter of function module

    Hi,
    I m new to ABAP programming.
    I have to develop a smartform that has to be filled in with fields from few tables.
    These tables have the naming convention ET_<XXX> (i.e. exporting parameter of function module).
    I m not able to directly view its contents in se11 or use select query for it.
    I have a report program which i can execute to view these parameter names.
    Now, how do i fetch data from these parameters/tables and pass it from my driver program to smartform??
    Someone pls guide me...
    Thank You.

    Hi,
    I have done that using Field-Symbols.
    Thanks,
    Preetha

  • [nQSError: 22036] Level in TODATE function (Quarter) must be a rollup...

    Hi,
    i've following problem. I hope you can help. It's quite urgent.
    I have following TimeDim hierarchy, in my rpd:
    Logical Level: Total Time - Properties: Grand Total Level
    Child Logical Level: Year - Properties: Supports rollup to higher level of aggregation - Keys: Year Code (Cronological Key) - Logical Column: Year Code, Year Description
    Child Logical Level: Semester - Properties: Supports rollup to higher level of aggregation - Keys: Semester Code (Cronological Key) - Logical Column: Semester Code, Semester Description
    Child Logical Level: Quarter - Properties: Supports rollup to higher level of aggregation - Keys: Quarter Code (Cronological Key) - Logical Column: Quarter Code, Quarter Description
    Child Logical Level: Time Detail - Properties: Supports rollup to higher level of aggregation - Keys: TTPER (Cronological Key) - Logical Column: Desc Month, TTPER, Desc Month Short
    Then, i've defined my measures using TODATE Function:
    - Net Number of HA Units delivered Monthly
    - Net Number of HA Units delivered Qtd = TODATE("Net Number of HA Units delivered Monthly", "TimeDim"."Quarter")
    - Net Number of HA Units delivered Ytd = TODATE("Net Number of HA Units delivered Monthly", "TimeDim"."Year")
    - Ha Returned Quantity Monthly
    - Ha Returned Quantity Qtd = TODATE("Ha Returned Quantity Monthly", "TimeDim","Quarter")
    - Ha Returned Quantity Ytd = TODATE("Ha Returned Quantity Monthly", "TimeDim","Year)
    In my Report i've following columns:
    HA Deliveries Quantity Gross QTD: fx = Net Number of Ha Units delivered Qtd + Ha Returned Quantity Qtd
    HA Deliveries Quantity Gross YTD: fx = Net Number of Ha Units delivered Ytd + Ha Returned Quantity Ytd
    Column HA Deliveries Quantity Gross Ytd works. For first column i have following error:
    [nQSError: 22036] Level in TODATE function (Quarter) must be a rollup of (or equivalent to) the measure level (Year).
    Why?
    If i modify first column fx dropping sum, but selecting first or second addend separately it works. Sum not
    For example: HA Deliveries Quantity Gross Qtd: fx = Net Number of HA Units delivered Qtd OK
    or
    HA Deliveries Quantity Gross Qtd: fx = HA Returned Quantity Qtd OK
    Maybe there's something wrong in my hierarchy definition?. Please help
    Giancarlo

    Giancarlo,
    Can you try adding prersentation column "TimeDim"."Quarter" to your report and check ? Hide it if you don't require it. This shud solve your problem as the Time Hierarchy is defined correctly. Also, hope you have set the Chronological Key correctly at the last level.

  • ORA-16024: - ORA-32004 - Parameter modification Error

    Hi all,
    I have two errors after modifying the LOG_ARCHIVE_DEST_1 parameter. I've run this...
    ALTER SYSTEM SET LOG_ARCHIVE_DEST_1='LOCATION=/u04/archive/EST OPTIONAL REOPEN=300' SCOPE=spfile;
    and after restarting the instance, I found these errors
    ORA-32004: obsolete and/or deprecated parameter(s) specified
    ORA-16024: parameter LOG_ARCHIVE_DEST_1 cannot be parsed
    I checked the spfile and I discovered an error in it due this change:
    *.log_archive_dest_1='LOCATION=/u04/archive/EST OPTIONAL REPO^H^HOPEN=300'
    "^H^H" these characters were inserted because an stty config error and I was not able to see them.
    How should I procede to recover my instance?
    Thanks

    Thanks! I really appreciate your help!
    I have no need to do a recovery, I just wanted to say only bringing it open again.
    I am not able to start it up in nomount mode...
    Thanks by your help!
    EdStevens wrote:
    martinmorono wrote:
    Hi all,
    I have two errors after modifying the LOG_ARCHIVE_DEST_1 parameter. I've run this...
    ALTER SYSTEM SET LOG_ARCHIVE_DEST_1='LOCATION=/u04/archive/EST OPTIONAL REOPEN=300' SCOPE=spfile;
    and after restarting the instance, I found these errors
    ORA-32004: obsolete and/or deprecated parameter(s) specified
    ORA-16024: parameter LOG_ARCHIVE_DEST_1 cannot be parsed
    I checked the spfile and I discovered an error in it due this change:
    *.log_archive_dest_1='LOCATION=/u04/archive/EST OPTIONAL REPO^H^HOPEN=300'
    "^H^H" these characters were inserted because an stty config error and I was not able to see them.
    How should I procede to recover my instance?
    ThanksFirst, is your instance in need of recovery? these look like non-fatal errors to me. Since you had intended that archive destination to be optional, I presume you have another, non-optional, destination that is good?
    Are you able to do a 'startup nomount'? That's as far as you need to get to issue ALTER SYSTEM commands against the spfile to correct the bad value.
    And btw, you didn't need to bounce the system in the first place. log_archive_dest_n is a dynamic parameter - you could have specified scope=both and kept on trucking - or gotten an error at that time:
    SQL> alter system set log_archive_dest_2='location=c:  lksdjf optional' scope=both;
    alter system set log_archive_dest_2='location=c:  lksdjf optional' scope=both
    ERROR at line 1:
    ORA-02097: parameter cannot be modified because specified value is invalid
    ORA-16024: parameter LOG_ARCHIVE_DEST_2 cannot be parsed
    SQL> alter system set log_archive_dest_2='location=c:\temp optional' scope=both
    System altered.
    SQL> alter system set log_archive_dest_2='' scope=both;
    System altered.
    SQL>

  • How to pass parameter in Function by using select statement?

    Hi,
    I got a problem. I cant pass in parameter to function by using select statement. But it can pass in parameter by using 'hardcode' method. How can I solve this problem?
    Eg,
    select * from table (SplitFunction('HS750020,HS750021')) <<< this work.
    but
    select * from table (SplitFunction(select LOT_NO from TRACER_SEARCH_SCHEDULE where JOB_ID = '36')) <<< do not work.
    Thanks for who try to help. Thanks.

    skymonster84 wrote:
    I have try this before. But it not work.here is an example
    create or replace type stringlist as table of varchar2(100)
    create or replace function splitstring(pstring in varchar2) return stringlist
    as
      lstringlist stringlist;
    begin
      select regexp_substr(pstring,'[^,]+',1, level) bulk collect into lstringlist
        from dual
      connect by level <= length(pstring)-length(replace(pstring,','))+1;
      return lstringlist;
    end;
    select * from table(select splitstring('xx,yy,zz') from dual)
    create table t(str varchar2(100))
    insert into t values('x,y,z')
    insert into t values('a,b,c')
    select * from table(select splitstring(str) from t where rownum<2)
    /If you supply multiple values then it will fail.
    select * from table(select splitstring(str) from t)
    /

  • Error ORA-06502 When using function REPLACE in PL/SQL

    Hi,
    I have a PL/SQL procedure which gives error 'Error ORA-06502 When using function REPLACE in PL/SQL' when the string value is quite long (I noticed this with a string 9K in length)
    variable var_a is of type CLOB
    and the assignment statement where it gives the error is
    var_a := REPLACE(var_a, '^', ''',''');
    Can anyone please help!
    Thanks

    Even then that shouldn't do so:
    SQL> select overload, position, argument_name, data_type, in_out
      2  from all_arguments
      3  where package_name = 'STANDARD'
      4  and object_name = 'LPAD'
      5  order by 1,2
      6  /
    OVERLOAD   POSITION ARGUMENT_NAME                  DATA_TYPE                      IN_OUT
    1                 0                                VARCHAR2                       OUT
    1                 1 STR1                           VARCHAR2                       IN
    1                 2 LEN                            BINARY_INTEGER                 IN
    1                 3 PAD                            VARCHAR2                       IN
    2                 0                                VARCHAR2                       OUT
    2                 1 STR1                           VARCHAR2                       IN
    2                 2 LEN                            BINARY_INTEGER                 IN
    3                 0                                CLOB                           OUT
    3                 1 STR1                           CLOB                           IN
    3                 2 LEN                            NUMBER                         IN
    3                 3 PAD                            CLOB                           IN
    4                 0                                CLOB                           OUT
    4                 1 STR1                           CLOB                           IN
    4                 2 LEN                            NUMBER                         INI wonder what happened?

  • Parameter Exit Function in Planning Folder

    Hi all,
    I created the planning function in SEM BPS using exit function. And then I added the parameter exit function 0VERSION to this function. After that, I tried to put this function in the planning folder.
    Does anybody know how to put the parameter exit function to the planning folder?
    Because I need the user to fill the value of the 0VERSION before they run the function.
    I assume this should work as the selection screen.
    Currently, Every time I run this function, there is no selection screen or the place that I could fill the value for this field. So, the system always receives no value for this field.
    Or Maybe you have another approach to get the user's value without restrict the data before run the exit function.
    Thanks a lot for your help,
    -Martin Darmawi-

    This behaviour is quite normal. You should use different approach.
    Parameters in exit functions can be filled in parameter group only and only with fixed values.
    You should create a planning variable, put it to the folder and then read value of this variable in your exit function with 'API_SEMBPS_VARIABLE_GETDETAIL' for example.

  • How can I add search parameter "Partner Function" to the inbox in ICweb?

    Hello
    I need to add search parameter "Partner Function" to the inbox ICweb search.
    Today I can search for My open transaction.
    The meaning of "My" in the EM Responsible parameter is that my BP number assign to any transaction in any partner function.
    I wont to limit the search to look in a particular partner function. for example: 00000014 Employee responsible.
    I mean in hardcode and not as a parameter selection screen.
    I know that this functionality exist in CRM5 but i am in CRM4
    Thanks
    Merav

    Hi Darren,
    I have implemented this BAdi and when I am trying to activate this it is giving me short dump saying 'SYSTEM_CORE_DUMPED', please help.
    During the course of my actions I implemeted this BAdi using transaction SE19, the activated this it is activated correctly, then I did some changes in method 'CUSTOM_HIT_LIST_SORT' but then whenever I try activate either the metod or the implemetation it is gives me a pop up saying 'Work Process restarted, session terminated' and the session terminates. On ERMS web page I see the Rabex error and in ST22 I see the SYSTEM_CORE_DUMPED error with following dump details
    Runtime Errors         SYSTEM_CORE_DUMPED
           Occurred on     07/21/2006 at 09:07:51
    Process terminated by signal 0.
    What happened?
    The current ABAP program had to be terminated because the
    ABAP processor detected an internal system error.
    The current ABAP program "ZCL_IM_TTT_IC_INBOX_BADI_2====CP " had to be
    terminated because the ABAP
    processor discovered an invalid system state.
    Information on where termination occurred
    The termination occurred during generation of the ABAP program
    "ZCL_IM_TTT_IC_INBOX_BADI_2====CP ".
    The point of termination was in line 5 of the ABAP source code of the
    (Include) program "CL_CRM_AUI_ENTITY=============CU ".
    of the program "CL_CRM_AUI_ENTITY=============CU " (when calling the editor
    50).
    Source code extract
    000010   class CL_CRM_AUI_ENTITY definition
    000020     public
    000030     inheriting from CL_CRM_BOL_ENTITY
    000040     abstract
         >     create public .
    000060
    000070   " public components of class CL_CRM_AUI_ENTITY
    000080   " do not include other source files here!!!
    000090   public section.
    000100
    000110     interfaces IF_CRM_IC_CONTACT .
    000120
    000130     methods ACCEPT
    000140     abstract
    000150       importing
    000160         !IR_ENTITY type ref to CL_CRM_BOL_ENTITY
    Please help.
    Regards,
    Tarun Goel

  • Add parameter in Function Module

    hi all,
    I'm trying to add a parameter to function module HRGPBS_HER_GET_SURNAME_NINO.
    However, the system is telling me to carry out modification comparison first.
    Can someone guide me on using SPAU or SE95, as I don't understand what to enter in the selection area?
    thanks

    If you go to transaction code: SPAU, you can find the item (program, function module, screen, etc) in question, open the tree to the lower levels. On the lower item, you can choose to save your changes or revert back to original.
    The developers should be able to tell what has been changed. In most cases, we wanted to keep our changes with the exception of when a change was made and later a note was released to produce the same result or if new functionality is released related to the item in question.
    Hope this helps.

  • DBMS_LDAP call fails with ORA-06512 Error Mapping function

    Hi,
    I am facing a problem with workflow integration with LDAP.
    I receive
    ORA-6512 Error Mapping Function on one particular line within the WF_LDAP.get_cfg_val procedure.
    WHILE my_entry IS NOT NULL
    LOOP
    my_vals := DBMS_LDAP.get_values (p_session,
    my_entry,
    p_name);
    The documentation says:
    ORA-06521 PL/SQL: Error mapping function
    Cause: An error was detected by PL/SQL trying to map the mentioned
    function dynamically.
    Action: Check the stacked error (if any) for more details.
    This is the trace of the error:
    ORA-06521 PL/SQL Error mapping Function
    ORA-06512 at SYS.DBMS_LDAP_API_FFI line 0
    ORA-06512 at SYS.DBMS_LDAP line 1332
    ORA-06512 at SYS.DBMS_LDAP line 1302
    ORA-06512 at SYS.DBMS_LDAP line 582
    This is the header of the catldap.sql file
    Rem
    Rem $Header: catldap.sql 07-jan-2000.19:15:20 akolli Exp $
    Rem
    Rem catldap.sql
    Rem
    Rem $Header: dbmsldap.sql 14-dec-2001.23:25:22 rbollu Exp $
    Rem
    Rem dbmsldap.sql
    Rem
    This is the output while running it (No errors):
    Library created.
    Package created.
    Package created.
    Package created.
    Package body created.
    Package body created.
    Package body created.
    Synonym created.
    Grant succeeded.
    Synonym created.
    Grant succeeded.
    Database is :
    compatible 9.2.0.0.0
    Am I missing something?
    I have searched all the forums and although there are many references to "Error Mapping Function", noone has reported it in the context of WF - LDAP Integration. So I am not sure how to proceed.
    Please help.
    thanks in advance,
    Libin

    Hi Libin,
    Can you please explain to me the parameters that you put in the Global Preferences, the LDAP_port,LDAP_user,and the others, because I don�t know where I need to search in the server this parameters and I don�t understand su much of OID.
    if you can give to me and little description of that parameters,this would thank for much.
    anticipated thanks
    Arlet

  • ORA-06503: PL/SQL: Function returned without value

    Hello
    Having a bit of a problem with piplined functions.
    Why does this work :
    SET SERVEROUTPUT ON
    DECLARE
    TYPE SARRAY IS TABLE OF VARCHAR2(4000);
    CURSOR CU IS SELECT * FROM DX_XML_ATTENDANCE WHERE STUD_ID = 107777 AND BASE_ID = 94;
    T_STUD NUMBER(10);
    T_BASE NUMBER(10);
    T_DATE DATE;
    T_MARKS VARCHAR2(1000);
    LEN_MARKS NUMBER;
    PDATE DATE;
    SDATE DATE;
    EDATE DATE;
    SLEN NUMBER;
    WEEKLEN NUMBER;
    INIPOS NUMBER;
    MARRAY VARCHAR2(1000);
    SUBARRAY SARRAY := SARRAY();
    SFILL VARCHAR2(14) := '--------------';
    EPOS NUMBER;
    MY_REC     DX_XML_ATTENDANCE%ROWTYPE;
    BEGIN
    SUBARRAY.EXTEND(17);
    DBMS_OUTPUT.ENABLE(100000000);
    --FOR MY_REC IN CU
    OPEN CU;
    LOOP
         FETCH CU INTO MY_REC;
         EXIT WHEN (CU%NOTFOUND);
    T_STUD := MY_REC.STUD_ID;
    T_BASE := MY_REC.BASE_ID;
    T_DATE := TO_DATE(MY_REC.START_DATE, 'DD/MM/YYYY');
    T_MARKS := MY_REC.MARKS;
    LEN_MARKS := LENGTH(T_MARKS);
    EPOS := LEN_MARKS / 2;
    SDATE := ROUND(TO_DATE(T_DATE), 'W') - 1;
    INIPOS := TO_NUMBER(TO_CHAR(T_DATE, 'D'));
    SLEN := INIPOS + 3;
    PDATE := SDATE;
    EDATE := SDATE + EPOS;
    MARRAY := SUBSTR(T_MARKS, 1, SLEN);
    WEEKLEN := LENGTH(MARRAY);
    IF WEEKLEN < 14 THEN
         MARRAY := SUBSTR(SFILL, 1, 14 - WEEKLEN) || MARRAY;
    END IF;
    SUBARRAY(1) := T_STUD;
    SUBARRAY(2) := T_BASE;
    SUBARRAY(3) := PDATE;
    FOR i IN 4 .. 17 LOOP
         SUBARRAY(i) := SUBSTR(MARRAY, i - 3, 1);
    END LOOP;
    DBMS_OUTPUT.PUT_LINE(SUBARRAY(1)||' '||SUBARRAY(2)||' '||SUBARRAY(3)||' '||SUBARRAY(4)||' '||
         SUBARRAY(5)||' '||SUBARRAY(6)||' '||SUBARRAY(7)||' '||SUBARRAY(8)||' '||SUBARRAY(9)||' '||
         SUBARRAY(10)||' '||SUBARRAY(11)||' '||SUBARRAY(12)||' '||SUBARRAY(13)||' '||SUBARRAY(14)||' '||
         SUBARRAY(15)||' '||SUBARRAY(16)||' '||SUBARRAY(17));
    WHILE PDATE < EDATE LOOP
         PDATE := PDATE + 7;
         MARRAY := SUBSTR(T_MARKS, SLEN + 1, 14);
         WEEKLEN := LENGTH(MARRAY);
         IF WEEKLEN < 14 THEN
              MARRAY := MARRAY || SUBSTR(SFILL, 1, 14 - WEEKLEN);
         END IF;
         FOR i IN 4 .. 17 LOOP
              SUBARRAY(i) := SUBSTR(MARRAY, i - 3, 1);
         END LOOP;
         SUBARRAY(3) := PDATE;
    DBMS_OUTPUT.PUT_LINE(SUBARRAY(1)||' '||SUBARRAY(2)||' '||SUBARRAY(3)||' '||SUBARRAY(4)||' '||
         SUBARRAY(5)||' '||SUBARRAY(6)||' '||SUBARRAY(7)||' '||SUBARRAY(8)||' '||SUBARRAY(9)||' '||
         SUBARRAY(10)||' '||SUBARRAY(11)||' '||SUBARRAY(12)||' '||SUBARRAY(13)||' '||SUBARRAY(14)||' '||
         SUBARRAY(15)||' '||SUBARRAY(16)||' '||SUBARRAY(17));
         PDATE := PDATE + 7;
         SLEN := SLEN + 14;
    END LOOP;
    END LOOP;
    END;
    and this does not :
    CREATE OR REPLACE PACKAGE BODY PARSE_ATTENDANCE AS
    FUNCTION ENUM_MARKS(SEL_SQL IN VARCHAR2)
    RETURN TMP_ATT_DATA_TBL PIPELINED
    IS
    V_SQL           VARCHAR(1000):= SEL_SQL;
    V_CURSOR      SYS_REFCURSOR;
    V_ROW          TMP_ATT_HOLDING:=TMP_ATT_HOLDING(NULL, NULL, NULL, NULL);
    T_STUD           NUMBER(10);
    T_BASE           NUMBER(10);
    T_DATE           DATE;
    T_MARKS      VARCHAR2(1000);
    LEN_MARKS      NUMBER;
    PDATE          DATE;
    SDATE          DATE;
    EDATE          DATE;
    SLEN           NUMBER;
    WEEKLEN      NUMBER;
    INIPOS           NUMBER;
    MARRAY           VARCHAR2(1000);
    SUBARRAY      SARRAY := SARRAY();
    SFILL           VARCHAR2(14) := '--------------';
    EPOS           NUMBER;
    BEGIN
    SUBARRAY.EXTEND(17);
    OPEN V_CURSOR FOR V_SQL;
    LOOP
         FETCH V_CURSOR INTO V_ROW.STUD_ID, V_ROW.BASE_ID, V_ROW.START_DATE, V_ROW.MARKS;
         EXIT WHEN V_CURSOR%NOTFOUND;
    T_STUD := V_ROW.STUD_ID;
    T_BASE := V_ROW.BASE_ID;
    T_DATE := TO_DATE(V_ROW.START_DATE, 'DD/MM/YYYY');
    T_MARKS := V_ROW.MARKS;
    LEN_MARKS := LENGTH(T_MARKS);
    EPOS := LEN_MARKS / 2;
    SDATE := ROUND(TO_DATE(T_DATE), 'W') - 1;
    INIPOS := TO_NUMBER(TO_CHAR(T_DATE, 'D'));
    SLEN := INIPOS + 3;
    PDATE := SDATE;
    EDATE := SDATE + EPOS;
    MARRAY := SUBSTR(T_MARKS, 1, SLEN);
    WEEKLEN := LENGTH(MARRAY);
    IF WEEKLEN < 14 THEN
         MARRAY := SUBSTR(SFILL, 1, 14 - WEEKLEN) || MARRAY;
    END IF;
    SUBARRAY(1) := T_STUD;
    SUBARRAY(2) := T_BASE;
    SUBARRAY(3) := PDATE;
    FOR i IN 4 .. 17 LOOP
         SUBARRAY(i) := SUBSTR(MARRAY, i - 3, 1);
    END LOOP;
    PIPE ROW(TMP_ATT_DATA_OBJ(SUBARRAY(1),SUBARRAY(2),SUBARRAY(3),SUBARRAY(4),
         SUBARRAY(5),SUBARRAY(6),SUBARRAY(7),SUBARRAY(8),SUBARRAY(9),
         SUBARRAY(10),SUBARRAY(11),SUBARRAY(12),SUBARRAY(13),SUBARRAY(14),
         SUBARRAY(15),SUBARRAY(16),SUBARRAY(17)));
    WHILE PDATE < EDATE LOOP
         PDATE := PDATE + 7;
         MARRAY := SUBSTR(T_MARKS, SLEN + 1, 14);
         WEEKLEN := LENGTH(MARRAY);
         IF WEEKLEN < 14 THEN
              MARRAY := MARRAY || SUBSTR(SFILL, 1, 14 - WEEKLEN);
         END IF;
         FOR i IN 4 .. 17 LOOP
              SUBARRAY(i) := SUBSTR(MARRAY, i - 3, 1);
         END LOOP;
         SUBARRAY(3) := PDATE;
         PIPE ROW(TMP_ATT_DATA_OBJ(SUBARRAY(1),SUBARRAY(2),SUBARRAY(3),SUBARRAY(4),
         SUBARRAY(5),SUBARRAY(6),SUBARRAY(7),SUBARRAY(8),SUBARRAY(9),
         SUBARRAY(10),SUBARRAY(11),SUBARRAY(12),SUBARRAY(13),SUBARRAY(14),
         SUBARRAY(15),SUBARRAY(16),SUBARRAY(17)));
         PDATE := PDATE + 7;
         SLEN := SLEN + 14;
    END LOOP;
    END LOOP;
    END ENUM_MARKS;
    END PARSE_ATTENDANCE;
    (This is then called like SELECT * FROM
    TABLE(
    PARSE_ATTENDANCE.ENUM_MARKS(
    'SELECT STUD_ID, BASE_ID, START_DATE, MARKS
    FROM DX_XML_ATTENDANCE WHERE STUD_ID = 107777
    AND BASE_ID = 94'))
    I get the same error, around this section near the bottom :
         PDATE := PDATE + 7;
         SLEN := SLEN + 14;
    Can any one help?

    Here is an example. you are missing an return statement.
    SQL> create or replace type varchar2_table is table of varchar2(10) ;
      2  /
    Type created.
    SQL> show errors
    No errors.
    SQL> create or replace function get_data return varchar2_table pipelined is
      2  begin
      3      pipe row(('Test')) ;
      4  end ;
      5  /
    Function created.
    SQL> show errors
    No errors.
    SQL> select * from table(get_data) ;
    ERROR:
    ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at "KKISHORE.GET_DATA", line 3
    no rows selected
    SQL> create or replace function get_data return varchar2_table pipelined is
      2  begin
      3      pipe row(('Test')) ;
    4 return ;
      5  end ;
      6  /
    Function created.
    SQL> show errors
    No errors.
    SQL> select * from table(get_data) ;
    COLUMN_VAL
    Test
    SQL>

Maybe you are looking for

  • Can't send or receive texts on iPhone 5c

    I used to be able to send texts to some people, but not others.  Now after extensive reading and searching online over the last week, I have turned iMessage off, have MMS Messaging turned on, have reset network settings, restarted phone numerous time

  • Maintaining payment terms for Installment payments

    Hi; Kindly let me know how to create payement term record for more than 4 installments. As in STD. 3 installments we can maintain. But how more than 4?????? Thanks in advance; avinash

  • Is there any way in the SOA suite to reject XML messages over certain size?

    I am working for a client at the moment and we are currently in the system test phase of the first SOA implementation project. We have a process that is made externally available to third parties via an ESB service which is secured using the OWSM. Th

  • Nokia N9 PR1.1 update: Camera stop to work

    Hello, I've upgraded my Nokia N9 yesterday to PR1.1. My Camera not work now. When I see /var/log/syslog, I have this lines: Nov  9 10:20:06 (2011) applifed[937]: Application 'com.nokia.maemo.CameraService' released from prestarted state, count=1 Nov 

  • OCS infra with 10gAS mid-tier

    Hi All, I have installed OCS 9.0.4.1 and am going to install Oracle Application Server 10g (10.1.2.0.0). Can I use the OCS infra for the AS? Kindly send a copy of the reply to [email protected] Thanks in advance.