Webutil_c_api char error

I'm trying to execute the following C function:
extern "C" PRUEBADLL_API int fnPruebaDLL(char* value);
This function shows a simple Dialog.
Firtsly I executed the function:
extern "C" PRUEBADLL_API int fnPruebaDLL();
And it was ok. But with the param it doesn't work. My PL/SQL code is:
          FUNCTION dll_PruebaDLL(value1 IN OUT CHAR) RETURN PLS_INTEGER IS
               prueba_func webutil_c_api.FunctionHandle;
               prueba_params webutil_c_api.ParameterList;
               prueba_param1 webutil_c_api.ParameterHandle;
               prueba_return PLS_INTEGER;
               BEGIN
                    prueba_func := webutil_c_api.register_function('PruebaDLL.dll', 'fnPruebaDLL');
                    prueba_params := webutil_c_api.create_parameter_list;
                    prueba_param1 := webutil_c_api.add_parameter(prueba_params, webutil_c_api.C_CHAR_PTR, webutil_c_api.PARAM_INOUT, value1);
                    prueba_return := webutil_c_api.Invoke_Int('PruebaDLL.dll', 'fnPruebaDLL', prueba_params);
                    webutil_c_api.destroy_parameter_list(prueba_params);
                    webutil_c_api.deregister_function(prueba_func);
                    return prueba_return;          
          END dll_PruebaDLL;           
Does anybody know why it doesn't work?

You ommit the length of value1.
This line
prueba_param1 := webutil_c_api.add_parameter(prueba_params, webutil_c_api.C_CHAR_PTR, webutil_c_api.PARAM_INOUT, value1);
should read
prueba_param1 := webutil_c_api.add_parameter(prueba_params, webutil_c_api.C_CHAR_PTR, webutil_c_api.PARAM_INOUT, value1, length(value1));

Similar Messages

  • Inconsistent datatypes: expected NUMBER got CHAR error

    Hi,
    I have the following table
    create GLOBAL TEMPORARY TABLE br_total_rtn_data_tmp
    code varchar(50)     NOT NULL,
    name                         varchar(255),     
    cum_ytd_rtn_amt          varchar(255),     
    cum_one_mon_rtn_amt          varchar(255)     ,
    cum_thr_mon_rtn_amt          varchar(255)     ,
    cum_six_mon_rtn_amt          varchar(255),
    cum_nine_mon_rtn_amt     varchar(255),
    cum_one_yr_rtn_amt          varchar(255),
    cum_thr_yr_rtn_amt          varchar(255),
    cum_five_yr_rtn_amt          varchar(255),
    cum_ten_yr_rtn_amt          varchar(255),
    cum_lof_rtn_amt               varchar(255),
    avg_anl_one_yr_rtn_amt     varchar(255),
    avg_anl_thr_yr_rtn_amt     varchar(255),
    avg_anl_five_yr_rtn_amt     varchar(255),
    avg_anl_ten_yr_rtn_amt     varchar(255),
    avg_anl_lof_rtn_amt          varchar(255),
    cum_prev_1m_month_end     varchar(255),
    cum_prev_2m_month_end     varchar(255)
    )ON COMMIT PRESERVE ROWS;
    I have a case statement
    CASE
                 WHEN code = 'MDN' THEN
                           max(case when p.m_date = v_prev2_yr_mon and p.period_type = '1M' then p.mdn /100  else null end)
                 WHEN code = 'QRT' THEN
                      max(case when p.m_date = v_prev2_yr_mon and p.period_type = '1M' then p.quartile  else null end)
                 WHEN code = 'PCT' THEN
                      max(case when p.m_date = v_prev2_yr_mon and p.period_type = '1M' then p.pct_beaten / 100 else null end)
                 WHEN code = 'RNK' THEN
                           case when (p.m_date = v_prev2_yr_mon and p.period_type = '1M'  and p.rank is  null and p.cnt is null)
                        THEN
                                       P.RANK
                        else
                                        p.rank||'/'||p.cnt
                        end           
                 ELSE NULL
                 END CASE The output for code = RNK should be somewhat like 3/5 which is rank/count
    but i get the error "Inconsistent datatypes: expected NUMBER got CHAR error" when i put p.rank||'/'||p.cnt
    How can that be solved.
    ORacle version is 10g.

    Taken from the documentation of the CASE expression:
    "For a simple CASE expression, the expr and all comparison_expr values must either have the same datatype (CHAR, VARCHAR2, NCHAR, or NVARCHAR2, NUMBER, BINARY_FLOAT, or BINARY_DOUBLE) or must all have a numeric datatype. If all expressions have a numeric datatype, then Oracle determines the argument with the highest numeric precedence, implicitly converts the remaining arguments to that datatype, and returns that datatype.
    For both simple and searched CASE expressions, all of the return_exprs must either have the same datatype (CHAR, VARCHAR2, NCHAR, or NVARCHAR2, NUMBER, BINARY_FLOAT, or BINARY_DOUBLE) or must all have a numeric datatype. If all return expressions have a numeric datatype, then Oracle determines the argument with the highest numeric precedence, implicitly converts the remaining arguments to that datatype, and returns that datatype."
    You need to use the same data type for all your expressions. If you want to return a string, then you need to convert the remaining numbers explicitly to strings. E.g. you could try something like this:
    CASE
                 WHEN code = 'MDN' THEN
                           to_char(max(case when p.m_date = v_prev2_yr_mon and p.period_type = '1M' then p.mdn /100  else null end), 'TM')
                 WHEN code = 'QRT' THEN
                      to_char(max(case when p.m_date = v_prev2_yr_mon and p.period_type = '1M' then p.quartile  else null end), 'TM')
                 WHEN code = 'PCT' THEN
                      to_char(max(case when p.m_date = v_prev2_yr_mon and p.period_type = '1M' then p.pct_beaten / 100 else null end), 'TM')
                 WHEN code = 'RNK' THEN
                           case when (p.m_date = v_prev2_yr_mon and p.period_type = '1M'  and p.rank is  null and p.cnt is null)
                        THEN
                                       to_char(P.RANK, 'TM')
                        else
                                        p.rank||'/'||p.cnt
                        end           
                 ELSE NULL
                 END CASE I see another potential issue, you're mixing aggregate functions with non-aggregate expressions, this can only work if these non-aggregate expressions are part of the group by clause, but you haven't posted the complete statement so I can only guess.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle:
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Virtual Char error - UC_OBJECTS_NOT_CONVERTIBLE

    I posted this on BI general, but thought may be this is a better place..please respond..
    Hi all, I am trying to implement a virtual char and I foolowed the how to paper from SAP...My example is a very simple one where I want to test how this concept works. What I wanted to do is to be able to assign a constnt value to the characteristic 0PLANT, but I get the following runtime error when I test the report in RSRT.
    UC_OBJECTS_NOT_CONVERTIBLE - Data objects in Unicode programs cannot be converted.
    The statement
    "MOVE src TO dst"
    requires that the operands "dst" and "src" are convertible.
    Since this statement is in a Unicode program, the special conversion
    rules for Unicode programs apply.
    In this case, these rules were violated.
    here is the code I had in the method: IF_EX_RSR_OLAP_BADI~COMPUTE
    method IF_EX_RSR_OLAP_BADI~COMPUTE.
    field-symbols <fs_0material> type any.
    field-symbols <fs_0plant> type any.
    data: l_plant type /BI0/OIPLANT.
    assign component p_cha_0material of structure c_s_data to <fs_0material>.
    assign component p_cha_0plant of structure c_s_data to <fs_0plant>.
    <fs_0plant> = l_plant.
    endmethod.
    I tried to search in SDN and on Service market place but could not find proper documents. Can someone help?

    Ok I am past the error message and can actually execute it throught RSRT, but I dont see the virtual chars being filled in the output result. I can see through debug mode that the Virtual char in this case ZMRPDATE getting a value and also c_s_data being filled with that value, but finally when it outputs the result in RSRT it shows nothing. Is there any step that I am missing??
    METHOD IF_EX_RSR_OLAP_BADI~COMPUTE .
    field-symbols <fs_zmrpdate> type any.
    field-symbols <fs_0material> type any.
    field-symbols <fs_0plant> type any.
    field-symbols <fs_zberw2> type any.
    data: l_plant(4) type c.
          l_plant = 'ABCD'.
    if p_cha_0plant is not initial.
    assign component p_cha_0material of structure c_s_data to <fs_0material>.
    assign component p_cha_0plant of structure c_s_data to <fs_0plant>.
    assign component p_cha_zmrpdate of structure c_s_data to <fs_zmrpdate>.
    assign component p_kyf_zberw2 of structure c_s_data to <fs_zberw2>.
    endif.
    select single /bic/zmrpdate from /bic/azpur_mdp00 into (<fs_zmrpdate>)
               where
                    material = <fs_0material> and
                    plant    = <fs_0plant>.
    <fs_0plant> = l_plant.
    <fs_0material> = l_plant.
    ******<fs_zmrpdate> = sy-datum.
    <fs_zberw2>  = '999'.
    Write afte the above step I could see that the C_S_DATA has changed, but the output result in RSRT will not the fields filled, they are still blank!!!!!!!!!!!!!!!!
    Edited by: Ram Gowda on Feb 11, 2008 11:15 AM

  • Error coming while activating the data request at DSO level

    Hi to all,
    please can anybody tell me the solution for that.
    While activation the data request at DSO level  , i am getting error .
    Value 'R2S-11.60UML  ' (hex. '5200320053002D00310031002E003600300055004D004C00A0') of char
    Error when assigning SID: Action VAL_SID_CONVERT table 0MATERIAL
    Process 000001 returned with errors
    this error is coming under SID Generation .
    I shall be thnakfull to you for this.
    Regards
    Pavneet Rana

    Hi Rana,
    Activation failed because of the special characters in the Omaterial
    Delete the request in target
    edit it in the specific record in PSA and load it back
    In your case i think its a space problem u can see a space after L
    delete the space for the record and load it again
    Regards,
    MADhu

  • VC: Syntax error while defining procedures

    Requirement is to calculate value of characteristic Volume from the values of characteristics
    width, height & depth. To achieve this, defined following source code
    $self.volume = $self.width$self.height$self.depth
    But could not able to execute condition, All the characteristics are char format & single value.
    checked into following threads, which talks about the similar issue, followed their suggestion, but not
    able to fix the error.
    Re: variant configuration
    Author Sathyanarayana naini mentions about
    "character format values you have to use strings........ex: "value"", which I am not clear about. Does it
    mean, need to maintain string "  " in characteristic value.

    All my characteristics are type "char"
    error message:
    E28021 Error: remaining part of expression cannot be interpreted
    After selecting back, cursor blinks on first asterisk.

  • XMLParser error in PL/SQL

    I am using DBMS_XMLParser in Oracle 10g to parse an XML. The code is as follows:
    CREATE OR REPLACE procedure xml_main is
    P DBMS_XMLPARSER.Parser;
    DOC CLOB;
    v_xmldoc DBMS_XMLDOM.DOMDocument;
    v_out CLOB;
    BEGIN
    P := DBMS_XMLPARSER.newParser;
    DBMS_XMLPARSER.setValidationMode(p, FALSE);
    DOC := '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <com.welligent.Student.BasicStudent.Create>
    <ControlAreaSync messageCategory="com.welligent.Student" messageObject="BasicStudent" messageAction="Create" messageRelease="1.0" messagePriority="1" messageType="Sync">
    <Sender>
    <MessageId>
    <SenderAppId>com.openii.SyncRouter</SenderAppId>
    <ProducerId>a72af712-90ea-43be-b958-077a87a29bfb</ProducerId>
    <MessageSeq>53</MessageSeq>
    </MessageId>
    <Authentication>
    <AuthUserId>Router</AuthUserId>
    </Authentication>
    </Sender>
    <Datetime>
    <Year>2001</Year>
    <Month>3</Month>
    <Day>23</Day>
    <Hour>13</Hour>
    <Minute>47</Minute>
    <Second>30</Second>
    <SubSecond>223</SubSecond>
    <Timezone>6:00-GMT</Timezone>
    </Datetime>
    </ControlAreaSync>
    <DataArea>
    <NewData>
    <BasicStudent mealCode="" usBorn="Yes" migrant="No" workAbility="No" ellStatus="">
    <StudentNumber>052589F201</StudentNumber>
    <ExternalIdNumber>1234567890</ExternalIdNumber>
    <StateIdNumber>123456</StateIdNumber>
    <Name>
    <LastName>Lopez</LastName>
    <FirstName>Maria</FirstName>
    <MiddleName>S</MiddleName>
    </Name>
    <Gender>Female</Gender>
    <BirthDate>
    <Month>1</Month>
    <Day>1</Day>
    <Year>1995</Year>
    </BirthDate>
    <Race>Hispanic</Race>
    <Ethnicity>Hispanic</Ethnicity>
    <PrimaryLanguage>English</PrimaryLanguage>
    <HouseholdLanguage>Spanish</HouseholdLanguage>
    <Address>
    <Street>123 Any Street</Street>
    <ApartmentNumber>12-D</ApartmentNumber>
    <City>Los Angeles</City>
    <County>Los Angeles</County>
    <State>CA</State>
    <ZipCode>90071</ZipCode>
    </Address>
    </BasicStudent>
    </NewData>
    </DataArea>
    </com.welligent.Student.BasicStudent.Create>';
    DBMS_XMLPARSER.PARSECLOB ( P, DOC );
    v_xmldoc := DBMS_XMLPARSER.getDocument(P);
    printElementAttributes(v_xmldoc);
    exception
    when DBMS_XMLDOM.INDEX_SIZE_ERR then
    raise_application_error(-20120, 'Index Size error');
    when DBMS_XMLDOM.DOMSTRING_SIZE_ERR then
    raise_application_error(-20120, 'String Size error');
    when DBMS_XMLDOM.HIERARCHY_REQUEST_ERR then
    raise_application_error(-20120, 'Hierarchy request error');
    when DBMS_XMLDOM.WRONG_DOCUMENT_ERR then
    raise_application_error(-20120, 'Wrong doc error');
    when DBMS_XMLDOM.INVALID_CHARACTER_ERR then
    raise_application_error(-20120, 'Invalid Char error');
    when DBMS_XMLDOM.NO_DATA_ALLOWED_ERR then
    raise_application_error(-20120, 'Nod data allowed error');
    when DBMS_XMLDOM.NO_MODIFICATION_ALLOWED_ERR then
    raise_application_error(-20120, 'No mod allowed error');
    when DBMS_XMLDOM.NOT_FOUND_ERR then
    raise_application_error(-20120, 'Not found error');
    when DBMS_XMLDOM.NOT_SUPPORTED_ERR then
    raise_application_error(-20120, 'Not supported error');
    when DBMS_XMLDOM.INUSE_ATTRIBUTE_ERR then
    raise_application_error(-20120, 'In use attr error');
    END;
    CREATE OR REPLACE procedure printElementAttributes(doc DBMS_XMLDOM.DOMDocument) is
    nl DBMS_XMLDOM.DOMNODELIST;
    len1 NUMBER;
    len2 NUMBER;
    n DBMS_XMLDOM.DOMNODE;
    e DBMS_XMLDOM.DOMELEMENT;
    nnm DBMS_XMLDOM.DOMNAMEDNODEMAP;
    attrname VARCHAR2(100);
    attrval VARCHAR2(100);
    text_value VARCHAR2(100):=NULL;
    n_child DBMS_XMLDOM.DOMNODE;
    BEGIN
    -- get all elements
    nl := DBMS_XMLDOM.getElementsByTagName(doc, '*');
    len1 := DBMS_XMLDOM.getLength(nl);
    -- loop through elements
    FOR j in 0..len1-1 LOOP
    n := DBMS_XMLDOM.item(nl, j);
    e := DBMS_XMLDOM.makeElement(n);
    DBMS_OUTPUT.PUT_LINE(DBMS_XMLDOM.getTagName(e) || ':');
    -- get all attributes of element
    nnm := DBMS_XMLDOM.getAttributes(n);
    n_child:=DBMS_XMLDOM.getFirstChild(n);
    text_value:=DBMS_XMLDOM.getNodeValue(n_child);
    dbms_output.put_line('val='||text_value);
    IF (DBMS_XMLDOM.isNull(nnm) = FALSE) THEN
    len2 := DBMS_XMLDOM.getLength(nnm);
    dbms_output.put_line('length='||len2);
    -- loop through attributes
    FOR i IN 0..len2-1 LOOP
    n := DBMS_XMLDOM.item(nnm, i);
    attrname := DBMS_XMLDOM.getNodeName(n);
    attrval := DBMS_XMLDOM.getNodeValue(n);
    dbms_output.put(' ' || attrname || ' = ' || attrval);
    END LOOP;
    dbms_output.put_line('');
    END IF;
    END LOOP;
    END printElementAttributes;
    While executing the xml_main proc from an anonymous block, I am getting the following error:
    ORA-04063: package body "XDB.DBMS_XMLPARSER" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "XDB.DBMS_XMLPARSER"
    ORA-06512: at "BALB.XML_MAIN", line 9
    ORA-06512: at line 2
    I've checked that the XDB is installed in my database by running the below query and getting the output
    select comp_name, version, status
    from dba_registry
    where comp_name like '%XML%';
    COMP_NAME VERSION STATUS
    Oracle XML Database 10.2.0.2.0 VALID
    1 row selected.
    Please let me know a way out to resolve it?

    It worked for me. I ran your code fine in Oracle 10g. Now 9i is probably a different story.

  • Hyperion 9.3 Financial Reporting error 'oColGroup.children'

    We have several production financial reporting reports that when run, return data but get the following error when run in workspace or through web preview in studio:
    line: ###
    Char: ##
    Error: 'oColGroup.children' is null or not an object
    Code: 0
    I turned on debug logging on the client and got 5 files of logs but none referenced anything about the error...any thoughts?

    Hi Buddy,
    I have not exactly done it myself. Infact my NT guy did that for me. I understand that when you are restarting all the services, just go to the taskmanager and kill all the java process that you find and restart the machine. This is what was followed. I have a doubt if this is the right way of doing it, however, since we had the issue in production and the Hyperion Support was taking too long to respond. We had to restart everything along with HFM as well.
    So, please restart all the services and check in the Windows Task manager and kill all the java process running and check. I will try to get more info from my NT guy who did it and update the link again.
    Cheers,
    Vikram

  • Inconsistent datatypes: expected - got CHAR, Detail view bind variables

    Hi.
    Here is my problem:
    I have master detail views connected with a view link. Both of views have bind variables that hold some session info:
    It's a menu on database and I am trying to hide some values based on user permissions.
    When running application module, everything works fine. The problem occurs when I try to show menu as a tree table, or any other table, on a page.
    The root view executes fine, but then I get an
    "java.sql.SQLSyntaxErrorException: ORA-00932: inconsistent datatypes: expected - got CHAR"
    error in executeQueryForCollection method of detail view. (this method is overridden)
    Bind Variables are:
    - :menuRoot -> which holds value of Root node. (In detail view it's just a dummy variable. It is explaned later on why i used it.)
    - :listOfUserPermmission -> array of user permissions.
    My query looks like this:
    1.Master View:
    SELECT MetVMenu.CHILD_ID,
           MetVMenu.CHILD_IME_MODULA,
           MetVMenu.PARENT_ID,
           MetVMenu.PARENT_IME_MODULA,
           MetVMenu.ZST,
           MetVMenu.NIVO,
           MetVMenu.CHILD_NAZIV_V_MENIJU,
           MetVMenu.CHILD_TIP_MODULA,
           MetVMenu.CHILD_OPIS_MODULA
    FROM MET_V_MENU MetVMenu
    WHERE MetVMenu.PARENT_IME_MODULA like :menuRoot
    and MetVMenu.CHILD_IME_MODULA in (SELECT * FROM TABLE(CAST(:listOfUserPermission AS STRARRAY)))CHILD_IME_MODULA and PARENT_IME_MODULA are also names of permissions.
    2.View Link that connects master.CHILD_ID and detail PARENT_ID
    3.Detail view, that then links to itself... to get the tree menu.
    SELECT MetVMenu.CHILD_ID,
           MetVMenu.CHILD_IME_MODULA,
           MetVMenu.PARENT_ID,
           MetVMenu.PARENT_IME_MODULA,
           MetVMenu.ZST,
           MetVMenu.NIVO,
           MetVMenu.CHILD_NAZIV_V_MENIJU,
           MetVMenu.CHILD_TIP_MODULA,
           MetVMenu.CHILD_OPIS_MODULA
    FROM MET_V_MENU MetVMenu
    WHERE :menuRoot like 'a'
    and
    MetVMenu.CHILD_IME_MODULA in (SELECT * FROM TABLE(CAST(:listOfUserPermission AS STRARRAY)))4. ViewLink that connects CHILD_ID and PARENT_ID of this "detail" view.
    Both views executeQuery methods are overridden to set Bind variables before execution.
    I get an arrayList of strings (permissions) from session and then convert it to Array.
         ArrayList permmissionsArray = (ArrayList)MyUserSession.getSessionValue("permissions");
         Array permissions = new Array(permissionsArray.toArray());
            HashMap context = new HashMap();
            context.put(DomainContext.ELEMENT_SQL_NAME, "STRARRAY");
            context.put(DomainContext.ELEMENT_TYPE, String.class);
            if(permissions != null){
                permissions.setContext(null, null, context);
                setlistOfUserPermission(permissions);
         //Here I set menuRoot variable.
         I also noticed that there are problems with how I define bind variables (the order matters).
    So when i didn't use menuRoot variable in detail view I got the
    “inconsistent datatypes: expected - got CHAR"
    error in application module.

    I went through those links, and I am sure the user has enough rights on STRARRAY object.
    I noticed that when running application module things work fine if I firstly execute RootView - Master view.
    and then double click on VL which shows detail view in table.
    The error occurs if I click on ViewLink first. I am not sure if I am even "allowed" to do that.
    I set the parameters with "setNamedWhereClauseParam" and print them out before i call super.executeQueryForCollection() and this the output i get:
    ExecuteQueryForCollectionRoot
    Permission: [AdfIn2Ogrodje.ROOT, AdfIn2Ogrodje.ADMINISTRACIJA, HOME]
    [87] MetVMenuRoot1 ViewRowSetImpl.setNamedWhereClauseParam(listOfUserPermission, oracle.jbo.domain.Array@e1af74d9)
    [88] MetVMenuRoot1 ViewRowSetImpl.setNamedWhereClauseParam(menuRoot, AdfIn2Ogrodje.ROOT)
    //Print before execution.
    EXECUTE_MENUROOT menuRoot: AdfIn2Ogrodje.ROOT
    EXECUTE_MENUROOT permission: oracle.jbo.domain.Array@e1af74d9
        Permission: AdfIn2Ogrodje.ROOT
        Permission: AdfIn2Ogrodje.ADMINISTRACIJA
        Permission: HOME
    [89] MetVMenuRoot1>#q computed SQLStmtBufLen: 537, actual=447, storing=477
    [90] SELECT MetVMenu.CHILD_ID,         MetVMenu.CHILD_IME_MODULA,         MetVMenu.PARENT_ID,         MetVMenu.PARENT_IME_MODULA,         MetVMenu.ZST,         MetVMenu.NIVO,         MetVMenu.CHILD_NAZIV_V_MENIJU,         MetVMenu.CHILD_TIP_MODULA,         MetVMenu.CHILD_OPIS_MODULA FROM MET_V_MENU MetVMenu WHERE MetVMenu.PARENT_IME_MODULA like :menuRoot and MetVMenu.CHILD_IME_MODULA in (SELECT * FROM TABLE(CAST(:listOfUserPermission AS STRARRAY)))
    [91] ViewObject: [adfin2.menu.model.views.MetVMenuRoot]MetMenuAppModule.MetVMenuRoot1 Created new QUERY statement
    [92] Bind params for ViewObject: [adfin2.menu.model.views.MetVMenuRoot]MetMenuAppModule.MetVMenuRoot1
    [93] Binding null of type 12 for "menuRoot"
    [94] Binding null of type 12 for "listOfUserPermission"
    protected void executeQueryForCollection(Object object, Object[] object2, int i) {
            System.out.println("ExecuteQueryForCollectionRoot");
            setParametersForSessionTest(); // method where i set the parameters.
            printExecute(); // printing
            super.executeQueryForCollection(object, object2, i);
        }After a few clicks on OK button the query executes normally.
    What I am guessing is, that executeQueryForCollection just takes whatever is in object2 and that's null at the beginning.
    I tried to use this method, which sets the bind variables in object2. And it gives me "Invalid column type" error.
    http://packtlib.packtpub.com/library/9781849684767/ch04lvl1sec07

  • R3 Unicode error when transferring SRM PO with custom fields to R3

    We have an SRM 5.0 system.  We are sending an SRM created PO to R3 (4.7).  This works perfectly if there are no custom fields.  We added 1 custom field of 1 character byte to the SRM PO Header.  When this is done there is a dump in R3 in SAPLBBP_BAPI_PO in "MAPPING_CUSTOMER_FIELDS" saying Data objects in a Unicode program are not convertible.
    This happens at the following statements
    ASSIGN wa_bapi_cf_header TO <l_tmp_fs>.
    l_valuepart = <l_tmp_fs>.
    We think this is related to our custom fields on EKKO on the R3 side where there is a currency field (packed), but we are not sure since we just started working with SRM.  Below is our R3 PO header structure for custom fields.
    wa_bapi_cf_header has the definition of PO header in our R3 system that contains a packed field.
    .INCLUDE     CI_EKKODB          0
    ZZCMPCD     ZCMPCD     CHAR     1
    ZZTDRIND     ZTDRIND     CHAR     1
    ZZACO     ZACO     CHAR     1
    ZZBIDROOM     ZBIDROOM     CHAR     1
    ZZCAS     ZCAS     CHAR     1
    ZZPONEG     ZPONEG     CHAR     1
    ZZWARRPO     ZZWARRPO     CHAR     1
    ZZQUOTETYPE     ZZQUOTETYPE     CHAR     10
    ZZAPRDT     ZZAPRDT     DATS     8
    ZZAPRTIM     ZZAPRTIM     TIMS     6
    ZZMASSIST     ZZMASSIST     CURR     17                 
    ZZPD     ZZPD     CHAR     1
    ZZREASON     ZZREASON     CHAR     2
    The field being sent from SRM is
    ZZACO     ZACO     CHAR     1.
    How can I correct this problem?  
    Thank you for any help you can give.
    Ada Thompson

    Hi,
    See these related threads;
    short dump(UC_OBJECTS_NOT_CONVERTIBLE)
    Data objects in a Unicode program are not convertible?what does this mean?
    Virtual Char error - UC_OBJECTS_NOT_CONVERTIBLE
    /message/1069612#1069612 [original link is broken]
    BR,
    Disha.
    Do reward points for useful answers.

  • Error on CRS-1

    Hi All ,
    We have a Fp140 card reloaded due to the following error.
    plim_xge[242]: %PLATFORM-CIH-5-ASIC_ERROR : pla[0]: A
    parity error has occurred causing  performance loss transient. 0x10440003
    plim_xge[242]:
    %PLATFORM-CIH-5-ASIC_ERROR_HARD_RESET_START : pla[0]: HARD_RESET needed 0x10440003
    Cisco error message decoder provides following explanation.
    %PLATFORM-CIH-5-ASIC_ERROR [chars]: [chars] error has occurred[chars]%s [hex]
    [chars] [chars]
    Explanation    An ASIC error has occurred and been handled.
    Can someone help me undertsand if issue was with FP140 card or the Associated PLIM.
    Thanks
    Deepak

    Deepak,
    This error was reported by your PLIM ASIC (PLA0). We have 2 of them on every PLIM. This is a log level 5 - notification.
    That said, its better you proceed with a TAC case as you might want this to be looked just to be safe.
    If you like to track this down I would run the following commnad:
    show asic-errors plim asic 0 all location 0/x/CPU0 - X stands for the slot #.
    The same info can found in "dir harddisk:/ASIC-ERROR. We keep these records in case the LC had been reset by the system in case we had expereinced an event where we could not recover.
    This is all valid for a single/random occurance, if you keep get this message in your syslog and the output of the above command shows a pattern or a trend please go ahead and open SR.
    When you do, please capture the following:
    show log
    show ver br
    show inst ac su
    ad show platfrom
    admin show diag
    show asic-errors plim asic 0 all location 0/x/CPU0
    show asic-errors plim asic trace all location 0/x/CPU0
    show controllers plim asic summary location 0/0/CPU0  <= That maps your PLA to interfaces and/or SIP/SPA HW if exists. Since this is Taiko (CRS-3 AKA 140 Fabric/Line Cards) and I see XGE, I would guess your PLIM is one of these:
    14X10GBE
    1X100GBE
    20X10GBE
    show inter br loc 0/x/cpu0
    Yigal

  • From SRM to R3 po in extended classic  : UNICODE PROGRAM ERROR

    1.Today I observed that while sending the PO data from SRM to R3 we are getting following error -
    "Data objects in a Unicode program are not convertible"
    Request you to please look into it on priority.
    SEKHAR

    short dump(UC_OBJECTS_NOT_CONVERTIBLE)
    Data objects in a Unicode program are not convertible?what does this mean?
    Virtual Char error - UC_OBJECTS_NOT_CONVERTIBLE
    /message/1069612#1069612 [original link is broken]

  • Errors in implementation project

    hi experts,
    I am new to implementation project. we r implementing to a big client, i need to know the recent advances of possible errors that may occur during my project.
    So, plz kindly try to help with handing documents related to the erros. so i may have look on that errors, before project start.
    Thanks and regards
    venkat

    hi venkat reddy,
    In Implementation project generally u will get the errors at Extracion,loading,Activation of objects,Routines...
    <b>In Extraction:</b>
    1. when activating & set up the datasources.
    2. Even if u have activated the datasource & setup alos in Extract structure u didn't get the record it is showing zero records.
    3.After extraction datareconcillation errors ( mean that checking data of BW with source sytem data)
    for above step3 u have to choose proper transactions **
    <b>In Loading:</b>
    Loading data is very Importent .
    1.Currency translation errors,Arithematic errors .
    2. Error 4 .
    3.caller 01,caller 02 errors.
    4.short dump
    5.RFC connection errors.
    5.Unwated char errors in PSA.
    In traspotation u will get request locked errors,
    objects missing ...
    In Bex also some keyfigure are not getting values.
    All these are errors.
    Thanks,
    kiran.
    Message was edited by:
            kiran manyam

  • Supply Chain Cost Rollup error

    Hi All,
    need some help with this ...we have setup a new Standard Costed Inventory org and then we are trying to run the program : Supply Chain Cost Rollup - Print Report for this new org.
    This program has been ending in error mentioned below for this org while it is running fine for all the other inventory orgs.
    Could someone please advise what could be the issue here :
    stat_low = 86
    stat_high = 0
    emsg:was terminated by signal 6
    Enter Password:
    JVMCI161: FATAL ERROR in native method: Wrong method ID used to invoke a Java method
         at oracle.reports.engine.EngineImpl.CRunReport(Native Method)
         at oracle.reports.engine.EngineImpl.run(EngineImpl.java:441)
         at oracle.reports.server.JobManager.runJobInEngine(JobManager.java:975)
         at oracle.reports.server.ExecAsynchJobThread.run(ExecAsynchJobThread.java:54)
    Report Builder: Release 10.1.2.3.0 - Production on Mon Feb 27 11:10:39 2012
    JVMDG217: Dump Handler is Processing Signal 6 - Please Wait.
    JVMDG303: JVM Requesting Java core file
    JVMDG304: Java core file written to /applcommon01/EPRODR/log/EPRODR/javacore64618496.1330361288.txt
    JVMDG215: Dump Handler has Processed Error Signal 6.
    With due Regards..

    user5149250 wrote:
    No it works fine for the other Standard & Average costed orgs.
    Is there anything which could be cross checked or confirmed.Have you reviewed these docs?
    Account Analysis - (180 Char) Error: JVMCI161: FATAL ERROR in native method [ID 1300008.1]
    R12 Trial Balance Detail Report (GLRTBD) Errors With: 'JVMCI161: FATAL ERROR in native method' [ID 1085923.1]
    FAPROJ Depreciation Projection Terminated by Signal 6 [ID 1319134.1]
    Thanks,
    Hussein

  • Error converting image, cannot create thumbnail, linux server nightmare

    Hi there everyone
    <br />
    <br />Hope everyone is doing really well
    <br />
    <br />I have finally decided to try to fix a problem I have had for almost two years now
    <br />
    <br />I have read all the posts about this problem but I still cannot find the answer
    <br />
    <br />Every time I apply a show thumbnail server behavior I get this error
    <br />
    <br />Error converting image (create thumbnail). The "/home2/mysite/public_html/images/thumbnails/" folder has no write permissions.
    <br />
    <br />Which sounds easy
    <br />SO I reset the file permissions on the image file and the thumbnail fil and I still get the same error over and over again
    <br />
    <br />really frustrating as it means I have to have an extra field in my database and in my upload forms to store a tumb sized image
    <br />
    <br />I have read in one post to create a new php file and paste this code
    <br /><? phpinfo(); ?>
    <br />then check if GD library is enabled it IS enabled
    <br />
    <br />I read in another post that I should change something in my php.ini file on my server .... but I CANNOT find the file and I don't know what how or what to change.....
    <br />
    <br />Has anyone actually got the show thumbnail behavior to work on a linux server
    <br />
    <br />I would REALLY appreciate any help solving this problem
    <br />
    <br />have a great day

    Hi charis,
    Error converting image (create thumbnail). The "/home2/mysite/public_html/images/thumbnails/" folder has no write permissions
    SO I reset the file permissions on the image file and the thumbnail fil and I still get the same error over and over again
    what write permissions value did you now define for the thumbnails directory ?
    For every picture on my site I need to have three copies
    One full size for the detail page
    One thumbnail
    One small picture , bigger than the thumb to display in a tooltip , when you hover over the thumbnail
    please check Emmanuel´s excellent "Spry, ADDT & PHP Dynamic Images" tutorial, which tells you how to create a thumbnail image by using a Custom Trigger: http://www.grafikkaos.co.uk/article/39-Spry-ADDT-PHP-Dynamic-Images/
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Error creating OD replica

    We have some strange behaviour with two 10.8.2 / Server 2.2.1 hosts that were built cleanly as OD master/replica early this year.  After the accidental deletion of some MCX data in Workgroup Manager, the master was restored using the previous days OD archive.  Since then a few issues have been noticed, the main one being the failure when attempting to replicate the directory on the second host.  There seems to be an issue with creation of the intermediate CA for the replica by the root CA on the master:
    slapconfig.log:
    2013-03-12 00:39:53 +0000 slapconfig -createreplica
    2013-03-12 00:39:53 +0000 command: /usr/sbin/sso_util info -r /LDAPv3/ldap://master.domain.com -p
    2013-03-12 00:39:53 +0000 1 Creating computer record for replica
    2013-03-12 00:39:59 +0000 command: /usr/sbin/slapconfig -delkeychain /LDAPv3/127.0.0.1 replica.domain.com$
    2013-03-12 00:39:59 +0000 slapconfig -delkeychain
    2013-03-12 00:39:59 +0000 Added computer password to keychain
    2013-03-12 00:39:59 +0000 2 Creating ldap replicator user
    2013-03-12 00:39:59 +0000 _ldap_replicator exists from previous replica - migrating
    2013-03-12 00:39:59 +0000 ServerID for this replica 6
    2013-03-12 00:40:00 +0000 command: /usr/bin/sntp -s time.asia.apple.com.
    2013-03-12 00:40:00 +0000 3 Updating local replica configuration
    2013-03-12 00:40:00 +0000 4 Gathering replication data from the master
    2013-03-12 00:40:00 +0000 5 Copying master database to new replica
    2013-03-12 00:40:00 +0000 Removed directory at path /var/db/openldap/openldap-data.
    2013-03-12 00:40:01 +0000 Starting LDAP server (slapd)
    2013-03-12 00:40:01 +0000 Waiting for slapd to start
    2013-03-12 00:40:01 +0000 slapd started
    2013-03-12 00:40:01 +0000 Stopping LDAP server (slapd)
    2013-03-12 00:40:04 +0000 command: /usr/sbin/slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d
    2013-03-12 00:40:04 +0000 command: /usr/sbin/slapadd -c -w -l /var/db/openldap/openldap-data/backup.ldif
    2013-03-12 00:40:05 +0000 command: /usr/sbin/slapadd -c -w -b cn=authdata -l /var/db/openldap/authdata/authdata.ldif
    2013-03-12 00:40:06 +0000
    2013-03-12 00:40:06 +0000 513e7965 slapd is running in import mode - only use if importing large data
              513e7965 bdb_monitor_db_open: monitoring disabled; configure monitor database to enable
    2013-03-12 00:40:06 +0000 6 Starting new replica
    2013-03-12 00:40:06 +0000 Starting LDAP server (slapd)
    2013-03-12 00:40:06 +0000 Waiting for slapd to start
    2013-03-12 00:40:06 +0000 slapd started
    2013-03-12 00:40:06 +0000 command: /usr/bin/ldapmodify -c -x -H ldapi://%2Fvar%2Frun%2Fldapi
    2013-03-12 00:40:06 +0000 command: /usr/bin/ldapsearch -x -LLL -H ldapi://%2Fvar%2Frun%2Fldapi -b cn=config -s base olcServerID
    2013-03-12 00:40:06 +0000 command: /usr/bin/ldapmodify -c -x -H ldapi://%2Fvar%2Frun%2Fldapi
    2013-03-12 00:40:06 +0000 Starting password server
    2013-03-12 00:40:07 +0000 7 Enabling local Kerberos server
    2013-03-12 00:40:07 +0000 Configuring Kerberos server, realm is MASTER.DOMAIN.COM
    2013-03-12 00:40:07 +0000 command: /usr/sbin/sso_util configure -x -k -r MASTER.DOMAIN.COM -f /LDAPv3/ldapi://%2Fvar%2Frun%2Fldapi -a diradmin -p **** -v 1 all
    2013-03-12 00:40:08 +0000 int32_t _createLDAPReplica(const char *, const char *, const char *, const char *): sso_util configure failed 1.  stdout = {  } stderr = { Creating the service list
              Creating the keytab file
    2013-03-12 00:40:08 +0000 command: /usr/bin/ldapmodify -c -x -H ldapi://%2Fvar%2Frun%2Fldapi
    2013-03-12 00:40:08 +0000 Stopping LDAP server (slapd)
    2013-03-12 00:40:09 +0000 Starting LDAP server (slapd)
    2013-03-12 00:40:09 +0000 Waiting for slapd to start
    2013-03-12 00:40:09 +0000 slapd started
    2013-03-12 00:40:09 +0000 8 Enabling syncprov overlay on the replica
    2013-03-12 00:40:09 +0000 command: /usr/bin/ldapsearch -x -LLL -H ldapi://%2Fvar%2Frun%2Fldapi -b cn=config objectClass=olcSyncProvConfig dn
    2013-03-12 00:40:09 +0000 command: /usr/bin/ldapmodify -c -x -H ldapi://%2Fvar%2Frun%2Fldapi
    2013-03-12 00:40:09 +0000 adding new entry "olcOverlay=syncprov,olcDatabase={1}bdb,cn=config"
    2013-03-12 00:40:09 +0000 command: /usr/bin/ldapmodify -c -x -H ldapi://%2Fvar%2Frun%2Fldapi
    2013-03-12 00:40:09 +0000 adding new entry "olcOverlay=syncprov,olcDatabase={2}bdb,cn=config"
    2013-03-12 00:40:09 +0000 9 Adding replica to master
    2013-03-12 00:40:09 +0000 Configuring multimaster for (replica.domain.com) with ServerID (6)
    2013-03-12 00:40:09 +0000 Remote server (master.domain.com) ID: 1
    2013-03-12 00:40:09 +0000 command: /usr/bin/ldapsearch -x -LLL -H ldapi://%2Fvar%2Frun%2Fldapi -b dc=master,dc=domain,dc=com uid=_ldap_replicator dn
    2013-03-12 00:40:09 +0000 command: /usr/bin/ldapsearch -x -LLL -H ldapi://%2Fvar%2Frun%2Fldapi -b cn=config -s base olcServerID
    2013-03-12 00:40:09 +0000 command: /usr/bin/ldapsearch -x -LLL -H ldapi://%2Fvar%2Frun%2Fldapi -b cn=config objectClass=olcSyncProvConfig dn
    2013-03-12 00:40:09 +0000 default realm: MASTER.DOMAIN.COM
    2013-03-12 00:40:09 +0000 Configuring multimaster
    2013-03-12 00:40:09 +0000 command: /usr/bin/ldapsearch -x -LLL -H ldapi://%2Fvar%2Frun%2Fldapi -b cn=config -s base olcServerID
    2013-03-12 00:40:09 +0000 command: /usr/bin/ldapmodify -c -x -H ldapi://%2Fvar%2Frun%2Fldapi
    2013-03-12 00:40:09 +0000 modifying entry "cn=config"
              modifying entry "olcDatabase={1}bdb,cn=config"
              modifying entry "olcDatabase={2}bdb,cn=config"
    2013-03-12 00:40:09 +0000 Stopping LDAP server (slapd)
    2013-03-12 00:40:10 +0000 Starting LDAP server (slapd)
    2013-03-12 00:40:10 +0000 Waiting for slapd to start
    2013-03-12 00:40:10 +0000 slapd started
    2013-03-12 00:40:10 +0000 Updating ldapreplicas on master.domain.com as diradmin
    2013-03-12 00:40:11 +0000 Updating ldapreplicas record
    2013-03-12 00:40:11 +0000 Updating ldapreplicas plist.
    2013-03-12 00:40:11 +0000 Binding to 127.0.0.1
    2013-03-12 00:40:11 +0000 command: /usr/bin/ldapadd -c -x -H ldapi://%2Fvar%2Frun%2Fldapi
    2013-03-12 00:40:11 +0000 Could not find root CA certificate in system keychain
    2013-03-12 00:40:11 +0000 10 Enabling intermediate CA
    2013-03-12 00:40:11 +0000 NSData *_getServerInfoRequestWithNode(ODNode *, NSDictionary *): ODNode - eODCustomCallAppleODClientGetServerInfo - error 10001 (The plugin encountered an error processing request.)
    2013-03-12 00:40:11 +0000 int32_t _createLDAPReplica(const char *, const char *, const char *, const char *): Error: Intermediate CA creation failed on replica
    2013-03-12 00:40:11 +0000 int32_t _createLDAPReplica(const char *, const char *, const char *, const char *): Error: Intermediate CA creation failed on replica (error = 75)
    2013-03-12 00:40:11 +0000 Deleting Cert Authority related data
    2013-03-12 00:40:11 +0000 Error deleting IntermediateCA_MASTER.DOMAIN.COM_1 from keychain: -67701
    2013-03-12 00:40:11 +0000 No intCAIdentity, not removing int CA from keychain
    2013-03-12 00:40:11 +0000 command: /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.xscertd.plist
    2013-03-12 00:40:11 +0000 command: /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.xscertd-helper.plist
    2013-03-12 00:40:11 +0000 command: /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.xscertadmin.plist
    2013-03-12 00:40:11 +0000 Updating ldapreplicas on primary master
    2013-03-12 00:40:12 +0000 Removing self from the database
    2013-03-12 00:40:12 +0000 Warning: An error occurred while re-enabling GSSAPI.
    2013-03-12 00:40:13 +0000 Stopping LDAP server (slapd)
    2013-03-12 00:40:14 +0000 Stopping password server
    Aside from this replication error and replica creation failure, distinguished bindings of clients (either conducted manually or via DeployStudio) are resulting in two computer records and sometimes a third (seemingly at random).
    1.     The expected record of the client's hostname, although with the 'Comments' field populated with the LKDC ID (not normal behaviour)
    2.     Another mostly blank record (no MAC address) using the LKDC ID as the computer record name
    3.     (Sometimes) another mostly blank record using the client's hostname with a ".local" suffix before the $
    Despite this obviously unusual behaviour, the only real clue seems to be the error in the replica creation log.  The servers were intentionally built clean on 10.8 without importing or upgrading anything from the previous 10.6 setup, so it seems strange that there should be such a major issue from a simple archive/restore of a clean setup.  My interpretation of the log contents is that there is a problem with the OD root CA, which is not very well documented to say the least.
    At this stage the main concern is isolating whether there is a problem with the current build of the server, a problem with the OD archive data, or just a glitch with the OD archive restoration process which is causing this behaviour.
    Does anyone have any clues?  Most specifically for fixing the certificate authority errors in the slapconfig.log?
    Any input greatly appreciated.

    Hi,
    Thanks for your reply.  The server was indeed demoted and this log is of what we experience when attempting to recreate the replica from standalone.
    I'm not sure if the replica was demoted before the OD archive was restored, but considering it was an archive from the previous day of the same directory, I wouldn't expect that to break replication.  This is part of my reason for suspecting the problem is with the ODM, more specifically with its root CA based on the log errors.

Maybe you are looking for

  • Dbca problem on rh 7.2 and 7.3 with Oracle 9.2

    hi! i have problems using dbca on my redhat 7.2 and redhat 7.3 machine with fresh installed oracle 9i release2. installation succeded with no problems, but now i have problem creating database with dbca. however, when i type dbca & as user oracle, i

  • Arrays to lists in db or something better?

    I have a form that is dynamic in that it first asks the user how many entries they will be making. If the user says 5, an array is created to accomodate that such as <cfset SESSION.newarray = structNew(2)> The form is generated using a cfloop to crea

  • DL DVD with 2 features at diff. bit rates?

    I'm making a dual layer DVD with 2 movies; one is 2.5 hours long and one is 1 hour long.  I found a layer break point and made the disc no problem.  However the quality is not as good as I would have hoped.  I created both movies in FCP and simply ex

  • Items and workflows

    Hi everyone, i'm using sharepoint online, When an item in the list change - I need to stop all the workflows that access with it. how can i do this? how should i know which list access with which workflow?

  • Poor quality images

    Have done many movies in FCE 3 and just loaded 4. I shoot photos with a canon 7D and in completing the movie the image quality is extremely poor. I have always just brought JPEGs in to FCE in the past and they were tack sharp. every image appears cru