Enhancement in FM : RV_INVOICE_DOCUMENT_ADD

Hi,
  The    RV_INVOICE_DOCUMENT_ADD,  is a FM : use in T. code VF01, VF02, VF03 etc.  in this in our system we have added Enhancement point as
ENHANCEMENT 266  ZACCOUNTING_FILE_SAVE2.    "active version
  CALL TRANSACTION 'ZACCOUNTING'.
ENDENHANCEMENT.
this ZACCOUNTING is our customizin gtransaction which we have  use ,  now  i want to call this only if T. Code is VF02  for that i want to add the If condition in this enhancement block  ,  but as earlier the enhancment point is added when i check the previous request number in FM : RV_INVOICE_DOCUMENT_ADD  ,  THEIR IS NO REQUEST VERSION  SO i WANT TO kNOW  I can directly do the modification in  FM  OR is there any other code thorugh which i have to do the changes in enhancment point.
regards,
zafar

Hi,
Can you tell that how had you solved this issue?
Thanks

Similar Messages

  • Enhancement point in FM RV_INVOICE_DOCUMENT_ADD not updating ZUONR

    Hi,
    I am working with FM RV_INVOICE_DOCUMENT_ADD.
    inside the FM, I have an enhancement point rv_invoice_document_add_15 SPOTS es_saplv60a.
    Here I am setting the value of ZUONR by a custom value. This perhaps should update table VBRK for the corresponding VBELN.
    however, it is not updating..
    This is my code....
    zvbrk ] = xvbrk [.
    sort zvbrk by zukri.
    sort xvbrk by zukri.
    loop at zvbrk into k_vbrk.
    l_index = sy-tabix.
    k_VBRK-ZUONR = k_vbrk-zukri.
    k_vbrk-updkz = 'U'.
    modify xvbrk index l_index from k_vbrk transporting zuonr updkz.
    endloop.

    Hi,
    Can you tell that how had you solved this issue?
    Thanks

  • User Exit/BADI/Enhancement Point in VF01 after generating new billingdocno.

    Hi Experts,
    I am looking for a user exit/BADI/Enhancement point which will trigger in VF01 after generating  the new document no (Billing document no assign).  The Billing document no is generating in the FM  RV_INVOICE_DOCUMENT_ADD ( NUMBER_GET_NEXT).
    Now the Billing document no is generating like '0000152', i want to concatenate 'ECR' to the generated Billing document no and it should be updated like ECR0000152 in Billing tables (VBRK, VBRP).
    Kindly let me know is there any EXIT/BADI to achieve this functionality.
    Regards,
    Venu

    Hi Venu,,
        These are the enhancements and badis for vf01, please check which will be helpful to you,,
    <exit farm removed by moderator>
    <points begging removed by moderator>
           Warm Regards
            Zulfikhar Ali
    Edited by: Thomas Zloch on Oct 1, 2011 3:57 PM

  • Enhancements in Program SAPMV60A

    Hi!
    We' re running SAP R/3 4.7 Enterprise and would like to place some custom coding in program SAPMV60A after a new invoice has been persisted in tables VBRK and VBFA, which is done within function module RV_INVOICE_DOCUMENT_ADD via call of FM RV_INVOICE_REFRESH.
    Unfortunatly, we haven' t found an appropriate enhancement point - neither program exit nor BAdI-call - after the entries are made via COMMIT work as the last mentioned function module ends with
    IF with_posting CA 'CD'.
        COMMIT WORK AND WAIT.
      ELSEIF with_posting CA ' AB'.
        COMMIT WORK.
      ENDIF.
    Afterwards, no more enhancement possibilities were found.
    Has anybody got any idea how customer coding could be placed within this program after invoice creation?
    Any hints are appreciated!
    Regards,
    Thomas

    Hi,
    I am not sure if this information would help.
    Did you try the following user exits in function pool SAPLV60A
      include rv60afzz.                " FORM's Userexit's
      include rv60afza.                " FORM's Userexit's
      include rv60afzb.                " FORM's Userexit's
      include rv60afzc.                " FORM's Userexit's
      include rv60afzd.                " FORM's Userexit's
    You should be able to find an appropriate spot for your enhancement.
    Regards,
    Subramanian

  • Enhancement point in billing doc creation at invoice number generation

    I need to find an enhancement during billing document creation.
    This is my requirement.      Within function module RV_INVOICE_DOCUMENT_ADD, standard SAP determines the invoice number using Function Module NUMBER_GET_NEXT.  now, there is an enhancement point available immediately after the standard SAP invoice number has been determined.
    I need to find that enhancement point.
    Please advice what enhancement points are available at this point.
    Any advice is appreciated. Thanks in advance..

    Hi
    Here is a little program that when you type in the t-code it will give you all the user exits available.
    <Code>
    *& Report Z_FIND_USER_EXIT *&
    REPORT z_find_user_exit NO STANDARD PAGE HEADING.
    TABLES : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    TABLES : tstct.
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(30) text-001.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
    IF sy-subrc EQ 0.
      SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR' AND object = 'PROG' AND obj_name = tstc-pgmna.
      MOVE : tadir-devclass TO v_devclass.
      IF sy-subrc NE 0.
        SELECT SINGLE * FROM trdir WHERE name = tstc-pgmna.
        IF trdir-subc EQ 'F'.
          SELECT SINGLE * FROM tfdir WHERE pname = tstc-pgmna.
          SELECT SINGLE * FROM enlfdir WHERE funcname = tfdir-funcname.
          SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
                          AND object = 'FUGR'
                          AND obj_name EQ enlfdir-area.
          MOVE : tadir-devclass TO v_devclass.
        ENDIF.
      ENDIF.
      SELECT * FROM tadir INTO TABLE jtab WHERE pgmid = 'R3TR'
                          AND object = 'SMOD'
                          AND devclass = v_devclass.
      SELECT SINGLE * FROM tstct WHERE sprsl EQ sy-langu
        AND tcode EQ p_tcode.
      FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
      WRITE:/(19) 'Transactie Code - ', 20(20) p_tcode, 45(50) tstct-ttext.
      SKIP.
      IF NOT jtab[] IS INITIAL.
        WRITE:/(95) sy-uline.
        FORMAT COLOR COL_HEADING INTENSIFIED ON.
        WRITE:/1 sy-vline, 2 'User exit', 21 sy-vline , 22 'Omschrijving', 95 sy-vline.
        WRITE:/(95) sy-uline.
        LOOP AT jtab.
          SELECT SINGLE * FROM modsapt WHERE sprsl = sy-langu
            AND name = jtab-obj_name.
          FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
          WRITE:/1 sy-vline, 2 jtab-obj_name HOTSPOT ON, 21 sy-vline , 22 modsapt-modtext, 95 sy-vline.
        ENDLOOP.
        WRITE:/(95) sy-uline.
        DESCRIBE TABLE jtab.
        SKIP.
        FORMAT COLOR COL_TOTAL INTENSIFIED ON.
        WRITE:/ 'Aantal gevonden user-exits:' , sy-tfill.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(95) 'No user-exit Found'.
      ENDIF.
    ELSE.
      FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
      WRITE:/(95) 'Transactie code bestaat'.
    ENDIF.
    AT LINE-SELECTION.
      GET CURSOR FIELD field1.
      CHECK field1(4) EQ 'JTAB'.
      SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
      CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    <Code>
    Hope it helps.
    Regards
    Vic

  • Enhancement spot for updating header text in vf02

    Hi guys,
    my requirement is to update header text which is already existing in vf02 tcode. user can update the existing text and when he click on save button text should get updated.
    anybody please let me know the place where i can write my code.
    Thanks in Advance.
    regards
    satish

    hi yogendra,
    I have created an enhancement in RV_INVOICE_DOCUMENT_ADD but my code is not getting appeared in debugging mode and  nothing is working. can u please guide me on this.
    following the spot where i have written my code
    NHANCEMENT-POINT rv_invoice_document_add_14 SPOTS es_saplv60a.
    ENHANCEMENT 51  OIC_SAPLV60A.    "active version
    BREAK-POINT.
    WAIT UP TO 2 SECONDS.
    DATA: lv_name TYPE thead-tdname,
             lt_line TYPE STANDARD TABLE OF tline,
             lw_line TYPE tline.
         CLEAR: lv_name , lv_sgtxt.
           lv_name = bkpf-xblnr.
    CALL FUNCTION 'READ_TEXT'
         EXPORTING
           id                      = 'A002'
           language                = sy-langu
           name                    = lv_name
           object                  = 'VBBK'
         TABLES
           lines                   = lt_line[]
         EXCEPTIONS
           id                      = 1
           language                = 2
           name                    = 3
           not_found               = 4
           object                  = 5
           reference_check         = 6
           wrong_access_to_archive = 7
           OTHERS                  = 8.
       IF sy-subrc EQ 0.
         READ TABLE lt_line
           INTO lw_line
           INDEX 1.
          REPLACE ALL OCCURRENCES OF '<)>' IN lw_line-tdline WITH space.
         lv_sgtxt = lw_line-tdline.
       ENDIF.
    ENHANCEMENT 1  ZNARRATION_UPDATE.    "active version
    ENDENHANCEMENT.
    Regards
    satish

  • Enhancement spot for shipping point in VL10G tcode

    Hi All,
    we have created enhancement spot for shipping point in VL10G tcode & tested its working fine in foreground(Dialog) but didn't worked in BACKGROUND, its showing error log. 
    when we opened this error message its not having any error message in log. its coming blank in error field.
    so pls let me know your thoughts, why its happening?
    Thanks & Regards
    Nagendra / Biswa

    hi yogendra,
    I have created an enhancement in RV_INVOICE_DOCUMENT_ADD but my code is not getting appeared in debugging mode and  nothing is working. can u please guide me on this.
    following the spot where i have written my code
    NHANCEMENT-POINT rv_invoice_document_add_14 SPOTS es_saplv60a.
    ENHANCEMENT 51  OIC_SAPLV60A.    "active version
    BREAK-POINT.
    WAIT UP TO 2 SECONDS.
    DATA: lv_name TYPE thead-tdname,
             lt_line TYPE STANDARD TABLE OF tline,
             lw_line TYPE tline.
         CLEAR: lv_name , lv_sgtxt.
           lv_name = bkpf-xblnr.
    CALL FUNCTION 'READ_TEXT'
         EXPORTING
           id                      = 'A002'
           language                = sy-langu
           name                    = lv_name
           object                  = 'VBBK'
         TABLES
           lines                   = lt_line[]
         EXCEPTIONS
           id                      = 1
           language                = 2
           name                    = 3
           not_found               = 4
           object                  = 5
           reference_check         = 6
           wrong_access_to_archive = 7
           OTHERS                  = 8.
       IF sy-subrc EQ 0.
         READ TABLE lt_line
           INTO lw_line
           INDEX 1.
          REPLACE ALL OCCURRENCES OF '<)>' IN lw_line-tdline WITH space.
         lv_sgtxt = lw_line-tdline.
       ENDIF.
    ENHANCEMENT 1  ZNARRATION_UPDATE.    "active version
    ENDENHANCEMENT.
    Regards
    satish

  • Enhancement Sections

    Hi Dear all,
          when we release the billing document no. through tcode VF02 that time I want to move that document data in Z table automatically. For that I want to modify this inclue program  'MV60AF0B_BELEG_SICHERN' . Here in this program one function module is there having option of Enhancement Section that FM is 'RV_INVOICE_DOCUMENT_ADD'. So I implemented one enhancement section here but problem is that i wrote some code in enhancement section after this function mudule to update ztable and activated the enhancement. But when I set the debugger & check step by step by F5 code is working fine. But if I go directly without setting debugger that time Z table is not activating. Means everything is happening acoording to my logic in enhancement section whatever i wrote in Debugging mode only. But that code is not executing in normal mode. I am not getting what is happening exactly. Please help me and give some solution.
    Thanks & Regards.
    Pradip Pawar

    THANKS

  • Adjustment Tab in Enhancement

    Hi,
      In a std. FM we have done some coding in Enhancement,  when i clck on on that Engancement  there is one adjustmne tab  staus  in red  details as given below
    @0A\QManual Adjustment@       END     Modularization unit has changed     SAPLV60A     LV60AU02     Function Module     RV_INVOICE_DOCUMENT_ADD     0,
      WHAT ERROR is this  on clikc on long text details is as given below
    Help with conflict that has occurred
    Conflict Short Text
    The modularization unit has changed.
    Why has this conflict occurred?
    The enhancement definition was created in a different modularization unit (method, function module, subroutine, module, ...). This can mean that your enhancement implementation at the new coding position is no longer appropriate.
    How can the conflict be resolved?
    Check whether your implementation at the new coding position is still appropriate.
    Reset your implementation, if necessary.
      what action i need to perform
    regards,
      zafar

    Hi Zafar,
    When you click on the conflict button. you may get an option to undo the chages.
    Undoing all the changes will delete your development.
    To adjust the enhancement..you try first undoing and then activate and then redo all teh implementation.
    You can copy your code beofre undo.
    Hope this helps.
    Regards,
    Kamini Rawat

  • Enhancement point debugging...

    Hi Friends,
       I want to enhance the standard function module RV_INVOICE_DOCUMENT_ADD. I have saw some implementations are already made to the function module. I tried to see the spot in debugging but I am not able to see the codings in the enhancement. But the module is in active state and the enhancements are in active state. But I am not able to find them in debugging. How to see those codings in debugging....
      Please help me.
      Thanks

    Hi,
    In the FM between the lines ENHANCEMENT and ENDENHANCEMENT you can see the code
    For eg: in the FM 'RV_INVOICE_DOCUMENT_ADD' there is
    a line
    "ENHANCEMENT 208  OIC_SAPLV60A."
    The coding inside that enhancement is :
        CALL FUNCTION 'RV_INVOICE_REFRESH'
          EXPORTING
            with_posting = 'F'
          TABLES
            XOICQ7       = XOICQ7                      "SO6K009187 AWH
            XOICQ8       = XOICQ8                      "SO6K009187 AWH
            XOICQ9       = XOICQ9                      "SO6K009187 AWH
            XOIUQ9       = XOIUQ9                      "SO6K009187 AWH
            xkomfk       = lt_xkomfk
            xkomv        = xkomv
            xthead       = xthead
            xvbfs        = xvbfs
            xvbpa        = xvbpa
            xvbrk        = xvbrk
            xvbrp        = xvbrp
            xvbss        = xvbss.
    ie, the lines b/w enhancement and endenhancement is the coding in it.
    Regards,
    Soumya.

  • Enhancement to a cube

    Hi Gurus
    I am working on BI 7 and as per a requirement i had to add 2 fields i.e calmonth(0CALMONTH) & a key figure namely document number (0CRM_NUMDOC) to a cube, now in tranformation calmonth is being mapped to a field in the DSO name of the field being, date field(0CRM_CRD_AT) and the key figure is being mapped with field of the same name in the DSO.After adding the fields to the cube and performing the full load i do not see the result for all records of the 2 fields that were loaded in the cube.kindly suggest..points will be hansomely awarded

    Hi Sharma,
    As u said the fields to be added to the cude, in this case the DS is already having this fileds and not mapped at the intal satage of mapping....????
    Can you check in RSA3 whether these fields that you have added does contain the Data for this perticluar Datasource.
    If you have enhanced the data source then u have to chek at the source system level itself.
    Since you are using BI.7 the DTP method then there is only 1 place that you map is in Tranformations.
    In this place it is direct map and 0CALMONTH if you map to any data field it will take the conversion automatically.
    Same way the Key field also if it is a direct field then it has to come.
    Best Regards,
    VNK.

  • Enhance MR11

    Hello Gurus ,
    I am trying to enhance MR11 Transaction (Report : SAPRCKM_MR11) .  Here i am adding GR  and  IR  posting date(BUDAT)  as selection field  .
    Requirement is that MR11 should consider  Gr and IR for that period.. compare and show the difference .
    In the program
    I added posting date(BUDAT)  in the select query to  'v_ckmlgrir' .  and it is picking all the records with in that period , open and cleared both .
    1)   But I want only the open one .....and I dont see any flag for that ....so is there any way i can get only the open items ?
    2) I observed that if i dont specify posting date ...I mean just run the standard MR11 ...then also it picks up open and cleared items ....but during processing it is considering open only don't know why ..i debugged it  its going through every item item but in the end considering open only which is correct ....so not understanding why its not doing the same if i restrict it to posting date .....
    any suggestion is greatly appreciated !!
    PS : GR/IR account   open items I can see from FBL3N .

    If you are using an account assigned PO then possibly the order(PM order, internal order etc) to which your PO refers might have status as CLSD.
    Check and reverse the status.

  • Extractor 0FC_BP_ITEMS - Business Partner Items Enhancement

    I'm looking at using 0FC_BP_ITEMS extractor to extract Open and cleared items. Has anyone worked on the enhancement of this extractor. If so what are the steps involved in enhancing this extractor?  Is it similar to the Full load extractor 0FC_CI_01 and 0FC_OP_01. Any help will be great.

    Hi,
    Please have alook in help.sap.com- Netweaver- BI Content-FICA.
    This is not same as those two datasources which you mentioned. This datasource will give you delta records.
    Regards,
    Asish

  • What is new in Enhancement Package 2 and 3

    Hi all,
    The [ERP Solution Browser|http://solutionbrowser.erp.sap.fmpmedia.com/] is an excellent tool to find out, what's new. However I did not find any means to get a list of new features in ERP 6.0 enhancement packages 2 and 3. Any hint (especially what's new in HCM) is welcome!
    Regards
      Matthias

    Hello Matthias,
    check out Service Marketplace, alias ERP-EhP to find out what's being delivered as part of an Enhancement Package:
    http://service.sap.com/erp-ehp (logon required).
    Basically, it provides the following:
    link to SAP Enhancement Package Infocenter to understand the content based on functional domain, e.g. HCM.
    documentation on
    - EhP concept and strategy
    - overview presentation SAP ERP EhP 2 and 3
    - detailed presentation SAP ERP EhP 2 and 3
    - preview SAP ERP EhP4
    - how to implement EhP ("Must know guide for IT professionals")
    - test case templates
    - links to other useful resources (e.g. ERP solution map, media library, functional areas)
    Hope this helps!

  • Create a new view in a enhance component

    Hi All,
              I want to create a new view for sales order and quatation in a component BP_factsheet.When i craete new view ,it is asking about some value like model node, bol entity, higher level, bol realtion.after that is is asking context node ,bsp application ,custome controller and view type.How can i get these value .when i create a new view then have to add these view in run time repositry under a window or not?
    Thanks in advance....
    Vishwas

    Hello Vishwas,
    You might be interested in knowing how to customise the new UI to add a new view using the enhancement concept.
    Please refer to the published document on the service marketplace:
    http://help.sap.com/saphelp_crm60/helpdata/en/1a/023d63b8387c4a8dfea6592f3a23a7/frameset.htm
    refers to the link at
    service.sap.com/okp
    Inside this go to:
    SAP CRM 2006s: Learning Map for Technology Consultants
    wherein you can find the cookbook to perform similar operation in detail.
    SAP CRM UI Cookbook
    I hope this helps.

Maybe you are looking for

  • Error while uploading a PAR file

    Hi All, I'm having an error when i try to upload a PAR file from Portal>Java Development>Development The strange is that i am having the error in QA environment, in development environment i can upload it without any problem, and also it is not the f

  • How to change the date format  YYYYMMDD to MM/DD/YYYY

    Hi , How to change the date format  YYYYMMDD to MM/DD/YYYY . Ex :  20071008  to 10/08/2007 Is there any function module for this ?? Regards Rahul

  • Search API payment update!

    I can't figure out how to change a credit card for the payment for Bing Search API, please help!

  • Struggling to run JSP on WebSphere Application Server

    Hi, where must I place a JSP (very simple stand alone JSP which is not even part of a web application) file on WS Application Server (V 3.5.4) so that it can be executed from a web browser (e.g. http://xyz.com/.../.../myfile.jsp). I have gone through

  • Partition nicht löschbar?!

    Hallo liebe Community! Ich habe ein großes Problem und zwar, ich habe mit Boot Camp eine Windows 7 Partition installiert, ging alles reibungslos. Jedoch bemerkte ich das ich einen Fehler bei der Installation der Windows Partition machte und wollte di