Transaction code 'CL22N' - Assign class to superior class

Hi
I have recently realised that SAP allows a class (for example XYZ) to be assigned to itself (XYZ) as a superior class.
My question is: Is it possible to prevent this from happening via configuration or any other functionality??
Thanks
Felix

Hi
TSTC SAP Transaction Codes
TSTCT Transaction Code Texts
TDEVC Development Classes
regards
Shiva

Similar Messages

  • If a transaction code is assigned to a method of a global CL,how it works?

    Hi gurus,
    here is my question with options below.
    In a OO transaction, a transaction code is assigned to a method of a global class
    CL_A. Afterwards,
    this method can be called directly using the transaction code. What limitation
    exists with regard to the (instance) constructor of this class CL_A?
    - The constructor must not have any importing parameters.T
    - There is no limitation. F
    - The constructor must be defined in the protected section.F
    Kindly give me the explanation...

    Hi Babu,
    This transaction type is called "OO transaction model".
    This is what the system do when you execute a OO transaction model:
    "  Start the OO application
       CREATE OBJECT OO_APPLICATION TYPE (CLASS).
       CALL METHOD OO_APPLICATION->(METHOD).
    "  Leave the transaction, because the application is finished
    "  after calling its 'main' method.
       LEAVE PROGRAM.
    There is same limitations:
    - If you calling up a transaction that is linked to an instance method, the system automatically generates an instance( the constructor method is automatically called ) of the class in its own internal session.
    <b>- The method called and the constructor methods must not have import parameters defined as mandatory. Otherwise a Short dump will prensented for you "<i>A mandatory parameter was not populated when dyn. calling a method</i>".</b>
    - You can't define a CONSTRUCTOR Method in Private or Protected Section, Constructor Must be Public.
    - COMMIT WORK is expressly forbidden when you use the OO transaction model to avoid consistency problems.
    Kind Regards,
    Marcelo Ramos

  • Creating of Notes for Transaction Code RECN(Using Classes and Methods)

    Hi Experts,
    I want to Create Notes for Transaction Code RECN, This should not done manually but should be done programatically.
    I had used the Class CL_GOS_SRV_NOTE_CREATE to create the notes.....but here comes the doubt for me.....note will be created by using this class and how this can be created for the Tcode RECN........
    I am using the Real Estate Module.....Plz help me....awaiting for ur helpful answers....
    Thanks in Advance.....!
    Brahma

    Hi kanagaraja,
    Thanks...!
    The BADI which u have given is not existing in my system...i had gone through the se18 and se19 tcodes....
    Awaiting for ur response......!
    Thanks,
    Brahma...

  • ARA does not show Violations in a role though conflicting transaction codes are assigned???

    Hi,
    I have noticed that a role having conflicting transaction codes assigned in the back end system is not propelry analyzed and in ARA application. When this role is analyzed, "No Violations" message is shown though there are conflicing transaction codes assigned.
    As far risk definitaion is concerned, conflicting actions are properly defined in respective conflicting actions and thse actions are grouped in a risk, which is applicable to a logical group (which in turn has the connector included causing this problem) and they are active.
    Rule are properly generated for the all the risks and functions. However, at the time of running risk analysis for this role, ARA is not showing as risk.
    May any one please advise on this?
    Regards,
    Rehan

    Neeraj,
    Now I have defined SAP_R3_LG logical group as "SAP" connector type and regenerated all the rules. Still it is showing no violations!
    Below are the screens for your reference:
    Can you please advise?
    Regards,
    Rhn

  • Transaction code & module Assignment

    Hello,
    Is there any table that combines the transaction code & the folder from the SAP menu or the module  in which exists ?
    For example MIGO Exists in "Logistics -> Material Management -> Inventory Management -> Goods Movement"
    Thanks in advance
    Edited by: stratos_chm on Sep 7, 2010 10:17 AM
    Edited by: stratos_chm on Sep 7, 2010 10:17 AM

    You dont help me.
    I want a table which has the below kind of information
    MIGO - Material Management
    XD03 - Sales Management
    QA32 - Quality Control
    The report you mention doesn't do that.
    Thanks.

  • Transaction code with Develpment Class

    Hi,
      I wanted to retrive only the TCodes which are related to Specific DevClass.
    How can I do that?
    Eq: if DevClass = 'zxx'.
    I wanted to retrive only TCodes which are in ZXX devclass

    Hi Paveen,
    Use Table TADIR..
    Specify program ID as R3TR .
    object type as TRAN.
    Package as ur Development class.
    Hope ur problem is solved.
    Reward points.
    Babul.

  • Transaction code to assign the function module to the process code

    Hi,
    What is the transaction to assign the function module to the process code

    Hello Preethi,
    Try with these Tcodes:
    <b>
    WE41                           0000  Process codes, outbound
    WE42                 RSECODIN  1000  Process codes, inbound
    WE43                           0000  Funct.module: Status record display</b>
    If useful reward.
    Vasanth

  • Want TRANSACTION CODE

    hai friends
        I)i want TRANSACTION CODE for Developement class.
       II)how to create new transaction code

    Transaction code for creation/ viewing of dev. class: SE80
    To create custom (Y or Z)transaction codes, use SE93. It has various options like report transactions, dialog transations etc.
    Hope this helps.
    Sudha

  • Company code not assigned to country or country to calculate procedure

    Hi,
    When i am creating RFQ in MM its giving error "Company code not assigned to country or country to calculate procedure".
    Please help me out.
    Thanks in Advance,
    Regards,
    Shankar

    Hi,
    Check this
    Please check the settings at spro-FItax on sale and purchasesbasic settings--check calculation procedure-/-Assign country to calculation proceedure.
    Assign country to calculation procedure in OBBG.
    Check whether tax code is assigned to company code in SproLO general-Tax on goods mov.IndiaBasic settingsCondition Based tax Procedure--Assign tax code to company code.
    Try this also
    Do the Following Customisation :
    Step 1: Check Calculation Procedure
    IMG >Financial Accounting>Financial Accounting Global Settings >Tax on Sales/Purchases>Basic Settings >Check Calculation Procedure 
    Tax procedures are available in SAP for most of the countries. In case a tax procedure is not defined for your country proceed as follows:
    In this go to Define Procedures Check for TaxINJ or TaxIN 
    If it does not exist create a new one by copying it from TaxGB
    Step 2: Assign Country to CalculationProcedure
    IMG >Financial Accounting>Financial Accounting Global Settings >Tax on Sales / Purchases > Basic Settings >Check Calculation Procedure 
    In this step we assign the calculation procedure created in the earlier step to the country. The country is the country of the company code.
    If you are living in India, then your country of the company code is India. 
    Step 3. Define TaxCodes for Sales and Purchases
    IMG>Financial Accounting>Financial Accounting Global Settings >Tax for Sales and on Sales/Purchases >Calculation>Define Tax Codes
    Update the following:- 
    Define two Zero Tax Codes input and Output Tax codes.
    Go to OB40 Transaction code and Assign GL Account.
    Do this your problem will be solved.

  • Local Class Transaction Code Problem

    Hi friends,
            I have created report program using local class. I have also used selection screen to get input from user. I have created oops transaction code (using se93) for that program.
    Problem is selection screen is not displayed when program is executed using tcode.
    I think logically it not possibel to display the selection screen. Is it true?. OR
    What Should I do?.
    Next Question is, I have also created  global class from my report program. But i cant able to find my class in se24.
    I have done following things.
      1) imported a local class from my report prg. ( In pop up screen that class icon(circle shaped icon) shown in gray colour)
      2) Assigend New class name starting with 'Z'.
      3) Selected overwrite existing class checkbok.
      4) selected import icon.
          'Import Completed Succesfully' message appeared. Still i am not able to find my class.
         Kindly provide answers.
    Thanks In Advance,
    S.Senthil

    Hi senthil kumar ,
    u can display the selection screen and secondly try to create your report in module pool type,
    and when also check if the class is activated or not and then check in se24,
    if still the issue remains
    let me know...
    thanks
    ravi

  • Transaction code which using method of a class as start object

    Hi all,
    I'm creating a new tcode 'Z123' which is tied to a method of a class in SE93. However, when I run this tcode and into debug mode, SY-TCODE will always return OS_APPLICATION. How can I get the actual tcode, which is 'Z123' into my program?
    Thanks in advance

    You can try using the method GET_CURRENT_TRANSACTION of class CL_DYNPRO. Check this SAP documentation for details:
    ... the method GET_CURRENT_TRANSACTION of the class CL_DYNPRO can be used to obtain the transaction code of the current transaction. This method returns the transaction code during a parameter transaction or variant transaction instead of the transaction code of the implicitly called dialog transaction.
    But if i try checking sy-tcode in a tcode bound to a method of a class i get the correct tcode & not OS_APPLICATION.
    Br,
    Suhas

  • Assign Class and Characteristic to equipments

    All
    I have uploaded class and characteristics with values in to the system. Now I have to assign several Equipments to Class and Characteristics with values.
    How can I achieve this other than recording method.
    Is there any standard Direct input method or any BAPI to do the same
    Please assist me in uploading the same.
    Murad

    Hi,
    You can use IBIP transaction on SAP to assign classes and classification values on equipments or Functional Locations on SAP.
    Transaction IBIP use standard SAP BAPIS to upload information
    Please review the link below to have additional information
    http://help.sap.com/saphelp_45b/helpdata/en/35/a47db0763e0392e10000009b38f9b7/content.htm
    Best Regards
    Carlos

  • Assign Transaction Code to own Vendor open items report

    Hi,
    I have created my own version of S_ALR_87012078 by copying the report and the form and making necessary changes in the report and form etc.
    Now, I would like to assign a transaction code to my report, could you please let me know how I can do that.
    Thanks,
    Sandeep

    Hi Sudheer,
    Thanks for the information.I have figured it as under,
    SU53, create transaction code,
    Select Transaction with paramters
    Transaction: START_REPORT
    Copy screen and values as in the standard program and replace standard report with your customer report name and it works brilliant.

  • What is the proper way to code a "wrapper" class?

    Basically I want to replace an existing Action with a custom Action, but I want the custom Action to be able to invoke the existing Action.
    The following code works fine. I can create a custom Action using the existing action and the text on the button "paste-from-clipboard" is taken from the existing Action. So everything works great as long as the existing Action extends from AbstractAction.
    However the Action interface does not support the getKeys() method which I used to copy the key/value information from the existing action to the wrapped action. So if you try to create a button from some class that strictly implements the Action interface the key/value data in the wrapped Action will be empy and no text will appear on the button.
    So as the solution I thought I would need to override all the methods in the wrapped Action class to invoke the methods from the originalAction object. That is why all the commented code in the class is there. But then the protected methods cause a problem as the class won't compile.
    Do I just not worry about overriding those two methods? Is this a general rule when creating wrapper classes, you ignore the protected methods?
    import java.awt.*;
    import java.awt.event.*;
    import java.beans.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class WrappedAction extends AbstractAction
         private Action originalAction;
         public WrappedAction(JComponent component, KeyStroke keyStroke)
              Object key = getKeyForActionMap(component, keyStroke);
              if (key == null)
                   String message = "no input mapping for KeyStroke: " + keyStroke;
                   throw new IllegalArgumentException(message);
              originalAction = component.getActionMap().get(key);
              if (originalAction == null)
                   String message = "no Action for action key: " + key;
                   throw new IllegalArgumentException(message);
              //  Replace the existing Action with this class
              component.getActionMap().put(key, this);
              //  Copy key/value pairs to
              if (originalAction instanceof AbstractAction)
                   AbstractAction action = (AbstractAction)originalAction;
                   Object[] actionKeys = action.getKeys();
                   for (int i = 0; i < actionKeys.length; i++)
                        String actionKey = actionKeys.toString();
                        putValue(actionKey, action.getValue(actionKey));
         private Object getKeyForActionMap(JComponent component, KeyStroke keyStroke)
              for (int i = 0; i < 3; i++)
              InputMap inputMap = component.getInputMap(i);
              if (inputMap != null)
                        Object key = inputMap.get(keyStroke);
                        if (key != null)
                             return key;
              return null;
         public void invokeOriginalAction(ActionEvent e)
              originalAction.actionPerformed(e);
         public void actionPerformed(ActionEvent e)
              System.out.println("custom code here");
              invokeOriginalAction(e);
         public void addPropertyChangeListener(PropertyChangeListener listener)
              originalAction.addPropertyChangeListener(listener);
         protected Object clone()
              originalAction.clone();
         protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
              originalAction.firePropertyChange(propertyName, oldValue, newValue);
         public Object[] getKeys()
              return originalAction.getKeys();
         public PropertyChangeListener[] getPropertyChangeListeners()
              return originalAction.getPropertyChangeListeners();
         public Object getValue(String key)
              return originalAction.getValue(key);
         public boolean isEnabled()
              return originalAction.isEnabled();
         public void putValue(String key, Object newValue)
              originalAction.putValue(key, newValue);
         public void removePropertyChangeListener(PropertyChangeListener listener)
              originalAction.removePropertyChangeListener(listener);
         public void setEnabled(boolean newValue)
              originalAction.setEnabled(newValue);
         public static void main(String[] args)
              JTextArea textArea = new JTextArea(5, 30);
              JFrame frame = new JFrame("Wrapped Action");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.add(new JScrollPane(textArea), BorderLayout.NORTH);
              frame.add(new JButton(new WrappedAction(textArea, KeyStroke.getKeyStroke("control V"))));
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.setVisible( true );

    I can't get the PropertyChangeListener to fire with any source. Here is my test code. Note I am able to add the PropertyChangeListener to the "Paste Action", but I get no output when I add it to the WrappedAction. I must be missing something basic.
    import java.awt.*;
    import java.awt.event.*;
    import java.beans.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    public class WrappedAction3 implements Action, PropertyChangeListener
         private Action originalAction;
         private SwingPropertyChangeSupport changeSupport;
          *  Replace the default Action for the given KeyStroke with a custom Action
         public WrappedAction3(JComponent component, KeyStroke keyStroke)
              Object actionKey = getKeyForActionMap(component, keyStroke);
              if (actionKey == null)
                   String message = "no input mapping for KeyStroke: " + keyStroke;
                   throw new IllegalArgumentException(message);
              originalAction = component.getActionMap().get(actionKey);
              if (originalAction == null)
                   String message = "no Action for action key: " + actionKey;
                   throw new IllegalArgumentException(message);
              //  Replace the existing Action with this class
              component.getActionMap().put(actionKey, this);
              changeSupport = new SwingPropertyChangeSupport(this);
            originalAction.addPropertyChangeListener(this);
            addPropertyChangeListener(this);
          *  Search the 3 InputMaps to find the KeyStroke binding
         private Object getKeyForActionMap(JComponent component, KeyStroke keyStroke)
              for (int i = 0; i < 3; i++)
                  InputMap inputMap = component.getInputMap(i);
                  if (inputMap != null)
                        Object key = inputMap.get(keyStroke);
                        if (key != null)
                             return key;
              return null;
         public void invokeOriginalAction(ActionEvent e)
              originalAction.actionPerformed(e);
         public void actionPerformed(ActionEvent e)
              System.out.println("actionPerformed");
    //  Delegate the Action interface methods to the original Action
         public Object getValue(String key)
              return originalAction.getValue(key);
         public boolean isEnabled()
              return originalAction.isEnabled();
         public void putValue(String key, Object newValue)
              originalAction.putValue(key, newValue);
         public void setEnabled(boolean newValue)
              originalAction.setEnabled(newValue);
         public void xxxaddPropertyChangeListener(PropertyChangeListener listener)
              originalAction.addPropertyChangeListener(listener);
         public void xxxremovePropertyChangeListener(PropertyChangeListener listener)
              originalAction.removePropertyChangeListener(listener);
         public void addPropertyChangeListener(PropertyChangeListener listener)
            changeSupport.addPropertyChangeListener(listener);
        public void removePropertyChangeListener(PropertyChangeListener listener)
            changeSupport.removePropertyChangeListener(listener);
         public void propertyChange(PropertyChangeEvent evt)
             changeSupport.firePropertyChange(evt.getPropertyName(), evt.getOldValue(), evt.getNewValue());
         public static void main(String[] args)
              JTable table = new JTable(15, 5);
              WrappedAction3 action = new WrappedAction3(table, KeyStroke.getKeyStroke("TAB"));
              action.addPropertyChangeListener( new PropertyChangeListener()
                   public void propertyChange(PropertyChangeEvent e)
                        System.out.println(e.getSource().getClass());
              action.putValue(Action.NAME, "name changed");
              Action paste = new DefaultEditorKit.PasteAction();
              paste.addPropertyChangeListener( new PropertyChangeListener()
                   public void propertyChange(PropertyChangeEvent e)
                        System.out.println(e.getSource().getClass());
              paste.putValue(Action.NAME, "name changed");
    }

  • Transaction Code assignment for Query created in SQVI

    Dear All,
    Good morning I hope you are doing great...
    Can any body help me out to assign transaction code for Query which was created through SQVI transaction.
    Regards,
    Murali.

    Hi Murali Mohan
    1>go to SQVI t code and  enter your query name and press enter
    2>In the menu path select Quick view--> additional functions-->Generate Program
    3>After Generating the program In the menu path select Quick view--> additional functions-->Display report Name
    4>Now in se38 enter the report name in Program field and execute
    5>You will get the Initial Selection screen of the report . Go to Menu of System -->Status
    6> Note down the Program name and Screen number
    7>Go to SE93 and Create a Z tcode for the query, Enter the description  and importantly you have to select the 2nd Option radio Button Program and Selection Screen (Report Transaction) and Press enter
    8>In the next screen enter the Report name In Program field and enter the screen number
    9>In the classification Section select Professional user  Transaction
    10>In GUI support section select all the options  i.e SAPGUI for HTML,Java,Windows
    and save
    the system will ask for Package select your package if not there then select local object
    now execute the Z tcode your report will run sucessfully
    Regards
    Vijay hebbal

Maybe you are looking for