How to find called T-code/Program of another T-code/Program

Hi Experts,
    Transaction 1 calls Transaction 2. I need to know, which transaction called transaction 2, being in transaction 2. How?
i.e., Can I find the program which called the current program which is running??  Is there any function module to find out??
Thanks and regards,
Venkat

Standard program is calling custom program and I want to know the standard program.
I created a menu item in help menu of sap screen. So, that Item will come, wherever you are( all SAP sessions ).
I want to give help info based on the t-code in which my new menu item was clicked.
So, I created a new menu item in standard pf-status, which will call my custom program.
In that pf-status I have set the function type as transaction code and it calls the custom transaction code as I require.
Now in my custom transaction code's program, I need to check, from which standard transaction I clicked the new menu item.
I think now you will be able to catch my requirement.
Edited by: VENKAT RAMAN on Dec 9, 2009 3:41 PM
Edited by: VENKAT RAMAN on Dec 9, 2009 3:42 PM

Similar Messages

  • How to find out the condition type of the tax code in the PO document

    Hi friends,
    My questions is how to find out the condition type of the tax code in the PO document.
    When you use me23n to display one PO document. In the invoice tab, there is one text field named 'tax code' whose value could be T1, T2, J1, J2 and so on. Beside the text field, there is one button named taxes. When you click the button taxes, it will show you the condition type of the tax code. For example, if the tax code is 'T1', then its condition type 'mwcn'.
    I want to use the information on the PO to find out the value 'mwcn' of the tax code 'T1'. Could anybody help to describe the logic?it looks like the value is saved in the table konp. But I don't know the logic. Please describe. Thank you.

    Hi,
    Hope you have asked for select query..
    select single knumh from a003 into wa_knumh
      where mwskz = wa_itpotab-mwskz
      and kappl = 'TX'
      and aland = 'IN'.
    select single kbetr from konp into wa_kbetr
      where knumh = wa_knumh.
    cheers,
    Dep

  • How to find out the last date & time on which a program has been run

    Hi Experts,
    Can anybody tell how to find out the last date on which a purticular program has been run.
    Valuable answers will be rewarded.
    Thanks & Regards,
    Satish.

    Hi!
    Try STAD transaction. Unfortunately it contains a huge amount of data, so it is available only for a few days backwards... Maybe some weeks, but you can't make yearly reports from its data... So it's not useful to see, which program is in use or not...
    I planned once to download it weekly, but it was not so important...
    Regards
    Tamá

  • How to find User Exits/ Enhancments/ BADI's for T-code CJ20N

    Hi All,
        In T-code CJ20N, assume there are two fields A & B. User will input value in A, based on A value I need to fill B field. So I need to find first suitable User Exit/ Enhancment/ BADI.
    Kindly help me in this regard. Pls tell me how to find User Exit/ Enhancment/ BADI for a given t-code.
    Regards
    Jaker.

    Hi,
    Check the following , this might help,
    1. CNEX0037
    2.CNEX0038
    3.CNEX0039
    Regards
    Kiran Sure

  • How to find the standard smartform,sap scripts and theur driver programs

    Hi friends,
    can any one tell me how to find the standard smartforms and their driver programs and same for scripts also.
    bye
    sasi

    Hi sasidhar,
    1. Either standard or Y sapscript layouts,
       we can check their standard programs
       in this manner also.
    2. goto se71
       open the layout in DISPLAY mode.
    3.  FORM------> CHECK -
    > TEXTS
    4.  a small window will come.
        click ok (tick button)
    5. Again a new window will come
      which will list out all the DRIVER programs,
      which use this layout.
    regards,
    amit m.

  • How do you call two actionscript files in another as3

    My problem is that i what to call two actionscript files in another one, but cant do it.
    This is are the two codes i want to play at the same time in my scene:
    Code 1
    * Inventory System Manager
    * DATE: 07/24/2010
    * AS3
    * UPDATES AND DOCUMENTATION AT: http://www.FreeActionScript.com
    package 
        import flash.display.Sprite;
        import com.freeactionscript.inventorySystem.InventorySystem;
        public class Main extends Sprite
            private var _inventorySystem:InventorySystem;
            public function Main()
                //InventorySystem(reference to stage in the fla)
                _inventorySystem = new InventorySystem(this);
    Code 2
    * Player Movement - 8-way keyboard
    * VERSION: 1.0
    * DATE: 9/23/2010
    * AS3
    * UPDATES AND DOCUMENTATION AT: http://www.FreeActionScript.com
    package 
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.KeyboardEvent;
        import flash.ui.Keyboard;
        public class Main extends MovieClip
            // player
            private var _player:MovieClip;
            // player settings
            private var _playerSpeed:Number = 4;
            // movement flags
            private var _movingUp:Boolean = false;
            private var _movingDown:Boolean = false;
            private var _movingLeft:Boolean = false;
            private var _movingRight:Boolean = false;
             * Constructor
            public function Main()
                createPlayer();
                // add listeners
                stage.addEventListener(Event.ENTER_FRAME, enterFrameHandler);           
                stage.addEventListener(KeyboardEvent.KEY_DOWN, myOnPress);
                stage.addEventListener(KeyboardEvent.KEY_UP, myOnRelease);
             * Creates player
            private function createPlayer():void
                _player = new Player();
                _player.x = stage.stageWidth / 2;
                _player.y = stage.stageHeight / 2;
                stage.addChild(_player);
             * EnterFrame Handlers
            private function enterFrameHandler(event:Event):void
                // Move up, down, left, or right
                if ( _movingLeft && !_movingRight )
                    _player.x -= _playerSpeed;
                    _player.rotation = 270;
                if ( _movingRight && !_movingLeft )
                    _player.x += _playerSpeed;
                    _player.rotation = 90;
                if ( _movingUp && !_movingDown )
                    _player.y -= _playerSpeed;
                    _player.rotation = 0;
                if ( _movingDown && !_movingUp )
                    _player.y += _playerSpeed;
                    _player.rotation = 180;
                // Move diagonally
                if ( _movingLeft && _movingUp && !_movingRight && !_movingDown )
                    _player.rotation = 315;
                if ( _movingRight && _movingUp && !_movingLeft && !_movingDown )
                    _player.rotation = 45;
                if ( _movingLeft && _movingDown && !_movingRight && !_movingUp )
                    _player.rotation = 225;
                if ( _movingRight && _movingDown && !_movingLeft && !_movingUp )
                    _player.rotation = 135;
                //i will do
                if (_player.x > 550)
                    _player.x = 550;
                    _player.x = +_player.x;
                else if (_player.x < 50)
                    _player.x = 50;
                    _player.x = +_player.x;
                if (_player.y > 350)
                    _player.y = 350;
                    _player.y = +_player.y;
                else if (_player.y < 50)
                    _player.y = 50;
                    _player.y = +_player.y;
                trace ("Valor en x: " + _player.x);
                trace ("Valor en y: " + _player.y);
             * Key Press Handlers
            public function myOnPress(event:KeyboardEvent):void
                switch( event.keyCode )
                    case Keyboard.UP:
                        _movingUp = true;
                        break;
                    case Keyboard.DOWN:
                        _movingDown = true;
                        break;
                    case Keyboard.LEFT:
                        _movingLeft = true;
                        break;
                    case Keyboard.RIGHT:
                        _movingRight = true;
                        break;
             * Key Release Handlers
            public function myOnRelease(event:KeyboardEvent):void
                switch( event.keyCode )
                    case Keyboard.UP:
                        _movingUp = false;
                        break;
                    case Keyboard.DOWN:
                        _movingDown = false;
                        break;
                    case Keyboard.LEFT:
                        _movingLeft = false;
                        break;
                    case Keyboard.RIGHT:
                        _movingRight = false;
                        break;
    Hope you help me =)

    You need to have a reference to an instance of one class in the other class or the other way round in order to communicate between the two. Alternatively you can call a static function of one class from an instance of the other class.
    Anyway, I suggest reading about object-oriented programming first (can be even a Java book) to understand how things work. Such basics really help and it's never shame to read it.
    Good luck

  • Running a java program in another java code

    Hello,
    I have a question.I wrote a java server code named server.java. In this server code, I receive another java class code called "HelloWorld.class" from another node. What I want to do is to execute the class HelloWorld inside server.java.
    Briefly, I would like to run a compiled java code (class code)in another executing class code. How can I achieve this?
    Thanks in advance
    �ebnem Bora

    Hi,
    Sorry but your terminology isn't that clear. Are you trying:
    1. To call methods on another class or
    2. To launch a separate process that will run another class?
    If it's either of these then they're not 'Advanced Language Topics' but simple:
    // Scenario 1
    // in Server class
    HelloWorld hw = new HelloWorld();
    hw.sayHello(); // or whatever the method is
    // Scenario 2
    Runtime.exec(new String [] {"java", "HelloWorld"}); // or whateverIs that of any help?
    Dom.

  • How sholud we call one jframe class from another jframe class

    Hi
    In my application i am calling one jframe class from another jframe clas.
    how sholud we make previous jframe inactve when another jframe is invoked?(user sholud not able to make any changes on on parent jframe window when another jframe is invoked)
    Pls reply.

    Sorry for me it is not possible to change existing code,
    pls suggest me any other solution so that i can inactive parent jframe when child jframe execution is going on.

  • How to use one module pool program in another module pool programming?

    Hi
    I have one moodule pool program.
    In one of my screen i want to use some code which already developed in another module pool program.
    Is there any direct way for using one module pool programcode  in another module pool program.
    If there any approaches for this plz help me in this issue.

    Dear,
    If you want to use the code.
    first you can write your code in a subroutine in module pool program 1
    and then you can use it from module pool  program 2 by
    perform subroutine_name(program_name)
    using P_1
    changing C_1
    if you wan to use one module pool data into other module pool.
    so that is another requirement.

  • Transfer asset from one company code and to another company code

    Hi Guru
    we have one issue in transfering of asset from one company code to another company code by tocde ABT1N as we get the error transaction type cannot be used for activity retmet from interco.transfer w/o rev to affil.co message no aapo176
    any appropriate method to do transfer and what is the settings we should take care for this
    kind regards
    sunitha
    Edited by: sunitha reddy on Sep 1, 2010 2:22 PM

    Hi Sunitha,
    You should also check the following customizing settings in case of AAPO176 in ABT1N:
    It could be that your transaction type that is mentioned in your error code AAPO176 cannot be used for 'Acquisition from intercompany transfer'.
    In this case check the default transaction types your customizing in Asset Accounting - Transactions - Specify Default Transaction Types.        
    Check if the same default transaction type for 'Acquisition from INTERcompany transfer' is also used for 'Acquisition from INTRAcompany transfer'.
    If not, then this is possibly the reason for the error AAPO176.       
    The transaction types for 'Acquisition from intercompany transfer' AND 'Acquisition from intracompany transfer' should be same as the standard transaction type 158 (please also review SAP note 196012). Both transaction types must be customized the same if you use your own customized transaction types...if one is different than the other, that would also be a reason for AAPO176 to be triggered.                                                                               
    I hope this information helps in addition.
    Kind regards,
    Brigitte

  • How to find called programs for all zprograms?

    Hello dear colleagues,
    I need kind of a report tree that answer the following question:
    Wich transactions and external programs are called from every Ztransaction?, considering that such called program/transactions also call others.
    Besides i need to know about authority check related to each call.
    Is there a standard report or useful code?
    Any suggestion is appreciated.
    Thanks!

    Hi Lidya,
    Check the below thread,
    https://forums.sdn.sap.com/click.jspa?searchID=14358915&messageID=5386905
    Kindly Reward Points If You Found The Reply Helpfull
    Cheers,
    Chaitanya.

  • How to find out if ENQUEUE_ESRDIRE is used inside a standard program!

    Hi All,
    I have run VFX3 to rellease billing document using VF02 BDC that is called inside VFX3.
    I used debugging to find out in ENQUEUE_ESRDIRE, or ENQUEUE_E_TRDIR is used anywhere in the process.
    I also used System Debugging and Break-point at statement functions. But I have not ben stopped at these function modules.
    However, I checked using ST05 with enqueue trace enabled, and I found the below entries.
    255 ESRDIRE    ENQUEUE     1      0 Excl(***) TRDIR GP3VOFY4EM1BE5DHB1155DUU8H
    37 ESRDIRE    DEQUEUE     1      0 Excl(***) TRDIR GP3VOFY4EM1BE5DHB1155DUU8H
    My query is how can we debug to a point where these lock objects are used or Do these lock objects are not identified in debug mode but are logged while enqueue trace used i.e., SAP uses internally?
    Please help me as this helps me in resolving an issue where locking issue is there that fails to update VFX3 becuase for one user
    in SQL trace it is logged as VF02  TRDIR Lock > 6 hours VF02 TRDIR
    and for another job "UPD 42 050 BATCHFIN          GZZ K > Obj: ESRDIRE # enxxhead7727" is logged in ST05.                        
    Regards,
    Pratyusha

    Hi Clemens,
    I was unable to trigger the exact point from where this lock object has triggered.
    But I am sure that it is a standard SAP process which is locking while releasing the billing documents.
    Now my query is why SAP why SAP'S standard program VF02 that is internally called by VFX3 (RVFAKSPE) and that can be submitted in background mode will use ESRDIRE lock whil each time it releases the block?
    The problem I am facing is - there are different BATCH jobs and all are for VFX3 with different variant so that no billing document is processed by two different jobs at same time. However the lock entries ENQUEUE_ESRDIRE is creating problem as it is creating locking issue and hence the jobs are processed longer than expected. This is evident from ENQUEUE trace of ST05.
    Is VFX3 ( In version 4.5B) is meant for running 1 background job of VFX3 at a time?
    Regards,
    Pratyusha

  • How to change call to the function module in the standard program

    Hi Guru,
    My requairment is to create the new Z function module  ZJ_1B_IM_NF_DOCUMENT_FUNCTION in the MM07MFJ1 program.
    I have created the Z Funtion module,
    plz provide me the info how to change the call to the new custom FM from the standard program.
    Points will be given to the ans.

    You use SE38 to change out the code.  When you try and change it you will get a popup asking you for a Key, since you are changing SAP Code.  If you have a Developers key you have to go to the SAP Service Marketplace and tell SAP that you are changing this code in order to get they key.  After this every time you do support packs you run the risk of this getting overlaid and you will have to change it back, also if you have a problem and SAP sees that you customized this code they probably won't spend any time on your problem.

  • How to find data base tables for a particular  trancation code

    Dear All,
    Is there any T.code for finding data base tables used in  a particular transaction code(Eg.: MM01).
    Regards,
    Satyapalli

    Hello Satya
    There is a very useful function module available for your requirement:
    <b>RS_PROGRAM_TABLES</b>
    Call this function module using:
    OBJECT_TYPE  = 'TRAN'       " transaction
    OBJECT_NAME = 'VA01'
    " PROGRAM  -> not required
    MONITOR_ACTIVATE = 'X'
    The function module will list you all DB tables touched by the transaction and shows whether they are read or updated (unfortunately, on ECC 5.0 this seems to be no longer the case. All tables are displayed as READ).
    Regards
      Uwe

  • How to find a specific text(string) in a list (100) programs

    Dear All,
    Wish tou a very happy new year 2009!!!
    please let me know how we can find a specific word(eg: "barrel") in a list of programs/reports/bdc/user exits/field exits/function modules.
    Thanks in advance.
    Kumar.

    hi kumar,
    open EWK1 transaction and search for the word or string according to your requirement.
    Cheers
    Gautham

Maybe you are looking for