Creating notification for client layer afterCommit of transaction

I am using JDeveloper 11.1.1.4.0 and I want to create notification in order to display successful message on client side in "afterCommit" method ApplicationModule. I know one way is through adding FacesMessage in FacesContext in bean but is there any way on model side?

Oracle doc says a better way to send notifications upon a successful commit is by declaring a business event. You can check the below link how to create business event.
http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcentities.htm#CHDHDIDB
~Abhijit

Similar Messages

  • Create partners for a maintenance order ( IW32 transaction)

    Hello:
    I need create partners for a maintenance order ( IW32 transaction) in a program.
    I'm using IBAPI_ALM_ORDERPARTNER_MAINT but it does not do anything.
    when,in partners data, an error exists, this is returned but when all is correct, bapi does not do anything.
    help me please.
    Thanks's
    REPORT  ZPM_PRUEBA_BAPI_INTER.
    DATA G_PAR TYPE I_PARNR.
    parameters p_aufnr like aufk-aufnr.
    SELECT-OPTIONS: S_PAR FOR G_PAR.
    parameters p_id(2).
    data lv_mens(255)   TYPE c.
    data: BEGIN OF lt_partner OCCURS 0.
            INCLUDE STRUCTURE BAPI_ALM_ORDER_PARTNER.
    data: end of lt_partner.
    data: BEGIN OF lt_partner_UP OCCURS 0.
            INCLUDE STRUCTURE BAPI_ALM_ORDER_PARTNER_UP.
    data: end of lt_partner_UP.
    DATA: BEGIN OF LT_ERR_COM.
           INCLUDE STRUCTURE BAPIRET2.
    DATA      END OF  LT_ERR_COM.
    *data begin of lt_errors occurs 0.
    *       include structure BAL_S_MSG.
    *data end of lt_errors.
    data: lt_errors type standard table of BAL_S_MSG with header line.
    start-of-selection.
      lt_partner-PARTN_ROLE = p_id.
    *  lt_partner_UP
      LOOP AT S_PAR.
        lt_partner-PARTNER = S_PAR-LOW.
        APPEND lt_partner.
      ENDLOOP.
    *1038062
      CALL FUNCTION 'IBAPI_ALM_ORDERPARTNER_MAINT'
        EXPORTING
          IV_ORDERID                           = p_aufnr
    * IMPORTING
    *   EV_CREDITLIMIT_CHECK_NECESSARY       =
      TABLES
        IT_PARTNER                           = lt_partner
    *   IT_PARTNER_UP                        =
    *   ET_PARTNER                            =
          ERRORS                               = lt_errors
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       WAIT          = 'X'
    IMPORTING
       RETURN        = LT_ERR_COM
      loop at  lt_errors.
    *    write: /2 lt_errors-MSGV1,lt_errors-MSGV2,lt_errors-MSGV3,lt_errors-MSGV4.
           CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            ID              = lt_errors-msgid
    *           LANG            = '-D'
            NO              = lt_errors-MSGNO
            V1              = lt_errors-msgv1
            V2              = lt_errors-msgv2
            V3              = lt_errors-msgv3
            V4              = lt_errors-msgv4
          IMPORTING
            MSG             = lv_mens
          EXCEPTIONS
            NOT_FOUND       = 1
            OTHERS          = 2.
         WRITE lv_mens
      endloop         .

    Hi,
    First, you can/should not use the FM IBAPI_ALM_ORDERPARTNER_MAINT. This FM is part of the service order BAPI called BAPI_ALM_ORDER_MAINTAIN and this is the correct FM to call for your requirement.
    A released BAPI by SAP will "survive" any upgrade. This is certainly not true for the mentioned FM IBAPI_ALM_ORDERPARTNER_MAINT, for instance.
    Please read the documentation for FM BAPI_ALM_ORDER_MAINTAIN either from SE37 (use language EN) or from transaction BAPI. There are sections for partner handling there (you must fill both the IT_PARTNER and the IT_PARTNER_UP tables for instance.
    This thread here on SDN will be of interest for solving your problem: Re: Deleting partner with BAPI_ALM_ORDER_MAINTAIN does not work
    If you find this answer of help then award some points so others can benefit from the answer as well.
    Best regards, Johan

  • PM: Create notification from a work order using transaction IW32.

    Hi guys,
    I am trying to create a Notification for a Functional Location thru Work Order Using transaction Code IW32.
    The actual transaction works fine as below -
    1. Open a work order in change mode using T code IW32
    2. Choose tab "Objects" to see the list of functional locations.
    3. Select a line with a functional loc, for which you want to create Notification & click "Create" Button at the bottom of the list.
    4. Enter Notification type on the pop up screen & enter.
    5. Enter the activity code, text & start date on the notif create screen & click Back. You can see the temp Notif Number in the row selected from the object list.
    6. Click save on the order change screen & the Notification is saved & is associated with the order & func Loc..
    However I can not do this in a program.
    I tried using Batch Input method. It works, but the problem is if you have more than 1 page of the Objects (Func locations) in objects tab, you can not goto the next pages.
    I also tried using BAPI_ALM_NOTIF_CREATE. Which doesnot for this purpose. It tries to create Notification but can't associate with the order.
    I appreciate your help.
    Thank you,
    Raj

    Hi:
    Check with Tcode: IBIP - Plant maintenace batch input utility tool.
    Hope, it may help!
    Thanks,
    Murali.

  • How to create infopackage for Cube to Cune to transaction

    HI Experts
    I have performed following steps for cube to cube load.
    1. Created source cube and loaded the data from R3
    2. Created Destination cube
    3. Generated Export Data source for the source cube. Here I'm able to see my datasource Icon(8ZFIGL_C01). When I double click on that it is give details.
    4. Defined the update rules for Destiination cube by assiging the infosource (8ZFIGL_C01) which is created in step3.
    5.Now I'm searching for the infosurce (8ZFIGL_C01) in data modelling -> infosource.  its not showing up any name with 8ZFIGL_C01.
    Kindly let me know how to create infopackage for this to laod the data from cube to cube.
    Additional information:
    I have set the optopn Display Generated Object in Settings.
    Thanks in advance for your help.
    Regards
    NLN

    Hi,
    Right Click on "Infosource" (TA RSA12 Top at the Right side Panel) and choose Insert lost nodes and refresh the screen and now search for your infosource and you will find it.
    See solution from SAT:
    Problems with Infosource Data Marts
    Best regards,
    Frank

  • Alert or Notification for Client Open and Close

    Hi All,
    How to configure an Alert or Notification, if the Client (SCC4 and SE06) is open and in modifiable state, we have spoken to our solman team and got the confirmation that there is no MT Class for SCC4 and SE06.
    If this is possible through any z program, please do help and provide your comments and suggestions.
    Thanks & Regards
    Praveen

    It is possible to assign a different posting period variant to company code in a non-leading ledgers (the extreme right field) in the foll. node in SPRO.
    Financial Accounting (New) -> Financial Accounting Global Settings (New) -> Ledgers -> Ledger -> Define and Activate Non-Leading Ledgers

  • How to create bdc for fbs1 using both call transaction and session

    Hi Friends,
    i have one problem with tcode FBS1, i need to create a bdc program for both call transaction and session method using subroutine.
    first call transaction needs to execute if there is an error sesion has to execute. if u have code please forward.
    thanks in advance.
    chandramouli pothugunta

    where as in call transaction we can do error handling explictly.those errors  are stored in one file .this file will send to the error log(session method),i.e session log.
    in the above case we use both call transaction n session method at time in one program.sample code is below ,go through it .
    data : begin of itxk01 occurs 0,
    end of itxk01.
    data : bdcdata like itbdcdata occurs 0 with header line.
    data : itbdcmsgcoll like itbdcmsgcoll occurs 0 with header line,
             itxk01 like itxk01-dup occurs 0 with header line.
    call gui-upload.
    loop at itxk01.
    refresh itxk01.
    perform bdc-dynpr0 using 'prg' 'scr'
    perform bdc-dynfld using fnam fval
    call transaction 'xk01' using bdcdata mode 'a' update 's' messages into itbdcmsgcoll.
    if sy-subrc ne 0.
    append itxk01 into  itxk01-dup.
    endif.
    endloop.
    if not itxk01-dup[] is initial.
    refresh itck01.
    call bdc_open_group
    itxk01 = itxk01-dup.
    loop at itxk01.
    refresh itxk01.
    perform bdc-dynpr0 using 'prg' 'scr'
    perform bdc-dynfld using fnam fval
    call bdc-insert.
    endloop.
    call bdc-close-group.
    form bdc-dynpr0 using pr sc
    endform .
    form bdc-field  using fnam faval
    endform.
    this will help u.
    reward points for me
    kiran

  • Creating App for Client

    hi there,
    i'm currently developing my first iPhone/iPad app for a client. when publishing/releasing it in the app store i do not want my name to appear as the seller but the client's name. do i need to create an iPhone/iPad developer account for the client or is there any other way to do so?
    thanks in advance!
    IS

    Try the developer forum. You'll find many like minded people there to assist you with questions. Most of the people in this forum are end-users.
    http://developer.apple.com/devforums/

  • Create Notification for Cluster Share Volume Disk Capacity

    I am new to System Center Operations Manager but am slowly learning. We are running SCOM 2012 R2 and I want to get notifications when there are issues in our 2012 Hyper-V Cluster, specifically when the free space on our CSVs gets below
    100 GBs.  I have a notification channel setup and I am receiving notifications on other issues on monitored servers as they occur.  I have imported the Cluster, Core OS and Windows Server OS management packs which have enabled me to see in Monitoring
    > Microsoft Windows Server > Performance > Cluster Share Volume Disk Capacity the Free Space for the CSVs in a graph, now what do I need to do so I can get a notification when the free space on our CSVs gets below 100 GBs or whatever other
    level I want to set it at?  Thanks.

    Hi WSUAL2,
    Have you created a separate Subscription for Disk alerts? Please refer below link for "How to configure notifications".
    http://blogs.technet.com/b/kevinholman/archive/2012/04/28/opsmgr-2012-configure-notifications.aspx
    In your case, you need to select the respective Cluster Disk monitor while creating new Subscription.
    Check mark this --> "Created by specific Rule or Monitor"
    Before that make sure that you are getting alert in console. By seeing Alert Details, you can find the correct Rule/Monitor name.
    Regards, Suresh

  • Workflow question - creating artwork for client approval

    I am going to start on a large project with many different pieces of artwork that will need to be approved along the way. As each piece is approved, it will be integrated with other artwork to eventually form the final piece.
    1. Just curious what your workflow with doing something like this might be. Do you send .PDF comps of the artwork requiring approval? Do you use .jpeg? Other?
    2. Are there any built in tools in AI for making a process like this easier?
    3. What other info do you put on the comp you submit to the client?
    thanks.

    I tend to use .pdf comps with a security feature allowing only low resoultion (150dpi) printing.  The idea being for a proof of an ongoing project an on screen .pdf should be enough.
    But that's just me...

  • JS CS4: Create variable for current layer then select the layer at the end of a script

    I'm coming up blank with the verbiage and spinning my wheels with the OMV and script guide.
    var myOriginalLayer = app.activeDocument.layers.item(0);
    alert(myOriginalLayer)
    returns "object layer" and not the layer's name.
    var myOriginalLayer = app.activeDocument.layers.lastItem().name;
    Does return the layer name I want but not by selection.
    I'm challenged on how to select the layer.

    Hi John,
    The difference lies in that the [Object Layer] is the actual object, and the 'name' is just a property -- just like its color.
    You can use one of these two approaches:
    var myOriginalLayer = app.activeDocument.layers.item(0);
    alert(myOriginalLayer.name);
    will hold the original layer object, and you can see the name if required :-)
    To re-select the layer, use
    app.activeDocument.activeLayer = myOriginalLayer;
    Alternatively, selecting by name goes like
    var myOriginalLayerNAME = app.activeDocument.layers.lastItem().name;
    app.activeDocument.activeLayer = app.activeDocument.layers.item(myOriginalLayerNAME);
    I also noticed the following:
    app.activeDocument.layers.item(0) points to the first layer of your document; not the 'active' one. Similarly, app.activeDocument.layers.lastItem() just points to the very last one. I'm not sure if the order of the activeDocument.layers array mimicks the order as shown in the Labels palette, but I would hope it does :-)
    To get/set the active layer, use app.activeDocument.activeLayer as shown above.

  • Unable to create a notification for a group (Cisco Unity Express 3.2)

    There is Cisco ISR 2821 with CME 7.1 and Cisco Unity Express 3.2.
    I am trying to create notifications for a group named AAA in CUE.
    I do following (GUI):
    1. Go to Configure -> Groups
    2. Click on the group name AAA.
    3. In Group Profile window 'Enable notification for this user/group' option is enabled.
    4. Go to Mailbox tab. There is an associated mailbox with ticks against Enabled and Fax Enabled.
    5. Go to Notification tab and see the warning:
    No Notification Devices found for User/Group
    Also, there are another several groups on this system and I am able to turn notification on for them. These groups have the same owners and members that AAA has. Moreover, if I create a new group and set it up absolutely the same as AAA, I can turn notifications on for it.
    The problem in this way is that we have our custom greetings and after I created a new group, for example BBB, with the same settings (as AAA, inluding Primary Extansion and Primary E.164 Number) and remove these numbers from AAA, then it works and users would receive notification about new voice messages. BUT, when I call BBB I listen to standart Cisco greeting promts.
    I don't undestand why it happens, because all these greetings are determined in Voicemail -> Auto Attendant section and I did not any changes here at all.
    How can I fix this 'notification' problem?
    Thanks.

    Process with success:
    unzip the packet in: C:\APEX
    1. Install:
    @apexins SYSAUX SYSAUX TEMP /i/
    2. Change to password:
    @apxchpwd,
    3. Run apex_epg_config.sql
    On windows:
    @apex_epg_config.sql (page 30, the guide of intallation)
    Important:Replace SYSTEM_DRIVE:\TEMP by C:
    E.g.: @apex_epg_config C:
    After this, follow the next steps
    4. ALTER USER ANONYMOUS ACCOUNT UNLOCK;
    Finish! Just execute apxldimg.sql script if you is upgrading from a preview release.
    Now try the connect on the browser IE6 o later:
    http://localhost:8080/apex/apex_admin
    Then create your workspace.
    Edited by: [email protected] on 10/03/2009 11:59

  • Could not create remote for an EJB

    Hello,
    We have deployed an App on Sun One 7 that has web as well ejb modules integarted into it. The app deploys properly, However as soon as I try to call a servlet which in turn looks up an EJB (say ClientBean ) it gives me the followign error --->
    "Could not create remote for Client Bean"
    The entries in the xml files are as follows -
    1) In ejb-jar.xml -
    <session>
    <ejb-name>EUClientBean</ejb-name>
    <home>com..ejb.EUClientHomeIF</home>
    <remote>com..ejb.EUClientRemoteIF</remote>
    <ejb-class>com.ejb.EUClsClientBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <resource-ref>
    <description>database ref</description>
    <res-ref-name>test/db</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </session>
    2) in sun-ejb-jar.xml --
    <ejb>
    <ejb-name>EUClientBean</ejb-name>
    <jndi-name>ejb/EUClientBean</jndi-name>
    <ejb-ref>
    <resource-ref>
    <res-ref-name>test/db</res-ref-name>
    <jndi-name>jdbc/test/db</jndi-name></resource-ref>
    <pass-by-reference>true</pass-by-reference>
    <bean-pool>
    <pool-idle-timeout-in-seconds>0</pool-idle-timeout-in-seconds></bean-pool>
    </ejb>
    3) In sun-web.xml -
    <ejb-ref>
    <ejb-ref-name>ejb/test/client</ejb-ref-name>
    <jndi-name>ejb/EUClientBean</jndi-name>
    </ejb-ref>
    4) In web.xml --
    <ejb-ref>
    <ejb-ref-name>ejb/test/client</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.ejb.EUClientHomeIF</home>
    <remote>com.ejb.EUClientRemoteIF</remote>
    <ejb-link>EUClientBean</ejb-link>
    </ejb-ref>
    Actually the same app was working on IAS 6.5.
    Any ideas what cud have gone wrong?

    Hi Mandar,
    Can you post the exception you're getting in your servlet code? Does it happen when the servlet is looking up the ejb or when it tries to create it?
    Regards,
    Ken

  • Notifications for objects in the objectlist

    Hi,
    I am trying to develop a webdynpro application to imitate IW32 transaction in SAP ( albeit it will be much simpler to use with majority of func. on single screen ). I am able to create notifications for the work order object list using 'BAPI_ALM_NOTIF_CREATE' and assign this notification to the objects in workorder objectlist using 'BAPI_ALM_ORDER_MAINTAIN' however when i open up the object notification in IW23 transaction the notification has a OSNO (outstanding notif) system status and no work order number displayed. ( so you can see the notification nr in work order objectlist via IW32 txn and on double click you go the notificaiton , however navigation the other way round is not possible as no work order nr is displayed  in notification).
    However if i try the same thing via IW32 transaction the new notification created has NOPR ORAS( notif in processing, order assigned ) system status with the workorder number displayed in notification . (   + I want same behavious when i create notif thorough web dynpro +    ).
    I have tried using the 'STATUS_UPDATE' Fm to update status of newly created notifications and it seems to change notification status from OSNO to NOPR ORAS but still the workorder number does not show up ( so it defeats the whole purpose of system status change ).
    Please let me know if anyone else has faced a similar issue before and how this can be handled.
    Thanks,
    Vivek Priyadarshi
    Edited by: Vivek Priyadarshi on Feb 10, 2011 9:31 PM

    issue resolved by implementing an enhancement in LIQS0F08. The variable sfbcall-aufnr in form check_status_to_order has to be set with order nr. AUFNR. This variable is set through IW32 transaction however somehow it does not get set when creating notifications through 'BAPI_ALM_NOTIF_CREATE'.

  • Create Notification Navigation Button not working in Order Objects Tab

    Hi Gurus,
    I am having an issue in Order --> Objects tab. I want to create notification for additional  technical objects for the order. When I enter the technical object details and press enter, a "Create Notification" navigation button gets activated for that line item. But when I press that button, nothing happens. On the other hand if a select multiple line items and then press "Create Notification" button at the bottom of the line items, I am able to create notifications for the selected line items.
    Can someone help me suggest what can be the problem or suggest a Note which might restore the functionality of the "Create Notification" navigation button at the line item level.
    Thanks in advance for the help.
    Best Regards
    Vikas Hali

    Vishal,
    I dont think the Notification Create Button from line item is pretty much dependent on the Customization Settings or any sap note concerning this has not been as yet brought into my notice. In my system, this is working appropriately. The problem with this which i can think of is either an authorization issue or you should raise an oss for this.
    Regards,
    Usman

  • Create partners for a maintenance order

    Hello:
    I need create partners for a maintenance order ( IW32 transaction) in a program.
    I'm using IBAPI_ALM_ORDERPARTNER_MAINT but it does  not do  anything.
    when,in partners data, an error  exists, this is returned but when all is correct, bapi does not do anything.
    REPORT  ZPM_PRUEBA_BAPI_INTER.
    DATA G_PAR TYPE I_PARNR.
    parameters p_aufnr like aufk-aufnr.
    SELECT-OPTIONS: S_PAR FOR G_PAR.
    parameters p_id(2).
    data lv_mens(255)   TYPE c.
    data: BEGIN OF lt_partner OCCURS 0.
            INCLUDE STRUCTURE BAPI_ALM_ORDER_PARTNER.
    data: end of lt_partner.
    data: BEGIN OF lt_partner_UP OCCURS 0.
            INCLUDE STRUCTURE BAPI_ALM_ORDER_PARTNER_UP.
    data: end of lt_partner_UP.
    DATA: BEGIN OF LT_ERR_COM.
           INCLUDE STRUCTURE BAPIRET2.
    DATA      END OF  LT_ERR_COM.
    *data begin of lt_errors occurs 0.
    *       include structure BAL_S_MSG.
    *data end of lt_errors.
    data: lt_errors type standard table of BAL_S_MSG with header line.
    start-of-selection.
      lt_partner-PARTN_ROLE = p_id.
    *  lt_partner_UP
      LOOP AT S_PAR.
        lt_partner-PARTNER = S_PAR-LOW.
        APPEND lt_partner.
      ENDLOOP.
    *1038062
      CALL FUNCTION 'IBAPI_ALM_ORDERPARTNER_MAINT'
        EXPORTING
          IV_ORDERID                           = p_aufnr
    * IMPORTING
    *   EV_CREDITLIMIT_CHECK_NECESSARY       =
      TABLES
        IT_PARTNER                           = lt_partner
    *   IT_PARTNER_UP                        =
    *   ET_PARTNER                            =
          ERRORS                               = lt_errors
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       WAIT          = 'X'
    IMPORTING
       RETURN        = LT_ERR_COM
      loop at  lt_errors.
    *    write: /2 lt_errors-MSGV1,lt_errors-MSGV2,lt_errors-MSGV3,lt_errors-MSGV4.
           CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            ID              = lt_errors-msgid
    *           LANG            = '-D'
            NO              = lt_errors-MSGNO
            V1              = lt_errors-msgv1
            V2              = lt_errors-msgv2
            V3              = lt_errors-msgv3
            V4              = lt_errors-msgv4
          IMPORTING
            MSG             = lv_mens
          EXCEPTIONS
            NOT_FOUND       = 1
            OTHERS          = 2.
         WRITE lv_mens
      endloop         .
    help me please.
    Thanks's

    Hi,
    First, you can/should not use the FM IBAPI_ALM_ORDERPARTNER_MAINT. This FM is part of the service order BAPI called BAPI_ALM_ORDER_MAINTAIN and this is the correct FM to call for your requirement.
    A released BAPI by SAP will "survive" any upgrade. This is certainly not true for the mentioned FM IBAPI_ALM_ORDERPARTNER_MAINT, for instance.
    Please read the documentation for FM BAPI_ALM_ORDER_MAINTAIN either from SE37 (use language EN) or from transaction BAPI. There are sections for partner handling there (you must fill both the IT_PARTNER and the IT_PARTNER_UP tables for instance.
    This thread here on SDN will be of interest for solving your problem: Re: Deleting partner with BAPI_ALM_ORDER_MAINTAIN does not work
    If you find this answer of help then award some points so others can benefit from the answer as well.
    Best regards, Johan

Maybe you are looking for

  • Where "Dependent Items Are Free of Charge" indicator from PO stored?

    Hi, Where "Dependent Items Are Free of Charge" indicator from PO stored. In ME23N transaction it is displaying k=like : Data Element UMSON Screen Field MEPO1211-UMSON But in which database table this will be stored....Please let me know if any has id

  • Photos distorted when opened in preview, yet ok in cover flow

    Hi I previously posted this question which got moved to the iPhoto section, but its NOT an iPhoto issue: http://discussions.apple.com/thread.jspa?threadID=2619921&tstart=0 Having purchased a new camera (Sony DSC2000) the first time I used it the phot

  • How can I hide scrollbars in gui objects?

    Hello, I want to hide the scrollbars of a gui container but I can not find a way to do it. If you know how to do it in gui container or other objects please let me know. Thanks in advanced, Udi dekel.

  • FireFox won't load pages, but IE explorer can.

    This happens at random times when I have 2 separate windows open. When I'm trying to load a page, the browser either won't load or it's taking too long to respond to the connection. The only way I can resolve is by closing and open FireFox. But then

  • Upgrade OWS 2.0 to OAS 4.0.8.2

    I tried all the places including Oracle support to get a document regarding this issue.But nobody have such document or info.So if anyone had ever done this kind of an uprgrade,Kindly help me in this matter with details.([email protected]) Thanks Suj