Problem in creating error

CREATE OR REPLACE TRIGGER orders_before_update
BEFORE UPDATE
ON orders
FOR EACH ROW
DECLARE
v_username varchar2(10);
BEGIN
-- Find username of person performing UPDATE on the table
SELECT user INTO v_username
FROM dual;
-- Update updated_date field to current system date
:new.updated_date := sysdate;
-- Update updated_by field to the username of the person performing the UPDATE
:new.updated_by := v_username;
END;
error pls 00049
help me

HI,
please check if the updated_date and updated_by columns are present in orders_before_update table.
Thanks

Similar Messages

  • Modified "Create error table" from CKM SQL problem

    Hi guys!
    I have a strange problem while creating error table by the CKM. I've changed in the interface from flow control to static control and now the command to create error table looks like:
    create table STG_TMP.E$_I_D_ASSORTMENT_S
    ERR_TYPE VARCHAR2(1 CHAR) NULL,
    ERR_MESS VARCHAR2(250 CHAR) NULL,
    CHECK_DATE DATE NULL,
    ORIGIN VARCHAR2(100 CHAR) NULL,
    CONS_NAME VARCHAR2(35 CHAR) NULL,
    CONS_TYPE VARCHAR2(2 CHAR) NULL
    the create error table(it should create table with all the columns varchar2 and handle the situation when column is number(0,0) => varchar2(255)) step from CKM is:
    <%=snpRef.getColList("<?\t", "int vL[POS]=[LONGC]+[SCALE]; if(\u0022[DEST_DT]\u0022.equals(\u0022DATE\u0022)) {vL[POS]=20;}; if(\u0022[DEST_DT]\u0022.equals(\u0022NUMBER\u0022) && vL[POS]==0) {vL[POS]=255;};", "\n \t", "\n?>", "INS")%>
    create table <%=snpRef.getTable("L","ERR_NAME", "W")%>
    ERR_TYPE <%=snpRef.getDataType("DEST_VARCHAR", "1", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>,
    ERR_MESS <%=snpRef.getDataType("DEST_VARCHAR", "250", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>,
    CHECK_DATE <%=snpRef.getDataType("DEST_DATE", "", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>,
    <%=snpRef.getColList("", "[COL_NAME]\t varchar2 (<?=vL[POS]?>) " + snpRef.getInfo("DEST_DDL_NULL"), ",\n\t", "", "INS")%>,
    ORIGIN <%=snpRef.getDataType("DEST_VARCHAR", "100", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>,
    CONS_NAME <%=snpRef.getDataType("DEST_VARCHAR", "35", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>,
    CONS_TYPE <%=snpRef.getDataType("DEST_VARCHAR", "2", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>
    Do you know whats the problem??
    Thanks in advance :)
    With regards,
    PsmakR

    What version of ODI are you using ?
    Are you still using Sunopsis ?
    Try using ODI 10.1.3.5
    Also, follow the solution in post
    Issue with Create Target Table in CKM Oracle

  • Problem in Activating "Creating Error DTP" Button

    Hi All,
    I have created a DTP between an InfoCube and an Open Hub destination.
    But in the UPDATE tab of the DTP, the "Creating Error DTP" option is not active(its blurred even in edit mode). How should i make the button active??

    Hello Roy,
    Pls refer this weblog
    /people/kamaljeet.kharbanda/blog/2006/12/07/error-dtp--bi2004s
    From Std SAP Help
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/42/fbd598481e1a61e10000000a422035/content.htm
    Thanks
    Chandran

  • Facing problem in creating socket in a method from an already deployed application exe while same method is working from another exe from same environment from same location.

    Dll Created In: - MFC VC
    6.0
    Application Exe Developed In:
    - VC 6.0, C# and VB.net (Applications which are using dll)
    OS: - Windows XP sp2 32bit
    / Windows Server 2008 64 bit
    Problem: - Facing problem in creating socket
    in a method from an already deployed application exe while same method is working from another exe from same environment from same location.
    Description: - We have product component which
    has an exe component and from exe we invoke a method, which is defining in dll, and that dll is developed in MFC VC6.0. In the dll we have a method which downloads images from another system after making socket connection. But every time we are getting Error
    code 7, it is not giving desire result while same method is working from another exe from same environment from same location. And also me dll is deployed on many systems and giving proper output from same application.
    Already Attempt: - Because error is coming on
    client side so what we did, we created a driver in C# which invokes same method from same environment(on client machine) using same dll and we are astonished because it worked fine there.
    Kindly Suggest: -
    We are not able to figure out root cause because nothing is coming in windows event logs but what I did, for finding the problem line, I wrote logs on each line and found the exact line in application exe which is not working,
    actually  it is not executing Create () method,
    I will give snippet of the code for understanding the problem because we are not finding any kind solution for it.
    Kindly assist us in understanding and fixing this problem.
    Code Snippet: -
    Int Initialize (LPTSTR SiteAddress, short PortId)
    try
    CClientTSSocket *m_pJtsSockto;
    m_pJtsSockto = new CClientTSSocket;
    LONG lErr = m_pJtsSockto->ConnectTS(csIPAddress,PortId);
    ErrorLog (0, 0, "--------ConnectTS has been called ------------","" );
    catch(...)
    DWORD errorCode = GetLastError();
    CString errorMessage ;
    errorMessage.Format("%lu",errorCode);
    ErrorLog (0, 0, "Image System", (LPTSTR)(LPCTSTR)errorMessage);
    return  IS_ERR_WINDOWS;
    Note: -
    CClientTSSocket extends CAsyncSocket
     IS_ERR_WINDOWS is a macro error code which value I found 7.
    LONG ConnectTS(CString strIP, UINT n_Port)
    ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
    if(!Create())
    ErrorLog(0,0,"ConnectTS is calling [Create not called successfully] ","");
     n_Err = GetLastError();
     ErrorLog(n_Err,0,"ConnectTS is calling1111111111111111Erorrrrrrrrrrrrr","");
    return NET_INIT;
    ErrorLog(0,0,"ConnectTS is calling2222222222222222222","");
    if(!AsyncSelect(0))
    n_Err = GetLastError();
    return NET_INIT;
    if(!Connect(strIP,n_Port))
    n_Err = GetLastError();
    ErrorLog(n_Err,0,"ConnectTS","");
    return SERVER_NOT_CONNECTED;
    Code description: -
    From
    int GETImage_MT() method we call Initialize() method and pass client machine IP and Port and there we call
    ConnectTS() method, In this method we Create() method and finally it returns the error code as mention in macro 7.
    Logs after running the program: -
    --------ConnectTS has been called ------------
    ConnectTS is calling Create [is going to call]
    Image System 
    0
    Note: - According to logs, problem is coming in Create method().
    Here 0 is errorMessage received in catch block. And from catch block it returns macro value 7. And when we run same method individually from same machine, same environment through same dll
    from different exe, it is working fine and we are facing any kind of problem. While same problem application was working properly earlier but now continuously it showing problem.
     Kindly assist us to resolve the issue.

    Pointer variable was already initialized; I have mention in code; kindly assist us.
    Dll Created In: - MFC VC 6.0
    Application Exe Developed In: - VC 6.0, C# and VB.net (Applications which are using dll)
    OS: - Windows XP sp2 32bit / Windows Server 2008 64 bit
    Problem: - Facing problem in creating socket
    in a method from an already deployed application exe while same method is working from another exe from same environment from same location.
    Description: - We have product component
    which has an exe component and from exe we invoke a method, which is defining in dll, and that dll is developed in MFC VC6.0. In the dll we have a method which downloads images from another system after making socket connection. But every time we are getting
    Error code 7, it is not giving desire result while same method is working from another exe from same environment from same location. And also me dll is deployed on many systems and giving proper output from same application.
    Already Attempt: - Because error is coming
    on client side so what we did, we created a driver in C# which invokes same method from same environment (on client machine) using same dll and we are astonished because it worked fine there.
    Kindly Suggest:
    - We are not able to figure out root cause because nothing is coming in windows event logs but what I did, for finding the problem line, I wrote logs on each line and found the exact line in application exe which is not
    working, actually it is not executing Create () method, I will give snippet of the code for understanding
    the problem because we are not finding any kind solution for it. Kindly assist us in understanding and fixing this problem.
    Code Snippet: -
    Int Initialize (LPTSTR SiteAddress, short PortId)
    try
    CClientTSSocket *m_pJtsSockto;
    m_pJtsSockto = new CClientTSSocket;
    LONG lErr = m_pJtsSockto->ConnectTS(csIPAddress,PortId);
    ErrorLog (0, 0, "--------ConnectTS has been called ------------","" );
    catch(...)
                       DWORD errorCode = GetLastError();
                       CString errorMessage ;
                       errorMessage.Format("%lu",errorCode);
                       ErrorLog (0, 0, "Image System", (LPTSTR)(LPCTSTR)errorMessage);
                       return  IS_ERR_WINDOWS;
    Note: - CClientTSSocket extends CAsyncSocket
     IS_ERR_WINDOWS is a macro error code which value I found 7.
    LONG ConnectTS(CString strIP, UINT n_Port)
              ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
              if(!Create())
                       ErrorLog(0,0,"ConnectTS is calling [Create not called successfully] ","");
              n_Err = GetLastError();
              ErrorLog(n_Err,0,"ConnectTS is calling1111111111111111Erorrrrrrrrrrrrr","");
                      return NET_INIT;
              ErrorLog(0,0,"ConnectTS is calling2222222222222222222","");
              if(!AsyncSelect(0))
                       n_Err = GetLastError();
                       return NET_INIT;
              if(!Connect(strIP,n_Port))
                       n_Err = GetLastError();
                       ErrorLog(n_Err,0,"ConnectTS","");
                       return SERVER_NOT_CONNECTED;
    Code description: - From int GETImage_MT() method
    we call Initialize() method and pass client machine IP and Port and there we call ConnectTS() method, In
    this method we Create() method and finally it returns the error code as mention in macro 7.
    Logs after running the program: -
    --------ConnectTS has been called ------------
    ConnectTS is calling Create [is going to call]
    Image System  0
    Note: - According to logs, problem is coming in Create method(). Here
    0 is errorMessage received in catch block. And from catch block it returns macro value 7. And when we run same method individually from same machine, same environment through same dll from different exe, it is working fine and we are facing any kind of problem.
    While same problem application was working properly earlier but now continuously it showing problem.
     Kindly assist us to resolve the issue.

  • Problem in creating a JDBC System on VC7.1 portal ( CE7.1 SP3)

    I have a problem in creating a JDBC System on VC7.1 portal (CE7.1 SP3)
    I get the following error:
    Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the back-end application using the connector defined in this system object
    Results
    Default alias retrieved successfully
    Connection failed. Make sure user mapping is set correctly and all connection properties are correct.
    Could you please let me know if there are any guides on SAP Library; I was not able to find any documentation nor any threads discussing this on VC7.1
    Although, I saw this thread Can Visual Composer talk to/connect to any Database?..
    which says that VC7.1 can connect to SAP backend
    and web services only, and there is no direct connection to the db.
    Help needed please.

    Hi Dharmi
    Here is a quote of Dafna's post in [another thread in this forum|Re: Copy VC controls]
    CE7.1.1 will be released at September 2008 for ramp-up customers.
    There are many improvements and new capabilities in the new release of Visual Composer for CE7.1.1. Among the new features you can find:
    The missing features from Visual Composer 7.0 (Html view, portal Eventing support (EPCM), JDBC, Undo/Redo, and more..)
    Many layout & modeling improvements
    Additional ALV table functionality - export to Excel, switch to chart, configure ALV behavior at design time
    Integration of Visual Composer in Eclipse - additional entry point to the Visual Composer models from the NWDS. This integration provides the option to add a WD component (in case of missing functionality in Visual Composer), as a black box component to the Visual Composer model. Right-clicking the component will open the Web Dynpro perspective for creating/modifying the component.
    Regards,
       Shai

  • Problem in creating a build.xml for weblogic portal application

    Team ,
    I am facing problem in creating the build.xml using weblogic.BuildXMLGEN tool .
    a) Below is the structure of my portal application
    SrcCode
    --- .metadata (eclipse plugins folder)
    --- B2BApp ( Ear Content)
    --- b2bPortal ( portal related file(controllers,jsp)
    --- b2bsrc     (java src)
    b) Now I executed below utility to generate the build.xml "
    java weblogic.BuildXMLGen -projectName B2BApp -username weblogic -file build.xml -password welcome1 F:\srcCode"
    c) Based on the above step , build.xml got generated .
    d) when I execute "ant compile" target from the command prompt , I see the below exception
    ant compile
    Buildfile: build.xml
    compile:
    +[wlcompile] [JAM] Warning: failed to resolve class AbstractJspBacking+
    +[wlcompile] [JAM] Error: unexpected exception thrown:+
    +[wlcompile] com.bea.util.jam.internal.javadoc.JavadocParsingException: Parsing failure in F:\b2bNew\b2bPortal\src\portlets\b2b\dmr\Picker\PickerController.java at line 58.+
    e) I suspect , the problem is bcoz of classpath issues , as I generated build.xml donot have the references to dependent lib's.As build.xml looks like below :
    +<target name="compile" description="Only compiles B2BApp application, no appc">+
    +<wlcompile srcdir="${src.dir}" destdir="${dest.dir}">+
    +<!-- These referenced libraries were not found -->+
    +<!-- <library file="p13n-core-web-lib" /> -->+
    +<!-- <library file="jersey-web-lib" /> -->+
    +.....+
    +....+
    Please help me to reslove these issues .
    PS: I able to deploy the application using 10.3.2 weblogic workshop ( i.e inbuilt eclipse )

    i JaySen ,
    thanks for your response. As mentioned we added all the necessary library within the -librarydir but still we see the same error :
    +[JAM] Error: unexpected exception thrown:+
    com.bea.util.jam.internal.javadoc.JavadocParsingException: Parsing failure in F:\b2bNew\b2bPortal\src\portlets\typeAhead\TypeAheadController.java at line 70.  Most likely, an annotation is declared whose type has not been imported.
    at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_150.getAnnotationTypeFor(JavadocTigerDelegateImpl_150.java:410)
    at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_150.extractAnnotations(JavadocTigerDelegateImpl_150.java:176)
    at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_150.extractAnnotations(JavadocTigerDelegateImpl_150.java:152)
    at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.addAnnotations(JavadocClassBuilder.java:404)
    at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.populate(JavadocClassBuilder.java:359)
    ===================
    a) this is a upgrade project [ upgrading from wlp 8.1.4 to 10.3.2 ]
    i.e we are using weblogic portal 10.3.2 version.
    b) Searched some sites/forums regarding the above error, and it says something related to "jwsc" ant task [ i.e while compiling a webservice(JWS) ], but we see this error while compiling a normal controller(jpf) class :(
    c) we are using "ant compile" target which internally calls wlcompile task , while executing wlcompile this error is thrown .
    Help Appreciated
    Thx,
    Sarat

  • Problem in creating table maintenance generator for 61 fields in table

    Hi Experts,
    I am facing problem in creating a table maintenance genarator for a ZTABLE which has 61 fields
    i am using below details whicle creating the TMG
    in Maintenance screen
    i am giving maintenance type as two step
    Maint screen no overview screen 2
                              single screen        3
    Dialog Data Transport details
    Recording routine    standard recording routine
    but it is giving following error
    screen SAPL<ZTABLE NAME>    0003 could not be generated
    In DYNPFIELD_ATTR mandatory field LINE has no value
    please let me know how to sort out these errors.
    Is there any limit on the number of fields for which we can create table maintenance generetor.
    Thanks a lot in advance
    Sudipto

    Hi Sudipto,
    There is not limit to the number of fields of the Table which can be used in TMG for generation. But, from the usability point of view this will horrible.
    I created a Z table and added 64 fields and was able to generate the TMG with the screens perfectly. So, I guess there should not be any problem.
    Well, have a look at the Function Group. I guess the screen numbers are already used by some other screens. You can set the system to propose freely available screen numbers from the pool.
    Also, check whether proper authorization is assigned or not.
    And if nothing is working, you can degenerate all the generated screens and then can have a new regeneration of it.
    Hope these tips will work.
    Thanks,
    Samantak

  • "Error in creating error file" message

    Tried to install Palm Desktop 6.2 that came with my new Centro and at the end the message "Error in creating error file" keeps popping up numerous times.
    What can be the reason?
    Post relates to: Centro (AT&T)

    I was also experiencing the "error in creating error file" message multiple times during installation on my XP Pro system. I googled the error message and found this post plus a reference to a problem with riched32.dll) in in another post. But that didn't help. After quite a bit of troubleshooting on my own, I found the problem. I had moved the "My Documents" folder under "D:\users" to simplify my backups. Apparently the Palm installer needs the "My Documents" folder on the C: drive. I temporarily put "My Documents" back into it's default location under "C:\Documents and Settings" and the Palm installer ran just fine with no error message. I then moved everything back under "D:\users" including the folder "Palm OS Desktop", that was created by the Palm installer and everything has been working fine since.
    Thought I'd share this with others, as it's not an obvious fix.
    Post relates to: Palm TX

  • Problem of creating workbook with permanent template?

    Hi all,
    Iam facing some problem while creating the workbook with permanent template.Let me expalin in detail.
    I have created 3 queries (ex:Stock) and i have to insert these in one workbook with permanent template.I  had selected the the permanent template option in settings also.iam able to insert the 3 queris and iam not getting the permanent tempalate.which is mandatory.
    I tried saving the existing workbook with same tempalate and removed the query and tried to insert the queries but iam getting <b>abbort system error in program</b>
    Pls help me out of this issue.
    Thanks and regards,
    Rajeev

    Hi Joe,
    We've seen this error when using express VI's inside of template VI's which are loaded using VI server. Are you doing that? If yes, then take all the express VIs that are inside the template VI and turn them into static subVIs.
    I don't know if it will help in your case, but let's try it.
    Regards,
    Luca
    Regards,
    Luca

  • Problem while Creating MVLOG with synonym in Oracle 9i:Is it an Oracle Bug?

    Hi All,
    I am facing a problem while Creating MVLOG with synonym in Oracle 9i but for 10G it is working fine. Is it an Oracle Bug? or i am missing something.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL>
    SQL> create table t ( name varchar2(20), id varchar2(1) primary key);
    Table created.
    SQL> create materialized view log on t;
    Materialized view log created.
    SQL> create public synonym syn_t for t;
    Synonym created.
    SQL> CREATE MATERIALIZED VIEW MV_t
      2  REFRESH ON DEMAND
      3  WITH PRIMARY KEY
      4  AS
      5  SELECT name,id
      6  FROM syn_t;
    Materialized view created.
    SQL> CREATE MATERIALIZED VIEW LOG ON  MV_t
      2  WITH PRIMARY KEY
      3   (name)
      4    INCLUDING NEW VALUES;
    Materialized view log created.
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    PL/SQL Release 9.2.0.6.0 - Production
    CORE    9.2.0.6.0       Production
    TNS for Solaris: Version 9.2.0.6.0 - Production
    NLSRTL Version 9.2.0.6.0 - Production
    SQL>
    SQL> create table t ( name varchar2(20), id varchar2(1) primary key);
    Table created.
    SQL> create materialized view log on t;
    Materialized view log created.
    SQL> create public synonym syn_t for t;
    Synonym created.
    SQL> CREATE MATERIALIZED VIEW MV_t
    REFRESH ON DEMAND
    WITH PRIMARY KEY
    AS
      2    3    4    5  SELECT name,id
    FROM syn_t;   6
    Materialized view created.
    SQL> CREATE MATERIALIZED VIEW LOG ON  MV_t
    WITH PRIMARY KEY
    (name)
      INCLUDING NEW VALUES;  2    3    4
    CREATE MATERIALIZED VIEW LOG ON  MV_t
    ERROR at line 1:
    ORA-12014: table 'MV_T' does not contain a primary key constraintRegards
    Message was edited by:
    Avinash Tripathi
    null

    Hi Nicloei,
    Thanks for the reply. Actually i don't want any work around (Creating MVLOG on table rather than synonym is fine with me) . I just wanted to know it is actually an oracle bug or something else.
    Regards
    Avinash

  • Problem when creating a sales order with reference by BAPI

    I am facing one problem when creating Sales Order.
    <b>The scenario is like this while creating SO With reference to an Order type, a new SO will be automatically created with a diff order Type</b>.
    I am using "BAPI_SALESORDER_CREATEFROMDAT2".
    I am calling this BAPI in USEREXIT_REFRESH_DOCUMENT.
    Am I using the right exit to call this Bapi ?
    <b>Problems are like :
    1. Ref Sales Order creating without Sales Unit .
    2. "Object Status does not exist" error msg is coming for Header and Item level(when clicking the status tab and then object status pushbutton).</b> But if testing the bapi from SE37 in test sequence....no such problem persists.
    As for example in case of sales unit,in the debugging mode i have seen that BAPI uses a perform to fill the values in the VBAP structure.But after that when it come back to the main program VBAP remains blank.This ocuurs when the BAPI is called from the exit whereas  if tested from SE37, VBAP retains the value.
    Can u suggest in this ? This is very very urgent............
    Thx in Adv.........................

    Thanks........
    Your suggestion was a great help to me.I have used a custom FM and called it in <b>starting new task</b>.
    Since i am a university fresher working in SAP for nearly 1 year.....can you please explain me the difference between <b>in update task</b> and <b>starting new task</b>.Why the problem was occuring for which you have suggested to call a custom function module.
    what is V1 update and V2 update?Is it attached with asynchronous ans synchronous update.It would be a great help to me if you kindly clear my confusions....
    thanks in advance.

  • Problems in creating actions

    hello;
    i am facing a problem in creating actions i.e when i create an action it is not shown in the implementation view. even when i copied a context node from an another view i am getting error for those nodes.

    Hi jeet
    Check error messages in Tasks window when you go to implementation of the view. Probably the view contains some errors with the context nodes in the case implementation will not be regenerated till you fix these base errors.
    BR
    Sergei

  • Problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2

    Hi experts,
    I'm getting problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2.
    I have a scenario where is defined the document type ZC1, document part 200, authorization group 0002 and for all of these  documents the storage category "Cofre DMS1". And the status which demands the storage category is 'FR'.
    I've been fullfiling the BAPI_DOCUMENT_CREATE2 in this way:
    "Tables
    data: it_doc like bapi_doc_draw2,
          it_return like bapiret2,
          it_files like bapi_doc_files2 occurs 0 with header line,
          it_objs like bapi_doc_drad occurs 0 with header line.
    "Variables
    data: wl_doctype like bapi_doc_draw2-documenttype,
          wl_docnumber like bapi_doc_draw2-documentnumber,
          wl_docpart like bapi_doc_draw2-documentpart,
          wl_docversion like bapi_doc_draw2-documentversion.
    it_doc-documenttype = 'ZC1'.
    it_doc-documentpart = '200'.
    it_doc-documentversion = '00'.
    it_doc-description = 'Test of documents creation via BAPI'.
    it_doc-username = sy-uname.
    it_doc-statusextern = 'FR'.
    it_doc-authoritygroup = '0002'.
    refresh it_files[].
    clear it_files.
    it_files-originaltype = '1'.
    it_files-storagecategory = 'Cofre DMS1'.
    it_files-wsapplication = 'PDF'.
    it_files-docfile = 'c:\110307.pdf'.
    it_files-description = 'Test file'.
    append it_files.
    refresh it_objs[].
    clear it_objs.
    it_objs-objecttype = 'EKPO'.
    it_objs-objectkey = '47000497600010'.
    append it_objs.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
      EXPORTING
        documentdata = it_doc
      IMPORTING
        documenttype = wl_doctype
        documentnumber = wl_docnumber
        documentpart = wl_docpart
        documentversion = wl_docversion
        return = it_return
      TABLES
        objectlinks = it_objs
        documentfiles = it_files.
    After execute the BAPI process I got the following error:
    E26 087 - Data carrier COFRE DMS1 not defined
    Does anybody have a sugestion to help me, please?
    Thks
    David
    Edited by: David Tsutsui on Mar 18, 2010 10:52 AM

    Please refer to this thread, it tells why you need a data carrier you can also configure the same in DC20.
    Data Carriers for Storage the Originals of DMS

  • Problems in creating a chart..

    Hi,
    I have Problems in creating the following chart..
    I dont know where the problem of the Publisher is, because the same structers already shows me a Table full of Data...
    I ve tested something and realized when i m deleting the SUM() Part everything works fine. Ist it maybe an error in the sum function?
    its such a simple statement but it wont work...
    XML Code:
    chart:
    <Graph graphType="PIE">
    <Title text="" visible="true" horizontalAlignment="CENTER"/>
    <LocalGridData rowCount="{count(xdoxslt:group(DATA/query_DATA/ROW, CURRENY))}" colCount="1">
    <RowLabels>
    <xsl:for-each-group select="DATA/query_DATA/ROW" group-by="CURRENCY">
    <xsl:sort select="CURRENCY"/>
    <Label>
    <xsl:value-of select="current-group()/CURRENCY"/>
    </Label>
    </xsl:for-each-group>
    </RowLabels>
    <DataValues>
    <xsl:for-each-group select="DATA/query_DATA/ROW" group-by="CURRENCY">
    <xsl:sort select="CURRENCY"/>
    <RowData>
    <Cell>
    <xsl:value-of select="sum(current-group()/PRICE)"/>
    </Cell>
    </RowData>
    </xsl:for-each-group>
    </DataValues>
    </LocalGridData>
    </Graph>
    Greeting

    It doesnt work, because i deleted the ' while chaning the caption to currency....
    OK here is my original Text....
    chart:
    <Graph graphType="PIE">
    <Title text="" visible="true" horizontalAlignment="CENTER"/>
    <LocalGridData rowCount="{count(xdoxslt:group(DATA/query_DATA/ROW, 'POS_EURO_TXT'))}" colCount="1">
    <RowLabels>
    <xsl:for-each-group select="DATA/query_DATA/ROW" group-by="POS_EURO_TXT">
    <xsl:sort select="POS_EURO_TXT"/>
    <Label><xsl:value-of select="current-group()/POS_EURO_TXT"/></Label>
    </xsl:for-each-group>
    </RowLabels>
    <DataValues>
    <xsl:for-each-group select="DATA/query_DATA/ROW" group-by="POS_EURO_TXT">
    <xsl:sort select="POS_EURO_TXT"/>
    <RowData>
    <Cell><xsl:value-of select="sum(current-group()/NET)"/></Cell>
    </RowData>
    </xsl:for-each-group> </DataValues>
    </LocalGridData>
    </Graph>
    <DATA>
    <query_DATA><ROW>
    <KUNGRUPPE>ABC</KUNGRUPPE>
    <POS_EURO_TXT>USD</POS_EURO_TXT>
    <NET>7785763.25</NET>
    </ROW><ROW>
    <KUNGRUPPE>ABC</KUNGRUPPE>
    <POS_EURO_TXT>EURO</POS_EURO_TXT>
    <NET>15242332211.9</NET>
    </ROW><ROW>
    <KUNGRUPPE>XXX</KUNGRUPPE>
    <POS_EURO_TXT>EURO</POS_EURO_TXT>
    <NET>7894268.84</NET>
    </ROW></query_DATA>
    </DATA>
    Greetings

  • Problems with creating a complex cursor

    Let me prefix this post with the fact that I am really new at this and this is my first shot at creating a Stored Proc. I have the shell and I have tried to code this but I am having some issues with the cursor. Any tips or tricks that you can give me would be greatly appreciated.
    Below is what I am trying to accomplish
    Looking for the best approach to work with a complex cursor.
    I have 4 files that are going to dump into a temp table. This is a sample of the Temp Table
    CHAN_ADDR,BRA,SRC_ID,R_Flag,C_Flag,S_Flag,N_Flag,Expire_Date,Wireless_Flag
    1111111111,R,1-a,,,,NDNC,7/7/2006,
    2222222222,R,2-b,,,SDNC,NDNC,7/7/2006,WIR
    3333333333,R,3-c,,,SDNC,NDNC,7/8/2006,
    4444444444,R,4-d,y,,SDNC,NDNC,7/9/2006,WIR
    5555555555,R,5-e,y,,SDNC,,7/10/2006,
    6666666666,R,6-f,y,,,,,WIR
    7777777777,R,7-g,,,,,,
    8888888888,R,8-h,y,,,NDNC,7/7/2006,WIR
    I need to take this data and dump it into another table that looks like the following:
    ADDR     Per_ID     Method     Name     Expire Date     Flag
    1111111111     1-a     Phone     Nat     7/7/2006     Y
    2222222222     2-b     Mobile     State     7/7/2006     Y
    2222222222     2-b     Mobile     Nat     7/7/2006     Y
    4444444444     3-c     Mobile     R     7/9/2006     y
    4444444444     3-c     Mobile     State     7/9/2006     y
    4444444444     3-c     Mobile     Nat     7/9/2006     y
    know that I need to use a cursor using loop and fetch but I am kind of confused on how to make this work. I am fairly new to writing PL/SQL so any tips and tricks would be greatly appreciated.
    For each phone number there can be 1 to 3 records written based on the flags. For each of those records I must store the phone number, the id, flag data, expire date (for only State or National) and Flag must always be checked.
    I have put together a small shell of the program but what goes in the middle is where I am having some problems.
    CREATE OR REPLACE PROCEDURE USP_EIM_CONTACT3_UPD
    IS
    CURSOR dnc_cursor IS
    SELECT CHAN_ADDR,
         BRA,
         SRC_ID,
         R_FLAG,
         C_FLAG,
         S_FLAG,
         N_FLAG,
         EBR_EXPIRE_DATE,
         WIRELESS_FLAG
    FROM eim_admin.RCCL_OPT_OUT_TMP;
         v_counter                     NUMBER := 0;
         v_insert                     NUMBER := 0;
         v_sysdate                     DATE:=SYSDATE;
         v_chan_addr                    eim_admin.RCCL_OPT_OUT_TMP.chan_addr%TYPE;
    BEGIN
         DBMS_OUTPUT.PUT_LINE ('***Begining USP_EIM_CONTACT3_UPD, time is ' ||
    TO_CHAR (v_sysdate, 'MON-DD-YYYY HH24:MI.SS'));
         DBMS_OUTPUT.NEW_LINE;
    FOR rec IN dnc_cursor LOOP
         v_counter:=v_counter+1;
         BEGIN
         SELECT CHAN_ADDR
         INTO v_chan_addr
         FROM eim_admin.RCCL_OPT_OUT_TMP;
         EXCEPTION
    WHEN OTHERS THEN
              DBMS_OUTPUT.PUT_LINE('*** Could not lookup RCCL_OPT_OUT_TMP. ***');
              DBMS_OUTPUT.PUT_LINE('ORA-'||SQLCODE||' '||SQLERRM);
         END;
    BEGIN
              INSERT INTO siebel.S_PER_COMM_ADDR
         (ADDR)
    VALUES
    (rec.CHAN_ADDR);          
              v_insert := v_insert + SQL%ROWCOUNT;
         EXCEPTION WHEN OTHERS THEN
              DBMS_OUTPUT.PUT_LINE('*** Failed to insert into siebel.S_PER_COMM_AADDR DDR ***');
              DBMS_OUTPUT.PUT_LINE('ORA-'||SQLCODE||' '||SQLERRM);
         END;
    END LOOP;
    --Output STATISTICS.
    DBMS_OUTPUT.PUT_LINE('**Number records read :'||v_counter);
    DBMS_OUTPUT.NEW_LINE;
    DBMS_OUTPUT.PUT_LINE ('***Completing USP_EIM_CONTACT3_UPD, time is ' ||
    TO_CHAR (SYSDATE, 'MON-DD-YYYY HH24:MI.SS'));
    EXCEPTION
         WHEN OTHERS THEN
         DBMS_OUTPUT.PUT_LINE(' ****Error in USP_EIM_CONTACT3_UPD ****'||SQLCODE||SQLERRM);                              
    END USP_EIM_CONTACT3_UPD;
    I have already created the table. What we are going to do is using sqlloader to load our text files into our temp table. From there we are going to read the data from the temp table into a table that is already created.
    Basically what I am trying to do is the following:
    Cursor 1
    select * from Temp where, State_Flag and National_Flag is not null
    Insert into Siebel.S_PER_COMM_ADDR
    set id = source var
    set phone = chann_add var
    If
    wireless flag is not null
    set method = 'Mobile"
    else
    set method = 'Home'
    end if
    If
    Brand = 'r' and R_Flag is not null
    set name flg1
    set flag as 'T'
    and so on.
    I am getting confused as to where to call the variables:
    set id = source var
    set phone = chann_add var
    I am also confused on how to do the sets and how to set the date for S_Flag and N_Flag.
    One of the other issues is that I need to go and look at the base table to pick up anyone else that has the phone number and update or delete based on the data in the table.

    I am getting confused as to where to call the variables:
    set id = source var
    set phone = chann_add var have you defined your variables in the DECLARE area? is that a cursor variable or plain variable? need more info.

Maybe you are looking for