Disabling Document Discount Field

Hi All
I want to disable the document the discount field on the sales order document.
How can I achieve this ? I don't want the users to be able to change the discount value in the document level.
Thanks

I would request you to try the following options:
Option 1. Use Authorization:
Step1: Access Authorization window. To access the Authorizations window, choose  Administration  -> System Initialization  -> Authorizations .
Step2: for users (who are not superusers), set Max Discount to 0.01 (as per your max decimal places configured in General Settings-> Display).
Max. Discount: Specify the maximum discount that the user is authorized to enter in customer master records or sales documents.
Please note, this option will not work for superusers and will restrict discount entry in all sales documents (not only sales order as you require).
Option 2. Use Stored Procedure:
Step1: Access Authorization window. To access the Authorizations window, choose  Administration  -> System Initialization  -> Authorizations .
Step2: for users (who are not superusers), set Max Discount to 0.01 (as per your max decimal places configured in General Settings-> Display).
Max. Discount: Specify the maximum discount that the user is authorized to enter in customer master records or sales documents.
Please note, this option will not work for superusers and will restrict discount entry in all sales documents (not only in sales order as you require).
*Option 2. SBOSP_TransactionNotification*:_
IF(@object_type='17') -- Sales Order object value: 17
BEGIN
-- if transaction type is equal to 'add' (please note this line is sql comment)
IF(@transaction_type='A')
BEGIN
     -- if current business partner master - website field is having null/ less than 3 characters, then show error (please note this line is sql comment)
     IF Exists (SELECT T0.cardcode FROM ORDR T0 where (T0.DocEntry=@list_of_cols_val_tab_del) and (T0.DiscPrcnt > 0))
     BEGIN
        set @error = 2001
        set @error_message = N'You are not authorized to edit/ enter discount.'
     END
     ELSE
               -- show successful message (please note this line is sql comment)
     BEGIN
          set @error = 0
          set @error_message = N'Ok'
     END
END
END
Hope the information is helpful to resolve your issue.
Good Luck.
Thanks & Regards
Satish

Similar Messages

  • BADI/user exit for me22n - disable/grey out field quantity (MEPO1211-MENGE)

    Dear all SAP gurus,
    When changing PO (ME22N), I need to disable (grey out) the quantity field on item (MEPO1211-MENGE), when all scheduled quantity is already received (EKET-MENGE = EKET-WEMNG).
    Have tried using LMEIGICJI and Handle_event method in CL_SCREEN_VIEW_MM. But still doesn't go to the screen that wants to be disabled.
    Tried using BADI ME_PROCESS_PO_CUST, but couldn't find how to disable the quantity field.
    (IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM only works for custom field).
    Please kindly advise
    thanks in advance

    Hi Ahmad,
    No need of ABAP, follow this IMG Path.
    Material Management -> Purchasing - Purchase Order ->  Define Screen Layout at Document Level
    After Executing it . Choose ME22 from list and then choose display icon.
    than double click Quantity and Price here uncheck opt. Entry and check display.
    save your work.
    Hope this works.
    Regards
    Ahsan

  • Hide Document Sturucture Field

    Hi Gurus
    How can we hide the document structure field in DMS tcodes (CV01N/ CV02N/ CV03N/ CV04N)
    Regards
    Harris

    Hi Harris,
    Please remove the transactions codes pertaining to Document structure from Authorization profiles viz
    CV11                 Create Document Structure
    CV12                 Change Document Structure
    CV13                 Display Document Structure
    This will disable the options atleast.
    Hope this helps.
    Regards,
    Deepak Kori

  • Document Signature Field

    How can I use a button to popup the Sign Document (certificate selection screen) similiar to how it is done with the Document Signature Field? Basically, do what the document signature field does but with a button instead?

    I forgot to mention one other item. If for some reason it is not possible to do this with a button, is it possible to disable or set to readonly the control?

  • Digital Signature in Document Signature field slow

    The business requirement is for users to digital sign a Dynamic PDF. Digital ID's are created using Advanced - Security Settings - Digital ID - Add ID - Create a self-signed digital ID for use with Acrobat - New PKCS#12 digital ID , from Adobe Professional.
    In the PDF, the user clicks in a Document Signature field to sign the document. It takes a VERY long time for this signature process to complete.
    is there a trick I am missing? Is the slowness due to the way the digital ID was created?

    Unfortunately, I cannot forward the form as it contains client data.
    I have tested signing another PDF I've created with 2 fields using the same the digital ID's, and the process completed quickly.
    Perhaps the problem lies with the size of my form which has 20 pages with 50 fields (on average) per page.
    When signing the document, the signature details appear, the "saving file" temporary status bar appears and THEN the hourglass kicks in and takes 5 minutes before control is returned. Is there validation particular to the signing process I can disable? Alternatively, can I specify which pages are certified instead of the entire document?

  • The document signature field is repeatable

    Hi!
    I use signature fields in dynamic forms in Acrobat 7 without problems. In Reader and Acrobat 8 signature field is not displayed and in designer there is a warning that is it problem "The document signature field is repeatable" ...
    Does someone know how to workaround this "feature", please?
    Thanks,
    --- Jaroslav

    I forgot to mention one other item. If for some reason it is not possible to do this with a button, is it possible to disable or set to readonly the control?

  • Customer wants to see Discount Field and Quantity field in Sales order Form

    Hi Gurus,
    Highly appreciate if you provide the solution for below issue:
    My customer requirement is to see Discount field in sales order lines screen...They want to know how much percentage of discount they are giving to customer, if they want to modify for respective line they modify in that field.
    Standard functionality discount field is NOT there in SO lines for because they manual enter discount in SO form, system should calculate Discounted price.
    One more required if they enter Item code, able to see available quantity bottom of the form Sub inventory wise, Availability, resealable.
    Current standard functionality supports - Click Availability button to check the availability..Its very difficult for them to check for each and every line item, is there any functionality to support this issue.
    Thanks
    Satti

    Hi,
    Both of your requirements should be customised.
    There is no standard functionality which attains your requirements.
    For my present project, we have customised 2 seperate reports, one which shows the availability of the items in subinventory and locator.
    Also a report which shows discount for all the lines and for the entire order.
    Thanks
    -Arif.

  • XL-Reporter - sales analysis including row discount and document discount

    Hello World!
    In XLR I want to report all item-sales to customers grouped by item-groups based on invoives.
    Since I am interested only in net amounts (without tax, freight and other expenses) and discounts I use 'S0_LineTotal' as attribute.
    'SO_LineTotal' includes the discount of each item-row in the document.
    The row selection is as follows:
    FACT
    ARDT(Code = "ARCreditMemo","Invoice")
    FIG(SO_DocType = "I")
    ITM( * ) 
    Group By ITM.ItmsGrpCod
    The problem is that I also have to include the document discount 'OINV.DiscSum' in the result.
    In combination with the row selection specified above the attribute 'Total Discount' delivers no results (always 0).
    In the standard SAP report 'Sales - AR/Sales reports/Sales Analysis' the total discount is averaged to all items in the matrix of a document.
    How can I achieve this in my XL-Report?
    Thank you very much for your support!
    Frank Romeni
    Edited by: Frank Romeni on May 15, 2008 3:55 PM
    Edited by: Philip Eller on May 29, 2008 8:53 AM

    Hello,
    To get this, I tried drag following information from Report composer:
    Under Sales tab, choose Items(Display more atrributes to choose Item Group), Document Number(choose this one because same items may have different discount in different documents), Discount % Per Row(light dimension),Discount % Per Document(light dimension), Row Total(measure).
    Drag the Item Group to the Group region.
    Run the report and the result should be all items are grouped by item Group and discounts and total in different document for each item will be listed.
    Hope this helps you.
    Regards,
    Maggie An
    SAP Business One Forum Team

  • We are trying to do a Quick payment from payment workbench and getting 'FRM-41830: List of values contains no entries' error for payment document column/field. Payment document setup looks good. Not sure what the issue is.

    We are trying to do a Quick payment from payment workbench and getting 'FRM-41830: List of values contains no entries' error for payment document column/field. Payment document setup looks good. Not sure what the issue is.

    Already gone through following three notes but didn't found resolution.
    APXPAWKB: FRM-41830 When Clicking on Payment Document LOV (Doc ID 1081305.1)
    R12: APXPAWKB: Payment Document Lov Is Empty When Entering A Payment (Doc ID 857587.1)
    R12: Payment Workbench Error: FRM-41830 List Of Values Contains No Entries (APXPAWKB.FMB) (Doc ID 1323875.1)

  • Purpose of Cash Discount field in Material Master

    what is the purpose of Cash Discount field in Material Master. what does it control. do it link to SKTO anywhere?
    please explain

    Hi,
    Cash discount is applicable for this material or not..
    This is for Sales only..
    Pricing Procedure (RVAA01) and if you activate SKTV and SKTO Condition types
    Cash Discount can calculate before tax or after tax
    Condition Type- SKTV(Statistical Condition Type)---If you check requirement is "14" which says Discount before Tax( This will calculate from the Filed Material master "Cash Discount Indicator" ie "SKTOF"
    Condition Type-SKTO-(Statistical Condition Type)--
    >Requirement "9" Discount After tax - here also it will consider filed "SKTOF" ie "Cash discount indicator in material master.
    SAM

  • Disabling the Qty field for Input for Sub items in Sales Order and Delivery

    Hi..
    I have a requirement, where by we need to disable the qty field vbap-kwmeng for input for sub items of the BOM.
    I am planning to use the user exit USEREXIT_FIELD_MODIFICATION...in the include MV45AFZZ for sales orders.
    But i need to disable the input only after the BOM Explosion and item category determination in the sales order.
    Can i Use the same exit ?? what additional conditions i need to take into account.
    also we need to disable the delivery quantity field also for the sub items of this sales bom.
    I see that this User exit is not available in delivery procesing.  How to acheive the required functionality in the delivery processing...
    your advice is much appreciated in this matter.
    Regards
    Srini

    hi,
    Route is determined
    1.Country of Departure & Departure Zone taken from Shipping Point
    2.Country of Destination & receiving Zone from Ship to party
    3.Shipping condition from CMR
    4.Transportation Group from MMR
    5.Weight Group which is optional.
    Check the above.
    Route is determined in delivery.
    ASHA

  • A message "Value in "Discount %" field is greater than permitted"

    Hi Experts,
          A message "Value in "Discount %" field is greater than permitted" will appear when adding an Issue for Production in production..

    Hi Karthick,
    Check Discount Limit for User
    Administration-System Initialization-Authorization-General Authorization
    and check Max Discount Limit
    Regards,
    Sandeep kr.

  • Reference document number field on Invoice line item

    Can anyone please tell me , where in customization , do i define what should get copied in the reference document number field on the line item of an invoice.
    Currently in our system, credit memo request number is getting populated for a credit memo.
    Thank you for your help in advance.

    Hi,
    If you are talking about line item level, then it is called Allocation Number. At the header level, it is called Reference number.
    This is controlled using the copy control for billing - at the header level control.
    The reference number & allocation number once maintained in the configuration, will show up in the Accounting doc - header level & item level, respectively.
    For example - if the customer payment always refers to his PO number, then it really helps to use the allocation number for the accounting doc line items - which helps in clearing incoming payment faster. In this case, the reference number could be our delivery number. This is one of the examples for using both Ref & allocation #'s.
    Hope, this helps!
    S. Siva

  • Problem with the discount field in PO form.

    Hi All
    I have a major problem in the PO form when ever I capture an invoice and then i insert the amount like R 100 000 then I try and add it with out maybe be a date in , the system will give me an error about date which is fine then I put in my date , then before i add the doc i change the total amount in one of the lines then the system inserts discount in the discount field automatically.
    If i first entered R 100 000 then changed the amount to R 15 000 the system enters a discount of 85%.
    Can anyone please explain this to me.
    Thanks
    Bongani

    Hi Gordon
    Issue solved the user was entering the amount in the total column not in the unit price column.
    Thanks
    Bongani

  • Document number field F4 help in transaction cv01n

    Hi,
    I would like to not display deleted documents in Document Number field search help in CV01n transaction only.
    How do I go about doing this?
    Regards,
    K

    Hello,
    The search help used for document no is H_TDWA. Add a search help exit to this search help to filter out deleted document numbers. Search sdn for "search help exit" you eill get several links to implement it.
    Regards
    Vishal Kapoor

Maybe you are looking for

  • Memory leak using Oracle thin driver on wls6.1...

    Hi, I've been attempting to find a memory leak in an application that runs on WLS 6.1 SP2, on Solaris 8 and accessing an Oracle 9i db. We are using the Type 4 (Thin) driver and JProbe reports that hundreds of oracle.jdbc.* objects are left on the hea

  • I'm gonna throw it against the wall!!

    I've only had my ipod for about two weeks, and already, it's messed up. (It's the newest iPod video, the black 30gb) It was working fine, and I hooked it up to my computer to add some more music files. My screen saves went on, and actually went to th

  • Unique IF Problem

    Hello Guys, I have a unique problem with my mapping. There is a IF condition which checks for number of line items and maps accordingly to the target. In the else part, if the number of line items is not matched as per a field, am calling an RFC look

  • Illustrator 10 - Updating Adobe Online Components

    My Illustrator won't let me in to my files because it says it needs to download 2 files. Specifically it says "Updating Adobe Online Components..." It downloads the first thing and then It gets locked on this screen. We have tried restarting the comp

  • MTP support in Winamp 5.2 B

    For those of you who dont know, Winamp is now supporting MTP devices and I believe they support the regular Zen Drivers as well, but I dont know perhaps someone else can tell us that. But what I do know is that that MTP support works great. You can o