Vf01 Authorisations

Hi friends,
i am facing a peculiar problem. when i try to save an invoice then a duplicate entry for billing plan is added in FPLTC table. the only diffrence betwen this entry and the previoius entry is the Billing plan number and "High level authorisation field". it is 900001.
Can somebody tell what are the steps while saving the invoice and what kind of authorisations happen.. I think it is happening because of high level auth.
i want to stop this from happening. what should i do.

Hi
See this info regarding authorization and implement it with the help of a basis person to solve your problem
In general different users will be given different authorizations based on their role in the orgn.
We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
USe SUIM and SU21 T codes for this.
Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
This means you have to allocate an authorization object in the definition of the transaction.
For example:
program an AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT <authorization object>
ID <authority field 1> FIELD <field value 1>.
ID <authority field 2> FIELD <field value 2>.
ID <authority-field n> FIELD <field value n>.
The OBJECT parameter specifies the authorization object.
The ID parameter specifies an authorization field (in the authorization object).
The FIELD parameter specifies a value for the authorization field.
The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
You program the authorization check using the ABAP statement AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
ID 'ACTVT' FIELD '02'
ID 'CUSTTYPE' FIELD 'B'.
IF SY-SUBRC <> 0.
MESSAGE E...
ENDIF.
'S_TRVL_BKS' is a auth. object
ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
This Authorization concept is somewhat linked with BASIS people.
As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
Take the help of the basis Guy and create and use.
<b>Reward points for useful Answers</b>
Regards
Anji

Similar Messages

  • Authorization problem with VF01 "Create Billing Documents"

    Dear All,
    We face following problem with VF01 "Create Billing Documents".
    Transaction: VF01
    User: Joe
    Authorization of Joe:
         VKORG Sales Organization: A, B (authorization object V_VBRK_VKO)
         FKART Billing Type: 1, 2 (authorization object V_VBRK_FKA)
    The objective for Joe:
       Joe is qualified to create bills in
          sales org A only for billing type 1 and in
          sales org B only for billing type 2.
       Joe should not be able to create bills for
          sales org A with billing type 2 and in
          sales org B with billing type 1.
    How can we solve this problem?
    We already searched for userexits without any success.
    Any help or ideas are very appreciated.
    Regards
    Markus Wilhelm
    Project Manager ERP

    Dear,
    There are standard authority-checks based on Sales organization (authorisation object V_VBRK_VKO) and/or Billing type (V_VBRK_FKA).
    An option would be to create a new billing type, define specific authorisations and use the new billing type for these documents.
    The bad thing is that you would also need a special (new) sales order type, because the billing document type is unique per sales order.
    So maybe it is easier to have a different sales organization.
    Another option would be to create a new authorization object and check it in the billing documents.
    If you wish, you could modify program LV60A005 & LV60A006.
    Then you might check various user/customer exits.
    Some functions to check: EXIT_SAPLV60A_001/002,
    EXIT_SAPLV60B_001 - 008, EXIT_SAPLV60B_010 - 011.
    Regards,
    R.Brahmankar

  • VF01 - VF03

    Hello !!
    I have to add additional authorisations for transaction VF01,VF02,VF03.
    Is there any common user exit for that transactions i can use to fill my authorisations ??
    BR, Jacek

    I have checked that exit before.
    I have solved problem on my own.
    Exits RV60AFZ* are used on the begining of the transaction only for VA01, for VA02 VA03 an action on that transaction must be done, so i used RV60AFZC for VA01 and i have made field exit for vbeln field for transactions VA02 and VA03.
    BR, Jacek

  • Exits in VF01

    Hi All,
    I need to add a date field in VF01 transaction.
    Can anyone suggest which exit can i use for this? Pls explain fully as i am new to Exits.
    What is the procedure to add a field and what code is to be written?
    Full points will be rewarded.
    Thanks in advance.
    Naba.

    n.saha,
    These are the screen exits for VF01  map with your requirement.
    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
    Business Add-in
    SD_CIN_LV60AU02 BADI for billing
    VOR_WA_FAKTURA Billing before Goods Issue
    Process...
    Step by Step   user exits.
    User exits
    1. Introduction
    2. How to find user exits
    3. Using Project management of SAP Enhancements
    1. Introduction
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to
    a functionmodule. The code for the function module is writeen by the developer. You are not writing
    the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:  EXIT_<program name><3
    digit suffix>
    The call to a functionmodule exit is implemented as: CALL CUSTOMER.-FUNCTION <3 digit suffix>
    Example:
    The program for transaction VA01 Create salesorder is SAPMV45A
    If you search for CALL CUSTOMER-FUNCTION i program SAPMV45A you will find ( Among other user
    exits):
    CALL CUSTOMER-FUNCTION '003'
    exporting
    xvbak   = vbak
    xvbuk   = vbuk
    xkomk   = tkomk
    importing
    lvf_subrc = lvf_subrc
    tables
    xvbfa = xvbfa
    xvbap = xvbap
    xvbup = xvbup.
    The exit calls function module EXIT_SAPMV45A_003
    2. How to find user exits
    Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT
    If you know the Exit name, go to transaction CMOD. Choose menu Utillities->SAP Enhancements.
    Enter the exit name and press enter.
    You will now come to a screen that shows the function module exits for the exit.
    3. Using Project management of SAP Enhancements
    We want to create a project to enahance trasnaction VA01
    Go to transaction CMOD
    Create a project called ZVA01
    Choose the Enhancement assign radio button and press the Change button
    In the first column enter V45A0002 Predefine sold-to party in sales document . Note that an
    enhancement can only be used i 1 project. If the enhancement is allready in use, and error message
    will be displayed
    Press Save
    Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002.
    Double click on the exit.
    Now the function module is displayed. Double click on include ZXVVAU04 in the function module
    Insert the following code into the include: E_KUNNR = '2155'.
    Activate the include program. Go back to CMOD and activate the project.
    Goto transaction VA01 and craete a salesorder. Note that Sold-to-party now automatically is "2155" .
    A Short Tutorial on User Exits
    Content Author: Abhishek
    User exits :
    1. Introduction
    2. How to find user exits
    3. Using Project management of SAP Enhancements 
    1. Introduction:
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is: 
    EXIT_<program name><3 digit suffix> 
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    Example:
    The program for transaction VA01 Create salesorder is SAPMV45A
    If you search for CALL CUSTOMER-FUNCTION i program
    SAPMV45A you will find ( Among other user exits):
    CALL CUSTOMER-FUNCTION '003'
      exporting
        xvbak   = vbak
        xvbuk   = vbuk
        xkomk   = tkomk
      importing
        lvf_subrc = lvf_subrc
      tables
        xvbfa = xvbfa
        xvbap = xvbap
        xvbup = xvbup.
    The exit calls function module EXIT_SAPMV45A_003
    2. How to find user exits?
    Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT
    If you know the Exit name, go to transaction CMOD.
    Choose menu Utillities->SAP Enhancements. Enter the exit name and press enter.
    You will now come to a screen that shows the function module exits for the exit.
    3. Using Project management of SAP Enhancements, we want to create a project to enahance trasnaction VA01 .
    - Go to transaction CMOD
    - Create a project called ZVA01
    - Choose the Enhancement assign radio button and press the Change button
    In the first column enter V45A0002 Predefine sold-to party in sales document. 
    Note that an enhancement can only be used in 1 project. If the enhancement is already in use, and error message will be displayed
    Press Save
    Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. Double click on the exit.
    Now the function module is displayed. Double click on include ZXVVAU04 in the function module
    Insert the following code into the include: E_KUNNR = '2155'.
    Activate the include program. Go back to CMOD and activate the project. 
    Goto transaction VA01 and craete a salesorder. 
    Note that Sold-to-party now automatically is "2155"
    What is User Exits and Customer Exits?
    Difference between user exits & customer exits:
    User exit - A user exit is a three character code that instructs the system to access a program during system processing.
    SXX: S is for standard exits that are delivered by SAP.   XX represents the 2-digit exit number.
    UXX: U is for user exits that are defined by the user.  XX represents the 2-digit exit number
    Customer exit - The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.     *-- Mani
    The following document is about exits in SAP :-
    The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications. 
    SAP creates user exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
    Types of Exits 
    There are several different types of user exits. Each of these exits acts as hooks where you can attach or "hang" your own add-ons.
    Menu Exits
    Menu exits add items to the pulldown menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications.
    SAP creates menu exits by defining special menu items in the Menu Painter. These special entries have function codes that begin with "+" (a plus sign). You specify the menu item’s text when activating the item in an add-on project.
    Screen Exits
    Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen’s flow logic.
    Function Module Exits 
    Function module exits add functions to R/3 applications. Function module exits play a role in both menu and screen exits. 
    When you add a new menu item to a standard pull down menu, you use a function module exit to define the actions that should take place once your menu is activated. 
    Function module exits also control the data flow between standard programs and screen exit fields. SAP application developers create function module exits by writing calls to customer functions into the source code of standard R/3 programs. 
    These calls have the following syntax: 
    CALL CUSTOMER-FUNCTION ‘001’.
    Field Exits
    Field exits allow you to create your own programming logic for any data element in the Dictionary. You can use this logic to carry out checks, conversions, or business-related processing for any screen field.  Example: The data element BBBNR identifies a company’s international location number. You might want to set up your R/3 System so that all international location numbers are larger than 100. 
    The field exit concept lets you create a special function module that contains this logic. 
    You assign the special function module to the data element BBBNR. You then assign the module to any programs and screens in which users can add new international location numbers. When you activate your field exit, the system automatically triggers your special routine whenever a user enters a company location number. 
    In 4.6c, you can use "RSMODPRF" program to create field exits.
    An example of a user exits :-
    MODULE user_exit_0001 INPUT 
        CASE okcode.
            WHEN 'BACK OR EXIT'.
                CASE sy-dynnr.
                        WHEN '100'.
                             SET SCREEN 0.
                             LEAVE SCREEN.
                        WHEN '200'.
    Note that you can write any code that satisfy your needs.                                                     ****
    But in this case, this was wrote as a sample code for reference sake.                                    ****
    And you can test it.                                                                                ****
                             SET SCREEN 100.
                             LEAVE SCREEN.
                 ENDCASE.
          ENDCASE. 
    Hi
    Go through this, surely it will help you,
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<program name><3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    Example:
    The program for transaction VA01 Create salesorder is SAPMV45A
    If you search for CALL CUSTOMER-FUNCTION i program
    SAPMV45A you will find ( Among other user exits):
    CALL CUSTOMER-FUNCTION '003'
    exporting
    xvbak = vbak
    xvbuk = vbuk
    xkomk = tkomk
    importing
    lvf_subrc = lvf_subrc
    tables
    xvbfa = xvbfa
    xvbap = xvbap
    xvbup = xvbup.
    The exit calls function module EXIT_SAPMV45A_003
    2. How to find user exits?
    Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT
    If you know the Exit name, go to transaction CMOD.
    Choose menu Utillities->SAP Enhancements. Enter the exit name and press enter.
    You will now come to a screen that shows the function module exits for the exit.
    3. Using Project management of SAP Enhancements, we want to create a project to enahance trasnaction VA01 .
    - Go to transaction CMOD
    - Create a project called ZVA01
    - Choose the Enhancement assign radio button and press the Change button
    In the first column enter V45A0002 Predefine sold-to party in sales document.
    Note that an enhancement can only be used in 1 project. If the enhancement is already in use, and error message will be displayed
    Press Save
    Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. Double click on the exit.
    Now the function module is displayed. Double click on include ZXVVAU04 in the function module
    Insert the following code into the include: E_KUNNR = '2155'.
    Activate the include program. Go back to CMOD and activate the project.
    Goto transaction VA01 and craete a salesorder.
    Note that Sold-to-party now automatically is "2155"
    Also Check this out--
    1. Storage Location Determination at Sales Order:
    You can do it through user exit... this is the exit...
    USEREXIT_SOURCE_DETERMINATION (MV45AFZB)
    2. Pricing Authorisation:
    Refer OSS Note 105621
    http://www.sapfans.com/forums/viewtopic.php?t=80256
    3. Making some of the Fields as Mandatory in Customer master based on the Business Rule.
    Enhancement is SAPMF02D. Activate it through CMOD. The Following are the example to stop the Customer master creation with Tax jurisdiction Code.
    *& Include ZXF04U01 *
    *This user exit has been written for not to save the customer master *
    *to whom the Tax Juridiction code is not updated. The Export Customer *
    *is exceptional. Exit written by M. Murali on 18.05.2004. *
    IF i_knvv-vkorg ne '2000' .
    if i_kna1-TXJCD is initial .
    Message ID 'ZK' type 'E' number '005' .
    endif .
    endif .
    4. Different Billing Document Number range based on Company code / Plant Code for the same billing type.
    The Following are the example for different invoice number based on Plant.
    Use the Exit RV60AFZZ.
    FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.
    if (
    xvbrk-fkart = 'ZF3' or xvbrk-fkart = 'ZF2' )
    and xvbrk-vkorg = '1000'.
    case xvbrp-werks.
    when 'AGR'.
    us_range_intern = '22'.
    when 'AHD'.
    us_range_intern = '28'.
    Endif.
    ENDFORM.
    5. Changing the billing Date to Current date or Changing some of the Field values of the Billing data.
    Create a Data transfer routine for the billing and do the changes what ever you want. The following are the example for changing the billing date to current date.
    *& Form DATEN_KOPIEREN_611
    text
    FORM DATEN_KOPIEREN_611.
    IF VBRK-FKDAT NE SY-DATUM .
    SY-SUBRC = 0 .
    MESSAGE ID 'ZSD1' TYPE 'I' NUMBER '014' .
    VBRK-FKDAT = SY-DATUM .
    ENDIF .
    ENDFORM. "DATEN_KOPIEREN_611
    Userexits are places in the SAP standard code that are designed to insert code by the customer. It happens often that some values are set by default by SAP but are not appropriate for the business
    For more information on User Exits, please check this links.
    http://www.easymarketplace.de/userexit.php
    http://www.erpgenie.com/abap/code/abap26.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/ab038.htm
    http://www.easymarketplace.de/userexit.php
    Some more information on userexits and enhancements.-----
    Enhancement/Modifications
    1) Execute tcode SMOD to find available enhancement/modifications.
    2) Create a project for the enhancement in tcode CMOD.
    3) You must activate your project first in order to hit a break-point or get into debug mode for your existing enhancements/modifications, if you do not, the best you will be able to do is step through the main program until you hit the call for that particular customer enhancement.
    4) To get into debug, you can enter a hard break-point in the enhancement itself, set a soft break-point with the stop sign, or the long way, before you execute your transaction or while you are in your transaction, you can place a /h in the ok code area (this is the area of your gui where you can type in a tcode). Once you have the /h, hit enter and that will take you into debug, from there, you can do many different things to find exactly what you are looking for.
    User Exits
    1) Identify the main program you want to locate a user exit/debug.
    2) For example, go to SE80 and do a search by program or dev class (SAPMV45A sales order or Dev Class VMOD, most SD user exits are in this dev class). In SE80 if you go by program, most user exit programs end in a 'Z' on a rare occasion 'X' or 'Y'.
    3) If you are looking at including MV45AFZZ, you can see where there are different forms. These forms will get called at times within the program. If you are looking to fill the storage location on the sales order, you will probably want to take a look at the perform that fills in a field in vbap.
    4) If this is what you are trying to accomplish, you will need to do the select against the config Table TVKOL based on the shipping point/plant and possibly storage condition based on your picking strategies.
    5) For the debug part, you can do the same as in the enhancements/modifications but you will not need to activate any projects
    PDF which is available with me Userexits in FICO. We can do the same in SD also.------
    http://www.ficoexpertonline.com/downloads/User%20ExitsWPedit.doc
    Go to transaction SE81.
    Click on SD .
    Click "edit" on the menu bar .
    Choose select subtree.
    Click on "information system" .
    Open Environment node, customer exits, and enhancements.
    Press F8 to get all the user exits for that module.
    In brief: SE81->SD->Select subtree->Information System->Envir->Exit Techniques->Customers exits->enhancements->Execute(F8)
    USEREXIT
    Userxits allow us to add our own functionality to SAP standard program
    without modifying it . These are implemented in the form of subroutines and hence are also known as FORM EXITs. The userexits are generally collected in includes and attached to the standard program by the SAP.
    All Userexits start with the word USEREXIT_...
    FORM USEREXIT_..
    z..
    ENDFORM.
    The problem lies in finding the correct userexit and how to find it if one exists for the purpose. Once the correct userexit is found the necessary
    customer code is inserted in the customer include starting with the z..
    in the form routine.
    e.g. USEREXIT_SAVE_DOCUMENT_PREPARE
    Certain application like SD still provide this form of enhancement using userexit but this practice is no longer being followed for newer extensions
    instead they are using EXITs which come bundeled in enhancement packages . Neverthiless existing USEREXITS will be supported by SAP an all the newer versions of SAP.
    HOW TO FIND USEREXITS
    Userexits can be found in number of ways:
    1) To find userexits in SD module , goto object navigator(SE80) and select
    development class from the list and enter VMOD in it. All of the userexits in SD are contained in the development class VMOD. Press
    enter and you will find all the includes which contain userexits in SD for
    different functions like PRICING, ORDER PROCESSING etc. Select the userexit according to the requirement and read the comment inserted in it
    and start coding .
    Some examples of userexits in SD(SALES & DISTRIBUTION ) are:
    1)ADDING OF NEW FIELDS IN PRICING
    In Pricing in SD the fields on the basis of which pricing is done are derived from the FIELD CATALOG which is a structure KOMG .This structure is used to transfer transaction data to the pricing procedure in SD and is also known as communication structure.This structure KOMG consists of two tables KOMK for Header related fields and KOMP for item related fields.
    The fields which are not in either of the two tables KOMK and KOMP
    cannot be used in pricing .Sometimes a need arises when the pricing
    is to be based on some other criteria which is not present in the form of fields in either of the two tables.
    This problem can be solved by using USEREXITS which are provided for pricing in SD.
    Pricing takes place both when the SALES ORDER ( Transaction VA01) is created as well as when INVOICING ( Transaction VF01) is done.Hence SAP provides 2 userexits ,one for sales order processing which is
    USEREXIT_PRICING_PREPARE_TKOMP or
    USEREXIT_PRICING_PREPARE_TKOMK
    Depending upon which table (KOMK or KOMP) the new fields were inserted we use either of the above two userexits.These userexits are found in include MV45AFZZ of the standard SAP sales order creation program SAPMV45A.
    In the case of userexit which will be called when invoicing is done ,these
    are provided in the include RY60AFZZ which is in the standard SAP
    program SAPMV45A. The name of the userexits are same. i.e
    USEREXIT_PRICING_PREPARE_TKOMP or
    USEREXIT_PRICING_PREPARE_TKOMK
    These userexits are used for passing the data from the communication structure to the pricing procedure, for this we have to fill the newely
    created field in the communication structure KOMG for this we fill the code in the above userexit using the MOVE statement after the data that
    has to be passed is taken from the database table by using the SELECT statement. The actual structure which is visible in these userexits and which is to be filled for that particular field is TKOMP or TKOMK.
    Before the coding for these userexits is done ,it is necessary to create a new field in either of the two tables KOMK or KOMP .For this purpose
    includes are provided in each of them .
    To create the field in header data(KOMK) the include provided is KOMKAZ
    and to create the field in item data(KOMP) the include provided is KOMPAZ.
    One possible example for the need of creating new fields can be e.g. Frieght to be based upon transportation zone ,for this no field is available in field catalog and hence it can be created in KOMK and then above userexits can be used to fill the transportation data to it.
    2)The other method of finding userexit is to find the word USEREXIT in the
    associated program of the transaction for which we want to determine userexit using SE38.
    3)The other method of finding userexits is to find the include in case of SD/MM applications where the userexits are located ,this can be found in the SAP reference IMG generally in the subfolder under SYSTEM MODIFICATION.
    Some other examples of userexits in SD are:
    USEREXIT_NUMBER_RANGE
    This userexit is used to assign a different internal document number to the
    sales order(VA01) when it is created depending on some criteria like a different SALES ORGANIZAION(VKORG) .
    USEREXIT_SAVE_DOCUMENT_PREPARE
    This userexit is used to insert the ABAP code which will be called when
    the document (sales order VA01) is just about to be saved.This userexit is used generally for custom checks on different fields , to display some information before the order will be saved or for making changes to certain fields before the sales order will be saved.
    Exits & Enhancements
    There are mainly six types of EXITs in sap which have been collected in the form of enhancement packages and attached to standard code in SAP.
    These are different from USEREXIT in the way that they are implemented
    in the form of FUNCTIONs while in USEREXITS we use form routines for their implementation. These are also sometimes known as function exits .
    These start from the word EXIT_ followed by the program name and then followed by a three digit number.
    e.g. EXIT_SAPMV45A_002
    This exit is found in SD in enhancement V45A0002.
    TYPES OF EXITS
    1)MENU EXITS
    2)FUNCTION EXITS
    3)TABLE EXITS
    4)SCREEN EXITS
    5)KEYWORD EXITS
    6)FIELD EXITS
    We use SAP transactions CMOD and SMOD to manage exits. Before implementing an exit , it is required to create the project by using CMOD
    selecting the enhancement e.g. V45A0002 and selecting the component
    (one which fulfills our need) i.e the exit which will be implemented in SMOD and after coding has been done the project has to be activated.
    An exit can be coded only once.
    FUNCTION EXITS
    These are used to add functionality through ABAP code . These start from the word EXIT_programname_NNN ending in a 3 digit number. No access code is required to implement any tupe of exit including function exits.
    The function exits are called from the standard SAP program in the form
    of ABAP statement
    CALL CUSTOMER-FUNCTION 'NNN'
    This is in contrast to USEREXITs where PERFORM statement is used to call
    the required userexit.
    To implement the FUNCTION EXITs first of all the project is created and a suitable enhancement package is selected and from its compnents the function exit to be implemented is selected and on double clicking it the exit code will appear in ABAP EDITOR(se38) where a Z include will be found and the customer code should be entered in this include.
    e.g.
    ADDING A DEFAULT SOLD-TO-PARTY in Sales Order Creation
    To show a default sold-to-party in this field when the user creates a sales order (VA01) we can use a function exit .This function exit is located
    in enhancement no V45A0002 . Before we can choose the exit we have to
    create a project in CMOD after that enter V45A0002 in the enhancement field and click on the components . In the components you will see the
    exit EXIT_SAPMV45A_002 . This exit is used for our purpose.
    Double clicking on this exit will takes us to function builder (SE37) . This
    function exit has one exporting parameters and two importing parameters, we are interested in exporting parameter which is E_KUNNR
    of type KNA1-KUNNR i.e if we move the desired customer name to this
    structure(E_KUNNR) it will be shown in the field as the default value when we create the sales order.
    This function also contains a customer include ZXVVA04 . This include
    will be used to write our custom code .
    Double clicking on this include and it will prompt us that this include does not exists do you want to create this object ,select yes and the include will be created .In this include we can write our own code that will fill the field E_KUNNR.
    e.g. E_KUNNR = 301.
    Activate the include and Activate the project. Now when ever the SALES ORDER will be created , sold-to-party field will come up with a predefined
    customer .
    FIELD EXITS
    The field exits are managed,created,activated through program RSMODPRF. The field exit is associated with a data element existing in ABAP dictionary and hence to the screen field using that data element.
    The format of field exit is :
    FIELD_EXIT_dataelement_A-Z or 0-9
    If a particular screen and program name is not specified than the field exit will effect all the screens containing that data element.
    The function module associated with field exit shows two parameters
    INPUT and OUTPUT. Input parameter contains the data passed to the field exit when the field exit was invoked by the R/3 , We can write our own code to change the output parameter depending upon our requirements.
    Before the field exit can have any effect the system profile parameter
    ABAP/FIELDEXIT in all the application servers should be set to YES
    ABAP/FIELDEXIT = YES.
    Don't forget to reward if useful....

  • VF04 authorisation....

    Hi All,
    I have not given authorisation for VF04 transaction. But when user enter this transaction, it works.
    How to restrict VF04 Transaction? I have given only VF01,VF02,VF03,VF05 only.
    waiting for reply.
    Yusuf

    no answer

  • Error while raising a invoice using VF01

    Hi,
    I am getting an error while raising a invoice using VF01.
    Error as follows
    RV_MESSAGE_UPDATE
    Update was terminated
    System ID....   TIP
    Client.......   300
    User.....   user1
    Transaction..   VF01
    Update key...   E66E6454075548D8922BAC091E81F0CB
    Generated....   18.07.2007, 18:57:38
    Completed....   18.07.2007, 18:57:38
    Error info...   TD 443: WRITE_FORM
    Pls help
    Points will be rewarded.
    Thanks

    Hi,
    This is an ABAP short dump. If you go through the error log, there will be a section where in you can see > What caused the problem.
    Try to analyze this log and you can find a solution. Probably, you can also check whether there is any OSS note with this error message.
    Thanks
    Murali.

  • Vendor Open items Authorisation

    Hi Peers!
    Is there any report were i can authorise the payments to which vendor and which invoice i can pay today like that.
    Ex: Say my higher authority wants to select the open items vendor wise to pay the due. so that i will check that invoices and pay through outgoing payment.
    Pls reply soon, Its urgent
    Thanks
    Murali

    Hi
    There are so many age wise analysis reports are there for analysing the customers or vendors open items. out of those, F.41 for vendor open items there you can find all the relevant data including business area level also satisfied because in some cases higher management wants the particular business area wise required for analysis. similarly f.21 for customers.
    I hope it will be suffice your requirement.
    Regads
    madhav

  • Is there a way of finding out what has been accessed on my MacBook Pro whilst in the possession of an apple authorised service centre?

    Hi Guys,
    I'm a bit new to this discussion group thing although I've been using Macintosh computers for many years (showing my age).
    I handed my MacBook Pro to be repaired at an authorised apple service centre. When I handed it in they said they needed to keep hold of it to run some diagnostics and requested my password. I've owned various models of mac for the the past 17 years and this is the first hardware problem I have encountered, hence I have never bothered to set up user accounts. 
    As I live in quite a remote part of Sweden I am paranoid that some untrusted technician is going to make a copy of my music (11,000 tracks) or share some of my personal information (scanned copies of my birth certificate, passport, certificates, photos, etc.) on the web. Is there a way of finding out what activity has taken place whilst they've had it in their possession?
    I appreciate any advice you guys can offer.
    Thanks!
    PS: I've already thought about the 'recently opened' menu and The machine in question is a MacBook Pro 17" (2011) running OS X 10.6.8 (need Rosetta).

    I am paranoid that some untrusted technician is going to make a copy of my music (11,000 tracks) or share some of my personal information (scanned copies of my birth certificate, passport, certificates, photos, etc.) on the web.
    If you put your info into the computer and hand it to another, you have to assume they will copy everything.
    Why are you putting scanned copies of valuable identity information into a computer than can be hacked, stolen, lost or compromised by a dirty tech?
    Have you lost your mind?
    Is there a way of finding out what activity has taken place whilst they've had it in their possession?
    No. The tech would just deny it if he did, or tell the truth which the answer would be "NO" in either case.
    The employer won't ask that sort of questions without solid proof, less they make a enemy of the employee and/or risk being sued for defamation of character.
    It's not like they bother to have a team of people watching over his shoulder that he doesn't stick a USB thumb drive of your data into his pocket to take home.
    I am paranoid that some untrusted technician is going to make a copy of my music (11,000 tracks)
    If it's iTunes music, it has your personal ID embedded into the song files. Most IT techs know this though.
    I appreciate any advice you guys can offer.
    Too late now, all you can do is not worry about it.
    Take your personal info out of the machine and if you need it, burn cd/dvd copies, a few USB thumb drives, Iron Keys or self encrypting external storage drives with key and/or keypad.

  • Error in SRM:  a user with enough authorisation level is miss

    Hello,
    We are on SRM 5.0 and our users get the following error in SRM when creating a shopping cart:
    No user assigned to object a user with enough authorisation level is missing.
    Anybody any idea ?
    Thanks as ever

    Hello Can anybody helpe me please ?

  • I have rented a movie on apple tv and wish to finish it on my mac book air. When I open iTunes on my mac book air I can not see the movie in iTunes. It is an authorised device and I can see other purchases just. How do I fix it?

    I have rented a movie on apple tv and wish to finish it on my mac book air. When I open iTunes on my mac book air I can not see the movie in iTunes. It is an authorised device and I can see other purchases just. How do I fix it?

    Rented movies downloaded to an Apple TV can't be transferred to any other device.
    (86941)

  • HR Authorisation Management for different companies in the same client

    Hi,
    Could anyone please help in this....
    My client has two companies. They want to restrict the authorisation to both the companies so that no one can see each other companies data and at the same time access tha data.
    For Eg, there are two payroll officers, each in both the companies, If i give authorisation to run Payroll driver(PC00_M40_CALC), anyone of them can run payroll for any of the companies. (though,their Payroll area is different). There are many restrictions to be maintained like Maintance of Master data, Maintanance of OM structure as assignement of position, running Payroll, viewing the payslip etc...
    How can this all be restricted so that, the respective  companies can view and access their own data without interfering in to the other company.
    I could only find object P_PYEVRUN which helps me restrict to view the created documents of posting for other company code.
    Can anyone put light on how i should proceed further... I heard we can restrict HR master data, but what all i know is we can restrict at infotype level. My problem is, two persons should access PA30(each from different companies), but should not be able to edit other companies data.
    Thanks
    --Pranitha

    Hi ,
    If you are creating the another company undar the same client . then you can not use different no. range.
    or if you are going different client for different compnay code then you can use different number range for material master.
    SAM

  • Nota Complem. de Valor com qtd do item = zero - Dump na Transação VF01

    Cenário: Nota Complemetar de Valor com quantidade de item = 0 (zero).
    Ao efetuar o faturamento (VF01), acontece o dump pois o programa LJ1BGF01 divide o valor liquido pela quantidade.
    Este cenário foi desenvolvido com base na Nota 421284.
    Existe alguma nota a ser aplicada para que este dump não ocorra???
    Ponto do programa que provoca o abend: LJ1BGF01
    ****calculate or take-over net price (incl. ICMS)
    IF wnetpr = 0.
           wnflin-netpr  = wnflin-netwr / wnflin-menge.    ****neste ponto do programa a variavel wnflin-menge é zero *****
    ELSE.
          wnflin-netpr  = wnetpr
    ENDIF.
    Obrigada
    Luciana

    Olá, Luciana.
    Independente de seu cenário ser relacionado a Nota 421284, este erro acontece neste ponto pois o sistema não consegue proceder se seu documento de sales order tem quantidade igual a zero.
    Faça outros exemplos onde a quantidade é setada com um valor positivo na sua sales order pois isto é necessário e o DUMP não ocorrerá.
    Abraço,
    Felipe Silveira

  • Trying to set up ereader for library books but unable to authorise computer.

    I am trying to set up a Kobo Aura ereader to borrow and read library books. I have verified my Adobe ID. Each time I try (I installed, uninstalled and reinstalled Adobe Digital Editions) I am unable to authorise my Windows 7 computer. I get the following error message.
         Activation Server error  code:e_adept_request_expired http://adeactivate.adobe.com/adept/activate 2014-11-08T15:38:27-08:00%20(1415489907000)%2015%before%202014-11-08T16:07:07-08:00%20(14 15491627736)
    I am going crazy setting up this ereader. Please help me!

    Let's try this first.  Press the wireless button on the front of the printer and execute a "Restore Defaults".
    Next, restart the router by pulling its power plug momentarily, then try the WPS procedure again.  If that does not work, contact your ISP to see if the WPS button is functional.
    If it is not, let me know and I can walk you through a much harder, but effective technique.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Authorisation

    can i have authorisation on the dso like it is having user field and some other fields
    data in the dso is based on the user
    i have created web report on that using these fields in drop downs
    now if the user enters the report drop downs should show all the relavent datas
    is it possible to give such type of authorisations

    It sounds like a damaged SC file. In iTUnes 7 Goto Store>Deauthorize Computer over and over til you get the message "This computer has not been authorized"
    Now go here, yes this artical is for a none opening itunes after updating to iTunes 6, but the steps for deleting the hidden "SC File" is the same http://docs.info.apple.com/article.html?artnum=302386

  • HT201272 I dont understand how I can purchase a song from itunes and it WILL not transfer to my iPhone? What is the purpose of paying for music in the first place? I have authorised my computer. I have authorised manual transfer. I can transfer every song

    I've purchased music from iTunes and CANNOT drag to my iPhone...WHY? I have clicked manage myself and authorised my computer. What is the point of buying music if you cannot transfer from iTunes to an iPhone? I can happily transfer my CDs.????? I have the latest update on my iPhone and iTunes.

    Media was moved via external hard disk, and I think I moved the iTunes Media folder after consolidating it.

Maybe you are looking for

  • Problems booting from install disk with MacBook Air

    (I'm posting this here b/c it's been three days since I posted this in the /MacBook Air/Networking section and no one's touched it...) Somehow, the hard disk in my MBA has been corrupted, or something. First symptom I noticed - when booting up, I get

  • Running ssl client from multiple applications fails in Sap j2ee engine

    There are two applications making ssl connections to third party. At a time only one application is able to make connection while other throws error message <b>"No trusted certificate found".</b> Currently we have  two j2ee applications running in SA

  • Can't find Javac.exe

    I'm new to Java (presently taking a class). I'm very confused and not getting too far. I'm running Win XP and have downloaded the latest version of Java J2SE1.4.0_01 (actually because of repeated problems, I've uninstalled and installed it a few time

  • Workflow workitem deletion

    Hi    I am triggering my workitem using FM SWE_EVENT_CREATE in this FM i am getting the event id  but for my requirement i want the workitem id so any body tell me how to get the workitem id . thanks srinivas

  • Essbase load from Excel error

    I haven't done an Excel load of data since training, but now that I need one I can't remember some of the issues. I get a "\\ Invalid number in data column" error from my load. Anyone know what might be the problem here?