Per Payment Document Expenses added not more than 5 lines

Hai Experts,
In outgoing payment Expenses added per document not more than 5 lines per document. Kindly provide SP_TN for this case..
Regards
Mohamed Yousuf Ali M I

Hi
Try This
if @object_type = '46' and @transaction_type in ('A','U')  
   begin
        if  exists(Select distinct 'Error'
        from   VPM4 T0 INNER JOIN OVPM T1 ON T0.DocNum = T1.DocEntry where T0.LineId > '5' and T1.DocEntry = @list_of_cols_val_tab_del)
          begin
   SET @error = 1234
   SET @error_message = 'Outgoing Payment lines Not More than 5 lines'
       end
end
With Regards
Balaji Sampath

Similar Messages

  • Restrict Outgoing payment document, if cash is more than Rs.20,000

    Hai!
    I am using SAP B1 PL40.
    can u help me out on this issue.
    I want to restrict the users to ADD
    Outgoing Payment document if they choose,more than 20,000 payment by cash mean.
    pl let me know if u want more detailed explanation.
    Thank u,
    Thanga Raj.K

    Hi Thangaraj,
    Try the following Stored Procedure. I checked in my system and works fine.
    Try the same in the Test System. Then get the approval and load in Live System.
    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'
    IF @transaction_type = 'A' AND @object_type = '46'
    BEGIN
    If exists (SELECT T0.docentry  FROM OVPM T0 where T0.cashsum>=20000)
         begin
              SET @error = 10
              SET @error_message = N'You cannot Pay Cash More than Rs. 20000/-'
         end
    END
    select @error, @error_message
    END
    Edited by: Sridharan T on Aug 25, 2008 11:35 AM

  • How to restrict not more than 9 hrs in Timesheet

    Hi
    Is there any way to restrict not more than 9 hrs in Timesheet in PWA 2010
    Regards
    Santhu

    Hi Santhu,
    In server settings, timesheet settings, set the maximum hours per timesheet:
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • HT1414 C apple i need to know few things,first of all i shall tell my scenario. I got an iphone 3gs from my uncle in US. I m at india k. well , in that iphone it showing activation screen and trying to activate. not more than that..plz help!

    C Apple, i need to know few things,first of all i shall tell my scenario. I got an iphone 3gs from my uncle in US..after long waiting. I m from south india, living at God's country called Kerala k. well , in that iphone it showing activation screen and trying to activate. not more than that..plz help!
    means.. in simple words, it is trying to activate and all( searching wifi,, taking few minutes..again searching...if it couldnt find any wifi - telling .. try connect using itunes an all)...well any way. finally I try connect to a wifi network, with full speed...3mbps..from Ravi's internet cafe in downtown.
    All after Im getting the below message from that white candy box!( thats all I can use now, because, in my dreams iPhone is something great,  that mankind ever seen....but this really disappointed me......im simpling blinking!!(same with itunes too)
    ""Your iphone could not be activated because the activation server is temporarily unavailable. try connecting your iphone to itunes to activate it, or try again in a couple of minutes.
    If this problem persists, contact apple support at apple.com/support""
    EVERYDAY .EVERTIME.. I C this message and sleep....no use.....and i use to charge that 'white candy box' to c this message!
    I try searching internet and all for solutn...but no one knw about it..but there are...some one me abt method called jailbreaking ..rednw..white snw ..ultrasnw and all...I dnt knw why it is so complicated to troublesht...apple is suppose to be simple and friendly.
    C why u manufacturing these stuffz like this, if does'nt serve the any of its purpose ....or useable to any of its features atleast....C i wont be that disapppointed, if u put an option to playbck music or video during activation and all...
    If you are responsible for manfacturing such unuseable thing, then its ur responsible to destroy it too.....
    anyway now everyone knws that ..I have an apple iphone with me, but that doest make me proud at all...
    Finally I have only few questions to ask...
    1 will it work with my vodafone sim in kerala?
    2 is any way , i can hear any music out frm it?
    3 will i become a proud iPhone user?
    I am already fedup with asking questions..begging for an solution.....
    I hope so you can help to figure it out, without any complications....thank u!

    It was not legitimately unlocked by the carrier it was originally locked to. ONLY the carrier it is locked to can authorize unlocking it.
    In order to allow it to be used on a different carrier, the phone was hacked or jailbroken. An unauthorized modification was made to the phone. That modification has damaged the phone. You can not get support for it here or from Apple.

  • How to restrict the delivery quantity not more than target quantity?

    Dear Gurus,
    How to restrict the delivery quantity not more than target quantity in a scheduling agreement? I think there are 2 methods.
    1. I found that setting 0 in Overdelivery Tolerance Limit in Info Record is not effective. Why?
    2. I want to set E for the message but can't find the place. The message is generated when entering and saving quantity as delivery quantity that is larger than target quantity. How can I set E to a message (067, as I remember)
    Any other effective method? Please advice. Thanks.
    Regards,
    David

    Dear all,
    It is not OK after checking everywhere you mentioned. I tested in 2 clients. In the development enviroment client, it works whatever E or W. In test enviroment, it does not work (meassge is W).
    I think there must be somewhere besides of those you menetioned.
    I notes that SAP help for the overdelivery tollerance setting of scheduling agreement: 
    Overdelivery Tolerance Limit
    Percentage (based on the order quantity) up to which an overdelivery of this item will be accepted.
    Dependencies
    If you have set the indicator in the Partial delivery/Item field to 'D' (partial delivery allowed), this takes priority. It makes no sense to define a tolerance limit for overdelivery in such case.
    Where can I see: 'the indicator in the Partial delivery/Item field to 'D' (partial delivery allowed)'? I want to check it.
    Pls help! Thanks.
    Regards,
    David

  • In adobe reader app on iPad, I have a PDF document that added notes and comments to.  Once I left the document and returned to it, the notes and comments were gone.  Where are they?  I clicked "save" and "done" buttons after I entered text.

    In adobe reader app on iPad, I have a PDF document that added notes and comments to.  Once I left the document and returned to it, the notes and comments were gone.  Where are they?  I clicked "save" and "done" buttons after I entered text.

    The application auto-saves your input when you close the document.  If you left the document, as you state, the notes/comments should have been saved and should have been visible the next time you opened the document with the Mobile Reader (note that if you are opening the document with another app such as Apple's built in PDF Viewer, things like notes/comments may not be visible).  Also note that if you are doing an Open In... from another app (like Dropbox), the version of the document in Dropbox does not update; only the version of the document in the Mobile Reader is updated.
    Would it be possible to send a video of the problem you are encountering to [email protected] so that we can try to help?

  • Query Builder accepts not more than 60 fields in a single dataset

    Query Builder accepts not more than 60 fields in a single dataset. Once we try to enter 61st field - it pops up with a message. Is there some setting that we need to change.
    Please help me.
    Thanx & Regards,
    Rajeev Goel

    Query Builder accepts not more than 60 fields in a single dataset. Once we try to enter 61st field - it pops up with a message. Is there some setting that we need to change.
    Please help me.
    Thanx & Regards,
    Rajeev Goel

  • Change Account Duration for ISE Guest User can not more than 5 days

    Extending guest account duration can not more than 5 days.
    On portal we can change it to more than 5 days, but the account always expired after next 5 days.
    Email notfication sent after change duration also said the account only have 5 days of duration.
    I'm using ISE 1.2 patch 2.

    Step 1 From the Cisco ISE Administrator interface, choose Administration > Guest Management > Settings > General > Purge.
    The Purge Settings page is displayed.
    Step 2 To schedule a purge operation, check the Enable purge settings for expired guest accounts check box.
    Step 3 Configure the following available options:
    a. Enter the purge interval, in number of days. Valid range is 1-365.
    b. Specify the hour of the day when the purge should occur.
    Date of last purge displays the date and time when the last purge operation occurred.
    Date of next purge displays the date and time when the next purge operation is scheduled to occur.
    Step 4 To immediately execute a purge of expired guest user records, click Purge Now.
    This executes a purge manually even if Enable purge check box is not checked. This option provides you the freedom to purge records whenever you seem fit.
    Step 5 Click Save
    Please check the point 3 find the value is so that it may engaged.

  • I have my catalog "Back Up Each Time Lightroom Exits" checked, and always have. That means the catalog should have been backed-up and saved everyday, if not more than once on some dates. So with a a major problem now and needing to use the Catalog backup

    I have my catalog "Back Up Each Time Lightroom Exits" checked, and always have. That means the catalog should have been backed-up and saved everyday, if not more than once on some dates. So with a a major problem now and needing to use the Catalog backup from last Friday, I go to my Lightroom Backups folder - and the most recent one showing not only isn't yesterday, it's OCTOBER 28 !?? Where the hell are the daily backups between October 28 and November 14?

    Oh wow - JET LAG strikes agin - my apologies; I have located the missing weeks of back-ups. After getting home from a 30-day trip to Europe, I had changed the location of my LR catalog back-ups to an external drive, and forgot that I did that. I have found them, and all is good. Never operate Heavy Machinery without enough rest. Cheers

  • HT4865 if i want to give access to documents to multiple users more than 20 can it be done in icloud

    If i buy the storage space in icloud and give access to documents for multiple users more than 20 userids will it be possible to sync whatever changes i made to the documents will get updated in those multiple accounts when the client software is installed in their systems.

    What documents specifically?

  • It has been not more than 10 days since i bought iphone 5s 32gb and the finger print scanner is not detecting the prints.what to do??is it an issue with the device or iOS??

    It has been not more than 10 days since i bought iphone 5s 32gb and the finger print scanner is not detecting the prints.what to do??is it an issue with the device or iOS??

    Standard practices:
    Restart the device (power off completely, then back on) - retest.
    Reset (hold sleep wake and home buttons until apple logo appears) - you can try this, but it is most useful when your device is frozen.
    Restore to factory settings - retest.
    Make an appointment at an Apple retail store genius bar if the above did not resolve the issue.
    HTH.

  • Not more than one service order against same sales document item

    A service order gets created against the sales order item as per
    standard SAP process. As credit management is active, when the order
    is under credit block  for the customer the service order gets created only after the
    credit block is released.
    On revising the order line value the sales document goes for a block
    again. Service order is locked. Both seem to be logical.
    But on releasing the credit block  this time ,  it creates one more service order against the same sales order item. Would logically expect the service order is
    unlocked on release from credit block.
    Can u pls explain this behavior ??  How do u avoid a new order creation and unlocking of the service order when the credit block is released.
    Would like to avoid any change in the service order status once it has been created irrespective of subsequent credit status of the sales order.
    regards
    Ramanujam

    Hi  lisa ,
    It is not possible to enter more than one service performer for a service in sales order .
    But you can  perform the service with two people and have two service confirmations.
    The time entered in service confirmation will be reflected in invoice only(if time and material).
    Also you cannot enter the time sheet with respect to sales order , it is only valid for project task and
    and time types.
    Regards,
    Harish

  • F110 payment for invoice not more than USD 25000

    Is there a way to set up the system for F110 so that the payment per vendor cannot be more than USD 25000. Any amount above it has to be paid via approval.

    Hi both,
    There is some standard configuration indeed. In trans. FBZP, choose "Payment methods in company code" and you will see a field "Maximum amount" (T042E-BISBT). If you set it to 25000 USD in all relevant payment methods then the payment program (trans. F110) will put the vendor payment to exceptions (with error FZ618 - Payment amount is not within the limits allowed) if the payment amount exceeds this limit. I have just tested in sandbox and it works like this:
    - it does not look at single item amounts, but at the total to be paid together in one REGUH line (e.g. if you have one invoice for 11000 USD and one for 15000 USD, then both will be blocked if they fall in the same payment proposal)
    - early payment discounts are deducted (e.g., if you have an invoice for 25500 USD with a 3 % discount (24735 USD net) and nothing else then it will be paid)
    - however, if the payments are split (e.g., after ticking "Individual payment" LFB1-XPORE in vendor master), then it considers each invoice separately, even if their total exceeds the limit
    - SAP help says that if you enter the payment method directly into the item (rather than choosing it from vendor master), then the limit is not taken into account.
    So, from the above you can see that it is not a complete protection (there are loopholes and back doors) but it is the most simple - and standard - thing you can do.
    Would this help? If not, then a user exit would be a solution.

  • How can I check the number of lines per inch in my document (I need no more than 6 per inch!!)

    I need to produce a dopcument in New times Roman with a minimun of 12 ot font size, single spaced and , with no more than 6 lines of type per inch?
    How can I check that I do not have more then 6 lines per inch?
    thanks in adavance!!!

    If this is about Pages for iOs, you can certainly set TNR adn 12 pts, but no, there is no lines per inch settings.
    If this is about Pages for OS X, you are in the wrong forum.

  • Documents Created Seen in more than one report globally

    Hi Experts,
      I would like to know whether the documents can be created globally? such that they can be seen in more than one queries in common.
      For better understanding my requirement is to know whether the documents can be created in such a way that they can be seen in common in more than one queries so that the business looking at one report should be able to see all the commentary/documents created on that particular Infoprovider. I hope I am clear in my question. Quick response is appreciated as this is an urgent requrement.
    Cheers,
    Sunitha.

    Hi,
      I know the documents are created on the characterisitcs combinations, but my requirement is to get the documents that are created on more than one query. That is I should be able to see the documents in my query created on all the queries defined on the Infoprovider.
      For that reason I am checking the document properties in RSA! to see whether the documetns are created on the query level or on the Infoprovider level.
    As you told the documents are created on the characterisitcs level but I am not able to see the docuemtns icon ordocuments on the characterisitics in the BEX .
    Regards.
    Sunitha

Maybe you are looking for

  • WSDL is not working in Jdeveloper

    Hi , I got a WSDL from Informatica team .It's working in soap UI but not wokring in Jdev 11.1.1.5. Please help it's urgent. WSDL-------------------------- <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org

  • Web Sharing starting up....

    Hi all I'm a newbie that would like to learn the basics of PHP and web applications. I've followed instructions and upgraded the current php on my system. I used the terminal and followed step by step instructions as i have no idea what i'm doing wit

  • Offline Processing Changes

    Just noticed that the link Collecting credit card details for offline processing in this document is broken. http://helpx.adobe.com/business-catalyst/kb/offline-processing-changes---post.html

  • Problem with programming logic in code

    I have hit a programming logic problem. What I wanted is for my main program to create a jDialog according to user's choice selection from a jOptionPane and the code in the main body to stop running and rather wait for the user to select the option i

  • When clicking on a link a new window comes up empty

    When I click on a link on a webpage, for example in gmail I click on compose email and then click on the contact list to select contacts to send an email to and the window that holds my contacts information come up there is nothing there. It does thi