Use current user in the user Defined alerts

Hi
i created a UDQ with a filter on the Current user (where ???=$[USER]
and it's working fine.
but when i use it in the User Defined Alert, nothing happen. the UD Alert doesn't fire.
is there any solution?
10x

H Gordan
for example:
select t0.docentry,t0.docnum,t0.cardcode,t0.cardname from ordr t0 where t0.docstatus='O' and t0.usersign=$[[USER]]
if you save it as UDQ and run it, it will return all open sales orders for current user.
try to link it to an alert, it won't show you any thing
regards;
Edited by: Dany Bittar on May 12, 2011 1:08 PM

Similar Messages

  • Error erase Queries in Query Manager- The query is used with user-define...

    Hello Experts
    I have deleted a User Field that had a Formatted Search and now I can not remove it because it is linked according to a UF, the error message is as follows:
    "The query is used with user-defined values [Message 952-23]"
    There will be a way to resolve this issue???
    Thanks in advance

    Hi Juan,
    I have tried this very limited, but the formid, is this a number in your case?
    SELECT * from cshs t0 inner join ouqr t1 on t0.queryid = t1.intrnalkey
    where t1.qname = '[%0]'
    Running this query I can get the form id that I need to recreate, but I have a feeling you already know the form id, is this correct?
    - Is there an error when you try to recreate the form id?
    - Will it not let you recreate the same form id because the id is given by the system?
    If it is not possible to recreate the form id, please prepare a backup and log a message. Support should be able to correct the entry in table cshs.
    Hope it helps.
    Jesper

  • User-defined alert based on Top Activity screen?

    Does anyone know the query used to populate the Top Activity screen in Grid Control? I want to make a user-defined alert that will page me if the Top Activity is over a certain amount.

    Hi Bishal,
    Rather than using an alert, you could put validation code in the SBO_SP_TransactionNotification stored procedure to check for the same job number before the document is added. This is a permitted solution as SAP allow users to add their own sql code to this proc (provided it's not inserting or updating data in SBO system tables).
    To set up this solution (on a test system):
    1) Open SQL Studio Management
    2) In the Object Explorer expand the company database, expand Programmability and Stored Procedures
    3) Right-click the SBO_SP_TransactionNotification stored procedure and choose Modify. This will create an update script in the main window.
    4) Look for the following section in the script:
    --     ADD     YOUR     CODE     HERE
    5) Underneath the above section, paste the following code:
    if @OBJECT_TYPE = '17' and @TRANSACTION_TYPE in ('U', 'A')
         if exists(select DocEntry from ORDR where DocEntry <> cast(@LIST_OF_COLS_VAL_TAB_DEL as int)
                        and U_Jobnumber is not null and U_Jobnumber <> ''
                        and U_Jobnumber = (select U_Jobnumber from ORDR where DocEntry = cast(@LIST_OF_COLS_VAL_TAB_DEL as int)) )
              begin
                   set @ERROR = '9999' -- Set your own error code here
                   set @ERROR_MESSAGE = 'The Job Number entered has already been used on a previous sales order.'
              end
    6) Click on Execute and you should get a message stating that the update was successful
    7) Test adding a new sales order
    The above script will raise an error when the user clicks on Add if a job number has been specified on the sales order and that number has already been used. It will not check if a job number has not been specified
    Kind Regards,
    Owen

  • How to use a user defined function in where cluase condition

    Hi,
    I have designed a query by selecting some columns in the tables and some columns are retrieved directly from table and some columns are passing to a user defined function. Now my requirement is i need to use that user defined function result in oracle where condition clause.
    Ex : select marketing_user_id,get_name(marketing_user_id),item_id,get_item_name(item_id),get_country_name(country_id),
    from
    where get_item_name(item_id) in ('x','y','z')
    and get_country_name(country_id) in ('India','America','China');
    When am i trying the query by above format i am getting the wrong resultset.
    BR,
    uma

    I am not sure why your getting the wrong results but you should seriously reconsider the approach your are taking. Using functions like this is very ineffecient and should be avoided at all cost.

  • How to use a user defined function in XI

    Hi Experts,
    I would like learn how to use a user defined function  in Xi during mapping . Is there any step by step on that.
    Besides during when me make communcaton channels I see the following tabs...Paramters ..Identifiers ...Module...
    The module that is given here ...where and how it is used.

    Hi,
    You can write UDFs in java in Graphical mapping to enhance your XI Graphical mapping functionality
    The steps for doing it would be:
    1. Click on Create New function Button found on Bottom left corner on your XI Mapping window.
    2. Write your java code.
    3. Run the Mapping Test as usual.
    >>The module that is given here ...where and how it is used.
    The adapters in the Adapter Framework convert XI messages to the protocols of connected external systems and the other way around. When doing so, some
    functionality might need to be added specific to a situation which is possible with the use of custom modules.
    Typical example would be validation of file content when using a File Adapter or modification of the message payload to a common content structure which is not supported by any of the standard SAP modules.
    An Adapter module is developed as an Enterprise Java Bean and is called locally by the Adapter.
    An example on modules :
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805">How to develop a module for reading file name in a sender file adapter XI 3.0</a>
    Cheers,
    Chandra

  • Is there a LabView example in the use of user defined error codes?

    Specifically, I have a VI that tests four arrays of data against various high/low limits. I have pass/fail outputs for 18 tests. I'd like to combine these into an 'error out' cluster with appropriate error codes and messages, for which I've created an x-errors.txt file.
    My first question must be trival - how do I just set the 'status' bit of the error stream to let the general error handler then look up the error desription from the file?
    Secondly - I can't find an example of this in the technical resourses, amI missing something?
    Thanks,
    Mike
    Mike Evans
    TRW Conekt
    N.I. Alliance Member, UK
    http://www.Conekt.net

    There is no example program. There is extensive help on how to do this. Here's the basics.
    1) There are two ways to define user error codes in LV6.1. If you are using LV6.0 or earlier, only one method is possible.
    2) The 6.0 method involves wiring arrays of error codes and arrays of error code strings to the General Error Handler.vi. These codes will be used to explain any error code which is undefined in LV's internal error code database. Error codes reserved for users which are guaranteed not to be used by NI are from 5000 to 9999.
    3) The 6.1 method allows you to create a specially formatted error code file on disk that will be merged with the LV error code database each time LabVIEW launches. For help on this, go to LV's online help, and in t
    he Index tab, type
    "user-defined error codes, in text files"
    (without the quote marks)
    4) If you want to set an error into the error cluster, use the General Error Handler.vi again. Wire your error code value to the Error Code terminal (the leftmost-topmost corner terminal). Wire the name of your VI to the Error Source terminal, and wire "No Dialog" to the Type of Dialog terminal (left-side, near the bottom). The error code cluster that comes out of this VI will either be the error in (if one was set) or a new error code cluster with your error and the status bit set to TRUE.
    5) The attached demo is written in LV6.0.
    Attachments:
    Error_Demo.vi ‏37 KB

  • Alert messages  by using any User Defined Functions

    Hi friends,
          I  have one requirement.. that  when ever  my scenario successully  processed.. (file to file scenario) i need to raise a ALERT message  that is.. Successfully processed..  otherwise.. it should raise a Errors occured during Scenario..  These messages i want to display for my scenario..
       for this requirement what can i do.. my scenario is with out BPMs, so, can u explain with clear steps.. is there any USER DEFINED FUNCTION IS REQUIRED OR  with that UDF 's also  can we do.. and where can we do other settings..
    Thanks
    Babu

    Hi,
    Check this blog.
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Regards,
    Sudheer.

  • User defined alert

    Hi Dear;
    i create a new alert.
    how can i set this alert to fire when i add a new document (as the predefined alert)
    regards;

    Hi Dany,
    Use the alert function to have the system automatically notify selected users in SAP Business One whenever certain system events occur. There are two types of Alerts, predefined alerts and user-defined. In addition, approval procedures also generate alerts if their conditions are met. Messages triggered by alerts can be sent internally, or externally by e-mail, SMS message, or fax.
    Alerts are optional and can be modified, deactivated or removed at any time.
    The following pre-defined Alerts are available for immediate use:
    Deviation from Credit Limit: Each business partner can have a predefined discount percentage. This Alert is triggered when a quotation or other type of document varies from this Credit Limit.
    Deviation from Commitment: Alerts when the Commitment limit, as defined by the sum of the credit limit and the cheques received but not cashed yet is breached.
    Deviation from % of Gross Profit: The conditions for the Profit Percentage in the document can be defined in the Conditions tab of the Alerts Management window. This Alert is triggered when a document has a gross profit less than this value.
    Deviation from Discount (in %): Each BUSINESS PARTNER can have a predefined discount percentage. This Alert is triggered when the discount for a certain document varies from this discount.
    Deviation from Budget: Alerts when a new Purchase Order is calculated and a divergence from the budget occurs.
    Minimum Stock Deviation: Detects when the inventory for an Item falls below the minimum level, which has been defined in the Item Master Record.
    For the above predefined alerts, the user can decide which documents to check and therefore limit or expand the scope of the alert.
    Alerts just notify the appropriate parties. They do not stop a document from being posted. The notified user can reply to the alert using the messaging function and this reply like the original alert can be sent internally, or externally via e-mail, SMS message, or fax
    To display the Alerts, if Saved History has been chosen in the Alerts Management window, choose Window Messages/Alerts Overview.
    Hope it helps.
    Samir Gandhi

  • Use of user define field in Task list

    Hi,
    Please give the solution for the strange requirement of the client as:
    My client wants to define the operation for preventive maintenace in two parts like
    check temperature  :  45 deg celcius.
    check temperature should be like operation and rest what he has to check to be defined in other field  i.e. both should not be together.
    so i find the solution as user defined fields in the task list where i can define this second parameter.
    But the problem is that system is not proposing this second field in the preventive order, only operation field is proposed.
    Please suggest some solution, how can this requirement can be mapped.

    Both operations of the inspection lot will need to be completed at some point.  They are in the same lot so they belong together.  Both operations should be available to the user.  (Unless you used workcenters and security to limit users to specific workcenters).
    Once set up, it will only be available to new inspection lots.  Few things in SAP are retroactive.
    Craig

  • Using a User Defined Function as a constraint within a temporary table.

    Hello, 
    I am trying to create a temp table that uses a UDF in a constraint. I'm getting the following error message 
    Msg 4121, Level 16, State 1, Line 1
    Cannot find either column "dbo" or the user-defined function or aggregate "dbo.CK_LoseTeamSportExists", or the name is ambiguous.
    I've tested the function and it works in other contexts. Any idea? All code below:  
    Thanks, 
    - Bryon
    create function dbo.CK_LoseTeamSportExists (@loseteam int, @sportid int)
    returns bit
    as
    begin
    declare @return bit
    if exists 
    select TeamID, sportid from Link_TeamSport
    where 
    TeamID = @loseteam 
    and
    SportID = @sportid
    set @return = 1
    else set @return = 0
    return @return
    end
    go
    create table #check
    SportID int
    ,WinTeamID int
    ,LoseTeamID int
    ,check 
    (dbo.CK_LoseTeamSportExists(LoseTeamID,SportID) = 1)

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. Temporal data should
    use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect. 
    This is minimal polite behavior on SQL forums. 
    >> I am trying to create a temp table that uses a UDF in a constraint. <<
    You do not understand how SQL or any declarative language works! 
    We do not use UDFs (procedural programming)
    We do not use bit flags (assembly language).
    We do not use temp tables (mag tape files).
    We do not use integer as identifiers (what math do you do on them?)
    Your silly “Link_TeamSport” implies a pointer chain; we have no links in SQL. Where is the DDL? 
    Constraints are always predicates in any declarative language. 
    Do you know why you have to create a local variable to pass the non-relational flag back to the calling environment? FORTRAN I and II! These early languages has to use hardware registers in the first IBM computers to return results. In your ignorance, you mimic
    them! 
    We do not use if-then-else control flow in any declarative language. We have CASE expressions that we put where you have a local variable getting an assignment. 
    I see you also put the comma at the start of the line. We did that with punch cards, so we could re-use them 50 years ago. 
    In SQL, we would use REFERENCES to assure a team reference exists. We use names for teams because they are entities, not quantities: 
    CREATE TABLE Game_Results
    (sport_name CHAR(10) NOT NULL PRIMARY KEY,
     win_team_name CHAR(12) NOT NULL
      REFERENCES Teams(team_name)
       ON DELETE CASCADE,
     lose_team_name CHAR(12) NOT NULL
      REFERENCES Teams(team_name)
       ON DELETE CASCADE,
     CHECK (win_team_name <> lose_team_name)); 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Use of user defined function in mathscript containing structure

    Hi, I am an beginner user of LabView's MathScript Module,
    I have the following problem when integrating my MATLAB code into LabView, for HMM:   In my program, I tried to call a user defined MATLAB function called 'mixgaussinit.m' It show this error ..
    Error -90162 occurred at Line 36, Column 20: unexpected char: '.'
    C:\HMMall\KPMstats\mixgauss_init.m
    Possible reason(s):
    LabVIEW:  A recognition error occurred while generating a stream of tokens.
    the line 36 of the file is this "mu = reshape(mix.centres', [d M])"
    mix.centers is a structure.. 
     How can this error be corrected?
    Solved!
    Go to Solution.

    I just noticed that these files appear to be under copyright. My first question is do you have the copyright permissions to post them in a public forum? If not then you may wish to delete them. That being said I have examined the code and it seems easy enough to work around your issues (provided you have the copyright permissions). The way to work around the issues is indeed to replace the struct fields with variables. This will of course require you to change a couple function definitions to input and output the neccesary variables which I believe was at most 5 variables. You will also need to redo the error checking code that uses a cell array. Altogether I estimate about 30 minutes of work. I would have given you the work around in these files had the files not been copyrighted. So, unfortunately, you will have to implement the work around yourself.
    Good luck!
    K Scott

  • Using a user-defined element in ASO cube.

    I have an ASO cube to which I'm adding a new hierarchy/dim containing a single user-defined element as a member. This dim is set to dynamic at dimension level, since I'm going to add additional members with formulas.
    My issue is that as soon as I add this new hierarchy to my cube, all my fact values double! What could cause this and how should I fix this? The user-defined element in this new dim is not connect to the rest of my data in any way, i.e. it is not in any table of my minischema. So why should it have any impact on my data values? Should I be adding a filter of some kind on this user-defined element?
    Fyi- I'm using Essbase Studio (EPM 11.1.2) for cube building and data loading.
    Appreciate any help.
    thanks,
    Axe

    A colleague suggested a reason that SDO_GEOMETRY works is that it is granted to PUBLIC with GRANT OPTION. PUBLIC is not a proper role, somewhere between a user and a role and the issue of having to receive permissions on the type explicitly do not apply.
    If I GRANT EXECUTE ON XTYPE TO PUBLIC WITH GRANT OPTION; it works!
    Thanks for the replies.
    C

  • How to use a user defined function module in IP

    Hi All,
    Can you please guide me on how to use a user created function module in IP? My requirement is to have 2 exit function modules to be used in IP to load the falt file data into a cube..
    Regards,

    Hi,
    /people/marc.bernard/blog/2007/11/25/how-to-load-a-file-into-sap-netweaver-bi-integrated-planning-part-1
    thanks to Marc Bernard
    Regards

  • Using of user defined activities in process flow: issue

    Hi out there,
    there is a problem in my environment which I don't understand and which I want to share with you. Hopefully there is somebody who can help me.
    I have a user defined activity in my process flow with the following parameters (where <empty> means no value):
    COMMAND: C:\WINDOWS\system32\cmd.exe
    PARAMETER_LIST: <empty>
    RESULT_CODE: <empty>
    SCRIPT: C:\oracle\bise1\scripts\source_file.bat
    SUCCESS_THRESHOLD: 0
    The bat-file is containing the following:
    cd c:\oracle\bise1\owb\owb\bin\win32\
    ombplus.bat c:\scripts\source_files.tcl
    exit
    When I execute the bat-file in the cmd-shell manually it works perfect (the tcl-script copies and renames sourcefiles to naming conventions). But when I want to execute this from the process flow nothing happens. The process is running without reading the correct source files and therefore ends in errors.
    Is there anything wrong in the usage of the user defined activity? I prepared the runtime properly.
    Any help is appreciated. :-)
    Kind Regards,
    Jens

    Hi Detlef,
    thanks for the input. I tried it but then I get the following error message (in german) in the logfile of the process flow:
    "Der Befehl "chcp" ist entweder falsch geschrieben oder konnte nicht gefunden werden."
    My scripts don't contain letters in this combination. The scripts are working fine when I start them manually from the command shell. Is there maybe something else I need to consider? Is it possible to start omb tcl-scripts via this feature?
    Kind Regards,
    Jens

  • CANNOT LOAD FIREFOX-LOOKING FOR PERMISSIONS-GIVES 2 CHOICES 1)USE CURRENT USER-(DOESN'T WORK) 2)USE -ADMINISTRATOR-ASKES FOR PASSWORD (I HAVE NO PASWORD) CAN I BE HELPED

    cannot load firefox. goes thru the run process,that asks for current user or administrator.i click current and it just diappears.the second choice gives me a user name(ADMINISTRATOR). won't accept anything i put in as a password.

    Check that you do not run Firefox as Administrator.<br />
    Right-click the Firefox desktop shortcut and choose "Properties".<br />
    In the Compatibility tab, make sure that Privilege Level: "Run this program as Administrator" is not selected.<br />
    Also check your security software.<br />
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process.
    See:
    * [[Server not found]]
    * [[Firewalls]]
    * http://kb.mozillazine.org/Browser_will_not_start_up

Maybe you are looking for

  • FBL5N  - incorrect  Due Dates for Downpayment invoices

    Hi. On a Down Payment Invoice to customer, the Due Date shown (on Invoice Form) is Correct according to the Terms of payment.  (eg : Baseline date + 8 days) However, in the FBL5N, the Net Due Date field shows the Baseline date as due date ! Why is it

  • Form created in acrobat pro 6 blank in acrobat pro x

    We recently upgraded from adobe acrobat 6 pro to acrobat X pro and when opeing some filled out forms from acrobat 6 they are not filled in in acrobat x pro if we reopen them in adobe acrobat 6 they work fine. Is there something we have to do to make

  • Standard or International version of JRE?

    Hello! Is there any way of identifying whehther I'm using the standard or International version of JRE? I know this question has been asked before but no one has answered has far as I can see. Regards Calle

  • HT4108 Apple Composite AV Connector works with video

    My (just purchased at Apple Store) Apple Composite AV connector cable works fine providing video out to my iPhone 4S but will not "mirror" my iPhone screen. It seems I am doing something wrong, any settings I should check on the phone or TV (or proje

  • Re: problem in reading doc file

    if(fileName.endsWith(".doc")) outToClient.writeBytes("Centent-Type: application/msword\r\n"); !?