Need to check structure condition in user exit RV60AFZ,

Hi all, i need to write a condition for  vf01(create billing document) in user exit * RV60AFZC * .
the condition is :
if vbak-auart = 'TA' and  KOMV-KSCHL = 'JIN7'.
  VBRK-FKART = 'ZFCS'.    
  ENDIF. 
but the problem here is that komv is structure so the above condition is not working.
If i give condition as
if vbak-auart = 'TA' .
  VBRK-FKART = 'ZFCS'.    
  ENDIF. 
then the user exit is working.
So any one please suggest me how to make the above condition work.
thanks in advance,
koolspy.

Hi
Perhaps you can try this, but be careful with performance.
In VBAK you have the value for KNUMV. So, as I understand that you refer to the value of KNUMV for the SO (not for the invoice that you are doing), try this:
  DATA: i_konv LIKE konv OCCURS 10 WITH HEADER LINE.
  SELECT * FROM konv
    INTO TABLE i_konv
     WHERE knumv = vbak-knumv.
  READ TABLE i_konv WITH KEY kschl = VALUE.
  IF sy-subrc = 0.
   IF vbak-auart = value2.   "OR OTHER CONDITION
       "DO WHAT YOU WANT.
   ENDIF.
  ENDIF.
Newly, be careful with performance (try with a select single on KONV, etc...)
I hope this helps you
Regards
Eduardo

Similar Messages

  • Need help in finding tcode - in user exits

    hi experts
    in user exits, i can find many exits name using <b>SPRO </b>or <b>SMOD</b>. and by this i can find the package also.
    my question is how to know where these exits are exactly used, ie., in which transaction these exits are used.
    is there any way to find out the tcode, if we know exit name.
    thanks
    akila

    Hi
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a function module. The code for the function module is written 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>
    To find a Exit.
    Goto Transaction -- Find The Package
    SMOD >f4>Use the Package here to Find the Exits In the Package.
    Else if you Want to search by Application Area wise ,
    There is one more tab to find the Exits in the Respective Application Area.
    Implementing the Exit-- CMOD Create ProjectsAssgn your Component .
    Now Run ur Transaction to Check if it Triggers.
    Thats it..
    Suppose you need to find out all the user exits related to a tcode.
    1. Execute the Tcode.
    2. Open the SAP program.
    3. Get the Development Class.
    4. Execute Tcode SE84.
    5. Open the Node 'Envir. -> Exit Techniques -> 'Customer Exits -> Enhancements'
    6. Enter the Development class and execute.
    Check out this thread..
    The specified item was not found.
    1. Type the transaction : system->status-> <PROG. NAME>
    2 open SE37 , type EXIT<PROG NAME> and press F4 to get the list of function exits available.
    3. Open CMOD utilities->SAP enhancements
    EDIT->All selections
    4.type the function module name obtained in step 2, in fields 'component name' in 'additional selections' block. and execute.
    5. The displayed list contains the enhancements names for the transaction You were looking for.
    6. Create a project in CMOD and the code in default include->activate.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    which gives the list of exits for a tcode
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec079f5db911d295ae0000e82de14a/frameset.htm
    For information on Exits, check these links
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.planetsap.com/userexit_main_page.htm
    User-Exits
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/ab038.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.sap-basis-abap.com/sapab013.htm
    http://sap.ittoolbox.com/documents/popular-q-and-a/user-exits-for-the-transaction-code-migo-3283
    These links will help you to learn more on user exits.
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.allsaplinks.com/user_exit.html
    www.sap-img.com/abap/what-is-user-exits.htm
    Also please check these threads for more details about user exits.
    Re: Screen exit
    user exit and customer exit
    user exit
    1. Document on UserExits in FI/CO
    http://www.ficoexpertonline.com/downloads/User%20ExitsWPedit.doc
    2. Finding User Exits...
    http://sap.ionelburlacu.ro/abap/sap2/Other_Useful_Tips.html#Finding_User_Exits
    3. List of all User Exits...
    http://www.planetsap.com/userexit_main_page.htm
    Reward points for useful Answers

  • How to find the structure in this user exit

    My requirement is add new field to Delivery due list ALV report(VL10G).For enhance this report i will append one field(LIKP-SDABW) in this structure SHP_VL10_ITEM.This structure is not showing in the include LV50R_VIEWG05
    USEREXIT_PREPARE_LAYOUT_FILL .Where i have to find this structure,and internal tables?
    Please help me.
    Thanks & Regards,
    sairam

    Hi Sairam,
    Goto the program for transaction VL10G.In that u make a seach for the user-exit
    USEREXIT_PREPARE_LAYOUT_FILL.Then write the logic inside tht.U will need an access key for that.
    <b>Reward points if it solves ur query or answer is helpful</b>
    Thanks
    Chinmay

  • Internal structures available in user exit

    How can I found out all the internal structures that are populated and available in a user exit or any point in code.
    Specifically I am looking at RV60AFZC routine USEREXIT_FILL_VBRK_VBRP and want to fill MWSKZ which is in KOMV. But I would like to learn a new technique that I can use for any program. Thank you.

    Hello,
    You can know if the particular structure is available in your session in either old or new debugger, all you need to do is
    (SAPLHRBEN00ESS)EVENT_DESCRIPTION_GS
    Where SAPLHRBEN00ESS -> Program Name
              EVENT_DESCRIPTION_GS -> Structure (wa), Internal Table that you want to access.
    Hope it helps.
    Thanks,
    Jayant

  • Checking code for SAP USER EXIT

    we have enhanced SAP given data-source 2LIS_XX_XXXXX, there are hard coded user exits for this extractor. How to debug the code for enhancements?
    I know we enhance data-source in CMOD....SAPLRSAP001 (transactional data)....SAPLRSAP002(attributes)

    Hi Monica,
    There are many ways to debug the code if you wish to enhance the DataSource. In RSA3 you can do that by clicking Debug mode option. This is already been suggested by Srini.
    I would like to give you another way to do so.
    If you want to enhance the Transcational data then you need to choose EXIT_SAPLRSAP_001 component of RSAP001 enhancement. It has 4 component for master data( Text, hierarchy...etc).
    This is a function module enhancement. If you goto the source code of the function module, you will find an include program i.e. ZXRSAU01. double click on this program which will take you to the body of the program. This is the place where you need to write code.
    here you need to write the code as follows.
    case i_datasource.
    when '2LIS_XX_XXXXX'.
    Now here you can set a break point. This can be soft or hardcoded break point if you need to debug.
    Better Hardcode it. Write
    BREAK-POINT or BREAK username.
    Now when you execute the DS through RSA3, The program will stop here. The data extracted from DS will be available in an internal table C_T_DATA. Now you can enhance this by writing code. Again you can debug by pressing F5 or F6. This is as usual the way you debug an ABAP program.
    Hope this helps. If you need any further help contact at [email protected]
    Give reward point if you're satisfied.
    Happy debugging....
    cheers,
    Message was edited by: tapan tripathy

  • Logic to check batch number using user exit

    hi friends,
    I wanted to know if the below checking logic can be implemented in transaction MIGO at the time of good receipt. Is it possible to implement this checking logic using enhancements. if so are there any USER EXITS or BADI for this?
    PFB the checking logic
    Checking logic:
    Example: Existing Batch No. for a material is available as 10, 20, 30 and 50.  If the batch No. 40 is entered for any new GR, system should show an information message since the current batch number 40 is earlier than the last available batch ie., 50.
    thanks and regards,
    vinod

    Hi Vinod,
    You can implement the badi MRM_HEADER_CHECK if it is a header related data and we can raise the messages too.
    Hope it solves your issue.
    Siva

  • Need Form routine in MV50AFZ1--Delivery User exits

    FOR ANY VENDOR OUTSIDE INDIA, THE SYSTEM SHOULD ALLOW TO MAKE A SINGLE DELIVERY WIHTOUT TAKING INTO CONSIDERATION THE SUPPLYING PLANT ...
    Could anyone  tell me  which routine would be suitable to include the code. (Vendor Country <> IN)

    Hi priya,
    I think you cannot do this through the user exit, Delivery split based on the Supplying plant is the standard functionality.  Consult with the functional consultant to know whether the same can be done through configuration.
    Regards
    Vinod

  • Need help to check multiple conditions and set AD user properties

    hello All,
    I have a data csv sheet where information as follows, using below information I need to update AD account attributes based on below conditions . I have full right and I can set any user properties. So this is not access right issue.   
    samaccountname,Othertelephone,language,employeeId
    abcd                      XXXXXXXXX     EN         SMS
    Now I need to check following conditions:
    Othertelephone =  if this should not be blank ,if so display message " filed is blank " and no changes should allowed in further attributes and  it should abort
    language= this field should only contain  EN or FR value if No display msg " error in language field " and no further changes to  the user attributes and it should abort
    employeeID= this field should only contain OTP or SMS value if Not filled display msg " error in Employee ID field " No further changes to the user attributes and it should abort
    changes to user will permit  when all attributes is filled. I do the testing taking samaccountname , othertelephone and employeeId into consideration but it did not helped. Getting error
    THIS is complete Code Of my Task where you need my focus on conditions
    group=Get-QAdGroup -SearchRoot  "domain/vpn group"
    Import-Csv D:\VPN.csv |
    ForEach-Object{
    if ($_.samaccountname -eq "")
       Write-Host "SAMACCOUNTNAME is blank"   -fore red
    else
     $user=Get-QAduser $_.samaccountname
    if ($user.memberof -contains  $group.DN)
     Write-Host "$($_.Samaccountname) user is allready a member" -fore red
    else
     Add-QADGroupMember $group $_.Samaccountname
    If ($_.othertelephone -eq "")
    Write-Output "$($_.samaccountname) telephone Number is blank"
    else
    if ($_.EmployeeID -notmatch 'OTP' -and 'SMS')
    Write-Output "$($_.samaccountname) EmployeeID field is not correctly field")
    Else
    Set-QADUser $_.SamAccountName -ObjectAttributes @{telephonenumber=$_.othertelephone;EmployeeID=$_.EmployeeID}
    error
    Set-QADUser : Access is denied.
    At C:\Users\g512263\AppData\Local\Temp\5f8facb6-f942-4c3d-b924-8953d9a706da.ps1:37 char:8
    +                    Set-QADUser $_.SamAccountName -ObjectAttributes @{telephonenumber=$_.othe ...
    +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Set-QADUser], UnauthorizedAccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Quest.ActiveRoles.ArsPowerShellSnapIn.Powershell.Cmdlets.SetUserCm
       dlet

    <title>Untitled - PowerGUI Script Editor</title>
    Hello JRV,Thank you for your time, There is no comma in my csv file , I double check. below I wrote a simple code.I removed all the conditions and just try to set the EmployeeID and it is working fine with same file.But as soon as I add conditions it gives access denied. as well as if I remove employee Id from your previous code and only try to set telephone No. still it gives access denied.I am just trying to figure out what is causing this.
    $group=Get-QAdGroup -SearchRoot "com/Group"
    Import-Csv D:\VPN.csv |
    ForEach-Object{
    if ($_.samaccountname -eq ""){
    Write-Host "SAMACCOUNTNAME is blank" -fore red
    }else{
    $user=Get-QAduser $_.samaccountname
    if ($user.memberof -contains $group.DN){
    Write-Host "$($_.Samaccountname) user is allready a member" -fore red
    }else
    Add-QADGroupMember $group $_.Samaccountname
    If ($_.othertelephone -ne "")
    Set-QADUser $user.SamAccountName -ObjectAtt Aributes @{telephonenumber=$_.othertelephone}
    } else
    Write-Output "$($_.samaccountname) phonenumber is blank"
    If ($_.EmployeeID -ne "")
    Set-QADUser $_.SamAccountName -ObjectAttributes @{EmployeeID=$_.EmployeeID}
    }else
    Write-Output "$($_.samaccountname) EmployeeID field is blank"
    If ($_.Preferredlanguage -ne "")
    Set-QADUser $_.SamAccountName -ObjectAttributes @{Preferredlanguage=$_.preferredlanguage}
    } else
    Write-Output "$($_.samaccountname) PreferredLanguage field is blank"

  • User Exit to check whether chapter id for Material and Plant combination is maintained while creating sales order

    Hello all,
    my requirement is, system should give error message while creating sales order, if chapter ID is not maintained for a material and plant combination.
    please suggest the user exit.

    Hi
    CASE 1 : All Plants are excisable.
    In Material master , Foreign Trade data tab-  mentioned Control code field mandatory. ( i.e nothing but Chapter ID)
    CASE 2 : Few Plants are excisable
    In the Case 2 you need to go for Enhancement
    Program Name : MV45AFZB 
    User Exit:            USEREXIT_CHECK_VBAP ( Item Level Check )
    By using above user exit you write a logic with the help of ABAPer
    Plant and Chapter ID combination table : J_1IMTCHID

  • Need user-exit or BTE on save of a FI-document in 4.6D

    Hi,
    I need a Business Transaction Event or user-exit on save of a FI-document (transaction FB01, or any other possible posting - for example as a follow-on document after SD purchase or sales invouce). The trick is, that I must have an internal FI-document number (field BKPF-BELNR) already assigned to the document and to use this number for my purposes.
    I tried to use some of the BTE-s (1110, 1120, 1130, 1050 and 1060) without success - the belnr is not yet assigned when the system passes to this customer exits.
    Could someone help me with this please? The important thing is - I need BELNR already assigned to the document. All these in 4.6D enterprise environment.
    Thanks in advance.
    Regards,
    Ivaylo Mutafchiev
    Senior SAP BC/Abap Consultant
    VBS-Varna
    Bulgaria
    P.S. Sorry for cross-posting this question here and in the 'Enhancements and Modifications' forum - IMHO this forum is checked much often than the other one.
    Message was edited by:
            Ivaylo Mutafchiev

    Well,
    today my colleagues from SD tested both inbound and outbound processes (Order/Delivery/Invoce with consequent FI document), and we found that the program execution doesn't pass trought function modue for BTE 1030 when the FI document, which follows the SD invoice, is automaticaly created.
    Any suggestions? Once again - the initial requirement is - I need to pass trought the BTE on (manual or automatic) creation of a FI-document and to have BELNR of the FI document populated.
    Thankst in advance.
    Regards,
    Ivaylo

  • How to activate or deactivate a user-exit based a specific condition

    hi all,
    i want to activate or deactivate(make it trigger) a particular user-exit based in a condition.
    can i do that. if yes please tell me how.
    can we use COMMIT in user-exits or BADI's.
    Thanks & Regards,
    Saroja.

    Hello Saroja
    The solution provided by Rich should be used for testing purposes only in the the reverted sense:
    IF ( syst-uname ne '<specific user>' ).
      RETURN.
    ENDIF.
    " Execute user-exit for specific user
    However, for serious programming you should use a a better strategy. In principle, user-exits are either ON or OFF and, if they are ON, they are ON for <b>all </b>user which is usually not intended.
    The following example shows a (possible) strategy how to execute user-exits based on specific conditions.
    The SAP extension CATS0001 contains the component EXIT_SAPLCATS_001 with the following interface:
    FUNCTION EXIT_SAPLCATS_001.
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(SAP_TCATS) LIKE  TCATS STRUCTURE  TCATS
    *"     VALUE(SAP_PERNR) LIKE  CATSFIELDS-PERNR
    *"     VALUE(SAP_DATELEFT) LIKE  CATSFIELDS-DATELEFT
    *"     VALUE(SAP_DATERIGHT) LIKE  CATSFIELDS-DATERIGHT
    *"     VALUE(SAP_DATEFROM) LIKE  CATSFIELDS-DATEFROM OPTIONAL
    *"     VALUE(SAP_DATETO) LIKE  CATSFIELDS-DATETO OPTIONAL
    *"  TABLES
    *"      SAP_ICATSW STRUCTURE  CATSW
    *"      SAP_ICATSW_FIX STRUCTURE  CATSW OPTIONAL
      INCLUDE ZXCATU01.
    ENDFUNCTION.
    The include ZXCATU01 contains only the following coding:
      CALL FUNCTION 'Z_EXIT_SAPLCATS_001'
        EXPORTING
          sap_tcats            = sap_tcats
          sap_pernr            = sap_pernr
          sap_dateleft         = sap_dateleft
          sap_dateright        = sap_dateright
          SAP_DATEFROM         = SAP_DATEFROM
          SAP_DATETO           = SAP_DATETO
        tables
          sap_icatsw           = sap_icatsw
          SAP_ICATSW_FIX       = SAP_ICATSW_FIX.
    This function module is just a copy of the exit function module in the customer namespace.
    Let us assume that your condition at which the user-exit should be executed is that the employee (SAP_PERNR) belongs to a specific controlling area. Thus, we make another copy of the original exit function module and call this fm within the "general" customer-specific exit function module:
    FUNCTION z_exit_saplcats_001.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(SAP_TCATS) LIKE  TCATS STRUCTURE  TCATS
    *"     VALUE(SAP_PERNR) LIKE  CATSFIELDS-PERNR
    *"     VALUE(SAP_DATELEFT) LIKE  CATSFIELDS-DATELEFT
    *"     VALUE(SAP_DATERIGHT) LIKE  CATSFIELDS-DATERIGHT
    *"     VALUE(SAP_DATEFROM) LIKE  CATSFIELDS-DATEFROM OPTIONAL
    *"     VALUE(SAP_DATETO) LIKE  CATSFIELDS-DATETO OPTIONAL
    *"  TABLES
    *"      SAP_ICATSW STRUCTURE  CATSW
    *"      SAP_ICATSW_FIX STRUCTURE  CATSW OPTIONAL
    " User-Exit specific for employees (SAP_PERNR)
    " belonging to controlling area 1000
      CALL FUNCTION 'Z_EXIT_SAPLCATS_001_1000'
        EXPORTING
          sap_tcats      = sap_tcats
          sap_pernr      = sap_pernr
          sap_dateleft   = sap_dateleft
          sap_dateright  = sap_dateright
          sap_datefrom   = sap_datefrom
          sap_dateto     = sap_dateto
        TABLES
          sap_icatsw     = sap_icatsw
          sap_icatsw_fix = sap_icatsw_fix.
    " User-Exit specific for employees (SAP_PERNR)
    " belonging to controlling area 2000
      CALL FUNCTION 'Z_EXIT_SAPLCATS_001_2000'
        EXPORTING
          sap_tcats      = sap_tcats
          sap_pernr      = sap_pernr
          sap_dateleft   = sap_dateleft
          sap_dateright  = sap_dateright
          sap_datefrom   = sap_datefrom
          sap_dateto     = sap_dateto
        TABLES
          sap_icatsw     = sap_icatsw
          sap_icatsw_fix = sap_icatsw_fix.
    ENDFUNCTION.
    Finally, within the specific exit function module we define the condition when the exit should be executed:
    FUNCTION z_exit_saplcats_001_1000.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(SAP_TCATS) LIKE  TCATS STRUCTURE  TCATS
    *"     VALUE(SAP_PERNR) LIKE  CATSFIELDS-PERNR
    *"     VALUE(SAP_DATELEFT) LIKE  CATSFIELDS-DATELEFT
    *"     VALUE(SAP_DATERIGHT) LIKE  CATSFIELDS-DATERIGHT
    *"     VALUE(SAP_DATEFROM) LIKE  CATSFIELDS-DATEFROM OPTIONAL
    *"     VALUE(SAP_DATETO) LIKE  CATSFIELDS-DATETO OPTIONAL
    *"  TABLES
    *"      SAP_ICATSW STRUCTURE  CATSW
    *"      SAP_ICATSW_FIX STRUCTURE  CATSW OPTIONAL
      IF ( <user BELONGS to CONTROLLING area 1000> ).
        "   execute user-exit
      ELSE.
        RETURN.
      ENDIF.
    ENDFUNCTION.
    The alternative would be to place the entire coding including the conditions in the include ZXCATU01. However, in this case you can test the user exit <b>only in the context of the transaction</b> in which the user-exit is passed.
    Using the strategy I have devised you are able to test the user-exit in general and the specific user-exits <b>independent </b>of the transaction. For example, if you are already working on 6.40 or higher then you could use ABAP Unit Testing for this purpose.
    The same logic can be applied for BAdI where we can have only a single active implementation.
    Finally, I hope to convince that it makes sense to spend some time into a reasonable strategy for implementing user-exits.
    Regards
      Uwe

  • Need a User Exit for OCI Interface in case of Multiple Views

    Hello Friends,
    I need a help in finding the User Exit / BADI for passing the Catalog ID when you click on Catalog Button in Purchase Requisition , PM Order ( IW32) and Purchase Order.
    1. We have number of Views and we need to implement Custom logic for releavant Catalog ID and same should be passed to third party System.
    2. Creation of Custom Conversion module and how these will be called in MM.
    3. How the sequence number will work in Assigment of Conversion module.
    4.In case of Custom fields in RIHFCOM-CUSTFIELD1( Ex :  EBAN-ESTKZ ) / RIHFCOM-CUSTFIELD2,how this will be mapped to Standard fields in SAP
    Please help in this regard
    Thanks in Advance.
    Regards,
    Kishore,

    Hi,
    Exit Name Description
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    SDAPO001 Activating Sourcing Subitem Quantity Propagation
    <b>Reward points</b>
    Regarsd

  • User exit structure

    I have to add some custom fields to a structure of an user exit ... can any one suggest me what is the best way to do this??
    Thanks!

    Hi ,
    See the following steps ;
    Step by step procedure for creating Field Exits
    There are eight steps to creating a field exit:
    Step 1:  Determine Data Element
    Step 2:  Go To Field Exit Transaction
    Step 3:  Create Field Exit
    Step 4:  Create Function Module
    Step 5:  Code Function Module
    Step 6:  Activate Function Module
    Step 7:  Assign Program/Screen
    Step 8:  Activate Field Exit
    Step 1:  Determine Data Element
    -     Before you can begin adding the functionality for a field exit, you must know the corresponding data element.
    -     An easy way to determine the data element associated to a particular screen field is to:
              Go the appropriate screen.
              Position the cursor in the appropriate field.
              Press ‘F1’ for field-level help.
              Click on the ‘Technical info’ pushbutton (or press ‘F9’) on the help dialog box.
              On this Technical Information dialog box, the data element will be specified if the field is 'painted' from the           ABAP/4 Dictionary.
    Step 2:  Go To Field Exit Transaction
    -     The transaction to create field exits is CMOD.
    -     You can use the menu path Tools -> ABAP/4 Workbench -> Utilities -> Enhancements -> Project management.
    -     From the initial screen of transaction CMOD, choose the Text enhancements -> Field exits  menu path.
    -     After choosing this menu path, you will be taken to the field exits screen.  From here, you can create a field exit.
    NOTE :  Even though you use transaction CMOD to maintain field exits, you do not need to create a project to activate field exits.
    Step 3:  Create Field Exit
    -     From the field exit screen of transaction CMOD, choose the Field exit -> Create menu path.
    -      After choosing this menu path, a dialog box will prompt you for the appropriate data element .
    -     Enter the data element name and click the ‘Continue’ pushbutton.
    -     Now, you will be able to create the function module associated to the data element’s field exit.
    Step 4:  Create Function Module
    -     You will automatically be taken to the Function Library (SE37) after entering a data element name and clicking the      ‘Continue’ pushbutton.
    -     In the ‘Function module’ field, a function module name will be defaulted by the system based on the data element      specified.  This name will have the following convention:
                        FIELD_EXIT_<data element>
    -     You can add an identifier (an underscore followed by a single character ).
    -     The first function module for a data element’s field exit must be created without an identifier.
    -     To create the function module, click on the ‘Create’ pushbutton, choose menu path Function module -> Create, or      press ‘F5’.
    -     After choosing to create the function module, you will get the warning:  "Function module name is reserved for      SAP".  This message is just a warning so a developer does not accidentally create a function module in the field      exit name range.  By pressing ‘Enter’, you will be able to go ahead and create the function module.
    -     Before coding the function module, you will have to specify the function modules attributes  --  function group,      application, and short text.
    Step 5:  Code Function Module
    -     From the function module’s attributes screen, click on the ‘Source code’ pushbutton or choose the Goto ->           Function module menu path to the code of the function module.
    -     Here you will add your desired functionality for the field exit.
    -     Remember that field exit’s function module will have two parameters -- one importing parameter called "INPUT"      and one exporting parameter called "OUTPUT".  These parameters will be set up automatically by the system.
    -     You must remember to assign a value to the OUTPUT field.  Even if the value does not change, it must be moved      from the INPUT field to the OUTPUT field.
    Step 6:  Activate Function Module
    -     After coding the function module, you must remember to activate it.
    -     Use the Function module -> Activate menu path to activate the function module.
    -     At this point, you can return to the field exit transaction.
    -     You should be able to 'green arrow' back to this transaction.
    -     When you return to the field exit transaction, you will see an entry for the newly created field exit.
    -     At this point, the field exit is global.  That is, it applies to all screens that use a particular data element.  On any      screen that uses the data element, the corresponding field exit function module will be triggered, once it is active.
    -     Also, the field exit will not be triggered yet because it is inactive.
    Step 7:  Assign Program/Screen
    -     This step is only needed if you want to make a field exit local.
    -     To make a field exit local, select the field exit and click on the ‘Assign prog./screen’ pushbutton.
    -     In the dialog box , indicate the appropriate program name and screen number.
         This information indicates that the field exit is local to the specified screen in the specified program.
    -     In the dialog box, you determine which function module gets executed for the field exit by specifying the identifier      in the ‘Fld. Exit’ field.
    -     If this field is left blank, the function module triggered will be 'FIELD_EXIT_<data element>'.
    -     If a single-character identifier is entered into the field, the function module triggered will be 'FIELD_EXIT_<data      element>_<identifier>'.
    Step 8:  Activate Field Exit
    -     The field exit must be active for it to be triggered by the system.
    -     Activate the field exit by choosing the Field exit -> Activate menu path.
    -     After assigning the field exit to a change request, its status will change to ‘Active’ and it will be triggered           automatically on the appropriate screen(s).
    NOTE : In order to activate the field exit the profile parameter abap/fieldexit = YES must be set on all application servers
    Reward points if hhelpful.
    Regards.
    Srikanta Gope

  • Need help in creating a user exit variable

    Hi all,
    I have created a query in which a key figure needs to be automated with an user exit variable.I want to derive the value of this key figure 'x' based on calender month.
    This key figure should get the cumulative value from the first month of the fiscal year till the calender year month entered while executing the query.
    I got a basic understanding on the User exits from SDN. But Im not sure how to implement this logic.
    I would really appreciate if you could provide me a detailed explanation of how to do this.
    Thanks in advance,
    Vinoth

    Hi
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6378ef94-0501-0010-19a5-972687ddc9ef
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2d99121a-0e01-0010-e78c-b1ae566a2413
    http://sap.ittoolbox.com/groups/technical-functional/sap-bw/how-can-i-set-bex-variables-in-i_step3-exit_saplrrs0_001-335232

  • User Exit for Material Group...Urgent help needed

    Does anybody have an idea of which user exit can be used to capture the changes made to material group in MM02(Material)..... Urgent help needed...

    See  the below user exit and this will trigger under MM01,MM02 and MM17 Transaction
    Enhancement name : MGA00001
    Function module :EXIT_SAPLMGMU_001
    Include : ZXMG0U02
    Reward Points if it is helpful.
    Thanks
    Seshu

Maybe you are looking for

  • Billing error ( error in account determination)

    Hi Experts: When I save billing document , the system shows me the following error message , and fail to create invoice document . How can I solve it ,tks Document 9000580503 saved (error in account determination) Message no. VF051

  • Application install starts but status is failed

    Hi guys, I'm running into an issue where I'm deploying Microsoft Office 2010 Pro and although the install starts the status in Software Center is "Failed". Once application finishes installing and I click on "Reply" button status changes to "Installe

  • Using iPhoto to resize digital pictures to match video footage

    I am trying to cange the photo format to 16:9 to match video footage and according to Learning center= "with an image in iPhoto go to Edit mode( that the button at the bottom) nad then choose Custom from the Crop popup menu in the bottom toolbar". Tr

  • Generating cash flow statement

    Dear friends We need to generate cash flow statement as per the accounting standard.How to get that. Again if it is not possible to generate as per accounting standard then pl. tell in the normal way. Thanks Shivaji

  • Create a CI For Search WOrker Page in CRM9.1

    Hi All,     Can we create a CI to upload/modify the person data in CRM9.1. If any one has any document which is related to this please share. Thanks and Regards Awa