Problem in user - Exit for VF01?

Hi all,
I have a requirement where i need to calucate the condition value for my billing document and pass the same value to Net value of the billing header also. Here there is no sales order in the flow.
I am using the exit   USEREXIT_PRICING_PREPARE_TKOMK in the program RV60AFZZ . The calculation is working fine and the net value of the billing header is changing. But if click on any button on screen or saving the billing document the value is not saving and set back to 0?
Please help me to resolve the problem?
Thanks,
Aravind.

This may be because there are more than one entry points in exit USEREXIT_PRICING_PREPARE_TKOMK i.e the code written in this will be executed varoius time . SO, you need to code in such a way that desired code get executed only for your senario.
As per my understanding , when you click your button  user exit USEREXIT_PRICING_PREPARE_TKOMK get executed and may be by initial quantity of some field and hence net quantity becomes zero.
Check this by puutting a breakpoint in USEREXIT_PRICING_PREPARE_TKOMK and check when all it get executed and then ristrict its execution as per your need.
Hope you get it.

Similar Messages

  • Badi/User Exit for VF01

    Hi Experts,
    Please understand my issue/requirement that, I have to make the item conditions tab in display or deactivate mode to prevent users to change or create the price or conditions while posting VF01.
    As std, system allows users to create or change the prices/qts and also add new conditions. My client needs to make it as display mode for all type of postings in VF01.
    Please guide me, how to arrive it through Exit or Enhancements.
    thanks & regards
    Sankar.

    Hi,
    Try these steps to find the BADI.
    1. Go to the TCode SE24 and enter CL_EXITHANDLER as object type.
    2. In 'Display' mode, go to 'Methods' tab.
    3. Double click the method 'Get Instance' to display it source code.
    4. Set a breakpoint on 'CALL METHOD cl_exithandler => get_class_name_by_interface'.
    5. Then run your transaction.
    6. The screen will stop at this method.
    7. Check the value of parameter 'EXIT_NAME'. It will show you the BADI for that transaction.
    These are exits in VF01.
    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 number)
    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 Procedure
    J_3RSINV            User Exits for Printing Billing Docs. using POR Procedure
    V60A0001            Customer functions in the billing document
    V60P0001            Data provision for additional fields for display in lists
    V61A0001            Customer enhancement: Pricing
    Hope this helps u.
    Thanks.

  • Badi/User-Exits for VF01

    Hi expert’s,
    I need to find a User-Exit or a BADI in transaction VF01 or VF02, I have found several but I need one  “before save” or “after save”.
    Anyone knows any User-Exit or Badi for this case?
    Thanks in advance
    Nuno Rodrigues

    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 number)              
    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 Procedure              
    V60A0001            Customer functions in the billing document                             
    V60P0001            Data provision for additional fields for display in lists              
    V61A0001            Customer enhancement: Pricing                                          
    check out which exit suits ur reqirement.

  • User Exit For VF01 VBRK-NETWR and VBRP-NETWR

    I want to change the invoice price about VF01.
    Anyone know the method?

    Transaction Code - VF01                     Create Billing Document
    Exit Name           Description
    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 number)
    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 Procedure
    V60A0001            Customer functions in the billing document
    V60P0001            Data provision for additional fields for display in lists
    V61A0001            Customer enhancement: Pricing
    J_3RSINV            Customer enhancement: Pricing
    No of Exits:         17
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    BAPI-step by step procedure
    http://www.sapgenie.com/abap/bapi/example.htm
    list of all BAPI's
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    Rewards if useful.........
    Minal

  • User exit for VF01(after g/l account is determined).

    I have requirement in which i have to throw an error message in VF01
    In this i need a user exit in which i can access the G/L account number and on basis of that i need to display error message.But i am not able to find out a user exit  where i can access g/l account determined by sap std code.
    The requirement is to put a validation on WBS element based on G/l account and stop billing document creation in addition to accounting doc creation.

    hi ,
                                                                                    Exit Name           Description                                                                               
    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 number)                 
    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 Procedure                 
    V60A0001            Customer functions in the billing document                                
    V60P0001            Data provision for additional fields for display in lists                 
    V61A0001            Customer enhancement: Pricing                                                                               
    check these exits..
    regards,
    venkat.

  • User exit for VF01

    Hi,
    I would like to give hard stop while saving a proforma invoice if there is no pricing. I have set the condition type as mandatory in the pricing procedure, but still it allows to save the proforma invoice with a warning message. This in turn gives the user to print the proforma invoice and sent to customers.
    So I would like to give a hard stop, which should not allow saving of the proforma invoice if there is no pricing record for a particular condition type.
    Can anyone tell me what user exit I need to use to give a hard stop?
    Thanks in advance.

    I think you should be able to control it using requirements at the output procedure or copy control or both levels. Check in config or check with config specialist about that possibility. VOFM is the relavant transaction.

  • User Exit for VF01 upon creation of Invoice

    Hi All,
    We have USEREXIT_SAVE_DOCUMENT in MV45AFZZ once the sales order is saved......similarly do we have a same user exit once the invvoice is saved??I need this to populate my custom table once the invoice have been saved.....If yes can you please let me know........i'm currently working with SDVFX001-EXIT_SAPLV60B_001,but just in case if it has any such please do let me know so that i can be more specific on coding my requirement

    EXIT_SAPLV60B_008 is triggered when an SD invoice is transferred to accounting (SD -> FI), so it is not triggerred if:
    - an invoice is not relevant for accounting;
    - an invoice is relevant for accounting but some of its data result in an error that occurs before the system starts transferring the document to FI.
    So you can use that exit to be informed of invoices being created and posted to FI.
    regards

  • Problem in user exit for text

    hi all
    m using EXIT_SAPLRSAP_003 to enhance one field in 0material_text  field is LVORM
    INCLUDE ZXRSAU03 .
    CASE I_CHABASNM .
      WHEN '0MATERIAL_TEXT' .
        git_mara_data[] = c_t_texts[].
        SELECT matnr lvorm                                      " table initial check not required
               FROM mara
               INTO TABLE git_mara
               FOR ALL ENTRIES IN git_mara_data
               WHERE matnr = git_mara_data-matnr .
        LOOP AT c_t_texts INTO gs_mara_data .
          READ TABLE git_mara                                   "sy-subrc check not required
                INTO gs_mara
                WITH KEY matnr = gs_mara_data-matnr .
          MOVE gs_mara-lvorm TO gs_mara_data-zzlvorm .
          MODIFY c_t_texts FROM gs_mara .
        ENDLOOP .
    ENDCASE .
    but the problem is wen i m running RSA# in debugg mode this include is not called i put break point still its not stopping dere plz lemme know where m rong

    First :
    is the exit being used:
    put a break point in the include to see if it is being used or not.
    Thenwhat is the value of I_CHABASNM - is it 0material_text or something else.
    Then if both are correct check if your exit is active and even then if it does not go into the include - see if any note exists for the same.
    Arun

  • User exit for vf01 for delivery date should be a current date

    Hi Experts,
                   I won t allow to save vf01 delivery date mismatch with system date. Delivery date must equal with system date. kindly give any userexit for this issue.
    regards
    G.Vendhan

    Hi Vendhan,
    Probably we are waiting for your Reply.......
    You didn't replied to MxG question.....that whether writing VF01 for delivery was a typing mistake or you actually mean it.
    Your reply will help us to answer your thread.......in case you already solved the problem by yourself.....I suggest you to close the Thread......and you may share the solution implemented/used ...so as to avoid a redundant thread creation in the future.

  • Problem with User exit for Purchase Order creation/change

    Hi Everyone,
    I have a requirement where I have to implement an enhancement for the standard transaction(ME21N/ME22N). I need to modify a particular field of the item table (EKPO) based on a few comparisons from the header values (After save of PO). I am using the enhancement MM06E005 and its corresponding exit  EXIT_SAPMM06E_013. While debugging I notice that the value is getting changed; but as soon as the control comes out of the FM, the change is not being reflected. Hoping to find a solution for this.
    Thanks & Regards,
    Indudhar P.G

    Hi Guys,
    Now I am using the BADI "ME_PROCESS_PO_CUST". But the control is not stopping at the method even though I set a breakpoint. It just saves the PO after I click save. Is this because my document type of PO is Stock Transfer Order. Can I use this BADI for STO's? and moreover how do I process each item line in this method. Does "ls_mepoitem = im_item->get_data( ).
    "  fetch all the item lines?
    Thanks and Regards,
    Indudhar P.G

  • Help on USER EXIT for MIGO

    Hi friends,
    Facing problem in USER EXIT for MIGO...
    My requirement is...
    I want to give a error message for good issue or  it should not be posted in MIGO, if the Item OK check has not been made for all the available materials corresponding to Order no while posting goods issue.
    the structure and field names are: GODYNPRO-DETAIL_TAKE
    i.e., If the user omits to do the item-check for any materials while posting Good issue(after the Production order made),one popup(error) message will come/display b4 posting the document (by way to alert him).
    If anyone have solution or worked on this previously...pls post ur example by reply or let me know which is the corresponding USER EXIT to include my coding part.
    I've tried in MB_CF001 and MBCF0005 and its not working.
    Pls do the needful at the earliest.
    Thanks & regards
    sankar.

    Hi
    I hv same req. did u found correct exit?
    thanks

  • User exit for calculating Base line due date in VF01

    Hi,
    I need a User Exit for calculating Base line Due date i'e ZFBDT with respect to billing date
    for VF01
    Regards,
    Moderator message: if there is one, you can find it yourself by doing due research.
    Edited by: Thomas Zloch on Nov 23, 2011 1:52 PM

    >
    Rahul Saxena wrote:
    > I have given the condition"BSEG-ZTERM = 'ZTST'" in Prerequisite, and in the Substitutions when I try to assign  constant value '02/16/2009' to the field Baseline Date, I don't see that Baseline date field in Substitute fields for Class '009'.
    >
    > How do I add Baseline date in that popup to select and assign values.
    >
    > Please suggest.
    >
    > Thanks-
    i think your date format and system date format is not suitable.
    give the date format as 20090216 as system format.

  • User exit for proforma invoice preparation vf01

    Hi experts,
    I using Enhancement SDVFX008 for VF01 its working fine, but its not fire while STO(JEX) invoice preparation.
    In Proforma invoice i need to check road permit. User should not save without roadpermit in particular states only. Kindly give Userexit for this issue.
    Thanks & Regards
    G.Vendhan

    Please donot cross post
    Read the forum rules
    User exit for proforma invoice preparation vf01

  • User Exit in VF01 for Tax Conditions

    Hello,
    Please inform if any user exit is available for processing Conditions (Tax) in a Sales Order.
    I'm facing a problem that while Invoicing, a certain Tax condition is not being executed.
    Thanks,
    Shalabh Jain

    HI Colleague,
    I will list the available user-exit to be used for Billing Document:
    User Exits For Billing
    USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ)
    The internal number range used in the standard system is specified in the billing type table and can be changed in this user exit. This user exit is only called when the billing documents is created.
    USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)
    In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMKCV (header fields).
    USEREXIT_ACCOUNT_PREP_KOMPCV (Module pool SAPLV60A)
    In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMPCV (item fields).
    USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)
    Depending on the number range, table TVFKD is used to set the billing date (country-specific requirments in Italy). USEREXIT_NUMBER_RANGE is automatically deactivated when this user exit is being applied.
    USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC)
    This user exit is only called when the billing document is created. It is used to provide the header and the item of the new billing document with deviating or additional data.
    USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB)
    Printing the item line of a billing document can be supplemented or changed.
    USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)
    Printing the header line of a billing document can be supplemented or changed.
    User exits in program RV60AFZD
    Short descriptions of the user exits are contained in the program:
    USEREXIT_RELI_XVBPAK_AVBPAK
    USEREXIT_NEWROLE_XVBPAK_AVBPAK
    USEREXIT_NEWROLE_XVBPAP_AVBPAK
    The following user exits are available in report SAPLV60B for transfer to accounting (function group V60B):
    EXIT_SAPLV60B_001: Change the header data in the structure acchd
    You can use this exit to influence the header information of the accounting document. For example, you can change the business transaction, "created on" date and time, the name of the person who created it or the transaction with which the document was created.
    EXIT_SAPLV60B_002: Change the customer line ACCIT
    You can use this exit to change the customer line in the accounting document. This exit is processed once the ACCIT structure is filled in with data from document header VBRK.
    EXIT_SAPLV60B_003: Change the customer line in costing
    The customer line is filled in differently for costing. You can use exit 003 to influence the ACCIT structure.
    EXIT_SAPLV60B_004: Change a GL account item ACCIT You can add information to a GL account item (such as quantity specifications) with this exit.
    EXIT_SAPLV60B_005: User exit for accruals
    Once all relevant data for accruals was entered in the GL account item, you can add to this data with this exit.
    EXIT_SAPLV60B_006: Change the control line ACCIT
    You can use exit 006 to add information to the control line.
    EXIT_SAPLV60B_007: Change the installment plan
    You can use exit 007 to add information to the installment plan
    parameters in the GL account item.
    EXIT_SAPLV60B_008: Change the transfer structure ACCCR, ACCIT and ACCHD
    After the accounting document is filled in with data, you can use exit 008 to change the document once again.
    EXIT_SAPLV60B_010: Item table for customer lines
    You can use exit 10 to influence the contents of customer lines before they are created.
    EXIT_SAPLV60B_0011: Change the parameter for cash account determination or reconciliation account determination
    You can use this exit to change inbound parameters in order to influence account determination.
    I hope that one of them could be helpful.
    Regards
    Ruy Castro

  • Extended Idoc - User exit for delivery VL01 and Invoice VF01

    Hi Experts,
    We are developing Extended Idoc for order - cash cycle.The extended Idoc contains 4 extra fields.
    I want to know the User exits where i can populate the extended segment field values for VL01 and VF01 transactions.

    HI
    exits available for  VL01.
    VMDE0004                                Shipping Interface: Message SDPACK (Packing, Inbound)
    VMDE0003                                Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0002                                Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0001                                Shipping Interface: Error Handling - Inbound IDoc
    V53W0001                                User exits for creating picking waves
    V53C0002                                W&S: RWE enhancement - shipping material type/time slot
    V53C0001                                Rough workload calculation in time per item
    V50S0001                                User Exits for Delivery Processing
    V50R0004                                Calculation of Stock for POs for Shipping Due Date List
    V50R0002                                Collective processing for delivery creation
    V50R0001                                Collective processing for delivery creation
    V50Q0001                                Delivery Monitor: User Exits for Filling Display Fields
    V50PSTAT                                Delivery: Item Status Calculation
    V02V0004                                User Exit for Staging Area Determination (Item)
    V02V0003                                User exit for gate + matl staging area determination (headr)
    V02V0002                                User exit for storage location determination
    V02V0001                                Sales area determination for stock transport order
    For VF01..
    Enhancement
    V61A0001                                Customer enhancement: Pricing
    V60P0001                                Data provision for additional fields for display in lists
    V60A0001                                Customer functions in the billing document
    V05N0001                                User Exits for Printing Billing Docs. using POR Procedure
    V05I0001                                User exits for billing index
    SDVFX011                                Userexit for the komkcv- and kompcv-structures
    SDVFX010                                User exit item table for the customer lines
    SDVFX009                                Billing doc. processing KIDONO (payment reference number)
    SDVFX008                                User exit: Processing of transfer structures SD-FI
    SDVFX007                                User exit: Billing plan during transfer to Accounting
    SDVFX006                                User exit tax line in transfer to accounting
    SDVFX005                                User exit reserves in transfer to accounting
    SDVFX004                                User exit G/L line in transfer to accounting
    SDVFX003                                User exit cash clearing in transfer to accounting
    SDVFX002                                User exit for A/R line in transfer to accounting
    SDVFX001                                User exit header line in delivery to accounting
    J_3RSINV

Maybe you are looking for

  • Regarding -ALV count in subgroup.

    Hi Experts, I am using ALV grid in my Report. I have 10 groups like 0-10 ,10-20,20-30,30-40............. and i have some records in each group. my problem is I have to count number of records per age group . i can subtotal it easily for salary field.

  • Error 7 occured at Open VI Reference in

    The error is actually displayed after each and every Printer VI like SetMagins, PageSize, AddField, CloseReport but NOT after the NewReport.vi Call!

  • Transaction in TaskFlow and locking

    Hello I'm using JDeveloper 11g 11.1.2.1.0 I came across strange (in my opinion) behaviour of the transaction option inside taskFlow: if taskFlow's transaction option set as something other than "<No Controller Transaction>" (for example, "Use Existin

  • Logical system Name Change Via Transport

    Hi All, Recently we made changes in parallel processing profile customizing table  (/SAPAPO/SDP_PAR) and created entries for Macro Jobs and CIF. For Application "CIF Delta Report", Logical system is mandatory and in Dev we gave the APO Dev Logical Sy

  • Saving dates in the database

    How do I save a date in the database? My code is as follows: int year = 2002; int month = 2; int day = 3; java.util.Date sdate = new java.util.Date(year, month, day); PreparedStatement ps = "INSERT INTO period_table(pe_start) VALUES (?)"; ps.setDate(