Check SD billing price before saving

Hi experts,
I need your help.
I'm looking for an exit to check the price on header and items of the billing document created through VF04 / VF06 / VF01.
if the price is <= 0 (VBRK-NETWR / VBRP-NETWR) the billing should not be created.
The exit should allow to stop the billing document posting without the need of writing a "MESSAGE Exxx" so that if the posting is done through a background job for massive posting, it will not lock the whole elaboration, but just the current document.
Thank you in advance
- francesco

Look at [User Exits In Sales Document Processing|http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm]
in "User exits in the program MV45AFZZ", form USEREXIT_SAVE_DOCUMENT_PREPARE may fill your requirement
Use this user exit to make certain changes or checks immediately before saving a document. It is the last possibility for changing or checking a document before posting.
The user exit is carried out at the beginning of the FORM routine BELEG_SICHERN.
Regards,
Raymond

Similar Messages

  • Check on vendor email address change before saving PO

    Hi All,
        I need to check Is there any change in Vendor Email address in PO before
    saving. I am trying to find userexits.
    I found some like EXIT_SAPMM06E_012, But here I am not getting complete
    Vendor address...
    Req: I am maintaing multiple email address for Vendor at PO header level.
    Here is the path:  PO Header --> Address tab --> Click on Address Details
    --> Here we can maintain(Insert/ Delete/Change) multiple e mail address.
    So I need to check is there any change in email address before saving.
    Could you please any body help me on this....
    Thanks
    Rays

    Hello Rays,
    One base question,
    Are you going to check the vendor email address manually before saving the PO?
    The vendor address in the puchase order is copied from the vendor master so you can maintain email address (single or multiple) in the vendor master before creating the purchase order. At the time of purchase order creation/save, you can change the default email address and use this to trigger PO to vendor.
    By the way, user exit EXIT_SAPMM06E_012  (Check Customer-Specific Data Before Saving) is used for custom field not for SAP std field.
    Hope this helps.
    Arif Mansuri
    Reward the points if answer is helpful.

  • Create Credit Memo (VA01) - Problem of checking a field before saving

    Hello!
    In tcode VA01, why a field (ex. Customer Group) is checked to be filled before saving in case of a Standard order (type OR, or for us is ZOR), but not in case of a Credit Memo (type CR, or for us is ZCR) ? Is this Config problem? If yes, do you know how to config? If not, do you know any User-Exits I should use? I've tried some but didn't work.
    Please help if you can. Thanks!!

    Hi Timmy,
    Please go to include MV45AFZZ and try the user exits
    USEREXIT_SAVR_DOCUMENT
    in here VBAK values are present in XVBAK and VBAP values in table XVBAP....
    Write the required code here and see if it solves our problem
    Every time user clicks the 'SAVE' button it has to go through this exit
    Regards
    Byju

  • User Exits for transaction VF01 before saving the billing document

    Can any one say is there any user exit which exits before saving the billing document since i want to check the net value of the billing with the net value of sales order so that it should not go beyond the total amount specified in sales order.

    J_3RSINV
    SDVFX001  User exit header line in delivery to accounting
    SDVFX002  User exit for A/R line in transfer to accounting
    SDVFX003  User exit cash clearing in transfer to accounting
    SDVFX004  User exit G/L line in transfer to accounting
    SDVFX005  User exit reserves in transfer to accounting
    SDVFX006  User exit tax line in transfer to accounting
    SDVFX007  User exit: Billing plan during transfer to Accounting
    SDVFX008  User exit: Processing of transfer structures SD-FI
    SDVFX009  Billing doc. processing KIDONO (payment reference numbe
    SDVFX010  User exit item table for the customer lines
    SDVFX011  Userexit for the komkcv- and kompcv-structures
    V05I0001  User exits for billing index
    V05N0001  User Exits for Printing Billing Docs. using POR Procedu
    V60A0001  Customer functions in the billing document
    V60P0001  Data provision for additional fields for display in lis
    V61A0001  Customer enhancement: Pricing
    These are the Exits Available in the Package
    Jus try finding which will suffice ur Requirement.
    Regards,
    Mithun

  • In VF01, before saving the billing document, can we use "issue output to"

    In VF01 transaction before saving the billing document, can we use "issue output to" under Billing Document in Menu.
    i.e., can we enable the option "Billing Document -> Issue output to -> Issue output to"

    Hi,
    No as a standard, unless the billing document is created and released to accounting, you can't use issue output to.
    Regards,

  • Check mandatory fields before saving

    Hello,
    In my Z-program, how can I check all mandatory fields in a dynpro before saving?
    Is there any function to do that?
    Thanks!!!

    Hi alberto,
    1. If the fields are mandatory (as set in the field attributes while designing the screen),
    2. then we don't have to write any additional logic for the same.
       The system will AUTOMATICALLY check for it, and issue appropriate message.
    regards,
    amit m.

  • InCopy workflow in InDesign: Is there a way to find the document in which an ICML file has NOT been checked IN again before saving the doc?

    The situation:
    We are working with the InCopy feature (checking in and checking out ICML files).
    The problem:
    I might have saved a document with an ICML file still checked out.
    The question:
    Is there a way to find out which document was saved with the ICML file still checked out?
    or in other words:
    Is there a way to find the document in which an ICML file has NOT been checked IN again before saving the doc?
    Thanks for any help!

    Hello Sumit Singh,
    thank you for your answer and your reasonable recommendation. Unfortunately, this only works when the ICML content is used in one INDD file. In our case, we use ICML content in multiple docs (various manuals with the same safety instructions, warranties, adresses etc.).
    So, is there a way to trace back where an ICML has been used?
    Is it possible to find out in which document the ICML is still checked out?

  • Today I restore my phone, before I restored it I checked that my photos are saved on my icould, I did the backup and everything was back on my phone but not my photos! :( please help I need my photos back :|

    today I restore my phone, before I restored it I checked that my photos are saved on my icould, I did the backup and everything was back on my phone but not my photos! please help I need my photos back :|

    Hello purpleroses68
    To download any photos that were on your My Photos Stream, then you will need to have Photo Streamed turned on within your computer. Keep in mind that My Photos Stream only holds the last 30 days of photos and those will be the only one that will download. Check out the articles below for more information for the process and general information about getting your photos downloaded.
    Archive or make copies of your iCloud data
    http://support.apple.com/kb/ht4910
    iCloud: My Photo Stream FAQ
    http://support.apple.com/kb/ht4486
    Regards,
    -Norm G.

  • User Exit for CO01/CO02 : How to check production order before saving ?

    Hi all,
    I try to check production order before saving.
    if  AFPO-LGORT or RESB-LGORT  or some other field is initial, throw an error msg and stop saving process.
    I try using badi WORKORDER_UPDATE and user exit PPCO0001  EXIT_SAPLCOBT_001, find out that i can check the data but can't stop the saving process.
    Anyone knows some other user exits can do this?
    Thanks a lot.

    Solved.
    A wired solution from
    http://abaplog.wordpress.com/2007/03/01/reading-other-programs-data-using-field-symbols-in-abap/

  • Check Batch characteristics before saving

    Hi community,
    i'm searching for a way to check whether characteristics of a batch were changed.
    I found an Badi which is called just before saving the batch.
    My target is to create (as usual) a batch Idoc if a specific characteristic is set to a specific value.
    Thanks & best regards
    Michael

    I forgot one thing.
    If I create the Idoc within the BADI Implementation,
    the batch isn't saved yet.
    how can I trigger the idoc creation <i>after</i> the batch is saved ?
    any ideas ?????

  • View order output before saving

    Hello,
    I am getting an error "Maintain bIlling Plan Type with sales document type or Item Category", when i press Header order Output preview before saving sales order.
    When i save sales order , then i can easily preview Order Output.
    I have maintain Billing plan type with Sales document type and assigned item category with billing plan.
    Amit
    Edited by: Amit Gupta on Jan 19, 2009 6:00 AM

    Hi,
    please do check whether u assigned billing plan for both sales document type and item catagery?
    if u assign to sales document type all the item under the sales document will have billing plan.
    If u assign to specific item catagery ,only the material item with that otem catagery will have billing plan.
    May be system is finding both(sales doc. and item cat) relavent for billing plan.
    you have to maitain both.
    Why dont you try billing plan with item catagery separately(remove sales document type assignment to billing plan) and check.
    Regards,
    Reddyy

  • Enhancment Before saving document

    Hi Gurus,
    Is there is any User Exits or Enahancemets available for delivery or  pgi befor saving system has to check certain requirment like for that perticular customer wether we received payment or not.If we received payment system has to allow or system has to give error message .
    Thank you in advance .
    Regards,
    Suresh

    If you are looking for a userexit then I think 'senya_1111' is correct in recommending USEREXIT_SAVE_DOCUMENT_PREPARE (MV50AFZ1).
    However, I believe the best solution to this issue would be to use credit management.
    You can define any of the following credit checks for various combinations of credit control area, risk category, and document credit group:
    Static Credit Limit Check
    The customer's credit exposure may not exceed the established credit limit. The credit exposure is the total combined value of the following documents:
    - Open orders
    - Open deliveries
    - Open billing documents
    - Open items (accounts receivable)
    The open order value is the value of the order items which have not yet been delivered. The open delivery value is the value of the delivery items which have not yet been invoiced. The open invoice value is the value of the billing document items which have not yet been forwarded to accounting. The open items represent documents that have been forwarded to accounting but not yet settled by the customer.
    Dynamic Credit Limit Check with Credit Horizon
    The customer's credit exposure is split into a static part; open items, open billing, and delivery values (see above), and a dynamic part, the open order value. The open order value includes all undelivered or only partially delivered orders. The value is calculated on the shipping date and stored in an information structure according to a time period that you specify (days, weeks, or months). When you define the credit check, you can then specify a particular horizon date in the future (for example: 10 days or 2 months, depending on the periods you specify). For the purposes of evaluating credit, you want the system to ignore all open orders that are due for delivery after the horizon date. The sum of the static and dynamic parts of the check may not exceed the credit limit.
    Maximum Document Value
    The sales order or delivery value may not exceed a specific value which is defined in the credit check. The value is stored in the currency of the credit control area. This check is useful if the credit limit has not yet been defined for a new customer. It is initiated by a risk category which is defined specifically for new customers.
    Changes Made to Critical Fields
    The credit check is triggered by changes made in the document to values in any of the credit-sensitive fields. According to your Customizing settings, the system runs a check credit between changes or differences in the sales order data against the default values in the customer master record. Examples of such fields are terms of payment and fixed value dates.
    Date of Next Review
    Uses the date of the next credit review as a trigger for an automatic credit check. If you process a sales order after a customer's next review date has already gone by, the system automatically carries out a credit check.
    Overdue Open Items
    The relation between open items which are more than a certain number of days overdue and the customer balance may not exceed a certain percentage.
    Oldest Open Item
    The oldest open item may not be more than a specified number of days overdue.
    Maximum Number of Dunning Levels Allowed
    The customer's dunning level may only reach a specified maximum value.
    User-Defined Checks
    If you want to carry out checks other than the standard checks, you can define your own checks in the appropriate user exits in Customizing for Sales.
    There is very good information available in the F1 help for the above fields in trx OVA8.
    I hope this helps.
    Gerard
    Edited by: Gerard Magorrian on May 28, 2010 2:58 PM
    Edited by: Gerard Magorrian on May 28, 2010 2:59 PM
    Edited by: Gerard Magorrian on May 28, 2010 3:04 PM

  • Tcode FV50: How to find long text in FI Document line item Before Saving.

    Hi,
    How to find long text in FI Document line item.
    During Parking of the FI document through Tcode FV50 i m giving the some text in the long text not in the text field.
    I would like to validate the Long Text Before Saving in user exit "U300" under  the  "Sunstitution" .
    Please anybody can be help me out where exactly this long text is going to be stored or in which internal table or memory id.
    Please give me the answer as soon as possible .
    Note:- Read_Text function module is not useful. Because Read_text useful after saving document.

    Hi Amit,
    In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
    Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
    Just try to explore in your system how the other validations are maintained.
    After you are done with all your code, you have to run the regeneration program RGUGBR00.
    Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except  GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS  & TRACE PROG. GENERATE CALLS .
    Hope this make your doubt clear.
    Regards
    Abhii

  • How to read the status changed in crmd_order txn before saving it to DB.

    hello all,
    My requirement is to perform some checks after the user changes the status
    ( Before saving it to DB i need to do some checks )
    I could find the BADI and Fm's for checking conditions.
    My question is i need to check for a particular status change how do i trace that that particular status which i need to capture has been changed??
    i could see some FM's but it is only fetching the staus save in DB.
    how do i trace the status just after user changes before saving it to DB.
    it's an urgent requirement............pls help me on this..........
    pls get back to me if u want more  details.........
    Thanks,
    Shiva.

    Hello.
    Have you figured this out yet?  We are having the same problem.

  • Print Preview of PO before saving .

    Dear Experts ,
    Is it possible to view a print preview of a PO after  just checking the PO & before saving it ??
    If yes pls let me know how ?
    Regards
    Anis

    Hi Anis,
    yes, you can view a PO in print preview in ME21N before saving it but the following are pre-requisities:
    1 - There are valid messages defined for the PO - check by clicking on 'Messages' at the top of the screen. So long as there is a message defined, you can display, if not, add the output type that you would like to use (NEU for example).
    2 - The output type must be pointing correctly to a printer or valid e-mail address (for e-mail outputs)
    3 - You must have access to transaction ME9F in authorisations - although you are not navigating to ME9F, you will still need the access
    If these things are OK, click on print preview and you will get an image of what the printed document will look like.
    Rob

Maybe you are looking for

  • Exporting a Report to PDF

    Post Author: helfrich CA Forum: Crystal Reports I am re-writing a VB6 app to VB.NET 2005.  I have a viewer control that I use to display the reports in when I want to preview the report on the screen.  The VB6 app can also automatically export report

  • How can I make my guardians buy me an iPhone 5?

    Hey, Apple forum people. Maybe you guys can help me with my problem/question today? Well, I am thirteen years of age, and I'm very addicted to Apple products (I currently have a iPod touch and iPad) Now, my birthday is in November, and I will be 14 y

  • How can I convert Appleworks files to Pages?

    I have old Power PC files, some Appleworks, some ClarisWorks. I have been exporting them to another Mac to convert. Is there a way to convert them on my current system? Mavericks? (which I regret)

  • SSIS 2012 - Double quote charcter in data does not allow to load flat file to source component

    Hello everyone, I've created a source component for flat file data. This file contains data the column data in double quotes. Like, First Name Last Name "Ankit"       "Shah" The text qualifier is double quote for source file connection.  When I do ha

  • Headers and Footers in Numbers

    How can I put Headers/Footers in a Numbers sheet. I was able to do this in the previous version, and then save as a pdf. Can'f see how to do it now. Thanks