User object not getting created in IdM8.1.1(Oracle Waveset)

Hi,
I am trying to create user object in IdM8.1.1 using com.waveset.provision.workflowServices
but giving the following error - java.lang.NullPointerException at com.waveset.provision.WorkflowServices.convertView.
Code Snippet causing the error:
<Action id='0' process='Provision'>
<Argument name='accountId' value='$(accountId)'/>
<Argument name='user' value='$(user)'/>
<Argument name='op' value='$(op)'/>
<Argument name='options' value='$(options)'/>
<Return from='userCreated' to='userCreated'/>
</Action>
But the same code is working fine in IdM7.0 & IdM8.1.
Please help me in solving this issue.

If you are not using user form and instead launching a custom workflow then probably the view is null because you do not get or checkout the view.
Regards
Vivek Kumar

Similar Messages

  • Chat user is not getting message from the other users

    In my application when user [A] initiate the chat with user[B]  , I am facing following issues
    -          User[B] is not getting initiation notification so that I am unable to open chat pod for user [A] on user[B] application
    -          Due to above problem , User[B] not getting any message sent by the User[A]
    -          User[A] can send only one message and it is displayed on simple chat pod
    when User[A]tries to send more then one message it is not displayed on simple chat pod but on the console I can see the messages
    following is sample code
     public function connectChat() :void {
    _collectionNode =
    new CollectionNode();_collectionNode.sharedID = NOTIFICATION_COLLECTION_NODE;
    _collectionNode.connectSession =
    this.connectSession;_collectionNode.addEventListener(CollectionNodeEvent.SYNCHRONIZATION_CHANGE, onSynchronizationChange,
    false, 0, true);_collectionNode.addEventListener(CollectionNodeEvent.ITEM_RECEIVE, onItemReceive,
    false, 0, true);_collectionNode.subscribe();
    /*** @private
    * Handles the creation of a collection node if it does not already exist
     protected function onSynchronizationChange(event:CollectionNodeEvent):void { 
    if (_collectionNode.isSynchronized) { 
    if (!_collectionNode.isNodeDefined(START_CHAT_LIST) && _collectionNode.canUserConfigure(connectSession.userManager.myUserID)) {_collectionNode.createNode(START_CHAT_LIST,
    new NodeConfiguration(UserRoles.VIEWER, UserRoles.VIEWER, true, false, true,false, NodeConfiguration.STORAGE_SCHEME_QUEUE));}
     public function connectChat() :void{
    trace('connectChat');_collectionNode =
    new CollectionNode();_collectionNode.sharedID = NOTIFICATION_COLLECTION_NODE;
    _collectionNode.connectSession =
    this.connectSession;_collectionNode.addEventListener(CollectionNodeEvent.SYNCHRONIZATION_CHANGE, onSynchronizationChange,
    false, 0, true);_collectionNode.addEventListener(CollectionNodeEvent.ITEM_RECEIVE, onItemReceive,
    false, 0, true);_collectionNode.subscribe();
    /*** @private
    * Handles the creation of a collection node if it does not already exist
     protected function onSynchronizationChange(event:CollectionNodeEvent):void { 
    if (_collectionNode.isSynchronized) { 
    //Creates the nodes if they don't exist 
    if (!_collectionNode.isNodeDefined(START_CHAT_LIST) && _collectionNode.canUserConfigure(connectSession.userManager.myUserID)) {_collectionNode.createNode(START_CHAT_LIST,
    new NodeConfiguration(UserRoles.VIEWER, UserRoles.VIEWER, true, false, true,false, NodeConfiguration.STORAGE_SCHEME_QUEUE));}
    /*** Checks if a chat is going to be started with this specific user
     protected function onItemReceive(event:CollectionNodeEvent):void { 
    var item:MessageItem = event.item; 
    var openChatEvent:OpenChatEvent = OpenChatEvent.ToOpenChatEvent( item.body, OpenChatEvent.OPEN_CHAT ); 
    switch (item.nodeName) { 
    case START_CHAT_LIST: 
    trace("Starting Chat Notified");  
    if( openChatEvent.userId && openChatEvent.userId == this.connectSession.userManager.myUserID ){
    this.dispatchEvent( openChatEvent ); 
    if( this._collectionNode.isSynchronized ) 
    this._collectionNode.retractItem( START_CHAT_LIST, openChatEvent.roomId );}
    break;}
    /*** Publishes a request for someone to join a chat
     public function publishChatRequest(notificationEvent : NotificationEvent) :void { 
    if( this.connectSession.userManager.getUserDescriptor( notificationEvent.userID ) ){
    var openChatEvent:OpenChatEvent = new OpenChatEvent( OpenChatEvent.PUBLISH_CHAT,null,notificationEvent.sharedID, notificationEvent.userNotificationList, null, notificationEvent.userID ); 
    if( this.presenceUsers )openChatEvent.descriptors =
    this.presenceUsers; _collectionNode.publishItem(
    new MessageItem( START_CHAT_LIST, openChatEvent, openChatEvent.roomId ) );}
    else{
    Alert.show(
    "User "+ notificationEvent.userID + " is not logged in.", "Publish Error" );}

    A) are these methods copied twice in the code here on purpose?
       connectChat() and onSynchronizationChange is repeated in code due copy paste mistake
    B) are both users subscribing to _collectionNode right away? Do each of them
    get to onSynchronizationChange?
       Yes , each of them get to onSynchronizationChange
    C) If you put a breakpoint in onSynchronizationChange, do you see the node
    get created? Do you see it in the dev console?
    Yes , it is creating a node
    D) Is user B receiving an onItemReceive at all? Is user A?
    Yes , it is creating a node
    Now both the user getting chat message, have following issue
    When user A initiate the chat with user B this action is not opening chat pod / window on user B end which shows user A has initiated chat with user B
    But when user B click on user A name to initiate the chat, this action opens a chat window and user B can see message send by user A
    Above scenario is not normal chat behavior in which other user gets the notification of chat . what could be the problem

  • Excise invoice should not get created without PGI

    Hi,
    I have a scenario where the billing document is being generated by the customer without PGI after creation of outbound delivery for exports. (This is as per customer's requirement - Copy control maintained in VTFL for the same - copying requirements 11 )
    This creates a situation - excise invoice can be created without PGI - which creates problems for customer. This should not happen.
    Customer wants a check during the excise invoice creation - excise invoice should not get created if PGI has not been done.
    Kindly advise as to how this can be done.
    Regards,
    T Saravanan

    Dear Saravanan
    Two options are there
    -  in your existing routine itself, you can specify the control in such a way that unless the preceding document is PGId
    -  apply excise user exits like J_1I7_USEREXIT_EXCISE_BEF_SAVE to achieve the requirement.
    thanks
    G. Lakshmipathi

  • BP not getting created while creating employee

    Hi,
    When I Hire an employee a BP should be created for it. It used to happen earlier in the system but after we moved to another system this is not working.  Can someone please let me know the necessary config for this?
    I've the following settings:
    HRALX   ONUMB  = 2
    HRALX   OSUBG = MD
    The MD number range is from 90000000 to 9999999999. Should this number range be internal or external?
    When I use the HR_SYNC_PERSON report for an employee I get the error as
    "Determination of connections to object 'BP' of 'CP' '50000201' failed"
    "Object of type 'US' with ID '1122' does not exist or is inconsistent"
    "Determination of connections to object 'BP' of 'O' '50000101' failed" etc
    Also I need to upload the employee master data using LSMW and BP does not get created with LSMW also? Is there some specific config while using LSMW?
    Please help.

    Whenever you are uploading employees using LSMW, you need to run program HR_SYNC_PERSON.
    Pls refer to the following thread for further info:
    Assignment: Business partner for person '50000029' is not unique
    Regards,
    Dilek

  • AUC Asset not getting created when Internal Order is created

    Dear Experts,
    While Creating the internal order ( Object Class - Investment Measure)
    AuC (Asset Under Construction) not getting created automaticall . Note Investment profile is already there in the order.
    Following steps below are configured -
    1. Define the AuC Asset Class (with investment measure) - OAOA
    2. Define the Asset Class u2013 for Main Asset - OAOA
    3. Define Investment Profile - OITA
    a. Assign the AuC Asset Class (Step-1) in the investment profile
    4. Assign Investment Profile to Model Order - OITA
    5. Define Order Type (Investment) - KOT2
    a. Settlement Profile - OKO7
    b. Maintain Allocation Structures - OKO6
    Thanks
    Sanjai

    Hi Sreekanth,
    What is the setting needed to create AUC Automatically when an Internal order is created ?
    I have done all the setting, but still when I save Internal order neither AUC asset is getting created.
    So I went to extras selected create AUC and it went to AS01, but when I came back (F3) from AS01 to Internal Order and save , Auc Asset is not getting captured in the settlement rule. I even tried to give manually the AUC Asset in the settlement rule, for which sys is not allowing in the settlement rule.
    Any thoughts are highly appreciated
    Advance Thanks
    Sanjai

  • SRM PR is not getting created in ECC backend

    Hello Experts,
    We are running SRM 7.0 with SRM-MDM Catalog, we are using SRM for shopping.  We do have PI 7.11 running in the Environment as well.
    We are on ECC 6.0 with Ehp 4.0
    Purchase Order:
    However we can see the PO creating successfully using PI.
    Question, in the SRM table (BBP_FUNCTION_MAP), we see the object type: BUS2012 for ERP 4.0 has adapter name: /SAPSRM/CL_SOA_ADPT_PO_CRT_ERP for when creating PO. Please see teh screen shot.
    is this the reason that we need PI?
    Purchase Requisition:
    PR Creation is not working:
    PR is not getting created in the ERP, PR uses Object type: BUS2105, Adpater CL_BBP_BS_ADAPTER_RQ_CRT_470 for ERP 4.0 System type, can you please tell me if the adapter is correct for ERP 4.0 system type?
    I also have a question to ask:
    1) Where did you see that PR/PO was send to PI System (PI1)? My understanding is that since ERP amd SRM are 2 ABAP Systems, why we cannot send the PR/PO directly to ERP system from SRM? Why do we need a middleware(PI) in between for this process? We should be able to USE BAPI function to do it correct?
    Please advice.
    Thanks
    Kumar

    yes, i could see a PR number with all this additional details as below.
    Table   BBP_PDBEI
    CLIENT                       453                                                              Client
    GUID                         4CAEFA58EB9D005CE1008000AC1C2031                                 Globally Unique identifier
    BE_LOG_SYSTEM                QA1400                                                           Logical System of Logistics Backend
    BE_OBJ_ITEM                                                                                Follow-On Object Item in Back-End System
    BE_OBJECT_TYPE               BUS2105                                                          Follow-On Document Object Type in Back-End System
    BE_OBJECT_ID                 2000000167                                                       Follow-On Document Object ID in Back-End System
    BE_REFOBJ_TYPE                                                                                Reference Object Type in Back-End System
    BE_REFOBJ                                                                                Reference Object in Back-End System
    BE_REFOBJ_ITEM                                                                                Reference Object Item in Back-End System
    BE_REFOBJ_SBITM                                                                               Reference Object Sub-Position in Backend System
    BE_REFOBJ_TYPE2                                                                               Reference Object Type in Back-End System
    BE_REFOBJ2                                                                                Reference Object in Back-End System
    BE_REFOBJ_ITEM2                                                                               Reference Object Item in Back-End System
    BE_REFOBJ_FYEAR2             0000                                                             Reference Document Object - Fiscal Year in Back-End System
    BE_STGE_LOC                                                                                Storage location
    BE_PLANT                     2016                                                             Plant
    BE_BATCH                                                                                Batch Number
    BE_VAL_TYPE                                                                                Valuation type
    BE_MOVE_REAS                 0000                                                             Reason for Movement
    BE_EXPERYDATE                00000000                                                         Shelf Life Expiration Date
    BE_PUR_GROUP                 206                                                              Purchasing group
    BE_PUR_ORG                   2000                                                             Purchasing organization
    BE_CO_CODE                   2000                                                             Company Code
    BE_DOC_TYPE                  CLRQ                                                             Purchase Requisition Document Type
    BE_ACCREQUIRED                                                                                Account Assignment for Logical Backend Required
    BE_SP_STK_IND                                                                                Key for Special Stock Section
    BE_INFO_REC                                                                                Number of purchasing info record
    BE_MOVE_TYPE                 201                                                              Movement type (inventory management)
    BE_PACKNO                    0000000000                                                       Package number
    BE_INTROW                    0000000000                                                       Internal line number for limits
    BE_ITEM_TEXT                                                                                Short Text of a Service Purchase Order Item
    BE_PO_PRICE                  1                                                                Price from Backend
    BE_UNLOAD_PT                 200                                                              Unloading Point in Backend
    BE_DEL_IND                                                                                Deletion Indicator in Backend Documents
    BE_TRACKING_NO                                                                                Requirement Tracking Number
    BE_COND_TYPE                                                                                Condition Key
    BE_COND_STEP                 000                                                              Level Number
    BE_COND_COUNTER              00                                                               Condition counter

  • WBS Elements not getting created in ECC Project System from CRM 7.0

    Dear all,
    We are trying to integrate SAP CRM 7.0 with SAP ECC-PS module. The objective is to bring in the marketing plan and elements data from the CRM system, and to create the corresponding WBS in project system. We have done most of the configuration as recommended by SAP in both the systems, and we see that the BDOCS are getting generated and sent to the ECC system. The following steps have been successfully completed:
    1.       Set up the RFC connections between the two systems
    2.       Selected the connection type as Middleware in CRM system.
    3.       Installed the cProject Add on in CRM box.
    4.       Created a project scenario (with project and network profiles) in the PS system and assigned the same in the CRM system.
    5.       The Project Scenario in PS config has the same name as the Project Type in CRM config.
    6.       Created and released the campaign ids being created in the CRM system.
    As already mentioned, we can see that the BDOCS are coming to the ECC system and are getting stored in BDOC_TRACK table. However the issue is that the corresponding WBS elements are not getting generated in the ECC system. Is there anything that that we are missing in the ECC box which would trigger the WBS element creation?
    Request you all to share your inputs which would be immensely beneficial for us in achieving this integration.
    Thanks and Kind Regards,
    Aditya Shrivastava

    Hello Aditya,
    We too are facing this issue.. if you have resolved the issue could you please let us know the solution ?
    Some inputs related to our system,
    We have upgrade from CRM 4.0 to CRM 7.0 SP07 and R/3 backend system is on 4.7 SP27, earlier we have completed the upgrade on sandbox without any issues which was upgrade to CRM 7.0 SP04 but with SP07 we are facing the problem of WBS Element not getting created in R/3.
    Your help is highly appreciated.
    Thanks & Regards,
    Sumukh Kapoor.

  • Spool not getting created in batch job

    Hello experts,
    We have a requirement of printing BA00, BA01 and LD00 from different application.
    We have done same code for all BA00, BA01, and LD00.
    Normally the code is working fine except in few cases, when batch job is created but spool is not created.
    DATA: job_name TYPE tbtcjob-jobname,
                  number   TYPE tbtcjob-jobcount,
                  print_parameters TYPE pri_params,
                  wv_pripar    TYPE pri_params,
                  wv_arcpar    TYPE arc_params,
                  wv_val       TYPE c VALUE 'X',
                  wv_false     TYPE c VALUE 'X',
                  gv_mandt     TYPE tsp01-rqclient,
                  gv_user      TYPE tsp01-rqowner.
              CLEAR: gv_mandt, gv_user, number.
              gv_mandt = sy-mandt.
              gv_user  = sy-uname.
              job_name = 'DELIVERY_PRINTING'.
              CLEAR: range1.
              range1-sign = 'I'.
              range1-option = 'EQ'.
              range1-low = 'LD00'.
              CLEAR: range1-high.
              APPEND range1 TO range.
              CALL FUNCTION 'JOB_OPEN'
                EXPORTING
                  jobname          = job_name
                IMPORTING
                  jobcount         = number
                EXCEPTIONS
                  cant_create_job  = 1
                  invalid_job_data = 2
                  jobname_missing  = 3
                  OTHERS           = 4.
              IF sy-subrc = 0.
                SUBMIT sd70av2a WITH  rg_kschl IN range
                                WITH  rg_vbeln IN deli_tab
                                TO SAP-SPOOL
                              SPOOL PARAMETERS print_parameters
                              WITHOUT SPOOL DYNPRO
                              VIA JOB job_name NUMBER number
                              AND RETURN.
                IF sy-subrc = 0.
                  CALL FUNCTION 'JOB_CLOSE'
                    EXPORTING
                      jobcount             = number
                      jobname              = job_name
                      strtimmed            = 'X'
                    EXCEPTIONS
                      cant_start_immediate = 1
                      invalid_startdate    = 2
                      jobname_missing      = 3
                      job_close_failed     = 4
                      job_nosteps          = 5
                      job_notex            = 6
                      lock_failed          = 7
                      OTHERS               = 8.
                  IF sy-subrc <> 0.
                  ENDIF.
                ENDIF.
                WAIT UP TO 10 SECONDS.
    ** to give the data to the printer***
    *            CLEAR gv_rqident.
                SELECT SINGLE listident INTO gv_listident FROM tbtcp
                              WHERE jobname = job_name
                               AND  jobcount = number.
              IF sy-subrc = 0.
                MOVE gv_listident to gv_rqident.
                CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
                  EXPORTING
                    spool_request_id = gv_rqident.
              ENDIF.
    The same code is for all the output BA00, BA01 and LD00.
    The issue is that for few batch jobs (which is created in the above code) , spool is not getting created.
    Thanks and Regards,
    Paritosh Pandey

    Hi,
    The code starting from WAIT UP TO 10 SECONDS. - not only does it look attrocious, is error prone (if no free process for executing batch job is available for 10 seconds, or if the job runs for more than 10 seconds, what will happen...?), but seems utterly unnecessary... Is there any reason immediate spool output can not be handled by simply setting PRINT_PARAMETERS-PRIMM = 'X'?
    cheers,
    Janis
    Edit in:
    Ok, i just read Document in spool but not printed... Do not use an output device relying on frontend access methods to do printing from background processing. Frontend is not available during background processing, period. To my knowledge there is no easy, clean solution to this problem other than defining and assigning, per user, output devices not relying on frontend printing. What if the dialog user has logged off by the time batch job finishes..? May the spool remain unprinted?
    Has the SAP Basis refused to define output devices (I have hard time believing this...)? Well, tell them one time to stop being silly and if they do not cooperate, tell the owner of the requirement that it can not be implemented due to uncooperative Basis then... and that the users will have to keep going to SP01 and manualy start the output!
    Message was edited by: Jānis B

  • Required attribute not getting created

    Ok, here is a wierd one.
    I have some custom ID management code (an SSO plug-in cert mapper and a WAR file I deploy to OC4J_SECURITY). The application provides a registration process that creates user entries and RADs for Oracle Forms app users. Everything works fine, except that I have found that my RAD creation does not get the orclresourceviewers attribute created automatically.
    This has worked in my IM development farm. The attribute would be created automatically. It was difficult to figure out this was the reason my Forms App Server would fail with the following exception.
    oracle.ldap.util.AccessDeniedException: General Error when performing search: getExtendedProperties [LDAP: error code 50 - Insufficient Access Rights]
    I have gone through the motions of now preparing to query the OID Forms ID so that I can fill in this attribute in my RAD creation class. I still would like to know why this attribute is not getting created for me anymore.
    Any ideas?
    Oh and BTW, it did not help that orclresourceviewers is not documented anywhere I could find (not OID Admin and not Forms Deployment Guide)
    regards,
    tt

    Hi Sandeep.
    Yes, my application entities that I set up to manage a specific realm are used to create all RADs in a particular realm. As part of the setup for this I add these application entitites to the following three realms:
    cn=OracleDASAdminGroup,cn=Groups,cn=OracleContext,dc=<realm_name>,dc=<abc>,dc=<com>
    cn=RealmAdministrators,cn=Groups,cn=OracleContext,dc=<realm_name>,dc=<abc>,dc=<com>
    cn=UserProxyPrivilege,cn=Groups,cn=OracleContext,dc=<realm_name>,dc=<abc>,dc=<com>
    I add to these so that the app entity could create, modify, delete and proxy to any realm user. I had to create an ACI to allow my entities to search and see the Forms Server application entity entry in order to populate orclresourceviewers.
    I just wish I new why orclresourceviewers does not get created automatically. Of course, if I create the RAD in DAS or using the Oracle DynamicResourceCreate option, it is added. It has added it in my own RAD creation code at one point and it stopped for some reason.
    I had to add an LDAP search to my RAD creation code with the possibility of multiple Forms Server entries (Logical Application Group) just in case. Much ado for something that maybe should not have been necessary.
    regards,
    tt

  • Infotype not getting created using FM HR_INFOTYPE_OPERATION

    I am trying to create infotype 210 from user exit ZXPADU02 using below code.
    DATA :  v_return TYPE bapireturn1,
               v_return1 TYPE bapireturn1,
               v_return2 TYPE bapireturn1,
               v_key TYPE bapipakey,
               v_return3 TYPE bapireturn1.
      p0207 = gt_p0207.
      MOVE-CORRESPONDING p0207 TO p0210.
      p0210-infty = '0210'.
      p0210-begda = p0207-begda.
      p0210-taurt = 'PR'.
      p0210-txsta = '01'.
      p0210-amtex = '0'.
      CLEAR : p0210-aedtm.
      CLEAR : p0210-uname.
      CLEAR: v_return,v_return1,v_key.
      CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
        EXPORTING
          number        = p0210-pernr
          validitybegin = p0210-begda
        IMPORTING
          return        = v_return.
      IF v_return IS INITIAL.
        CALL FUNCTION 'HR_INFOTYPE_OPERATION'
          EXPORTING
            infty         = '0210'
            number        = P0210-PERNR
            subtype       =  'PR'
           objectid      = p0210-objps
           lockindicator = p0210-sprps
            validityend   = P0210-ENDDA
            validitybegin = P0210-BEGDA
           recordnumber  = p0210-seqnr
            record        = P0210
            operation     = 'INS'
          IMPORTING
            return        = v_return1.
      ENDIF.
      CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
        EXPORTING
          number        = p0210-pernr
          validitybegin = p0210-begda
        IMPORTING
          return        = v_return.
    But infotype 210 is not getting created.
    When i check it from PA30, i get error
    "No data stored for Residence Tax Area in the selected period"
    Can anyone tell me what is the problem here.
    Full points will be rewarded.

    HI,
    check the value coming on the screens are properly.Use DIALOG_MODE as foreground and check whether all fields getting populated.
    Check any default values need to be populated.
    Regards,
    Manoj.

  • Cisco Flex Connect and users can not get IP Address by WAN

    Hello my name is Ivan
    I have a wlc 5508 with license base to 50 aps, i use a deployment flex connect. I already registered all my access points, I use web authentication to authenticate users guest, and the service dhcp is in the central site.
    My issue is the users in each remote site, can not get an ip address by dhcp from the central site, they can authenticate in the guest ssid, but any users can not get an ip.
    The request is passing by the wan in this way
    Central Site DHCP - Router WAN - Remote Site - Users with notebooks. I use flex connect central deployment (all the traffic consulting to the wlc) .
    perhaps i should use local deploy? The wlc is in the central site.
    Can you help me to resolving this issue please? , perhaps any advice?
    Regards
    Ivan.

    Thanks Osita
    If I configure Central Authentication and  I configure central switching I need to create a dynamic interafce for each remote site and each dynamic interface associated with a different VLAN ID, because I can not associate a single interface dynamic to the same  VLAN ID, but in my case the client remote in each remote site have the same network segment with the same VLAN ID with the same SSID for guests. My goal is to configure web authentication with the local DHCP server at each remote site, will this work?.Each remote site have its own server dhcp.
    If I configure authentication central authentication with central switching with web authenticacion as I set in my scenario?
    My issues are the interfaces dynamics, because I have the same network to the customer guest with the same ID VLan in each remote site
    Regards

  • Method is not getting created in sproxy

    Hii,
      I have created proxy for OutBound Asynchrous Message Interface in sproxy. After activating the object. When I see in the class, Execute_asynchrous Method is not getting created.
    What could be the problem?
    Any help would be appreciated.
    Regards,
    Varun

    Hi,
    Since ECC 6.0 version, EXECUTE_ASYNCHRONOUS methos and EXECUTE_SYNCHRONOUS methods are not generated with that names.
    Instead, The same name of your message interface is created as a method.
    Carlos

  • Help Pls Table is not getting created

    Hi,
    DECLARE
       CURSOR c
       IS
          SELECT * FROM emp;
        v_count NUMBER;
    BEGIN
       BEGIN
          SELECT COUNT (*)
            INTO V_COUNT
            FROM all_tables
           WHERE table_name = 'EMP_BKP';
          IF V_COUNT = 0
          THEN
             EXECUTE IMMEDIATE 'CREATE TABLE EMP_BKP AS SELECT * FROM EMP';
          ELSE
             DBMS_OUTPUT.put_line ('Table already created');
          END IF;
       END;
       BEGIN
          FOR i IN c
          LOOP
             INSERT INTO EMP_BKP
                SELECT *
                  FROM EMP
                 WHERE empno = i.empno;
          END LOOP;
       END;
    END;
    Error report:
    ORA-06550: line 15, column 13:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 15, column 1:
    PL/SQL: SQL Statement ignored
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:i don't understand why table is not getting created
    Edited by: 924575 on Apr 23, 2013 12:35 PM

    Frank Kulash wrote:
    Hi,
    924575 wrote:
    Hi,
    DECLARE
    CURSOR c
    IS
    SELECT * FROM emp;
    v_count NUMBER;
    BEGIN
    BEGIN
    SELECT COUNT (*)
    INTO V_COUNT
    FROM all_tables
    WHERE table_name = 'EMP_BKP';
    You probaly want to check <b>USER</b>tables, not  <b>ALL</b>tables.
    IF V_COUNT = 0
    THEN
    EXECUTE IMMEDIATE 'CREATE TABLE EMP_TEST AS SELECT * FROM EMP';Is this right: you want to create a table called emp_<b>TEST</b>, but only a table called emp_<b>BKP</b> does not already exst?
    ELSE
    DBMS_OUTPUT.put_line ('Table already created');
    END IF;
    END;
    BEGIN
    FOR i IN c
    LOOP
    INSERT INTO EMP_BKP
    SELECT *
    FROM EMP
    WHERE empno = i.empno;
    END LOOP;
    END;
    END;
    Error report:
    ORA-06550: line 15, column 13:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 15, column 1:
    PL/SQL: SQL Statement ignored
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:i don't understand why table is not getting createdWhat are you trying to do?
    Creating tables in PL/SQL is rarely a good idea.
    What can't you create the table, once for all, and TRUNCATE or DELETE the rows when necessary?Frank ,
    thank you so much for ur reply.
    Even user_tables also not working .i modifed as EMP_BKP that also not working.
    Yea. i agree. but requirement is i want to create dynamically. if same table already exists no need to create table.
    modified code is
    DECLARE
       CURSOR c
       IS
          SELECT * FROM emp;
        v_count NUMBER;
    BEGIN
       BEGIN
          SELECT COUNT (*)
            INTO V_COUNT
            FROM user_tables
           WHERE table_name = 'EMP_BKP';
          IF V_COUNT = 0
          THEN
             EXECUTE IMMEDIATE 'CREATE TABLE EMP_BKP AS SELECT * FROM EMP';
          ELSE
             DBMS_OUTPUT.put_line ('Table already created');
          END IF;
       END;
       BEGIN
          FOR i IN c
          LOOP
             INSERT INTO EMP_BKP
                SELECT *
                  FROM EMP
                 WHERE empno = i.empno;
          END LOOP;
       END;
    END;
    ORA-06550: line 24, column 22:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 24, column 10:
    PL/SQL: SQL Statement ignored
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:

  • Workitem not getting created

    Hi,
    I have build a workflow based on "QMSM" at event "COMPLETED". I have done the event linkage correctly and transported the customizing request in the client I want to test it in.
    The workflow has been activated without error. Itu2019s working when I test it from development environment, that is, from workflow builder.
    When I create a notification and complete the task, the event "COMPLETED" is getting triggered of "QMSM" object. In the event trace I could find out the green indicator against the event which means the workflow was recognized by event manager.
    But there is no workitem getting created. Could you please help me finding out the problem behind it?
    Why is workitem not getting created?
    Event Trace result is:
    Event Instance ID    577459
    Object Type           QMSM
    Object Key            0003000046080003
    Event                    COMPLETED
    Receiver type     WS99900010
    Receiver FM         SWW_WI_CREATE_VIA_EVENT_IBF
    RFC Destination   WORKFLOW_LOCAL_201

    The problem is workflow is not getting triggered.
    I had triggered the WF manually by executing the FM SWW_WI_CREATE_VIA_EVENT_IBF (from se 37 directly) which resulted in work item (WF instance) created. The WF error issue (Exception on ZFM) has been removed.
    The process that i follow:
    (1) I create a notification and add a task & complete the task.  <--- This does not trigger WF (and this my problem)
    (2) Event trace gives the things in GREEN. I double click the event trace record.
    (3) I get the necessary parameters from event trace corresponding to the event (COMPLETED) of object type QMSM and execute the FM SWW_WI_CREATE_VIA_EVENT_IBF.  This result in creation of a work item (triggering of work flow), In other word - A instance of WF is created that we can call the work item.
    My problem is -> even after correct event linkage, why is workflow not getting triggered?
    Could you please point out what would be going wrong?

  • ERMS : Email work items not getting created

    Hi Forum
    In my test system (CRM 2007), inbound mails were properly coming in and getting distributed to agent's inbox. But after the server restart, I realised that the work items for inbound mails stopped getting created due to which mails are not reaching agent's inbox.
    Mails are visible in SOIN but their associated Work items are not there in SWI1.
    I have checked almost all the settings like Email Distribution (SO28), CRM_ERMS_WF_CUST (Event lining is in place and is active), swu0 (Event simulation is working).... but still not sure why work items are not getting created for inbound mails.
    Any thoughts ? Help will be deeply appreciated.
    Regards
    Vishal Mani

    Thanks Bruno for your time to reply !
    I checked this transaction and in overview there are 19 events with errors. But apart from that everything is green.
    I checked the Linkages with Error tab and realised that the events with errors belong to object type BUS1006.
    In Activation tab --> Linkages --> Object type (ERMSSUPRT2) --> Linkage is activated.
    Infact that is the first thing, I checked when work items were not getting created.
    So no clue from here too.
    Regards
    Vishal Mani

Maybe you are looking for