How to differentiate Tcode of screen variant & Standard SAP in  BADI .

Hello All,
Greetings !!!
I am trying to create ZXXX Tcode as a screen variant/transaction variant of standard SAP XXX tcode .
For authorization I am planning to implement a BADI . In My BADI I want find out which tcode has triggered the BADI ZXXX of XXX . As screen variant/transaction variant uses stanrd sap tcode ion back end I always get XXX in sy-tcode .
Need   help on how to identify if the BADI is triggered from SAP standard or Transaction variant  .
Thank you all in advance
Brajesh

Hello,
In this scenario you have to call the method CL_DYNPRO=>GET_CURRENT_TRANSACTION( ) inside the BAdI. This method returns the relevant parameter trxn or variant trxn unlike SY-TCODE which returns the original trxn!
Further info can be found on the [SAP Online Help|http://help.sap.com/abapdocu_702/en/abapleave_to_transaction.htm].
Cheers,
Suhas

Similar Messages

  • How to add new customise field in standard SAP ME28 Report?

    Hi Anybody,
             How to add new customise field inside Standard SAP Screen report ME28?.
    Anybody, Please tell me how to do?.
    Thanks,
    Regards,
    S.Muthu.

    Hi Subramaniyam,
    You can find enhancement in me28 by following steps and then apply your logic in include of this enhancement.
    cmod>Give a project name>in enhancement column give the package name ME >f4>in package write ME-->ENTER>It will show you all enhancements available in me28> find which ever suits your requirement>save > click on components> from there you can make changes in include program.to add that particular field.

  • How to find CUSTOMER EXIT for a Standard SAP program

    How to find CUSTOMER EXIT for a Standard SAP program

    Hi
    To introduce the techniques of enhancement in standard SAP system. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
    They do not affect standard SAP source code.
    When you add new functionality to your SAP System using SAP’s exits, you do not alter the source code of standard SAP programs in any way. The code and screens you create are encapsulated as separate objects. These customer objects are linked to standard applications, but exist separately from SAP’s standard software package.
    They do not affect software updates.
    When you add new functionality to your SAP System using SAP’s exits, your objects (called customer objects) must adhere to strict naming conventions. When it comes time to upgrade a to a new software release, customer objects’ names ensure that they will not be affected by any changes or new additions to the standard software package.
    Customer exits are not available for all programs and screens found in the SAP System.
    Any change made to an SAP object in a customer system is called a modification. Customers usually modify their systems for one of two reasons. Either they make changes to the SAP standard in order to adjust the R/3 System to their specific business needs (actual modifications), or they alter individual SAP objects in order to correct an error (as recommended in an SAP error note).
    You should only modify the SAP standard if the modifications you want to make are absolutely necessary for optimizing work flow in your company. Be aware that good background knowledge of application structure and flow are important prerequisites for deciding what kind of modifications to make and how these modifications should be designed.
    SAP application programmers create SAP enhancements in transaction SMOD using function module exits, menu exits, and screen exits.
    Customers are given a catalog containing an overview of existing SAP enhancements. They can then combine the SAP enhancements they want into an enhancement project using transaction CMOD.
    SAP enhancements are made up of component parts. These components include function module exits, menu exits, and screen exits. A specific component may be used only once in a single SAP enhancement (this guarantees the uniqueness of SAP enhancements).
    Customer enhancement projects consist of SAP enhancements. Each individual SAP enhancement may be used only once in a single customer enhancement program (this guarantees the uniqueness of a customer project).
    SAP application programmers preplan function module exits, menu exits, and screen exits for their applications and combine them to create useful enhancements for the R/3 System.
    Customers create their own enhancement projects for their systems using SAP enhancements. You can customize the individual components of an enhancement project by creating your own include programs (for function module exits), texts (for menu exits), and subscreens (for screen exits).

  • How to add a custom code to standard sap menu

    Hello guru,
    will you please explain me how to add a custom code to standard sap menu?
    thanks in advance.
    Best regards.
    juan

    Hello juan,
    with SE43N you can add custom transaction codes to the existing menues.
    see http://help.sap.com//saphelp_erp2004/helpdata//EN/00/783b377bfdcf61e10000009b38f936/frameset.htm
    regards
    johannes

  • How to change the field length in standard sap program.

    Hi All,
    How to change the field length in standard sap program.
    Urgent
    Example:
    Text1 type c length 75,
    To change :
    Text1 type c length 150,
    Point will be rewarded..
    Thank you,
    Vikram.C

    If the only solution is to change the sap standard program, simply change the program, it will prompt for an access key. This key can be retrieved in the SAP support portal (service.sap.com) at keys and requests, sccr keys, register object.
    Sometimes these actions are outsourced to a competence center, so maybe youre not entitled to do this, in any case ask a resident senior developer for support.
    regards, Rob

  • How to create transaction or screen variant for custom tcode in module pool

    Hi,
              I have one module pool program with custome tcode ,i want to create transaction or screen variant for this tcode.Next time when we run this tcode we need a variant for this tcode.
    I tried by using of SHD0 but it is working only for standred tcodes.Is there any possibilty please help me.
    thanks,
    Lavanya.

    Hi,
    you created a Custom Tcode for ur module pool Pgm..if u execute the Tcode in the output screen give the input details and press Save Option then variant will be created. Then you can use that variant.
    otherwise.. while creating a Tcode..
    select an option for Tcode type Tranasction With variant ..there u will provide the variant for ur Tcode ( which is already created ).
    Regards,
    PraVeen.

  • How to find out default screen variant name

    Hi All,
    For particular sales order creation I want to find out which screen variant has been used.
    I have tried using SHD0, with entering Transaction code as VA01 but in that for Transaction variant field there are 5 different transaction variant names are mentioned.
    Please guide me how to find out the transaction variant name used in va01 for particular sales order.
    Thanks and regards,

    Hi,
    Goto VOV8 T.Code.
    Select your order type.Details.
    Check what is the transaction variant assigned to your order type.
    It is used while creating the order.
    This field is present in transaction flow tab.
    Regards,
    Krishna.

  • How to populate a field in a standard SAP screen through FMs and Workflows

    Hello Everyone,
    I have a requirement in which I have to populate a field in an standard SAP Screen.The logic for finding the value of the this field will be done in a new FM and this value has to be passed to this field on the standard SAP screen through workflow.I am new to workflows and need some quick help.Kindly let me know the basic steps I need to follow to realise this requirement.
    Thanks,
    VP

    Hi,
    You can create the task in the workflow which contains the method in which you set the value of the field in standard screen using set parameters id and the aprameter name attach to the field

  • How to create Object Links For non standard SAP Objects?

    Hi all,
             I need to create an object link in cvo1n for a non standard SAP object (inspection characteristics) . we have two ways to do this
    1. Create a screen for the rquirement by taking the standard screens as reference.
    2. Implement badi document_obj.
    I need a step by step process to perform both the steps. Sample codes will be helpful.
    One more thing is that i need a link in the standard screens of inspection characteristics also. How to get a two way link both in cv01n and in the standard inspection char screen.

    hi
    Customizing for the Do cument Management , you must maintain the key fields for the SAP objects that you want to link to document info records, by choosing Control Data ® Maintain key fields.
    Process
    Program two screens for the following module pools for the SAP object that is to be linked additionally:
    u2013 SAPLCV00
    u2013 SAPLCVIN
    The process logic must be according to that of screen 0204 in program SAPLCV00 and must not be changed.
    Create the function module OBJECT_CHECK_XXXX (XXXX = name of the SAP object).
    If this object can be classified, this function module already exists in the standard system. Otherwise, copy the existing function module OBJECT_CHECK_EQUI (linking of equipment) and change it to suit the new object.
    also you can attach the document to PRT also. but it will not show you in dms. This type of attachment is only from otherside.
    thanks
    nitin
    award point if useful

  • How to change the browser title of standard SAP WD4A application - eRecruit

    Hi,
    I have a requirement to change browser title for standard SAP WD4A application hrrcf_a_candidate_registration. I know this value is used from application description filed.
    Current set up is 'Candidate Registration'. (WD Component HRRCF_C_REGISTER_UI)
    I tried to use enhancement framework technique and application customization/configuration - but was not successfull.
    I do not like the idea of changing the standard SAP object since it might be overwritten in future upgrade. And also I do not prefer to create z* copy of this application as well.
    Any ideas how to handle this request? Is dynamic modification of this property possible?
    Thanks for your feedback.
    Regards,
    Igor

    Hello,
    Did you try to change the description of the service in transaction SICF ?
    You can find the Webdynpro services under the tree /default_host/sap/bc/webdynpro/sap/.
    Regards,

  • How i can set break point in standard sap modulepool

    how i can set breakpoint in standard sap modulepool

    If you know the program name, it is no different from normal setting of break point.
    It will have a break point button in the abap editor.
    Place the cursor on the line and set the break point.
    Then run the transaction in another session.
    Or type /h from the transaction itsefl to start the debugging.
    see the wiki faqs section for debuging
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+debugger&
    Regards,
    Ravi

  • How release of PR is affected in standard SAP

    Dear experts,
    Please help. How standard SAP PR release is affected. I want that if any change in PR , release will be affected. How this can be done. Please advise
    Thank you
    Kind regards,
    Zusen

    >
    Badruddoza Zusen wrote:
    > Hi
    >
    > Thank you for your reply.
    >
    > I checked that re-trigger is happened if i change value only when value exceed the certain level as specified in the release strategy. But, what i need to do if i want that any change in value will re-trigger release strategy.
    >
    > Please advise.
    >
    > Kind regards,
    > Zusen
    To pick up release strategy for all value your value characteristic should read:
    >= 0
    Meaning Greater than or = 0, even the release strategy will pick up PO's with 0 value in this case.
    Edited by: Afshad Irani on Jun 21, 2010 9:53 AM

  • How to find the Access Key of Standard SAP Function Module

    Hi Experts,
    I have to change one sap standard function module.
    so how can i know the access key for that function module.......
    Regards,
    DS

    Contact the Basis Consultant in your project.
    The access key for standard SAP objects can be obtained from service.sap.com under Keys and Requests.
    Note 86161 - Registering developers and objects

  • How to print the selection screen variant as a report header

    I want to print the variant selected on the selection screen as a report header in the report painter.....Kindly help....The variant selected prior to generating the report painter output must be displayed on the final output screen as the header on the screen...

    Hi
    Here you've to use 'Z_HEADER_FOOTER' function module at TOP-OF-PAGE
    Just pass parameters for report_name                 as repid
                                              show_select_options  as 'Y'
                                              show_parameters       as 'Y'
                                              line_size                       as you wish
                                              action                           as 'X'
    Hope this fulfills your requirement
    Thanks
    Suren

  • How to create a New Screen Variant

    Dear Friends,
    I would like to know as our client requires in MIRO transaction GRN details comes in last column as per standard format. We want to bring the same at no 3 position.
    How to go about it and what are the steps to be followed for the same.
    Kindly guide
    Thanks & regards,
    Vinayak S Vaidya

    Hello,
    Try with SHD0
    Regards,
    Ravi

Maybe you are looking for

  • Java source version compare

    How do you view the code differences for .java files versioned in a web dynpro project?   They are not in the src fiolder for either active or inactive DC.  I do see they are under the gen_wdp folder but the version tools are disabled there. This I a

  • Add additional IP to Windows 2008 SP2 Cluster

    Dears, I have a 2 node SQL 2008 Cluster 64bit (non r2) on Windows 2008 SP2 64bit (non r2) Server. I need to add additional IP (different subnet) to the Cluster Quorum Resource.  Kindly guide me the steps to add the IP ? Thanks Tariq

  • Surface Pro 3 i7 and i5

    So I finally got Surface Pro 3 re-imaging just find using UEFI but they were all i5 processors, then an i7 came in and would not image unless I disabled UEFI and used legacy. We ran all updates and that didn't change anything. Any ideas?

  • LR 5.7.1 won't import

    The import function no longer recognizes ANY photos for import from my 5D mark lll.  The camera is fine. 

  • Contracts and Call off's

    Hi, A customer can create a contract or a bulk order in the system. This can be referenced by call off orders. One system can have multiple contracts and call off's. 1 - Are there standard system settings that are considered when a call off is refere