SP_Transaction notification for Cash account non negative value

Hi I wrote the following  SP_Transaction notification when cash account is going negative in outgoing payment.its working fine in 2005B.
But it is not working in 2007B.pl any one help me.
IF @transaction_type IN (N'A', N'U') AND (@Object_type = N'46')
BEGIN
     if  Exists ( select t0.currtotal from oact t0 inner join ovpm t1 on t0.AcctCode=t1.CashAcct
     where  t0.currtotal <=0 and t1.docentry=@list_of_cols_val_tab_del)
BEGIN
SELECT @Error = 1, @error_message = 'Cash account should not be negative!'
END
END
Edited by: ArulPrakasan P on Nov 21, 2008 1:42 PM

No , ia m not getting any error message in 2007B.
then i tried the following... I restored the 2005B database to 2007B.then it got upgraded to 2007B,then i tried to add the out going payment with the above SP_transactionnotification.
now i got the following error msg...
[microsoft] [sql native client] [sql server] : conversion failed when converting the varchar value '@list_of_cols_val_tab_del' to datatype int
Edited by: ArulPrakasan P on Nov 24, 2008 9:14 AM
Edited by: ArulPrakasan P on Nov 24, 2008 9:15 AM

Similar Messages

  • Is there a way to have multiple email accounts in mail but only get notifications for one account?

    I would like to add my junk email account to mail for quick access, but I don't want to see notifications (or the number of unread emails).  The options I can find are notifications for all accounts or none.  On my iphone, I can select the notification level for each email address, but I can't find this option for my mac. 

    Hi,
    Yes the smart mailbox you set up was a very basic one. I tells Mail to display anything that is assigned to that account. So if you move an email from say the inbox of that account, to another folder of the same account, then the smart mailbox will not look any different as it is looking at the whole account.
    In reality, you never need to use or look at this smart mailbox and you can continue to keep looking at the normal inboxes as you always have, but the Dock icon will only update according to unread emails anywhere in that account.
    If you would like to refine what the smart mailbox looks at, say the inbox only of that account, then you add another rule to the smart mailbox.
    Edit the smart mailbox
    hit '+' next to the first rule
    Add the new rule
    Now the smart mailbox will only display what is in the inbox of that account

  • If I have two email accounts, one personal hotmail account and one MS Exchange work account, how can I setup individual notifications for each account. Right now, any email from any account has the same notification. I want work to be different than perso

    If I have two email accounts, one personal hotmail account and one MS Exchange work account on my iPhone 4s, How can I setup individual notifications for each account? Fore example, if I get a work email, I want to hear a DING, DING....If I get a personal email, I want to hear a BEEP, BEEP. Right now, any email from any account has the same notification. I want work incoming email notification to be different than personal incoming notification. The only semi-workaround I've seen is just disable any notification for the Hotmail account, so only work emails would notify. But then I don't know when I get a personal email. Even the lowely Blackberry Torch 9800 has this feature..not iPhone 4s??
    Thanks

    Sorry you get only one notification sound for all email accounts.  you can send a suggestion to apple here http://www.apple.com/feedback/

  • Sp_Transaction Notification For Purchase Order Item Checking

    Hello All,
    I need to create a sp_Transaction notification for Purchase Order where system will check that the document to be added
    with Vendor 'A' and ItemCode 'ERT' should not be be previously added for the same vendor 'A.
    Example:-
    Doc No.  Vendor   Item Code
    1                A            ERT
    Is added
    Next if the Purchase Order is added with same vendor and same Item then system should block the entry and throw a message
    'Purchase Order Already Entered for Vendor 'A' with Item Code 'ERT'"
    This checking will be done for each line item of currently entered Purchase Order Document.
    Thanks ,
    Amit

    Hi Amit,
    i found this on forum. Try this,
    if @object_type = N'22' and @transaction_type in (N'A', N'U')
    begin
    declare @line1 int
    declare @lin1 int
    declare @out1 int
    Set @out1 = 0
    SET @lin1 = 0
    Declare @Vend as varchar(200)
    Declare @ItemCode as varchar(200)
    Select @Vend = CardCode From OPOR Where DocEntry = @list_of_cols_val_tab_del
    Select @line1 = Max (LineNum)FROM POR1 WHERE POR1.DocEntry = @list_of_cols_val_tab_del
    While @lin1 < @line1
    Begin
         Select @ItemCode=ItemCode From POR1 Where DocEntry=@list_of_cols_val_tab_del and LineNum = @lin1
          if (SELECT COUNT(T0.DocEntry) FROM POR1 T0 inner join OPOR T1 on T0.DocEntry = T1.DocEntry
          WHERE T0.ItemCode = @ItemCode and T1.CardCode = @Vend)> 1
          Begin
               Set @Out1 = 1
               Break;
          END
               Else
               Begin
               Set @lin1 = @lin1+1
               Continue
          END
    END
    Set @lin1 = @lin1 + 1
    if @out1 = 1
    begin
          Set @error = 1
          Set @error_message = 'Item Code in line ' + CONVERT(nvarchar(4), @lin1) + N'already Exists For This Vendor!'
    End
    END
    Check this too Stored procedure in purchase order for duplicate item for a vendor
    Thanks,
    Joseph
    Edited by: Joseph Antony on Jan 11, 2011 1:37 PM

  • Use SP_Transaction notification for Production Oder

    Hi all!
    Can i use SP_Transaction notification  for Production Order.
    We have two user A and B is manager of A.
    When A create a production order  but A can not use Release function in order to chage status from Planed to Relase.
    Only B can Release.
    How can use SP_Transaction notification  .
    Thanks!

    Import this code into sp_transaction notifocation:
    If @object_type =N'202'
    begin
    If (@transaction_type = N'A')
    begin
    declare @userBO nvarchar(2)
    set @userBO = (select T0.usersign from OWOR T0 where T0.docentry=@list_of_cols_val_tab_del)
    if @userBO = '1' --code user 'A'
    begin
    update OWOR
    set status = 'R'
    where docentry=@list_of_cols_val_tab_del
    end
    end
    end
    Then user A try to add document, click on add button, sp_transaction notification procedure will be executed, and status document will change to 'Released'

  • Restrictions for cash account not to turn negative

    dear all
    Is there any configuration setting so that the cash account does not allow postings which makes the cash account balance into credit.
    please advice

    Hi,
    SAP provides a system called validation. By this you can restrict the balance of cash account from going negative. There you have to give a check for the GL account balance field.
    The T-code is OB28 for accounting documents.
    There you need to specify your Company code and create a validation rule which is a step by step procedure.
    Go to Environment the create a validation. There u specify the prerequisite, the a check and the message u want to display. Message can be error, info, or warning.
    Try this. If helpful award points
    thanx'
    alok

  • Email Notification for buyer account password

    Hi Gurus
    I have e sourcing 5.1 installed with local directory settings for buyside and smtp configured. currently I am not able to send notification on generation of buyer accounts.
    Below i have given  the settings that i have done for local directory buyside and SMTP
    Local Directory Settings
    Enterprise User
    Set Up>Configuration> Directory Configuration--> Local Buyside
    I have set Usage: Active Buyside and checked Default
    SMTP Settings
    Enterprise User
    Set Up>Configuration>System Properties-->messaging smtp mailhost
    here in values i have given my smtp host name and in context i have given the enterprise context
    then in system Management> System Information> Daemons
    I have checked email enabled
    Now my doubts are:
    1. Are the settings made adequate or do i need to make other settings?
    2. When i try to create a buyer account am not able to send notifications.the buyer account do get created though.
    Plz give your suggestions.
    Sharad

    Hello Sharad
    You have followed correct steps.
    you need to check the SMTP is working fine or not.
    Also check
    Login using Enterprise user or any other system admin and follow:
    Setup-->System Administration-->Administrative Reports----->Queued Message
    Setup-->System Administration-->Administrative Reports----->Processed Message.
    There you can get correct reason of not getting E-mail notification.
    ~Ankush

  • System should allow to post to bank account with the available cash for cash account in fbl3n

    Hi Friends,
    User is posting Bank account Dr to
                           Cash account Cr
    If cash account balance is 40000 in FBL3N, and if user posting more than that amount, then system should not allow to post
    in F-02 and FB50 transactions.
    Pl help me out
    Thanks,

    Hi Mahesh,
    I think we cannot go for cash Journal, because for the below entry i should make the cash account
    settings as post automatically only in FS00 transaction.
    Bank account Dr to
    Cash account Cr
    If that is the case then we cannot post manually to the cash account.
    I think we need to go for some exit in validation.
    correct me if iam wrong.
    Thanks

  • Push notifications for Pro subscription non-newstand apps?

    I'm struggling to determine the answers to a couple of questions as different sources seem to suggest different things, so:
    We have a DPS Professional subscription, not Enterprise
    We're creating a multi-issue application
    As we aren't publishing content on a schedule, we don't want to create a Newstand app
    Are we able to have push notifications to indicate to users that new content is available to download?
    I thought I'd read that this was possible, but that the notification (for now) would be limited to a badge on the app icon indicating the number of new pieces of content available. Now I'm not sure.
    If it **is** possible, does anyone know of a guide to the right settings to apply when setting up the app in DPS App Builder?
    Lastly -- assuming it is possible -- do push notifications show up in the development version of the app?
    Cheers,
    Keith

    Aha. Thanks Bob, that *probably* explains why no notifications are showing up in my development version.
    I'm curious why push notifications don't work in the development version? Given that we all (me especially) have the capability to make the occasional mistake even *after* reading the docs, it's a bit worrisome that it's (near) impossible to test notifications.
    I mean, I think I've done all the right things: I have the push certs generated and exported, have enabled the app for push in iTunes Connect and I hadn't generated mobileprovision files until after I'd done that so they should be all present and correct. But ultimately the only way I'll know is to submit it to Apple and push the notify button. Which makes me nervous...

  • Account determination for customer account with ZERO value

    Hi Friends,
    My clint requirement is to sell product free of cost to customer but per accounting purpose taxes need to be calculated.Any possible solution guide us per acheving this challenge.
    Accounting needs to be trigger like below
    DR.customer     $0.00
    DR Free of charge account      $100.00
    CR. output vat 18%                   $18
    CR EXCISE DUTY  12%(IF APPLICABLE)  0.00
    CR un relized revenue                         $82.00
    Thanks in advance
    Srinivasa

    Hi,
    If your configuration is correct, an accounting document will get created during invoice creation even if the value is zero. Acct doc is created not based on the value, but based on the account key to which the condition type is linked.
    Generally in free goods, there will be net price (gross price- discounts). You can link this netprice condition type to an account key. The netprice will anyway be nullified by NB00 condition type which is applicable for free goods pricing. You can also link NB00 to another account key.
    Now the values will nullify each other in invoice. Similarly the values will be nullified in accountnig doc also and they can be posted to any GL account you wish.

  • FIXED: Yahoo Push Notifications for Multiple Accounts on ICS - Working

    I have a Razr Maxx that I manually updated to ICS the day the OTA was available.
    I had previously set up a couple of Yahoo/AT&T accounts and Gmail and they were working just fine.
    Gmail continued to work but I stopped receiving push notifications from Yahoo/AT&T.
    I found this post: https://community.verizonwireless.com/thread/772698
    There was no way I was going to do a hard reset as a first option. Nor did I want to delete and re-enter all the account information for all the accounts. So I decided the easiest, first step would be to try the "clear the cache" "Alternate method".
    Step 4 states "Press Volume Down to select Recovery then press Volume Up". However, every other step states to "press Power button" to select. I pressed "Power button" instead of pushing the volume up to select.
    Upon complete restart I got notifications on all my Yahoo/AT&T accounts.
    Hope this helps.

    I've had Yahoo since my iPhone 3G and the push notification has consistently been flaky so this is nothing new for me.  You can contact Yahoo via their website, submit a troubleshooting request, and they will look into it.
    As an anecdote, my iCloud and Gmail (Google Apps) accounts have been consistently more reliable than Yahoo for push notification. If Push is a primary concern, you might look into getting a free iCloud account (no ads!).

  • Problem with Offset account showing Negative Values

    Hi,
    In our system, Offset account is showing Negative amount. We want to ZERO this.
    This account have Price Diff. amount....Now how can do the same...
    Please guide..

    Hi,
    Using F-02 you can transfer the balance.
    e.g.
    Dr Offsetting account
    Cr Price difference/XXXX account
    Rgds
    Murali. N

  • Sp_transaction notification for serial number duplication

    Hi All
    I need your help with this sp , i found it here on the portal and its not working 100% please check and see if you guys can assisit me.
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    ALTER proc [dbo].[SBO_SP_TransactionNotification]
    @object_type nvarchar(25),                     -- SBO Object Type
    @transaction_type nchar(1),               -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
    @num_of_cols_in_key int,
    @list_of_key_cols_tab_del nvarchar(255),
    @list_of_cols_val_tab_del nvarchar(255)
    AS
    begin
    -- Return values
    declare @error  int                    -- Result (0 for no error)
    declare @error_message nvarchar (200)           -- Error string to be displayed
    select @error = 0
    select @error_message = N'Ok'
    declare @val nvarchar (1200)           -- Error string to be displayed
    declare @chrin nvarchar(30)
    declare @item nvarchar(455)
    declare @SysSer nvarchar(455)
    declare @qry nvarchar(255)
    declare @IntSer nvarchar(32)
    declare @whs nvarchar(8)
    declare @count int
    declare @base nvarchar(6)
    set @count = 0
    --     ADD     YOUR     CODE     HERE
    IF @transaction_type IN ('A','U') AND (@object_type = '94' )
    BEGIN
    set @item = LEFT( @list_of_cols_val_tab_del, CHARINDEX(CHAR(9),  @list_of_cols_val_tab_del,1) - 1)
    set @SysSer = substring(@list_of_cols_val_tab_del, len(@item)+1, 30)
    --set @qry = 'select intrserial from osri where itemcode =' + @item + ' and convert(varchar,sysserial) = convert(varchar,' + @SysSer + ')'
    select @IntSer = intrserial from osri where itemcode = @item and convert(varchar,sysserial) = convert(varchar,@SysSer)
    set @error_message = @IntSer
    set @error = 1
    select @error, @error_message
    END
    select @error, @error_message
    END
    and I have serial number checking on every transactions.
    Rgds
    Bongani

    Here is a working SP
    declare @val nvarchar (1200)           -- Error string to be displayed
    declare @chrin nvarchar(30)
    declare @item nvarchar(455)
    declare @SysSer varchar(10)
    declare @qry nvarchar(255)
    declare @IntSer nvarchar(32)
    DECLARE @count int
    set @count = 0
    --=========================
    --S/N Duplication Check
    --=========================
    IF @transaction_type IN ('A','U') AND (@object_type = '94' )  -- For Goods Recipts
    BEGIN
    set @item = LEFT( @list_of_cols_val_tab_del, CHARINDEX(CHAR(9),  @list_of_cols_val_tab_del,1) - 1)
    set @SysSer = ltrim(rtrim(substring(@list_of_cols_val_tab_del, len(@item)+2, 30)))
    select @IntSer = intrserial from osri where itemcode = @item and convert(varchar,sysserial) = @SysSer
    SELECT @count = COUNT(*) FROM OSRI WHERE INTRSERIAL = @IntSer
    IF @count > 1
    BEGIN
    set @error = 1
    set @error_message = N'Duplicate S/N was found in the system for Item No.' +@item +' S/N : ' + @IntSer
    END 
    END
    Regards
    Bongani

  • Prevent Petty Cash Account Balance to be negative

    Hi all,
       We've some Petty cash Accounts. It is observed that during the entries related to this cash accounts sometimes inbetween the day the cash balance becomes negative ( Due to the inappropriate order entry ).
       To force the Cash entries in exact order I want to put the check for cash account balance can't be negative.
      How to achive this ?

    Hi Naimish,
    You can use the following program to find the user exits in a transaction. Create this prog in your development as a local program.
    Just put the Tcode you are using in the selection screen and run it. It will list all the user eixts that are present . Do a trial and error till you get the exact user exit.
    Pls reward if useful.
    Laxman Nayak.
    *& Report  ZAK_FIND_USEREXIT                                           *
    REPORT  ZAK_FIND_USEREXIT  no standard page heading.
    Finding the user-exits of a SAP transaction code
    Enter the transaction code in which you are looking for the user-exit
    and it will list you the list of user-exits in the transaction code.
    Also a drill down is possible which will help you to branch to SMOD.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
             tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
       select single * from tadir where pgmid = 'R3TR'
                        and object = 'PROG'
                        and obj_name = tstc-pgmna.
       move : tadir-devclass to v_devclass.
          if sy-subrc ne 0.
             select single * from trdir where name = tstc-pgmna.
             if trdir-subc eq 'F'.
                select single * from tfdir where pname = tstc-pgmna.
                select single * from enlfdir where funcname =
                tfdir-funcname.
                select single * from tadir where pgmid = 'R3TR'
                                   and object = 'FUGR'
                                   and obj_name eq enlfdir-area.
                move : tadir-devclass to v_devclass.
              endif.
           endif.
           select * from tadir into table jtab
                         where pgmid = 'R3TR'
                           and object = 'SMOD'
                           and devclass = v_devclass.
            select single * from tstct where sprsl eq sy-langu and
                                             tcode eq p_tcode.
            format color col_positive intensified off.
            write:/(19) 'Transaction Code - ',
                 20(20) p_tcode,
                 45(50) tstct-ttext.
                        skip.
            if not jtab[] is initial.
               write:/(95) sy-uline.
               format color col_heading intensified on.
               write:/1 sy-vline,
                      2 'Exit Name',
                     21 sy-vline ,
                     22 'Description',
                     95 sy-vline.
               write:/(95) sy-uline.
               loop at jtab.
                  select single * from modsapt
                         where sprsl = sy-langu and
                                name = jtab-obj_name.
                       format color col_normal intensified off.
                       write:/1 sy-vline,
                              2 jtab-obj_name hotspot on,
                             21 sy-vline ,
                             22 modsapt-modtext,
                             95 sy-vline.
               endloop.
               write:/(95) sy-uline.
               describe table jtab.
               skip.
               format color col_total intensified on.
               write:/ 'No of Exits:' , sy-tfill.
            else.
               format color col_negative intensified on.
               write:/(95) 'No User Exit exists'.
            endif.
          else.
              format color col_negative intensified on.
              write:/(95) 'Transaction Code Does Not Exist'.
          endif.
    at line-selection.
       get cursor field field1.
       check field1(4) eq 'JTAB'.
       set parameter id 'MON' field sy-lisel+1(10).
       call transaction 'SMOD' and skip first   screen.
    *---End of Program

  • In Balance sheet profit period A/c show negative value

    Dear All
    Pls. Inform me what is the reason in my balance sheet for june 2011 profit period  account show negative value. and also beginning of year(INR) and Current Period(INR) of amounts for profit & loss Account is different. pls. suggest me
    Thanks

    Hi Rashmi.......
    I would suggest you to again go for Financial Report Template for new template of P&L.
    Then try to run. If same thing happens then please check Company Details where in Basic Initialization first option of credit balance is tick or unticked?
    It should be ticked........
    Regards,
    Rahul

Maybe you are looking for