Userexit in invoice

Hi,
Could anyone lead me to a userexit, which is invoked before an invoice is saved. I have to save some data in ZTables, when an invoice is saved. It would be really helpful if someone could point me to one, where I can write my logic. Thanks in advance.
Regards,
Vijay

Hi Vijay,
EXIT_SAPLV60B_001
EXIT_SAPLV60B_002
EXIT_SAPLV60B_003
EXIT_SAPLV60B_004
EXIT_SAPLV60B_005
EXIT_SAPLV60B_006
EXIT_SAPLV60B_007
EXIT_SAPLV60B_008
EXIT_SAPLV60B_010
EXIT_SAPLV60B_011
Thanks,
Murali.

Similar Messages

  • How to debug outbound Idoc function module for invoice

    I have to debug the outbound IDOC function module and UserExit for invoice message type INVOIC, process code SD09, function module is IDOC_OUTPUT_INVOIC and user exit for the function module LVEDF001.
    I tried putting the break point in function module IDOC_OUTPUT_INVOIC and recreate the IDOC using WE19 but it creates the idoc but does not stop at the break point. I have also tried generation of idoc through VF02. It again creates the idoc but does not stop at the function module.
    Please let me know if I am missing any thing and not doing it right.
    Appreciate your help.
    Rohit

    Hi Ali,
        I faced the same problem. Thing is the break point is not getting triggered when i ran tha IDOC through WE19.
    What i have done is i created a project for my exit in CMOD and kept some junk code in the exit and executed it through BD21. Then the Break point got triggered. See if it works.
    Regards,
    Uday S.

  • Problem in  Number range Interval in VF02

    Hi All,
         I am using Number range USEREXIT for invoice creation- VF01.
    So, while creating invoice, userexit will trigger, as per our logic provided,system generating numbers as expected.- which is working fine.
    Where as, in VF02, transaction , i was trying to release invoice to Accounting,
    system prompts with the below error message.
    Fyi, in my invoice doc type: Number range- interval-19, which has numbers mentioned in the error message below:
    am expecting, that when i release invoice to accounting from VF02 transaction, system triggering number range from invoice doc type,- But I dont understand, why it is triggering number range interval again, for which number is already createed in VF01
    Error Message:
    Incorrect doc.no.: 9003000002. Select document number between 0090000000 and 0094999999
    Can someone, have any inputs??
    Thanks in advance

    Hi,
    You can make use of exit userexit_number_range  inside RV60AFZZ.
    Regards,
    Babul.

  • Stock Avaliability Before Billing

    I want the system to automatically check stock quantity when Billing so that i won't over bill the customer or sell what i dont have. eg i have 20 cartons of vimto (Finished Product) in stock and unknowing to me i have raised sales order for 21 cartons and also Billing. My question is how can the system stop the Billing since i dont the quantity the customer requested for. Please am using Value Contract

    Hi,
    If I understand, you want to invoice the SO before you delivery it.
    I suggest you better that availability is that you check the availability for the sales order in table VBBE. You can manage it with any userexit for invoice, so, if you dont have enougth availability you can set an abbend error.
    I hope this helps you,
    Regards,
    Eduardo

  • Userexit For TCODE J1IJ depot excise invoice

    hi
    I want to know is there any userexit for depot excise invoice. That we can use to check weather excise entry date that is (J_1IRG23D-CPUDT) is equal to likp-WADAT_IST . Any info will be really helpful.
    Thank you

    Hi,
    Use this program SAPMJ1IJ in this program there are 4 includes.
    First try with  MJ1IJF01
    So check with your abaper which exit is working in this include.you can do it by setting break-point.
    Also check other includes MJ1IJTOP  MJ1IJO01  MJ1IJI01
    Thank you,

  • Userexit for Payment block invoice in MIRO/MIR7/Mrrl

    Hi All,
    In an purchase order invoice the the Payment block is defined at coompany code. My requirement is to define it at more granular level like at level of item category. For certain item categories I have to avoid the tolerance date check of paymeny block from getting triggered. Is there any userexit which allows to define the tolerance check for line items at item category level.  (MIRO/MIR7/MRRL transactions)
    Case here is: The delivery date entered in PO is dated as 3 months later. Entry  sheet generated also shows the date as 3 months later. But the invoices are generated on monthly basis. So those invoices for which the delivery date of PO &entry sheet is not reached, automatically goes to Live Payment Block. The payment block  on invoice has to be manually released.
    Is there any other way to stop invoice from going to payment block.
    I did changes in exit EXIT_SAPLMR1M_001 which has item category field. But this exit is not triggering always. On few cases it triggers.
    I would appreciate any help on this. Thanks.

    hi,
    do use imlicit enhancement in the function module
    MRM_FINAL_CHECK in this the line item details will be populated t_drseg table...........

  • Need Userexit/Badi after save while creating invoice at VF01

    Hi expert,
    Can anyone tell me which BADI / USEREXIT i can use for update the custom table
    after save while creting invoice at VF01.
    Regards,
    Manasi

    Manasi,
    from next time onwards please post it in relevant forums
    for now check these links
    USSER-EXIT creating the invoice in VF01
    Re: user exit at invoice creation Vf01/Vf04
    VF01/VF04 user exit
    Thanks
    Bala Duvvuri

  • Userexit for billing documents vs Excise invoice --

    Hi
    i am canceling the billing document (VF11) with reference to excise invoice
    in this case i am using the sap standard program RV60BFZA
    but for some invoice , its triggering , but some invoice , its not triggering
    so i cant use that program
    any other badi / User exit available to control of billing documents Vs Excise invoice
    transction access is VF11

    Hi,
    Use this program SAPMJ1IJ in this program there are 4 includes.
    First try with  MJ1IJF01
    So check with your abaper which exit is working in this include.you can do it by setting break-point.
    Also check other includes MJ1IJTOP  MJ1IJO01  MJ1IJI01
    Thank you,

  • J1IIN Create Factory invoice thr BDC-UserExit  J_1I7_USEREXIT_DUTY_IN_EXIT

    Hello All,
    Using BDC I am trying to create a factory exicse invoice as below:
        PERFORM bdc_dynpro      USING 'SAPMJ1IIN' '1000'.
        PERFORM bdc_field       USING 'BDC_OKCODE' '=ECRT'.
        PERFORM bdc_dynpro      USING 'SAPMJ1IIN' '0150'.
        PERFORM bdc_field       USING 'BDC_OKCODE' '/00'.
        PERFORM bdc_field       USING 'BKPF-BUDAT' l_sy_date.
        PERFORM bdc_dynpro      USING 'SAPMJ1IIN' '0400'.
        PERFORM bdc_field       USING 'BDC_OKCODE'  '=SAVE'.
    * Call transaction for factory exise invoice creation
        CALL TRANSACTION 'J1IIN' USING t_bdcdata
                                 MODE g_mode
                                 MESSAGES INTO t_bdcmsgcoll.
    Now, My Requirement is : To use the user exit J_1I7_USEREXIT_DUTY_IN_EXPORT
    to redetermine the exicse type based on some criteria.
    I am calling this BDC lines of code in a funtion module. Where should I include this user exit.?
    Do I need to call this user exit explcitly in my Funtion module or chnaging this user exit alone will solve my problem?
    Please help me on this.
    Regards,
    Vijaya

    Hi ,
    As Mr.Lakshmipathi told please post in ABAP form . I have a little doubt.
    To use the user exit J_1I7_USEREXIT_DUTY_IN_EXPORT to redetermine the exicse type based on some criteria.Please explain some more.Why user exit on BDC?
    Regards,
    Madhu.

  • Userexit in the idoc invoice

    hi experts,
    i have a requirment like that , our client sending the invoices through idoc.
    my requirment is that, in  the invoice now the name of the payer is printing ,but in that place it should  print the contacat person name.
    could u please tell me any what is the process to do that ,
    iam new to IDOC.
    Thanks .

    Check the below points,
    1. Check the internal table IDOC_DATA in MASTER_IDOC_DISTRIBUTE in debug mode whether the segement with values are populated.
    2. Are you populating the parent & hierarchy level in segment, if yes check whether the values are right one.
    3. There may be a possiblity the std SAP code would delete the custom segment if its any syntax error in segment defenition.
    Check this and if you still have the issue come back.

  • VT02N - do PGI and Invoice for certain deliveries either based on certain conditions

    Hi Friends ,
    We are using VT04 for creating shipments . While shipment completion stage in VT02N   an activity profile has been maintained  which does both the Goods issue and Invoice.
    We have a business requirement , PGI and Invoice should be created only for specific set of deliveries based on certain conditions.
    Is there any standard way to do this or by using user exits.
    Please guide.
    Thanks,
    Nileshsa.

    what about adding a check in userexit RV60AFZZ, when the condition is not met during invoice creation, error out and disable the creation of the invoice document?

  • Excise and cess values disabled after saving excise invoice.

    Hi,
    We have a scenario where we do export under ARE1 form . My issue is as below.
    The values BED, ECS, and SECess are now getting captured duting creation of excise invoice J1iin but they turn to 0.00 once i save the excise invoice.
    we have created a bond and want to utilize against the bond unable to utilize .
    I am able to generate ARE1 also but with zero values which is of no use.
    So the exact issue is that table J_1IEXCHDR is not getting updated.
    Also i need a confirmation whether during export the values of excise and cess shall be available in both excise invoice and ARE1. Has anyone worked on similar scenario.
    Vivek

    Hi Vivek,
    If the excise values are becoming 0.00 during j1IIN.
    You can use the userexit J_1I7_USEREXIT_DUTY_IN_EXPORT and pass the field
    SUPPRESS_CALCULATION value as 'X'. This problem will be solved.
    Brinda

  • Check during Excise Invoice J1IIN

    Check during Excise Invoice J1IIN
    While using J1IIN transaction for excise i want to check the posting date entered by the user with the
    actual GI date during PGI ... so i try to find badi or user exit called when we click  form billing and enter billing doc and posting date in J1IIN transaction , but i could not find any enhancement ,  please suggest me any badi/userexit or what shud i do apply this check.
    The check is that excise posting date shud note be greater than actual PGI date .
    Ankesh

    Hi Ankesh,
    You can use this function module - J_1I7_USEREXIT_EXCISE_BEF_SAVE

  • How do automate using two output types in an invoice based on plant

    Hello,
    Can you tell me how to configure automatically two output types for the same invoice.
    My client has business in USA and Europe.We are using only one sales organization. But we need to print invoices in letter size and A4 size depending on whether the invoice is created in europe or in USA. So , I have created two output types, one for letter size and one for A4 size. How do I configure so that if it is based in a plant/shipping point in Europe it is printed using the A4  output type else in letter size. Please suggest.
    SAPSDUSER

    I do not think you can use plant/shipping point in your access sequence for invoice output on header level, unless you add these fields to header level kommunication structure and populate these fields in userexit.
    You can either
    1. define requirement routines for your 2 output types which are mutually exclusive (if plant = A routine 1 returns sy-subrc = 0, routine 2 returns sy-subrc <>0, if plant = B routine 1 returns sy-subrc <>0, routine 2 returns sy-subrc = 0). You can assign requirements to output type either in output determination procedure OR in the access sequence. I would do it in output determination procedure. Check transactions NACO or NACE.
    OR
    2. add your fields to komkbv3 communication structure, populate your fields in thsi structure in userexits which are called from the function module komkbv3_fill and then you can either use then in the access sequence for your output types or create routines as in case 1. but the logic will be a simple check statement since KOMKBV3 is available in these routines.
    3. In fact you can use one output type and select your layout in the print program itself... which may be even easier for you. We use this approach to select proper layout for GEOs which may have several layouts depending on region for example... so the output type is defined per country, then layout is selected by print program. (tnapr-fonam = ..., nast-spras = proper language, set country '' to use proper decimal & date format...)
    Message was edited by:
            Siarhei Mahulenka

  • User Exit for saving Invoice

    Hi Experts,
    My req, is I have to check billing date with order date/ delivery date while creating the invoice in VF01.
    For that I have done codig in user exit RV60AFZZ, so it gives error ,but the billing date field get disable.
    & this invoice no. alsp get created.
    So can anybody plz tell me in which user exit i have to put my code ???
    I have tried with RV60AFZC.But it is not working.
    My code is
    FORM userexit_pricing_prepare_tkomp.
    *  TKOMP-zzfield = xxxx-zzfield2.
    * structure for vbak
    TYPES:BEGIN OF ty_vbak,
          vbeln TYPE vbak-vbeln,
          audat TYPE vbak-audat,
          END OF ty_vbak.
    *likp structure
    TYPES:BEGIN OF ty_likp,
          vbeln TYPE likp-vbeln,
          lfdat TYPE likp-lfdat,
          END OF ty_likp.
    *vbrp structure
    TYPES:BEGIN OF ty_vbrp,
          vgbel TYPE vbrp-vgbel,
          vgpos TYPE vbrp-vgpos,
          aubel TYPE vbrp-aubel,
          aupos TYPE vbrp-aupos,
          END OF ty_vbrp.
    DATA:it_vbak TYPE STANDARD TABLE OF ty_vbak,
         it_likp TYPE STANDARD TABLE OF ty_likp,
         it_vbrp TYPE STANDARD TABLE OF ty_vbrp.
    DATA:wa_vbak TYPE ty_vbak,
         wa_likp TYPE ty_likp,
         wa_vbrp TYPE ty_vbrp.
    ***** take reference document no & delivery no. *****
    LOOP AT xvbrp.
      wa_vbrp-vgbel = xvbrp-vgbel.
      wa_vbrp-vgpos = xvbrp-vgpos.
      wa_vbrp-aubel = xvbrp-aubel.
      wa_vbrp-aupos = xvbrp-aupos.
      APPEND wa_vbrp TO it_vbrp.
    ENDLOOP.
    IF it_vbrp IS NOT INITIAL.
    SELECT vbeln audat FROM vbak
          INTO TABLE it_vbak
          FOR ALL ENTRIES IN it_vbrp
          WHERE vbeln = it_vbrp-aubel.
    SELECT vbeln lfdat from likp
           INTO TABLE it_likp
           FOR ALL ENTRIES IN it_vbrp
           WHERE vbeln = it_vbrp-vgbel.
    ENDIF.
    **** check for invoice date with order date *****
    LOOP AT it_vbak INTO wa_vbak.
      IF xvbrk-fkdat IS NOT INITIAL AND xvbrk-fkdat < wa_vbak-audat.
        MESSAGE 'Invoice Date is less than Order Date' TYPE 'E'.
      ENDIF.
    ENDLOOP.
    **** check for invoice date with delievery date *****
    LOOP AT it_likp INTO wa_likp.
      IF xvbrk-fkdat IS NOT INITIAL AND xvbrk-fkdat < wa_likp-lfdat.
        MESSAGE 'Invoice Date is less than Delivery Date' TYPE 'E'.
      ENDIF.
    ENDLOOP.
    ENDFORM.                    "USEREXIT_PRICING_PREPARE_TKOMP
    Thanks & Regards,
    Anagha Deshmukh

    Hello,
    These are the user exits for the tcode.
    J_3RSINV            Export sales
    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
    Keep the break point and try in the debugging in each and every exit and see which user exit is triggred.

Maybe you are looking for

  • Ojdbc14.jar API and Oracle Database Version

    Hi Im using ojdbc14.jar for accessing an oracle 10G database. Im trying to troubleshoot an exception - java.sql.SQLException: Parameter Type Conflict that seems to get thrown by the method - OraclePreparedStatament.processCompletedBindRow I have a co

  • I am unable to send pdf files as an attachment using Adobe Send.

    Adobe Send opens Entourage for my email which I no longer use and is in fact defunct, consequently I keep getting "Error" message from Adobe. I want Adobe Send to use Outlook but cannot find how I can make Adobe Send choose Outlook instead of Entoura

  • Sun Blade 150 Hard Drive Support

    Hello, We are upgrading our Sun Blade 150 server. I was keen on knowing if it would support two separate 80 Gb hard-drives which effectively increase its capacity to 160. Thanks, Vijay

  • Installing iTunes with Windows XP Professional

    When I try to install iTunes on my computer, it tells me I have to have Windows XP SP2. But I have windows XP. Is there a different version of iTunes that will accomodate my operating system? Any help would be greatly appreciated.

  • Complete a JComboBox in netbeans

    Hi! I need to complete the info that a JCombobox shows when it is click? How do i do that? I tried: jComboBox1.addItem("Host Master Key"); jComboBox1.addItem("Main Communication Key"); jComboBox1.setSelectedIndex(0); But it doesn�t work, when i execu