DSC Notification Functions

I have an application in LV & DSC 8.01. I want to read Data and Alarms of some shared variables bound to PLC items. Using "Value Change Notification" Functions, I want to update a display chart only if a shared variable value changes not polling the shared variables all the time. As I understand, these functions, "Enable Value Change Notification" and "Request Value Change Notification" with "Register for Event" Node, register a value change event for shared variables specified handling by an event structure.
But when I run the code it works in this way: at the first a number of events arise without any value change, and after that it waits for a value change on shared variables. With any value change more than one event arise.
I want to know what the problem is. I've attached a sample code.

Sorry, I forgot attaching the code.
Attachments:
Value change notifier.vi ‏21 KB
Data Management2.vi ‏45 KB

Similar Messages

  • Can anyone explain "ignore previous" feature of Wait on Notification function?

    Can anyone explain "ignore previous" feature of Wait on Notification function?  I have read the help description and other material and I just don't get it.  Reference to any good articles I can read will be appreciated.
    Thanks in advance.

    Hi VI Joe,
    if the "ignore previous" input is true, then you only get the notifiers which arrive if you are waiting in the "Wait on Notifiacation" function. If there is a notifier before this function is executed, then you don't see it.
    Edit: See the attached example. If the constant is true, then the vi will wait on a notification because the previous is ignored, if the constant is false, then it receives the notifier. 
    Hope it helps.
    Mike
    Message Edited by MikeS81 on 06-26-2009 02:36 PM
    Attachments:
    Notifier_LV85.vi ‏9 KB

  • Wf_notification.getNtfResponse in post notification function

    Didn't have too many responses for my previous post, so have to ask again -
    can I use wf_notification.getNtfResponse function in the post notification function?
    Thank you.
    Anatoliy Smirnov

    Hello Matt,
    Thank you for the response. Was not sure if this was an answer or a question, so here is a signature for the function in question from wf_notification package shipped by someone named 'dmani' I guess. Using it in postNotification function always returns NULL. Just wanted to hear from Oracle or someone if this is another feature or I am missing something or this can not be used there.
    Regards,
    Anatoliy
    /* $Header: wfntfb.pls 115.230.115102.2 2005/05/16 06:04:07 dmani ship $ */
    -- getNtfResponse
    -- Fetches result(response) CODE and response display prompt to the notification
    -- IN
    -- p_nid - Notification ID
    -- OUT
    -- p_result_code Result code of the notification
    -- p_result_display Display value of the result code
    procedure getNtfResponse (p_nid in number,
    p_result_code out nocopy varchar2,
    p_result_display out nocopy varchar2);

  • Send back to author issue in HCMFP with extended notification functionality

    Hi,
    We are using HCM Forms and Processes in our project .When the Form is sent back to author by the manager, author receives the email using extended notification functionality where the author clicks on the link provided in the notification email to open the form.Till here everything working fine, but when the author sends  the form again for approval with required changes , the approver  could not see the latest changes in the form. He still see the old data. Please note standard Task TS04000020: PD Form Is Edited Again by Author is used in the workflow.
    We tried the same scenario, where author access the form through UWL, make necessary changes and send the form for approval. In this case,latest changes can be seen by approver without any issue.But, as per business we can not provide UWL and should use extended notification functionality only..
    Please help in resolving the issue with extended notification functionality as early as possible.
    Thanks,
    Pavan.

    Hi Viji,
    Regarding your question.. here is the business requirement.
    1. Author fills the HCM form , hit check and send button, so that workitem goes to approver's UWL.Author do not have portal, but performs this process from SAP GUI itself using the webdynpro link as shown below.
    https://  pint01.xxx.net:8043 /sap/bc/webdynpro/sap/asr_pd_process_execute?sap-wd-configId=ZXX_PD_PROCESS_EXECUTE
    2. Approver has buttons on the form to approve, reject or send back to author.
    3. When author hits the "send back to author" button, the work item (task TS04000020) will be created for the author.
    4. The notification email will be sent to author using the program SWN_SELSEN.The email contains a link as shown below to open, edit,check and send it again for approval.
    https:// pint01.xxx.net:8043 /sap/bc/webdynpro/sap/asr_process_execute?WI_ID=000000052545
    The problem here is, when the author makes changes and send the form for approval, the approver still see the old content only in the form.
    Thanks,
    Pavan.

  • Post notification functionality

    Dear Experts,
             I have defined a workflow which will sending approval notification to multiple people. I have enabled the 'EXPAND ROLE'  checkbox for the notification.
    The actual issue :
    Notification is send to multiple people. But if anyone has performed their action(Approve/Reject) then rest all their approval notification is not available in their queue.
    Expected behavior
    Each user needs to do their approval individually.
    What I have done:
    1.   I created the adhoc role and we assigned the required set people in the role.
    2.   Expand role has been enabled.
    3.   We added the post notification function but we didn't write nothing inside except null. (Coz I dont know what i need to do).
    Thanks in advance.
    Regards,
    Kanish

    Expand Roles would work for a FYI, but realistically you are setting up a Single Notification which can only handle 1 response.  If one person Approves the WF moves on.  You can follow up the Approve/Reject with a FYI saying it was approved so the other can see what, who, when.  If you need everyone to Approve/Reject you need to go into a looping scenario like POAPPRV/REQAPPRV to get everyone's individual response to move forward.  Or you can look at Voting which will save everyone answer and approve or reject based on criteria you define.
    Realistically, the Notification still exists in the Notification List if they look at the Closed Notifications tab

  • Email notification functionality to info IT/ Faciliites

    hi All
    I have to undertake configuration hire an employee into Company.  This hiring action should then trigger an automatic e-mail to the specified contacts within Facilities and IT.
    Also have to  make an employee a leaver of Company and this again should trigger an automatic e-mail to the specified contact within Facilities and IT.
    Does any body has any idea how should I proceed.
    rgds
    AJ

    follow the steps i have detailed below:
    <b>STEP1)IMG – Personnel Management – Personnel Administration – Customizing Procedures -  Setting Up Mail Connection for Infotype Changes – define conditions for sending mail</b>
    Here, you will be asked for the infotype number you wish to create the mail notification on; enter the number and green tick
    <u><b>Dynamic Action Mail for Infotype Changes</b></u>
    This section explains how to configure a dynamic action feature to send SAP mail for infotype changes in Personnel Administration.
    In the <b>Sty column,</b> enter the subtype you wish to trigger the mail, or leave it blank to work for all subtypes. 
    In the <b>Field n column</b>, enter the technical name of the field you wish to trigger the mail, or leave it blank to work for all fields.
    The <b>F. column is the function code</b>.  Enter 06 to trigger the mail when the record is created or changed.  Enter 08 to trigger the mail only when a record is deleted.  For further options, click into the field and select Help (F1).
    The <b>N… column</b> is a sequential line number.
    The <b>S column is the command column</b>.  In the above example, line 0 is a comment line as it starts with an *.  Line 1 uses P which is a decision/if condition.  The example shows a decision on the transaction class ‘A’;  if it is not a the condition is not met and the action is not performed.  PSPAR-TCLAS is A if it is triggered from Personnel Administration (PA30,PA40 etc), it’s B is the action is triggered from recruitment PB30, PB40 etc). 
    Line 2 shows the letter M, which means call a feature to send the mail, the feature name here is M0001, change this to the name of your own feature.
    <u><b>STEP2)The Mail Connection Feature M0001</b></u>
    Use transaction PE03 to edit the feature.  Copy the template feature M0001 to your own version.  To learn the options available in the feature, use PE03 to look at feature M0001, and be sure to read the feature documentation which explains all the settings. 
    To enter the text-id of the SAP script you will use to generate the text of the mail, change the line &M0001=IDTXT MAIL_FOR_I0001_A
    change MAIL_FOR_I0001_A to the name of your text.
    <b>The user who receives the mail is set by the 3 lines:</b>
    RECV1 has an X to send to the Personnel Administrator
    RECV2 has an X to send to the Time Administrator
    RECV3 has an X to send to the Payroll Administrator
    When you have finished amending your feature, don't forget to generate it.
    <u><b>Administrators Mail/User ID</b></u>
    The administrators are recorded on an employees infotype 0001.  To allocate them a SAP user-id to receive the mail use this IMG path:
    <b>IMG– Personnel Management – Personnel Administration – Organizational Data – Organizational Assignment – Define Administrator.</b>In this table shows the list of administrators.  The Column SAP name is where you enter the SAP user-id of the administrator
    <u>
    <b>Changing the text of the mail</b></u>
    <b>Use transaction SO10 or IMG– Personnel Management – Personnel Administration – Customizing Procedures -  Setting Up Mail Connection for Infotype Changes – Create standard texts for mail connection</b>to edit SAP script texts for mail;  the text ID is PAMA.  Look at MAIL_FOR_I0001_A as an example, copy it and amend as required.
    When you have finished these steps, test the mail connection by placing your user-id against one of the administrators and making the change in the infotype you have set-up for a test employee.
    This shld get u started.

  • How to execute Oracle Workflow Post Notification Function

    Hello All,
    I have  a requirement where I have to approve Expense Reports through a program rather than from notification. For the same I am using below:
    wf_engine.completeactivityinternalname(itemtype=>'APEXP'
                               ,itemkey=>'4634686'
                               ,activity=>'APPROVAL_REQUEST'
                               ,result=>'APPROVE');
    Now, after executing above procedure I can see that notification is approved but my workflow has not proceed to next node as I think that the function associated with notification has not executed.
    Kindly help me on this that how can I approve my expense report and move the workflow to forward so that other functions will execute.
    Many Thanks! in advance
    Sandy

    Thanks! for your reply.
    I am using this API outside the workflow.I am using this API for iExpense to approve an Expense Report. In Expenses Workflow below are the processes:
    1. AP_MANAGER_APPROVALPROCESS whihc is using NON_AME_APPROVAL_PROCESS and this is using REQUEST_APPROVAL_PROCESS and under this process there is a notification APPROVAL_REQUES. Now, I am completing this ACTIVITY as Approve and I am able to do that but problem is that REQUEST_APPROVAL__PROCESS is itself not getting completed and stuck here.
    Please let me know how can I achieve that.
    Thansks!
    Sandy

  • Email Notification function module required

    Hi All,
    I need fucntion module which generated email to user. In this email there is no attachment. Only some text i need to display and i ned to show output in table format.
    any body can help me which fucntion module i need to use.
    thanks,
    maheedhar

    kindly check FM:
    SO_NEW_DOCUMENT_ATT_SEND_API1

  • Notification custom callback function

    Hi,
    I want use a custom callback function instead of the default wf_engine.cb.
    Can someone tell me how to proceed?
    Thanks.

    Hi Dany,
    Is your scenario is where you have a custom application and want to complete that application process using the callback function? In such cases, you should be using the callback function.
    You should the Notification APIs to send such notifications. The Notification Send API includes a parameter for the Custom Callback function.
    The Notification API section of the workflow guide also documents the signature and other details of a custom callback function.
    Workflow also provides a Post Notification Function api which could perform back-end logic to either validate the legitimacy of the forward/transfer or execute some other supporting logic.
    Hope this helps,
    Raja

  • Warning message in Oracle Workflow notification

    Hi,
    I have a requirement, where a warning message is to be shown to the user when he presses the Approve button of a notification.
    I know that through post notification function, validations for a particular notification can be performed and an error message can be shown to the user using RESULT := 'ERROR: error_msg'
    But can a warning message be shown ? If yes how?
    Thanks in advance.
    Souri Guha

    I would try by using a parameter to tell whether the warning message for the notification has been displayed. First time the notification is being approved the function raises the warning message and sets that attribute to indicate the warning has been displayed. Next attempt to respond the notification your function will check that attribute has been set and will do nothing, just let the notification go responded.
    You might as well present the warning message in the notification body and introduce another attribute to get the acknowledgement from the user. Only when that attribute is set to YES (acknowledge) will the post-notification function actually let the notification be approved, otherwise an error is presented for the user to acknowledge.
    Hope this helps
    Alejandro

  • Use of business transaction variant in QM notification

    Dears
    I have a issue with notification.
    I have defined action box as below
    SPRO>Quality Management>Quality Notifications>Notification Processing>Additional Notification Functions>Define Action Box>Define Functions for the Action Box
    For a notification type, I have defined 3 actions
    Yes, NO, TBD
    I am usiong std function module - QM06_FM_TASK_SEND_PAPER in function and QM06_SEND_PAPER_STEP2 FM when saving field.
    The difference is Code and code group + business transaction attached to above 3 action
    for Yes - code gropup/code is ACTION/YES, business transaction - QN74
    for N0   - code gropup/code is ACTION/NO - business transaction - QN75
    for TBD - code gropup/code is ACTION/TBD - business transaction - QN71
    I have created user status with status as Yes/No/TBD
    I have attached thebusiness transaction(QN74, QN75, QN7 created aboveto user status status, Yes/No/TBD respectvely. "allowed and set" in OIBS-user status maintenance.
    Hence while on clicking on action in QM notificatioon systems does 2 things
    Task creation with code and code group mention above
    User status mention above.
    Till here it is fine, by mistake user clicked on No and he wants to change it to Yes...system is not allowing him to change it gives popup error that " The function you selected cannot be carried out: - Follow-up function: Variant 5", when I click on detailed info, no status is shown as preventing this action.
    Did any one faced this type of problem? Is it a bug? Please help me.

    hi
    can you post the status profile you have created with the status number and the lowest and highest number,if for example you have status number as 10,20,30 for each status you can maintain the low and highest number
    10        10   20
    20        20   30
    30        30   30
    hence if the status number 20 is activated either you can assign the status with status no 30 and reassign with the same status number 20 you cannot able to reassign to 10 since lowest number is not between the limits
    regards
    thyagarajan

  • Issue in a custom workflow with Approval Type Notification. Urgent

    Hi
    I have created a custom workflow which contains an approval notification.
    If the user approves/rejects the notification I need to update a table column as Approved or Rejected.
    I have created a function activity,say X, which calls a PL/SQL procedure.
    The issue is,
    when the user approves or rejects the notification, the function X errors out even without entering the PL/SQL procedure.
    Following is the error message
    An Error occurred in the following Workflow.
    Item Type = XXYH_UMX
    Item Key = 55
    User Key =USERKEY:55
    Error Name = -6502
    Error Message = ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Error Stack =
    Wf_Engine_Util.Function_Call(XXYH_UMX_WF_PKG.is_resp_assigned, XXYH_UMX, 55, 242407, RUN)
    Activity ID = 242407
    Activity Label = XXYH_UMX_ASSIGN_RESPONSIBILITY:XXYH_UMX_RESP_ASSIGNED
    Result Code = #EXCEPTION
    Notification ID =
    Assigned User =
    If I go the function from any other function,say Y, (bypassing approval notification) it works fine.
    Can you please help me what could be the issue?
    Thanks,
    Kamath.

    The danger in putting in one activity is that if there is any scope longer-term to expand the process to multiple activities, then it may be better to break it out into a sub-process early in the design phase.
    Generally, you get the feeling from the client fairly early on about whether they have a final design and how likely they are to complicate the process later on :)
    I wouldn't include it as a post notification function myself - it saves a tiny amount of processing time and database space, but at the cost of making it less clear what is happening. Plus you'd need to check the result in the PNF manually - putting it on a conditional branch ensures that you always know what the value is. If the lookup type changes at any stage, you would need to check a PNF to ensure that the code still remains valid; if it's on a branch then the only thing to change would be to change the label on the branch.
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Auto Creation of Order from Notification

    Hi all,
    As all of us are aware we can create notification automatically on creation of order, through Order/Notification integration setting in SPRO.
    Is it possible to create Order automatically on creation of Notification in standard SAP ?? Pls confirm.
    Thanks in advance,
    Talanki

    Hi
        Option given in ECC6.0 cration of order from notificaton automatically by direct and background
    With this option you can create the order from notification provided you need to update all the data in notificatin like funcitnal location/equipment/workcentre( so that it will fetch all the data from this master data while creating)
    then if you select the PM notification>function>order >create direct or create backgroup option then order will be created but it will throw in pop up saying details of order type and planning plant.. if you say ok...then order will be created in foreground. if you select backgroud also it will throw popup if you say ok it will create the order in back ground.
    For this you need to do the customization setting assigining the order type to notifiction so that it will automatically fetch the order type aganit the notification while creating the order.
    regards
    Krishna

  • Queries related to Notification : Tcode : QM02 and QM03 ( SAP ECC 6.0)

    Hello,
    In tcode qm02 i can see the action box window. But if i display the same document using QM03 i dont see the action box window. Is it possible to display action box window while displaying the document using qm03.
    Thanks in advance.
    Hem

    Hello Hemaraaja,
    In notification display mode (QM03) only those action box functions are available which are defined as Documentation 'None' functions.
    For the functions which are defined to be documented as activity or as task, the notification needs to be updated when executing the functions and therefore, these can only be displayed when changing the notification.
    See the following setting:
    Transaction QCC2
    -> Notification Processing
    -> Additional Notification Functions
    ->Define Action Box
    -  Define Functions for the Action Box
    (Select the correspondent activity and view the detail)
    You need a usage i.e. B5 (change and display)
    defined as notification and task
    and documentation N None.
    This should be possible.
    Hope that this information helps resolve your issue.
    Regards,
    Isabelle

  • Not able to send email notification to adhoc role created

    Hi All,
    Have a requirement to send email notification to multiple emails from workflow. As per the given requirements have derived the emails and concatenated with comma (,) and passed to the API createadhocrole to create.
    lRoleEmail has value as [email protected],[email protected]
    wf_directory.CreateAdHocRole(role_name => lRoleName,
    role_display_name => lDisplayName,
    language => 'AMERICAN',
    territory => 'AMERICA',
    role_description => NULL,
    notification_preference => 'MAILHTML',
    role_users => NULL,
    email_address => lRoleEmail);
    A new role is getting created but there is no email sent.
    Created a new attribute of role type and in the notification function have assigned the same as the performer.
    The NOTIFICATION_PREFERENCE in WF_ROLES table is DISABLED for the new role.
    If anyone came across same issue please let me know to to achieve this.
    Thanks in advance.
    MJ

    You need to provide the correct email address but not the dummy address like '[email protected],[email protected]'. One more thing you can give only email address per one user or role. You cannot assign multiple addresses, if you do also it treats the entire string as one email address only.
    After changing the email address, modify the notification preference to MAIL* and then send a notification.

Maybe you are looking for

  • Have MobileMe account, have 2008 iMac, have rosetta apps, have snow leopard, don't want Lion, have to have iCloud after June?

    Hello All, I have a MBP running Lion and its fine. I have an iPhone 4, iPad, and a family pack MobileMe account. I have a 2008 iMac that has Final Cut Pro and several other rosetta apps. The iMac is running snow leopard and I don't have any issues to

  • How to organize Places tags in Elements 12

    Hi I have assigned pictures to several different locations in Colorado using the Photoshop Elements 12 Organizer. Most of these locations are listed under "Colorado" category but one location persistantly lists under "CO". I have the same issue with

  • Generic type doesn't support raw dataypes (int, boolean, etc.)?

    It seems that Java 5 generics always autoboxes raw datatypes (int, double, boolean, ...) to the wrapper classes (Integer, Double, Boolean, ...), because when I use e.g. Integer.TYPE (instead of Integer.class), I got ClassCastExceptions. Is this non-s

  • Aperture trash

    Can I empty my Aperture trash without deleting the duplicates in the library. By deleting the trash will the photos uploaded on to Facebook and Flickr disappear?

  • Strokes on thumbnails

    Hi, I used the lightbox-widget for a slightshow. My problem: my photos all have a stroke (10px white stroke, made in Photoshop). However, I don't want that stroke to be visible on the thumbnails (because the thumbnails are 250px x 80px and show only