VF01/VF04 Custom enhancement

Dear Experts,
We got requirement where in we have to copy VF04 selection screen (<b>SCREEN #1</b>), add additional fields and filter output based on the selection criteria. Out put of this selection will be ALV out put <b>SCREEN #2</b>) where all line of sales order displayed only Quantity fields open for modification by user if they want to modify before creating billing document. In out put screen (<b>SCREEN #2</b>) user got 2 options ‘SAVE’ and ‘PRINT’. If Print then using VF31 report need to be outputted. If SAVE then I have to call either VF01 or VF04 to create billing document.
My issue is if I call any of <b>VF01/VF04</b> input parameters will be sales order no/Billing type/Billing due date. But if I pass this, values (quantity) changed by user in <b>SCREEN # 2</b> will not reflect in billing document it will pick all again from sales order and do as standard functionality does. So my question is how can I make VF01/VF04 pick up details from <b>SCREEN #2</b> and process accordingly. I know it’s bit confusing, but this is enhancement customer want. Thanks in advance. Let me know if any additional details required Any idea or directions if you can think how I can handle this requirement will be of great help.
Regards,
Tim

Hi Tim
you cannot influence the quantities to be invoiced in the way you describe. You only can make a full invoice of the preceding documents with some rules based on copy control in customizing.
It is dangerous to manually change the quantities in a user-exit, because SAP has a lot of addinitonal index tables which would be corrupted.
You can only print with VF31, when invoice is already created. So you need a third screen which shows all invoices   created by Screen2 where you can start printing.
Regards
Rauno

Similar Messages

  • VF01/VF04 user exit

    Heloo Gurus,
    I have a scenario where I need to copy some fields from shipment document (VT03N) into EIKP table at the time of Invoice creation. Transaction VF04/VF01
    Can you gurus help me with the appropriate user exit to be used?
    The process in as follows.
    Create Sales order VA01
    Create delivery VL01n
    create shipment VT01n
    Post goods issue VL02n (At this time some of the header details need to be updated in EIKP table)
    Invoice VF01/VF04
    Thanks
    Sunny

    Exits
    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

  • Custom Enhancement for IT207

    Hello Gurus!
    This is my first post so bear with me.  I am trying to update IT207 for Maryland (MD) counties using a custom enhancement in HRPAD00INFTYDB.  This is called when an employee changes the MD county in their Permanent Address in ESS.  I've done the same thing for IT210 using FM HR_ECM_INSERT_INFOTYPE with success, but when I use the same FM to update IT207 I get an error.
    ST22 Info                                                                               
    Error analysis                                                                               
    An exception occurred that is explained in detail below.                            
         The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not           
          caught in                                                                               
    procedure "ADD_MESSAGES" "(METHOD)", nor was it propagated by a RAISING clause.     
         Since the caller of the procedure could not have anticipated that the               
         exception would occur, the current program is terminated.                           
         The reason for the exception is:                                                    
         You attempted to use a 'NULL' object reference (points to 'nothing')                
         access a component.                                                                 
         An object reference must point to an object (an instance of a class)                
         before it can be used to access components.                                         
         Either the reference was never set or it was set to 'NULL' using the                
         CLEAR statement.                                                                    
    The program reads IT207 using FM HR_ECM_READ_INFOTYPE, loops at lt_p0207, updates the begda and taxar (Residence Tax Area), then runs FM HR_ECM_INSERT_INFOTYPE to create the new record.  This produces a dump (details above). The message that is being added is from message class PG, 204, and is only a warning. 
    If I only update the taxar (not the dates) the IT207 record is updated with the incorrect dates.
    I am running FMs HR_ECM_INITIALIZE_BUFFER and HR_ECM_ENQUEUE_PERNR prior to reading IT207.
    I have done extensive debugging of the enhancement ... I can manually skip the date check and it works fine.  After a number of debugging sessions, the update works fine ... but only until I log out and re log in.
    Any ideas on how to fix so that ADD_MESSAGES is not called?
    Thanks!
    Carl

    My issue has been solved!
    I had previously declared the message handler as:
            DATA:  lo_msg_handler TYPE REF TO if_hrpa_message_handler.
    The enhancement activate ok until a message was passed.  I found by changing the message handler to:
            DATA:  lo_msg_handler TYPE REF TO CL_HRPA_MESSAGE_LIST.
    If I didn't want to output the messages I could have declared it as:
            DATA:  lo_msg_handler TYPE REF TO CL_HRPA_DUMMY_MESSAGE_HANDLER.
    Next I instantiated the message handler:
           CREATE OBJECT lo_msg_handler.
    This was followed by my existing code:
          Initialize buffer
                    CALL FUNCTION 'HR_ECM_INITIALIZE_BUFFER'
                      EXPORTING
                        message_handler = lo_msg_handler.
          Enqueue Pernr (fixes context issue)
                    CALL FUNCTION 'HR_ECM_ENQUEUE_PERNR'
                      EXPORTING
                        pernr           = <new_p0006>-pernr
                        message_handler = lo_msg_handler
                      IMPORTING
                        is_ok           = lv_is_ok.
    I hope this might help others.

  • Error in Variable in Customer Enhancement

    Message  : Error Variable in Customer Enhancement YQVMTD
    I need To Create Customer Exit For Variable based on 0P_FPER (Fiscal Year Period).The user has to enter a value for Fiscal year/Period(0P_FPER).If the user is entering Current month(eg:July 2009) then the report should display Previous Month(eg:June 2009) .If user is entering months other than current month (eg: April 2009)  then the report should display April 2009 Data only.
    Special Case: If the System Date is Jan 2009(That is if Current Month is Jan 2009) then the report should display Dec 2008 Data.
    This is the exit in CMOD for the customer exit variable u2018YQVMTDu2019.  This variable in not ready for input.
    DATA :
                curfiscper TYPE /bi0/oifiscper,
          Curperiod(3) TYPE n,
          Curfiscyear(4) TYPE n,
      When u2018YQVMTDu2019.
       IF i_step = 2.
         READ TABLE i_t_var_range WITH KEY
         vnam = '0P_FPER'
         iobjnm = '0FISCPER'
          INTO l_s_var_range.
        if sy-subrc = 0.
             Concatenate sy-datum0(4) '0' sy-datum4(2) into curfiscper.
             If l_s_var_range-low = curfiscper.
                Curperiod = l_s_var_range-low+4(3).
                If Curperiod = '001'.
                   Curfiscyear = l_s_var_range-low(4).
                   Curfiscyear =  Curfiscyear - 1.
                   Concatenate Curfiscyear '012' into l_s_var_range-low .
                Else.
                   Curperiod = Curperiod - 1.
                   Concatenate l_s_var_range- low(4) curperiod into l_s_var_range-low. 
                EndIf.
              Else.
                 l_s_var_range-low = l_s_var_range-low.
             EndIf.
        l_s_range-sign = 'I'.
        l_s_range-opt = ' EQ '.
        APPEND l_s_range TO e_t_range.
        EndIf.
      EndIf.
    When i execute the query i am getting the following error:
    Error Variable in Customer Enhancement YQVMTD
    Diagnosis
    This internal error is a deliberate termination, since a program status has arisen, that is not allowed to occur.
    The error has arisen for variable YQVMTD in the customer enhancement .
    Procedure
    Please check your customer enhancement.
    Procedure for System Administration
      Notification Number BRAIN 649
    Please have a look into this and suggest me whether i need to change anything in the code in the exit.

    Hi Rathy,
       Yes I made the change at all places.
    When 'YQVMTD'.
    IF i_step = 2.
    LOOP AT I_T_VAR_range INTO l_s_var_range WHERE vnam = '0P_FPER'.
    Concatenate sy-datum0(4) '0' sy-datum4(2) into curfiscper.
    If l_s_var_range-low = curfiscper.
    Curperiod = l_s_var_range-low+4(3).
    If Curperiod = '001'.
    Curfiscyear = l_s_var_range-low(4).
    Curfiscyear = Curfiscyear - 1.
    Concatenate Curfiscyear '012' into l_s_range-low .
    Else.
    Curperiod = Curperiod - 1.
    Concatenate l_s_var_range-low(4) curperiod into l_s_range-low.
    EndIf.
    Else.
    l_s_range-low = l_s_var_range-low.
    EndIf.
    l_s_range-sign = 'I'.
    l_s_range-opt = ' EQ '.
    APPEND l_s_range TO e_t_range.
    Endloop.
    EndIf.

  • IS-RETAIL: How to update custom enhancement field using BAPI?

    Hi gurus,
    Like ECC BAPI: BAPI_MATERIAL_SAVEDATA,
    This BAPI(BAPI_MATERIAL_MAINTAINDATA_RT) is specific for IS-RETAIL to create and update material master data.
    But now If I append one custom field "ZFIELD" to end of table MARA, my question is how to update this custom enhancement field(ZFIELD) using BAPI(BAPI_MATERIAL_MAINTAINDATA_RT)
    Thanks in advance!

    Hi DongHai,
    I suggest you create your own BAPI. Just copy the codes in BAPI_MATERIAL_MAINTAINDATA_RT and add your custom fields. If you want to append the data of the custom field in table MARA, first, you have to create a structure table then goto SE11, type MARA and display. Click the APPEND STRUCTURE then choose the structure that you've created. Hope this will help.
    Rewards if useful
    Regards,
    Mark

  • Want to change customer enhancement tab name in CJ20N

    Hi Friends
    As per our requirement, we have created customer enhancement tab in CJ20N (project definition level).
    It shows the name as cust.enhancement, but as per our requirement we want to change the tab name.
    But we are not able to change that.
    if anybody come accross this type of scenario, kindly let me know.
    Thanks
    Gowrishankar
    Edited by: gowrishankar p on Mar 30, 2010 1:26 PM
    Edited by: gowrishankar p on Mar 31, 2010 9:39 AM

    Hi mithilesh,
    we can do it. but it may need access key. Find out the screen number and program name.
    Go to se51 and input the program name and screen number then select Layout ->display.
    click on that tab, move change mode then give the text what do you want.
    Give Points if useful.
    Regards,
    Jogesh.Mutyala

  • User exit at invoice creation Vf01/Vf04

    Heloo Gurus,
    I have a scenario where I need to copy some fields from shipment into EIKP table at the time of Invoice creation. Transaction VF04/VF01
    Can you gurus help me with the user exit to be used.
    The process in as follows.
    Create Sales order VA01
    Create delivery VL01n
    create shipment VT01n
    Post goods issue VL02n (At this time some of the header details need to be updated in EIKP table)
    Invoice VF01/VF04
    Thanks
    Sunny

    Hi Sunny
    Kindly check the link which will help you for your required user exits
    [https://wiki.sdn.sap.com/wiki/display/ERPLO/SDUserexits]       
    Regards
    Srinath

  • Custom Enhancement

    Hi All,
         I have a custom enhancement implementation.Though the Enhancement is active the code associated with the enhancement is not getting executed.
    Should the the Enhancement implementation necessarily be assigned to a switch for it to get executed.Please clarify.
    Regards,
    Roopa
    Edited by: Roopa R  on Jun 18, 2008 1:36 PM

    Hi Roopa,
    All the standard SAP Enhancements are seen in SMOD. Here we will be viewing all the components for the particular packages.
    After picking up the correct one that suits to our requirement we will go to CMOD, and create a ZXXX  customer project there. After that you will be importing the particular exit and click on the components tab respectively.
    For knowing that whether your enhancement is active or not you will be clicking on the function module exits and insert a break point over there. Inside the function module exits there will be includes. In that includes you will writing your code.
    For Ex: EXIT_SAPMM06E_006  in that include write     break username , by this that particular exit gets triggered for your ID only. Similarly you will be ruuning your transaction by giving some input details, so by this you will be checking for the exits.
    In the same way for BADI's also to find a exact BADI you will be creating an implementation on the interface tab there you will be finding number of methods. Inside the methods you will putting a break point and activate them.
    Then you will run your transaction.
    Cheers,
    Swamy Kunche

  • KEPM planning method "customer enhancement"

    Dear all,
    I want to use the planning method "customer enhancement" in transaction KEPM. The planning level has been defined as well as the corresponding planning package. I also activitated the user exit COPA0006 which is behind this enhancement.
    When executing the planning method no data are selected and as a result the user exit is not performed.  If I use the same planning package but a different method (e.g. copy) data will be selected and the method is executed.
    Does anybody have any experience with the user exit COPA0006?
    Thanks a lot in advance
    Best regards Dorothee

    It worked when I created ran the integration model for a Pur Info record. I guess this works only if we had a source list ( as briefly touched upon in the BADI documentation). If any one has a different take on it, please share with me and I will really appreciate it.
    Thanks.

  • SP13 / Personalization /  Customer enhancement fields

    Hello all,
    In SP13 personalization were extended:
    - It is possible to insert customer enhancement fields in views
    - Order of view elements can be changed
    - Personalization can be send via transport system
    I see it as significant improvement and would like to use it in our system. 
    But there are some questions.
    Normally I define with matrix layout columns and place in each column UI elements (MatrixHeadData).
    Column1          Column2          
    field1.1                 field2.1               
    field1.2                 field2.2
    cust.field          cust.field          
    Then I can insert customer enhancement fields in each column. It works fine.
    1. How can i deactivate custom fields at runtime? Can i bind properties to context? I assume customer fields are created after wddomodify.
    2. It would be also nice if I could switch declarative inserted fields in view between columns (containers).
    I hope that SAP will constantly extend personalization features. Short note from SAP people about intention for further development is welcome.
    Regards
    Paul

    Hi
    <u>I guess... Spelling is wrong here.. Its.. "HEADER" not "HEADR"</u>
    <b>Please look for the following Standard SRM structures for SUS using SE11 Transaction -></b>
    INCL_EEW_PD_HEADER_CSF_SUSASN  Customer Enhancements on SUS ASN Header       
    INCL_EEW_PD_HEADER_CSF_SUSCF   Customer Enhancements on SUS CF Header        
    INCL_EEW_PD_HEADER_CSF_SUSINV  Customer Enhancements on Invoice Header (SUS) 
    INCL_EEW_PD_HEADER_CSF_SUSPCO  Cust.Enhancements in SUSPCO Header            
    INCL_EEW_PD_HEADER_CSF_SUSPO   Cust.Enhancements in SUS PO Header           
    Do let me know.
    Regards
    - Atul

  • How to find out custom enhancements module wise

    Hi ,  
    How to find out custom enhancements module wise (sd, mm,hr,fico).

    Hi
    Enter Tcode SMOD.
    In the next screen click on F4 help for enhancements:
    A Pop-up will come .
    Click on SAP Application.
    You will get list of application .
    Just click on any of the nodes and you can see the enhancements for that module.
    Regards
    Neha

  • Q: How to expose EEWB custom enhancements via Web Service Tool

    How do you expose custom enhancements so that when Selecting Attributes (step 2) of web service tool, you will be able view your custom enhancements?  We are able to see the our enhancements via GENIL_MODEL_BROWSER.  However, the enhancements are not carried forward to the Web Service Tool, any pointer or help would be rewarded with points.

    Hi Michael,
    I have a similar requirement, just wanna know how did you solved this?
    Could you please share your solution?
    Thanks...
    //Abhishek

  • POSDM Customer Enhancements into BW

    Hi Gurus,
    We have some customer enhancement fields in POSDM which are not available in the SAP delivered Datasource 0RT_PA_TRAN_CONTROL. Because this data source is with in the BW and I donot know how to enhance the Data source.
    As per my understanding source for most of the data to this data source is from table  /posdw/TLOGS. but i could n't find those enhanced fields in that table.
    If any one have worked in this area can you please help??
    your suggestion helps me alot
    Thanks
    SR

    David,
    that depends on what you want to do with the same ? if you just want to display the same - extract the same into BI as a nav attr of the customer master

  • Customer enhancement AINT0002 for T095B-KTAUNG

    Hi,
    Do you know if it's possible to use customer enhancement AINT0002 for changing the Offsetting account: Revaluation of ordinary depreciation (T095B-KTAUNG) indicated in AO90?
    I need to specify a different offsetting account for a company group.
    Thanks in advance. Regards

  • The way do not change billing date in VF01/VF04

    Hi Dear.
    I hope to solve my problum.
    As I know...In Standard, When create a billing document, Goods Issue date is copied automatically. And user can be change the biling date.
    But sometimes GI date has a diffrent month to billing date by user's changing. So I want know the way not to change the billing date when make a billing document in VF01/VF04.
    How can I do it?
    Thanks for your answer!

    Hi,
    Check this userexit USEREXIT_NUMBER_RANGE_INV_DATE
    Regards,
    Saurabh

Maybe you are looking for

  • Rotate button in Tools in Acrobat pro 10 is not working?

    Hi All, I am a user of Acrobat pro 10  and I have been using the rotate button in tools to rotate objects in any direction (Clockwise, anticlowise and 180 clockwise). Just recently, I notice that I can't rotate objects to any direction. When I click

  • Question on if Airport Time Capsule is best type of backup to use

    New to having a Mac, just ordered a 27" iMac, loaded, with a G-Drive Raid for second drive, and for backup...I ordered the 3 TB Airport TIme Capsule...as I thought that might be good idea, but...second guessing it.      1.  Neither the G-Drive nor th

  • Need help installing premium element 13 photoshop

    i have installed elements 13 but I cannot install the premium part.

  • PSE is crashing - anytime, all the time

    I am using PSE9 on Windows 7; have been using the product for about 6 months. Recently added around 100 photos and since then Photoshop crashes all the time and for just about any or no reason at all.  At times the thumbnails in the organizer appear

  • ORA-12514 error with oracle11g

    I installed oracle11g under windows server 2008,it runs well for a long time,but recently,I find oracle11g can't run well.Oracle files is follows: listener.ora # listener.ora Network Configuration File: C:\oracle\Administrator\product\11.1.0\db_1\net