Help for Alert required

Hi,
I am trying to create an alert system in SAP Business One wherein once a users put the AR Invoice an automatic alert goes to the sales employee linked to that particular AR invoice.
The query for the alert is as under :
SELECT T0.DocNum, T0.DocDate,T0.CardCode, T0.CardName, T0.OwnerCode, T0.SlpCode,T1.lastName' 'T1.firstName as Creater
FROM OINV T0 INNER JOIN OHEM T1 ON T0.OwnerCode = T1.empID
WHERE T0.SlpCode = 1 and Datediff(yy,T0.DocDate,getdate()) = 0
Now the problem is that this alert seems to work fine but it is giving the sales Employee all the AR invoices which are made from Jan 2009 till date.
My requirement is that in the alert pop up message box it should only show the current and latest AR invoices and not from Jan 2009. Also in the alert pop up screen of sales employee how to remove the AR invoices which the sales employee has seen from the alert.
In the alert setup I have selected Alert frequency as every 1 minute and unticked Save History. My requirement is that as soon as the user enters the AR invoices at that time itself alert should go to the sales employee.
IS my query wrong please suggest or what have i done wrong.
Regards,
Kamlesh

Hi Kamlesh,
To obtain each time the last invoice for SlpCode=1, try that query :
SELECT T0.DocNum, T0.DocDate,T0.CardCode, T0.CardName, T0.OwnerCode, T0.SlpCode,T1.lastName' 'T1.firstName as Creater
FROM OINV T0 INNER JOIN OHEM T1 ON T0.OwnerCode = T1.empID
WHERE T0.DocEntry = (select MAX(DocEntry) from OINV where T0.SlpCode = 1 and Datediff(yy,T0.DocDate,getdate()) = 0)
But if you have 2 invoices on the same minute, only the last one will appears in the alert.
BR
Alan.

Similar Messages

  • Need help for my requirement...

    Need help for my requirement...
    Hello Experts,
    I have report where users can input the company, housebank, account ID and posting date.
    Now in one column of my report named 'Cash in Bank', I need to get all postings from cash
    accounts with GL code ending in '0'. Now, I know that I can get the amounts in BSIS/BSAS
    but how do I link it with the proper bank and account?
    For example:
                       Cash in Bank
    Bank A
      Account ID 1     1,000,000
      Account ID 2     25,000,000
    Hope you can help me guys. Thank you and take care!

    hi Viraylab,
    each house bank you can find in table T012, in T012K you'll find the bank accounts to the housebank, the G/L account will be in T012K-HKONT.
    hope this helps
    ec

  • Need help for webdynpro requirement.

    Hi Experts,
    I have a requirement to design the webdynpro application.
    First i have to create a layout(view).In that view  we create a input fileds as Document id and Component repository id.
    When we pass these two id's then click on the getdata button.
    Now we want display the Total No of pages and Each page as a tab,logo and header details.
    After that when user click on first page tab it will shows the first page informatio.
    next when user click on second page it shows second page info...up to 10 pages.
    Entire these process will be on same view.
    and one  more doubt how to cut the trace area into multiple parts?
    what iam doing is i have to disply the input fileds in one trace element ares and display the output what i mentioned above in second trace area.
    i want Separate page numbers as a tab at left side in second trace area.
    At second trace area ontop display the logo and header details.
    next display the total number of pages .
    and left side display the each page as a tab.(one by one).
    next we can click on any page it shows the particular information about that page.
    How to use the frameui element?
    Please try to help me...............
    Thanks
    Satya
    Moderator message - Please don't post your requirements and expect the forum to do your work for you - post locked
    Edited by: Rob Burbank on Nov 18, 2009 10:26 AM

    hi Viraylab,
    each house bank you can find in table T012, in T012K you'll find the bank accounts to the housebank, the G/L account will be in T012K-HKONT.
    hope this helps
    ec

  • Help For Reimbursements requirement - Urgent

    Dear All,
    Requirement says: - Reimbursements are part of employee CTC -
    Employee CTC consists of -
    Basic - 10,000
    HRA- 4000
    CEA-200
    Med- 1250
    Petrol Remb- 1250 - yearly - 15000
    Proff. Dev Remb-1250 - yearly - 15000
    Car Maintce Remb-1250 - yearly - 15000
    Here, Petrol. Prof. Dev and Car Maintce rembursement will be paid once the bills are submitted. However, For instance the employee submits the bill on 1st Apr 2014 then he should only be paid 1250 and not 15000 because in the month of April he is eligible for 1250 only and this amout will also get prorated if there is any LOP's. Now, I have tried with this with the PC00_M40_REMP t.code, but it doesn't work that way coz it doesn't check monthly eligiblity and Client also expects that if the employee submits a bill of 15000 in April then the system should only pay 1250 and the rest amount should be auto-carry forwarded for the rest months and he shall be paid 1250 for rest of months, whenever he is eligible.
    Could you please help me to tackle with this requirement? Your help is really appreciated

    Hi Anusha,
    Either write a PCR for the same or Go for Off cycle payroll ...
    Make an entry in IT0267 for a month once bill has been received...& for a particular month & run off cycle payroll.....
    By doing this you will have a separate payslip too..... for tracking reimbursement claim....
    hope this should solve your issue...
    Regards,
    Veeram

  • Help for Alert once AR Invoice booked to sales employees

    Hi all,
    I have made an alert in which when a sales invoice is added to the system an automayic alert goes to the sales employee but the problem is that when the sales employee logs in, he get the complete full as on date ar invoices which are been made into the system which includes old invoices.
    SELECT T0.[DocNum], T0.DocDate,T0.[CardCode], T0.[CardName], T0.[OwnerCode], T0.SlpCode,T1.[lastName]' 'T1.[firstName] as Creater
    FROM OINV T0 INNER JOIN OHEM T1 ON T0.OwnerCode = T1.empID
    WHERE T0.[SlpCode] =1
    I want that in the alert invoices should come from e.g 01/02/2009 onwards. Also when the sales employee gets and sees the alert, it should automatically get removed from the alert list of the sales employee.
    How to achive this...Kindly help please
    Regards
    Kamlesh

    Hi Kamlesh,
    Datediff(yy,T0.DocDate,getdate()) = 0
    Datediff calculate the different between 2 dates. With a normal math function you are not able to calculate a different between dates. So the part in the brackets are the statement.
    yy means display / use year, the last 2 numbers
    T0.DocDate is the first date from your table
    getdate() get the actual date from the system
    =0 is the condition.
    So in with it means, check / calculate if the date differenz  between the date from T0.DocDate and the actual system date is equal 0.
    Regards Steffen
    P.S. i hope i explained it well

  • Hi help for following requirement

    hi,
    iam having a jsp page with a select box and two buttons.in select box user selects a value. after that user clicks a button which opens a new window.in window its shows some values based upon the selected value of the main page select box.
    after that he says ok in new window and closes that window.then click the submit(second) button of the main page.
    my problem is how can get the selected value of the first page in new window without any submissions.because the values which are shown in new window are based upon the selected value in select box..
    regards,
    javafan

    Hi,
    Many solutions!!!!!!!!.
    a) store in a session variable in main page and retrive it in 2nd page.
    OR
    b)As the button is a normal button pass the values through javascript..
    <input type=button onClick="return sendData()">
    <script>
    function sendData() {
    var selectvalue=document.form.selectname.value
    var newwindow=window.open(url?selectchoice="+selectvalue+",'','''')
    </script> In the 2nd page(new window) use
    <%
    request.getParameter("selectchoice");
    %> Though some syntax errors are there...but it works..
    cheers
    prasanth

  • Change search help for field 'customer' in Trade Promotion

    Hello everyone,
    I would like to change the search help for the customer field (CRM_MKTPL_TRADE-CUSTOMER_ID search help: CRM_MKTPL_CAMPAIGN_CUST_ID) to one of my own.
    How can I do this?
    I would also like to change the search help for each partner function in the partner-tab. Is this the same procedure as above?
    Regards,
    Friederike

    Hi Friederike,
    If I have understood your question correctly then here is the answer.
    You can change the search help for the required filed. All you have to do is: Go to the table CRM_MKTPL_TRADE. Then look for the field CUSTOMER_ID. Change only the description of the field. then you can search by the description whenever you require.
    But the procedure will not be same if you want to change the search help for partner functions. In this case you have to change the descriptionof these partner functions in the transaction BP. 
    But why do you require it, because the partner functions will be determined automatically.
    Hope it helps.
    Regards,
    Ankur

  • Search help for the CJ20N trn

    Hi,
        I want to populate the search help for the CJ20N Transaction for the fields in the user fields tab. Can you pl tell the suitable user exit for this.
    Thanks,
    Joe

    Hi,
    I hope the below BADI must help for your requirement.
    Definition Name - WBS_USER_FIELDS_F4
    Interface Name - IF_EX_WBS_USER_FIELDS_F4
    Method - AT_F4
    Hope it helps.
    Reward if it is useful.
    Thanks,
    Srinivas

  • Required account rights for Alert and Performance/Topology collection and operations SDK

    Hi,
    My question is with regards to required user role privileges for performing certain operations using Operations Manager 2007 R2 SDK.
    - Registering an internal connector to MS SCOM for alert subscription:
    http://msdn.microsoft.com/en-us/library/bb437580.aspx
    - Collection and acknowledging (or closing) of alerts
    http://msdn.microsoft.com/en-us/library/bb424130.aspx
    http://msdn.microsoft.com/en-us/library/hh327168.aspx
    Based on experience and this article (http://technet.microsoft.com/en-us/library/hh212758.aspx) on how to configure a product connector subscription I'm guessing
    that user account needs to have Operations Manager Administrators user role privileges, however I was unable to find this documented in context of SDK.
    Are requirements the same for GetMonitoringPerformanceData and GetConfigurationGroups methods?
    http://msdn.microsoft.com/en-us/library/microsoft.enterprisemanagement.monitoring.monitoringperformancedatareader.getmonitoringperformancedata.aspx
    http://msdn.microsoft.com/en-us/library/dd848560.aspx
    Thank you and kind regards,
    Zsolt

    Hi,
    As far as I know, to close an alert the user should be at least an Operator role. Please refer to the below article to get more information about SCOM user role profiles:
    Operations Associated with User Role Profiles
    http://technet.microsoft.com/en-us/library/hh872885.aspx
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Required F4 help for Requestioner(EBAN-AFNAM) in ME51N,ME52N & ME53N

    Hi Experts,
    Need F4 help for Requistioner(EBAN-AFNAM) in Tran. ME51N, the system is ECC 5.0,
    How can i meet my requirement., kindly revert back <removed by moderator> if u have solution for this.
    Regards,
    Niranjan.G
    Edited by: Thomas Zloch on Jun 21, 2010 4:35 PM

    Hi,
    There are 2 possibilities.
    For these you need to get the Access key.
    One is just create the search help and assign this search help to this field in the screen attributes.
    Second one Just create the POV for this field.
    With Regards,
    Sumodh.P

  • HT201407 My iphone suddenly stops working and asked for activation required. I did restore it thru itunes but it asks me to turn off "find my iphone". How can i disable "find my iphone" if i can open the iphone itself. please help me.

    My iphone suddenly stops working and asked for activation required. I did restore it thru itunes but it asks me to turn off "find my iphone". How can i disable "find my iphone" if i can open the iphone itself. please help me.

    My iphone 5 suddenly stops working and asked for activation required. I did restore it thru itunes but it asks me to turn off "find my iphone". How can i disable "find my iphone" if i can't open the iphone itself. please help me.

  • Required help for a query

    Hi All....
    Required help for one more query.
    I have a table with data like this:
    Cust_id Transaction_no
    111 1
    111 2
    111 3
    111 4
    111 5
    111 6
    222 7
    222 8
    333 9
    333 10
    333 11
    333 12
    I wrote the following query :
    select cust_id, ntile(3) over (order by cust_id) "Bucket" from trans_detls
    The output is like this :
    Cust_id Bucket
    111 1
    111 1
    111 1
    111 1
    111 2
    111 2
    222 2
    222 2
    333 3
    333 3
    333 3
    333 3
    The problem is that I dont want the cust_id to overlap in buckets. That is one cust_id should be present in only one bucket.
    Is this possible?
    Thanks in advance.
    Ameya

    Or Something like..
    SQL> select * from test;
            ID         NO
           111          1
           111          2
           111          3
           111          4
           111          5
           111          6
           222          7
           222          8
           333          9
           333         10
           333         11
           333         12
    12 rows selected.
    SQL> select id, ntile(3) over (order by rn) "Bucket"
      2  from(
      3      select id,row_number() over(partition by id order by no) rn
      4      from test);
            ID     Bucket
           111          1
           222          1
           333          1
           111          1
           222          2
           333          2
           111          2
           333          2
           111          3
           333          3
           111          3
           111          3
    12 rows selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Need Help with Function Module or BAPI for Stock Requirements & PIRs

    Hello,
             I am working on making changes to a Report which should be displaying the PIR (Planned Independant Requirements) Quantities as well as Stock Requirements for SOs & STOs for below Type of Materials for the Given Date.
    1. Planning Materials
    2. Planned SKUs (that is Materials which do not have a Planning Material attached to them).
            In the Current Logic, we are using an FM REQUIREMENTS_ALLOCATION which fetches the Requirements only for the Planning Materials. It does not work for Planned SKUs.
    So, is there any Function Module / BAPI which serves this Purpose for both types of Materisls?
       Also, I've managed to Find out two Function Modules which I thought might be useful but still need confirmation regarding the same.
    MD_STOCK_REQUIREMENTS_LIST_API and
    BAPI_MATERIAL_MRP_LIST
            Please suggest any other FM if available for this Requirement.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

    Basically, here is what my scenario is. I have two Types of Materials which have a Planning Material attached to it. and the Other Category is that it doesn't have a Planning Material attached to it. So, we call it a Planned SKU. That is a Material planned at the SKU level.
              Now, the Issue is , the Function Module REQUIREMENTS_ALLOCATION doesn't work for the Plannd SKUs but it only works for the Planning Material. Now, based on this Function Module, we are populating the Data for the Planning Materials of Material Type ZPLN. Similarly, is there any we can make this FM work for a Material which is planning at its own Level.
              Please help me in this Regard.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • Limiting the value help for a user input variable as required

    Hello Gurus,
    I have a requirement :-
    Restrict the value help for a user input variable in a query to only a required set of values instead of the default behaviour. ie instead of having all the values in the master data of that characteristics in the value help.
    How do I go about it? - Do I have to explore the precalculated value set feature?
    If so, please tell me how to go about it in BI 7.I would appreciate if you could explain it in detail rather than sending me a URL because I have gone through most of them but Iam yet to figure out how to create the broadcast setting and subsequent steps.
    Thanks for your time.
    Regards,
    Kris_Hitman

    I believe if the User doesn't want to see any particular values in F4 help then it means they are not intrested in viewing the transaction data related to those values.
    So why don't you restrict that object with the required values. Then the F4 help will automatically display only those values.

  • "Application Help" for Solution Manager 4.0 pre SP 12 required

    Hello,
    where on the web I can find the application help for the SAP Solution Manager 4.0 in the version relevant for me (SP 10)?
    On help.sap.com I only find the help for SAP Solution Manager 4.0 SP12. But in SP12 there are some screens which are not in SP10. Therefore the help for SP12 does not tell me how to do it on SP10 (activating EWA).
    Where do I find the application help for SAP Solution Manager 4.0 SP10?
    Regards

    Hi,
    in the SAP Knowledge Shop for Customers and Partners (http://www.sap.com/company/shop) you can still order the Documentation DVD for SAP Solution Manager 4.0 with the material number 50077327. I expect this to be the one you are searching for.
    best regards
    Carsten

Maybe you are looking for

  • Xdb_installation_trigger does not support object creation of type SNAPSHOT

    hi everyone, i'm using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit on solaris sparc 5.10 we like to send an email through SSL, and after searching here and there I found out that oracle DB 11g able to go throught the SSL. since

  • How to pass OSB fault variables into input payload

    Hi , I am very new to OSB. as we know that OSB has some predefined variable structure like body,header, fault,inbound,outbound,..My requirement is that I want pass the fault variable elements(errorCode,reason,details..) to input payload elements. I w

  • How to change the calyearmonth data format in psa

    Hi all, my requirement is to load data to dso from csv file it contains 0calmonth characteristic and carparc keyfigure and i have created a transactional datasource and when i am loading the data in csv file my data format is 201101 but in psa it is

  • I have a macbook pro 15" retine, late 2013, should i upgrade OS to Yosemite ?

    i have a macbook pro 15" retine, late 2013, should i upgrade OS to Yosemite ?

  • Variable and jcede

    Hi all, I'm new to javacard andi need a help. I am developing an applet thet returns some data to a command APDU. when i test the applet with jcwde if the data is smaller than 128 byte the response apdu is rigth. but when i try a data smaller than 25