Standard Varient

Hi All,
For one of the transaction I have two fileds date and year. Now the requirent is to default the date and year as 2009.
As soon as any user if they open the transaction system should show the default date as current date and the year as 2009.(this is with out selecting varient in the initial screen).
How can this be possible.pls let me know if you need any information

Hello Roopa,
Please check the below link this is full documentation :
http://help.sap.com/saphelp_erp2005vp/helpdata/en/c0/98037de58611d194cc00a0c94260a5/frameset.htm
Have a Nice Day,
Regards,
Sujeet

Similar Messages

  • How to restrict users from creation of varients in report transaction

    Hi All,
    I have a requirement where buisness wants to restrict users in creating varients in report transactions.because of create options users will be creating more screen varients which will be disturbing for the other users to select a particular standard varient.Kindly give ur input regarding this
    With regards
    Girish A

    Hi,
    First edit the role assigned to users using PFCG.
    Then go to Authorization tab and click on "Change Authorization Data".
    It will opened up the profile of the role. now find the authorization object "S_PROGRAM".
    In that edit "User action ABAP/4 program" object.
    Remove "VARIANT" check box if it was checked and save. Now press
    Generate button or "Shift+F5".
    That's it.
    You can ask for this to your basis team. They can perform this task  easily.

  • HR- FI issue

    Hi Everyone
    I need a help in FI issue
    The probelm is that "Error while posting balance field , balance field profit centre line item 001 not filled ( while posting to accounting)
    History of the problem :
    SAP Standard varient : with the sap standard varient it goes directly to the
    concerned profit centre
    ZMSP : with the developed varient when they post it goes to the HR PROFIT centre
    now they do not want to go to the HR profit centre through the zmsp
    when they are using the standard varient it's throwing the error as above said
    please help me in this issue
    as they are Pressurising us to do ASAP, because they have to Process
    payroll

    HI Siva,
       As per the error that you are getting while Posting , The system is expecting some input for the Field <b>Profit centre line item 001</b>, So, try to identify wht was that input field and wht kind of input that it require. Before Posting when ever an error Comes try  to look into it, everything is in it.
    Regards,
    Narendra.

  • Project release - CJ20n

    Hi Friends,
    I need to put authorization while releasing a <b>Project/WBS/Networ/Activity/milestone</b> in CJ20n transaction. Only authorised person should be allowed to do a release.
    Please anybody have a solution for this?
    Thanks & Regards
    Kapil

    Hi
    Check the following Authorization Objects related to the PSystems
    and use the related one for your requirement
    C_AFKO_ACT Activities on network header level                         
    C_AFRU_APL Confirmation: Authorization for actual work center         
    C_AFKO_DIS Network: MRP Group (Plant) and Transaction Type            
    C_CSCR_ACT PS: Activities for Flexible Detail Display                 
    C_VERS_ACT PS: Activities for Project Versions                        
    C_AFVG_TYP PS: Activity types for network act. and activity elements  
    C_PRPS_KOK PS: Controlling Area Authorization for WBS elements        
    C_PROJ_KOK PS: Controlling Area for Project Definition                
    C_PRPS_KST PS: Cost Center Authorization for WBS elements             
    C_MLST_BGR PS: Milestones (Authorization Group)                       
    C_PRPS_USR PS: Model for User Field Authorization for WBS elements    
    C_RESB_TRM PS: Monitoring Dates for Components                        
    C_PLKO_PLG PS: Planner Groups for Standard Networks                   
    C_PRPS_PRC PS: Profit Center Authorization for WBS elements           
    C_PROJ_PRC PS: Profit center for project definition                   
    C_PRPS_VNR PS: Project Manager Authorization for WBS elements         
    C_PROJ_VNR PS: Project Manager for Project Definition                 
    C_PRPS_ART PS: Project type authorization for WBS elements            
    C_SIMU_BGR PS: Simulation (Authorization Group)                       
    C_PSTX_ART PS: Text Type Authorization for PS Texts                   
    C_PROJ_TCD PS: Transaction-Specific Authorizations in Project System  
    C_AFVG_USR PS: User fields network activity. Activ. element model auth.
    C_AFVG_APL PS: Work Center for Network Activities and Activity Elements
    C_PROG_TR  Progress Tracking for Components                           
    C_PROMAN   Project-Oriented Procurement                               
    C_DIP_STDV Standard Varients in DP Processor                          
    Creation of Authorization
    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.
    Reward points if useful
    Regards
    Anji

  • Intracompany Partial Asset Transfer

    Hi,
    I would like to perform a partial asset transfer within the same company code but do not wish to transfer the accumulated depreciation to the new asset - i.e. I would like to transfer a % of the acquisition cost to the receiving asset but leave the accumulated depreciation relating to that % on the sending asset. The standard transfer variant for intracompany asset transfers is "4" and this includes the accumulated depreciation in the transfer posting. I guess I need to define a new transfer variant, but I have not been able to successfully create a new one that will give me the result I would like. Does anyone have any suggestions here? Any thoughts would be greatly appreicated.
    Cheers,
    Matt

    Hi,
    Yes, I do agree with Blaz's comments.
    You can acheive with OAY1 transaction for transferring only APC values.
    in addition to that, according to your client's requirement...are they follow this procedure only for any transfers within one company code? (means, this current requirement is for only one or few specific assets or for all?)
    If this should be for all, then go to OAY1 and select check boxes for all of your dep areas.
    If not, then create a new transfer varient with reference to the standard varient 4. (lets say 4A).
    Check your new transfer varient for, which transaction types were assigned to it for retirement transfers and acquisition transfers?  (probabaly those might be 300 and 310, so create new TTYs with reference to 300 and 310.. and assign them to your new transfer varient.(4A)
    Then go to OAY1, select your newly created TTYs and choose all check boxes for transfer APC only.
    This might help you.
    Thanks,
    Srinu

  • Posting Doc. Type Changing.

    i want to change the Posting Document Type.
    Right now it is Posting with Doc. Type 'AB'.I want to change it to Doc. Type - 'SA'.
    How can i do that.
    Thanx,
    Viru.

    Hi,
    In that case u r posting variant should be changed.
    You have to got to the view V_T52E2  and copy the standard varient there and change the document
    there and save it as a varient . Use this variant while positing the document
    Regards,
    Prince Elvis

  • Hiding Fields in Standard Program :  RFITEMAR ,LDB : DDF

    Hi Experts,
    Am using standard program : RFITEMAR ,as per my requirement i dont need
    to display all the fields in the standard selection screen,i juss want to hide the fields which
    i dont want to dispaly in the selection, as there are some dependencies i dont want keep that code in active state.
    can anyone pls help me/suggest me with my logic/guidance would be helpful and very much appreciated.
    Regards,
    Ashok.

    Hi Marcin,
    Thnaks for your response.
    SHDO Tcode is used for Transcation Varient which is used to hide the fields
    or display additioal fields in sales order.
    According to my requirement i copied the standard program into a custom program
    thats where am tryig to implement changes.am not sure wether that would fulfill my requirement.
    do let me if know any solution /guidance would be helpful and appreciated.
    Regards,
    Ashok.

  • Error While Running Query in SQ00 in Prod Variant Not Standard Created.

    Dear Gurus,
    when i am running a Query in Sq00 T-code it will display a Error message
    the Error is "Variant Standard Not Created" or The Field String "R01" Contains No fields "
    some user is changing in this query so is it possible to retrieve the old version or how can we resolve the issue
    kindly help me
    regards
    RS

    Hi,
    for your quiry,
    Sq00 >>> Put u r quiry >>> go to menu >>> Maintain varient
    or
    T-code SQVI
    Kapil

  • Sap standard report EE01

    Hi All,
    When I run the standard EE01 Report (S_AHR_61016152) I am getting an error log
    of:
    Record could not be found. t5ueeo Z$$000001 2010 17
    Record could not be found, t5uee0 Z$$000001 2011 17
    I have setup variant.
    This error is showing up on all of the variants that I have setup.
    I ran a report for last year for the same varient and it was fne
    with same  varient.
    Thanks,
    Lisa

    Hi Lisa,
    The EEO-1 report is trying to determine the entries for last year's data for the location.  This information is stored in table T5UEEO.  It is stored there when you check the box for "Write results in EEO record".  If you did not do that last year for a location, you will get the warning message as you did.  Since you have not written the data there yet in 2011, you will get the second warning for the same location. 
    If you did not check that box when running last year's report, you can still fill in the data by rerunning the EEO-1 with last year's dates and other selections as you had then and checking the "Write results in EEO record" box.  When you have finalized the 2011 report and are running it for the final time, you should check this box also.  After this, you will only get those messages if you have a new location that was not in the prior year report.
    Paul

  • Way to get alv grid varients info during background execution

    I have used the function module 'REUSE_ALV_GRID_LAYOUT_INFO_GET' to get info alv grid varients i.e already created layout info. Is there any other way of getting this info as this is not giving the exact layout during background execution.

    Hi Vijaya,
    It should work. I am giving you a sample code. Try this and let me know.
    REPORT TEST.
    data gt_lfa1 type standard table of lfa1.
    data gt_kna1 type standard table of kna1.
    start-of-selection.
      select * from lfa1 into table gt_lfa1 up to 10 rows.
      select * from kna1 into table gt_kna1 up to 20 rows.
    end-of-selection.
      if sy-batch eq 'X'.
        perform display_lfa1.
        perform display_kna1.
      endif.
    form display_lfa1 .
      call function 'REUSE_ALV_LIST_DISPLAY'
        exporting
          i_callback_program = sy-repid
          i_structure_name   = 'LFA1'
        tables
          t_outtab           = gt_lfa1
        exceptions
          program_error      = 1
          others             = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    endform.                    " DISPLAY_LFA1
    form display_kna1 .
      call function 'REUSE_ALV_LIST_DISPLAY'
        exporting
          i_callback_program = sy-repid
          i_structure_name   = 'KNA1'
        tables
          t_outtab           = gt_kna1
        exceptions
          program_error      = 1
          others             = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    endform.                    " DISPLAY_KNA1
    copy and paste the code and create a program. Activate it and come back to SE38 screen.
    Now, in program name give the name of the report created and then
    select PROGRAM->EXECUTE->BACKGROUND from the MENU bar.
    This will generate two separate spools . One for KNA1 data & one for LFA1 data.
    Let me know how it goes.
    Thanks,
    Abhishek

  • How to Display Varient on selection screen?

    Hi All,
    the requirement is i need to display the varient on selection screen as  Paramente.
    Display Varient   /STANDARD   as a paramente on selection screen.
    Please let me know how to do it.
    Regards,
    Kumar
    Moderator message: very basic, please search for available information before asking.
    locked by: Thomas Zloch on Aug 12, 2010 12:27 PM

    Hi All,
    the requirement is i need to display the varient on selection screen as  Paramente.
    Display Varient   /STANDARD   as a paramente on selection screen.
    Please let me know how to do it.
    Regards,
    Kumar
    Moderator message: very basic, please search for available information before asking.
    locked by: Thomas Zloch on Aug 12, 2010 12:27 PM

  • Fiscal year varient ecc 6.0

    Hi Gurus
    I  created  one fiscal year varient  ecc .6.0 ,(24 period , april to march)  i can't save  that  varient . i got some information    gap in financial year varient period ZZ
    thanks
    bala

    New G/L is having extended facility comparing to classic G/L. Classic G/L is supported by Sap Table GLT0 whereas New G/L is supported by SAP Table FAGLFLEXT.
    Addl. fields like cost center, Profit center, segment will be available in this table which is not there in OLD table. If it is a new implementation you need not activate New G/L. With all new installation New G/L is activated with the standard SAP.
    New GL concept is used normally in the following situations:
    1. An organization has units in more than one country and has separate currencies and need to maintain separate ledgers.
    2. Different financial years are required for legal requirement. For ex: for the companies act Jan to December and for Income tax act April to March
    3. To Maintain US GAAP or any other GAAP requirements.
    Example:
    Letu2019s assume that your company is in INDIA and US. Your parent company is US which follows FY K4 and Your Indian Company has to submit the balance sheets as per FY V3. Also Indian companies follows Indian GAAP and US company USGAAP.
    Letu2019s assume that there are some accounting differences between these two and the values differ at the time of posting. In such a case you create US company as a Leading ledger with FY variant K4 and Indian company with V3.
    When you are posting transactions which are independent of ledgers the system will post to all the ledgers by default. When you want to post transactions to only effecting Indian GAAP then the Ledger Groups Come in to the picture and you will post to the ledger groups by using FB01L or FB50L. These two transactions will give you the flexibility of posting to selected ledgers.
    In multi ledger environment you use FAGLB03 instead of FS10N and FAGLL03 instead of FBL3N. You can have only one leading ledger and all other are non leading ledgers. You can maintain as many ledgers as you need with different currencies, different fiscal year variants. In classic GL environment you need to configure this by using special purpose ledger and derive your reports. Important concepts in NEW G/L are
    1. Parallel Accounting
    2.Document Splitting     
    3.Integartion

  • Transport standard variant of SAP Query

    Hey,
    I made a SAP Query with SQO1. Within the attributes of the query, I defined a standard variant.
    How can I transport this variant.
    When I go to maintain variant, I can click to program RSTRANSP.
    When I try to execute, I get the following message "Function not possible for local/private objects". In the help it says that I have to create a transport for my program.
    But my query is in a transport. I already transported the query to QAS and it works fine.
    Do I have to put the program also in a transport? The program is SAP generated code with the following name "AQZZZISU========CP_METERS=====". I haven't transported the program but it is available in QAS. So I think I don't need to transport it.
    Does anyone how I can transport my variant?
    Thanks
    Steven

    I have attached the sap Query based on your idea. But I geting small probelm. Please help me on this.
    The varient is created as Protected by default. I can't able to create the varient unprotected. Can you tell me how to create unprotected varient for SAP Query? becuase other user can't able to change the varient it is giving the error message with my user name as " No authorization to change the varient <varient name> Protected by <my user name>".
    Please could you help me how to fix it. this issue?

  • Varients

    hi experts
    what is transaction varients
    what is the tcode to maintain transaction varients

    Transaction variants simplify transaction flow by:
    Inserting default values in fields
    Changing the ready for input status of fields
    Hiding various screen elements and menu functions, or even entire screens
    Adjusting table control settings
    When you create a transaction variant, you run through the transaction in a special mode. In this mode, you decide which elements you no longer need in your transaction and which values should be inserted where. If you choose to hide an entire screen, the system will no longer display that screen in the transaction and will proceed on to the next screen in the series. You can also adjust table control settings and determine the width of columns and the order in which you want them displayed. In tabstrips, you can suppress tabs that you no longer need by setting them to invisible.
    You may also create as many variants for a transaction as you desire. One of these variants can be defined as a standard variant. This variant is then valid across all clients. You may also assign different variants to specific users.
    This is done using variant transactions. Variant transactions are then placed in those users’ user menus instead of the standard transaction.
    Transaction code for   Transaction Variants is SHD0

  • User exits & varients in SAP

    hi
      i want to know conceptually what are User Exits and  varients , what is the purpose of using these .
       iAftr learing that i want to a practical example on both topics then , if any one have some good material on these plz send me on [email protected]
    thanx

    Hi
    User Exits in FI/CO
    R/3 provides three "customization spots" that allow you to enhance FI/CO features without modifying the standard code. Although often collectively referred to as "user exits," two of the three have different names. SAP Enhancements are used to expand the standard functionality within SAP. Enhancements use function modules and are called from the standard SAP code. Each module in the system has a set of delivered enhancements that help companies expand the standard functionality where they need it. Enhancements were new in release 3.0.
    The Open FI Interfaces or Business Transaction Events are also used to expand the standard functionality within SAP. These events are defined in the IMG. Business Transaction Events were new in release 4.0. They are not available for all modules and are not called on all integrated transactions into FI as of release 4.5B. This will change with each release and should be retested.
    The older User Exits in FI/CO are "Z" programs that are defined in table T80D for client-dependent user exits, and in table T80I for client-independent user exits. These are also used to expand the standard functionality within the FI/CO modules. These User Exits have been available since the early releases of SAP. All of these FI/CO User Exits are listed in this document in the Configuring User Exits (Older). The list is included because these User Exits are not a part of the Enhancements or Business Transaction Events and do not have an Info System for searching.
    Benefits
    •     Standard SAP functionality can be enhanced without modification to the standard code.
    •     Upgrades do not erase the functionality and it does not have to be re-transported or re-entered into the system. The enhancements should be thoroughly tested when upgrading to ensure the system will still work as implemented.
    Configuring SAP Enhancements
    Basic Steps in Configuring an Enhancement
    •     Find the appropriate Enhancement.
    •     Enter the ABAP code in the "Z" program within the function module.
    •     Create a project.
    •     Add the Enhancement to the project.
    •     Activate the project.
    Example Business Scenario for Enhancements
    Company A has a requirement to validate all customer master records created with a U.S. address. The U.S. entity reports on the industry field on the customer master. This is only a U.S. requirement and should not be required for the other countries, so the field status would not work. To accomplish this requirement, Company A will need to set up an Enhancement for the customer master transaction. The necessary steps are detailed below with screenprints. This example was configured in a 4.6C system.
    Detailed Steps
    1.     Tools   ABAP Workbench   Utilities   Enhancements   Definition   Utilities   List Enhancements
    2.     Do not execute this without any parameters! There are too many Enhancements and it will probably time out. You’re searching for a customer master exit. Enter mast in the short text (see Figure 1). You’ll start there. Searching for an exit can be tricky, so make sure you try several things before giving up.
    3.     Execute the search.
    Figure 1. Start Your Search for a Master Exit Here
    4.     Look through the list until you find the Enhancement for User exits: Customer Master Data.
    5.     Double-click on the enhancement SAPMF02D. This will take you to the details of the Enhancement and list the function modules included in the Enhancement.
    6.     To continue, double-click on the function module EXIT_SAPMF02D_001
    7.     This will take you to the source code for the function module. Click on the Import tab to review the tables/fields that are available for the Enhancement (see Figure 2).
    Figure 2. The Tables That Are Available for the Enhancement
    8.     To view the tables/fields that can be changed in the function module, click on the Export and Changing tabs. For this function module, these tabs are empty because you can only validate data. You cannot change any fields in this enhancement.
    9.     Return to the Source Code tab.
    10.     Scroll down until you see the Include statement in the program. The "Z" program listed after the Include is where your code will be written (see Figure 3).
    Figure 3. Your Program Will Begin After the Include Statement
    11.      Double-click on the Include. You will be prompted to create the include. Click on Yes to create.
    12.      At this point you will be prompted to enter a development class and to create a transport request. If you do not know which development class to use, please contact your technical team.
    13.     Enter the following ABAP code into the program (Figure 4):
    User exit to ensure that all US customers have a group key
    entered on the customer master.
    if i_kna1-land1 = 'US' and
    i_kna1-brsch = ' '.
    message e001(F2).
    endif.
    Figure 4. The ABAP Code You Need to Enter
    14.      Note that the table name matches the table name in the import tab tables.
    15.      In this example you are using the standard message class F2 with message number 001. Normally, you will create your own message within your own message class. All customer message classes must begin with a "Z" and are created in transaction SE91.
    16.     Save the program.
    17.     The next step is to create the project. Go to transaction code CMOD or follow menu path: Tools   ABAP Workbench   Utilities   Enhancements   Project Management.
    18.     Enter the project name; begin the name with a "Z."
    19.     Click on the Create button.
    Figure 5. Click on Create After You Type in the Project Name
    20.      Enter in a description for the project.
    21.      Click on the Enhancement Assignments button.
    22.      You will be prompted to save the enhancement. Click on Yes.
    23.      At this point you will be asked for a development class and to create a transport for the project. You may use the same one created when adding the ABAP code to the function module.
    24.     Enter the name of the enhancement SAPMF02D (see Figure 6).
    Figure 6. Enter the Name of the Enhancement Here
    25.     Save the project.
    26.     Back out of the enhancement assignment.
    27.     Activate the project by hitting the Activate button.
    The SAP Enhancement is ready to be tested! Try creating a customer with U.S. as the country and a blank group key. Be sure to test one with a group key to make sure the message is not displayed in error as well.
    Configuring Business Transaction Events
    Basic Steps in Configuring an Event
    •     Make sure the application is active for Business Transaction Events.
    •     Copy the sample interface function module into a "Z" function module.
    •     Enter the ABAP code into the source code section of the new "Z" function module. You may choose to create a "Z" program to enter the code into and then insert the "Z" program into your function module source code.
    •     Activate the function module.
    •     Assign the function module to the event, country and application.
    Example Business Scenario for Business Transaction Events
    Company A would like to copy the group key field from the vendor master into the allocation field on all the line items within a vendor invoice and payments, including the vendor lines. This requirement assumes only one vendor is posted to in a document.
    To accomplish this requirement, Company A will use the Business Transaction Event 1130, Post Document: SAP Internal Field Substitution.
    1.     IMG Menu Path: Financial Accounting   Financial Accounting Global Settings   Use Business Transaction Events   Environment   Infosystem (Processes).
    2.     Find the correct Business Event. You are updating a field, so you select the Processes Info System instead of the Publish and Subscribe Info System.
    3.     Execute the search with the defaults.
    4.     Find the correct interface for updating a document: Post Document: SAP- Internal Field Substitution (see Figure 7).
    Figure 7. Find the Correct Interface for the Business Event
    5.     Put your cursor on the event and click on the Sample Function Module button.
    6.     You are now in transaction SE37 – Function Builder. This is the function module (sample_process_00001130) you will need to copy into a "Z" name function module for your coding (see Figure 8).
    Figure 8. This Is the Function Module You Need to Copy Your "Z" Name Function Module
    7.     Click on the Copy button.
    8.     Enter the "Z" function module name in the To Function Module field (see Figure 9).
    9.     Enter a Function Group. If you need to create a "Z" function group, go to transaction code SE37 and follow menu path: Go to   Function Groups   Create Group. A function group is a logical grouping of function modules, and the ABAP code is generated for function groups. You will be prompted for a development class and transport when creating the function group.
    Figure 9. Enter Your "Z" Function Module Name Here
    10.     In Function Builder (transaction SE37), enter the new "Z" function module. Click on the Change button.
    11.     The system will default into the source code screen where you may enter your ABAP code.
    12.     Notice the tables available for the code. Additional tables may be declared if necessary.
    13.     Enter the following source code (see Figure 10):
    tables: lfa1.
    data: z_groupkey like lfa1-konzs.
    z_groupkey = ' '.
    loop at t_bseg.
    check for vendor lines. If one is found, read the vendor master and
    retrieve the group key field.
    if t_bseg-koart eq 'K'.
      select single konzs from lfa1 into z_groupkey
        where lifnr = t_bseg-lifnr.
    endif.
    Move the group key field into all line items allocation field.
    loop at t_bsegsub.
      t_bsegsub-zuonr = z_groupkey.
      modify t_bsegsub index sy-tabix.
    endloop. "t_bsegsub
    endloop. "t_bseg
    Figure 10. The Screen Where You Enter Your Source Code
    14.     Save the function module.
    15.     Back out to the main Function Builder screen by clicking on the green arrow button.
    16.     Activate the function module by clicking on the Activate button (see Figure 11).
    Figure 11. Activate the Function Module from This Screen
    17.     Assign the function module to the event in the IMG: Financial Accounting   Financial Accounting Global Settings   Business Transaction Events   Settings   Process Function Modules   of an SAP Appl.
    18.     Hit enter past the warning messages that this is SAP data.
    19.     Click on the New Entries button.
    20.     Enter the process for your interface. In your example it is 00001130.
    21.     Enter the country the interface is valid for. If it is valid for all countries, leave this field blank.
    22.     Enter the application the interface should be called for. If it should be called for all applications, leave this field blank. Please note that not all integrated transactions are programmed to go through these interfaces! You will need to test to find out!
    23.     Enter the new "Z" function module (see Figure 12).
    Figure 12. Enter Your New "Z" Function Module Here
    24.     Save the settings. At this point you will be prompted for a CTS number for the configuration change.
    25.     The Business Transaction Event is complete! You are ready for testing.
    Configuring User Exits (Older)
    Basic Steps in Configuring an User Exit
    •     Create a "Z" program for the User Exits and enter the necessary ABAP code.
    •     Enter the new program name into table T80D.
    •     Configure the application to call the User Exit.
    List of User Exits
    •     Variable Field Movements
    •     Substitutions in FI, CO, PCA
    •     Validations in FI, CO, PCA
    •     Rollups in SPL
    •     Fixed Field Movements in SPL
    •     Cost Center Summarization on Detail Screen
    •     Sets Formula Variables
    Example Business Scenario for User Exits
    Company A would like to add a "Z" field in the Special Purpose Ledger to capture a Business Unit field for reporting. They have used all the standard SAP fields such as Business Area and Profit Center. The field will only be used for reporting and is only needed in the Special Purpose Ledger. You created a special ledger table (ZZSPL1) with field Z_BUNIT and need to populate this field based on a combination of G/L account, fund and functional area.
    To accomplish this requirement, Company A will use the Variable Field Movement User Exit. To make maintenance easier, table ZZBUSUNIT was created with the G/L account, fund and functional area fields as key fields, and the business unit field as a non-key field. You generated the table maintenance so the table could be updated using transaction SM30. SAP users update the business unit determination rules in table ZZBUSUNIT by entering the G/L account, fund and functional area, and then the business unit that combination should be posting to. The User Exit will read table ZZBUSUNIT using the G/L account, fund and functional area from the posting transaction and determine the business unit. The steps for using the user exit are detailed below. This example was created on a 4.6C system.
    1.     Copy the delivered template User Exit program RGIVU000_TEMPLATE into a "Z" program. Follow menu path Tools   ABAP Workbench   Development   ABAP Editor (transaction code SE38). In early releases, the delivered program was RGIVU000.
    2.     You will be prompted for a development class and a transport. Please check with the technical team for the correct development class.
    3.     At the initial ABAP Editor screen, enter your new "Z" program name, select the Source Code button and click on Change (see Figure 13).
    Figure 13. To Enter Your New Code, Select Source Code and Click on the Change Button
    4.     Enter the following code in the User Exit (Figure 14):
    FORM E01_MVC USING FROM_FIELD TO_FIELD.
    to_field = 'CORP'. "Set a default business unit.
    read table zzbusunit to determine the business unit field.
    select single z_bunit from zzbusunit into to_field
       where hkont = accit_glx-hkont and
        geber = accit_glx-geber and
        fkber = accit_glx-fkber.
    ENDFORM.
    Figure 14. Enter Your New Code at This Screen.
    5.     Activate the program by clicking on the Activate button.
    6.     Change the configuration in the User Exit table to point to your new "Z" program.
    7.     Follow the IMG menu path: Financial Accounting   Special Purpose Ledger   Basic Settings   User Exits   Maintain Client Specific User Exits.
    8.     The entry to maintain is application area GIMV: Variable Field Movement. Enter your "Z" program (see Figure 15).
    Figure 15. Enter Your "Z" Program in the Application Area GIMV: Variable Field Movement
    9.     Save the changes.
    10.     The final configuration step is to assign the User Exit in the variable field movement for your special ledger table. In the IMG: Financial Accounting &#61664; Special Purpose Ledger &#61664; Basic Settings &#61664; Master Data &#61664; Maintain Field Movements. Field movements control how the fields in a special ledger table are populated. They can be populated straight from other fields in a posting or through User Exits.
    Figure 16. After You Assign the Business Unit Field and the G/L Account, the Exit Field Should Contain U01.
    11.     Assign the business unit field as a receiver and the G/L account as the sender. The Exit field should contain U01 (see Figure 16).
    12.     The User Exit number U01 calls User Exit E01_MVC form in the "Z" program.
    13.     Save the field movement.
    14.     You are ready to test your User Exit!

Maybe you are looking for

  • Changing the value of the login URL when load balancers are used?

    Howdy, We are running Sun access manager 7 and web policy agent 2.2 on two Sun One web servers. Both of these servers sit behind a load-balancer, and the load-balancer is terminating SSL. The servers are named server1.domain and server2.domain, and t

  • Flash Page

    Can someone tell me how or what I need to do, that will allow me to design a similiar page like this one: http://finoformen.com/press.php and click on view then the screen opens verticle/horizontal. Is this a plugin, please help thanks.

  • Why is my ipad screen has a ghoshtly white screen color?

    WHy is my ipad screen has a ghostly white color?

  • FCE Still Images Project

    This is my second project of all stills - about a 100 in each project. I have them in the timeline with a transition on each. The still duration is 5 seconds. I have one issue - There is a slight nudge to the image as it goes from transition to full

  • Errors right out of the box

    I got a new iPod last night. Plugged it in, started putting music on it. After about 5 minutes I got an error which said "Unable to read from or write to disk". I tried it again. Every time it would start putting some songs on the iPod and after a li