What is a Transaction Variant?

hello abap gurus,
can u tell me what is a transaction variant and how does it works? i have a requirement that is to run an existing customized report program in the background. that means no user interface. i'm pretty new with abap programming. please help...
thanks,
sid

Use SE75 to create your own custom text ID for SAVE_TEXT object
Finding a user exit when you only have the function module name: Use table MODSAP with member=function module. This will give you the enhancement name that you can enter in SMOD.
To execute on OS command in SAP: Use program RSBDCOS0
Transaction Variants                
Use Transaction Variants to make fields Mandatory, Hidden or Display. Also applicable to screens and tabstrips.
You can hide unwanted screens and fields in any of the standard SAP programs without changing any of the standard programs.  Additional features such as making the variant as default on the standard SAP transaction code is only available as of 4.6x.
Transaction SHD0 - Create a variant for the required transaction by changing the layout through hiding fields and screens.
Transaction SE93 - Create a variant transaction (e.g. for VA02 = ZVA02).  
Next allocate the transaction variant to this variant transaction.
In 4.6c, you can default your transaction variant as the standard variant. (SHD0 - Edit -> Activate/Deactivate as standard variant)
tables:  tbtco.
data: jobcnt(1) type n,
      t_sdluname like tbtco-sdluname,
      t_strtdate like tbtco-strtdate,
      t_strttime like tbtco-strttime.
ZXXX is the job name to check for
select * from tbtco where jobname  = 'ZXXX'
                      and strtdate = sy-datum
                      and status   = 'R'.
   add 1 to jobcnt = jobcnt.
    if jobcnt = 1.
       t_sdluname = tbtco-sdluname.
       t_strtdate = tbtco-strtdate.
       t_strttime = tbtco-strttime.
    else.
       exit.
    endif.
endselect.
if sy-subrc = 0.
   if jobcnt >= 1.
       message i999(b1) with t_sdluname ' has released job on '
                         t_strtdate t_strttime.
   endif.
endif.
Use Transaction Variants to make fields Mandatory, Hidden or Display. Also applicable to screens and tabstrips.
You can hide unwanted screens and fields in any of the standard SAP programs without changing any of the standard programs.  Additional features such as making the variant as default on the standard SAP transaction code is only available as of 4.6x.
Transaction SHD0 - Create a variant for the required transaction by changing the layout through hiding fields and screens.
Transaction SE93 - Create a variant transaction (e.g. for VA02 = ZVA02).  
Next allocate the transaction variant to this variant transaction.
In 4.6c, you can default your transaction variant as the standard variant. (SHD0 - Edit -> Activate/Deactivate as standard variant)
Using Transaction variants
Change SAP standard screens by hiding fields, screens, tabstrips, changing field properties, ... read on
Show all users per Application server
Transaction AL08
To log a user off via an ABAP
CALL 'SYST_LOGOFF'.
Advanced SM04 program
The following program displays the  Ip address , workstation name , Nt user name etc. Plus you can send instant messages to users just by clicking on the user name. It will show a red band for users who exceeds session limit. ( That you can adjust ). Created this for R/3 4.6C and above. (Submitted by Joy Ramachandran) - Click here to download zuser.txt
Changing the SAP Logo on the top right of the SAPGui
Change file sapalogo.bmp in directory C:\Program Files\SAP\FrontEnd\SAPgui\themes\default (SAP 4.6C)
Changing the Logo on the Right Hand Side ( Courtesy of: http://sapr3.tripod.com/ )
Transaction code - SMW0
X - Binary data for WebRFC application
Hit Enter
Click Execute
Click Settings -> Maintain MIME types
Click the Create button
Fill in :- TYPE : image/gif       EXTENSION : .GIF
Click Save
Click Back to the Binary data for WebRFC
Click Create
Fill in :- Obj. name : ZXXXX.GIF Description : Company Logo
Click Import and specify the filename where your GIF file is located.File type is BIN. Finish press the Transfer button.
If successful, your logo will be shown in the Binary data for WebRFC.
Transaction codeSM30 - Table/View - SSM_CUST
Click Maintain
Click New Entries
Name                     Value to be set
START_IMAGE      ZXXXX.GIF
RESIZE_IMAGE     NO
Logoff and Login again
Automated transports 
regards
vinod

Similar Messages

  • What is TRANSACTION CODE for TRANSACTION VARIANTS?

    what is TRANSACTION CODE for TRANSACTION VARIANTS?
    please explain

    Hi..
    Goto Tcode: SHD0.
    Create a Transaction Variant :
      Name : ZTVAR1.
      Tcode: MK01
    Save the Settings of Screens as Screen Variants.
    Finally Save the Transaction variant.
    Goto Tcode: SE93.
    Create a Transaction code (Eg: Zmk01) of type Variant transaction.
    Assign ur Transaction variant here.
    Now Save and Execute ZMK01.
    <b>Reward if Helpful.</b>

  • TRANSACTION VARIANT

    Dear All,
    I am facing a problem while doing the transaction variant. It is as follows -
    With the T.Code SHD0, i started creating a transaction variant and named as ZMM01 for the transaction MM01.
    After clicking the create(F5), it went to the MM01 transaction for recording. Here i wanted to give some default inputs in the fields Industry sector and Material type, i gave my default values and pressed enter, then "Confirm screen entries" screen popped up. Here i selected(marked) required check boxes and clicked "Exit and Save". It went to another screen where i gave "Screen variant short description" and when i clicked on save, "Create Object Directory Entry" screen popped up.
    What exactly should i do now?
    When i tried to save by clicking on save button, system is giving me a message "Specify the package or flag it as a local object"
    "Message no is TR742".
    BUT.....
    When i clicked the "Local Object" tab which is next to "Save" button, system is asking me to Assign a package" and in the package field the system is giving the value "$TMP" by default and when i tried to save it OR click "Local object" again, system is giving me an error message "Test objects cannot be created in foreign namespaces", Message no. TO131.
    Pl guide me what exactly i have to do at this stage( How/Procedure to save).
    Thanks & Regards,

    Hi ,
    Ensure that all the variants you have created start with Z  like screen variant , transaction variant .
    The system throws this message when you use other name space which is not allowed .
    Regards,
    Hari.

  • Authorization issue on SHD0 transaction variant in R/3

    Hi,
    Can anyone help me on the below issue?
    Created a transaction variant ZME31K using SHD0 on R/3 system with the base transaction ME31K.
    And created a transaction ZME31K for the above transaction variant.
    Created one ID which has access only to transaction ZME31K.
    But when tried to create contract using ZME31K, it allows to create the contract, but ended up with message  "You are not authorized to use ME31K".
    Anyone faced similar issue before? how this can be resolved? As per the busniess requirement, they can provide access only to the transaction variant for the user and they will not be assigned to ME31K.
    -Thanks,

    > We are doing an Upgrade assessment wherein at R/3 side, the system is being upgraded from 4.6 to ECC 6.0.
    > I wanted to know the impact the Change in Transactions at R/3 side..  namely transactions..
    > AS02, CT02, F-02, F-41, F-49, FB01 would have on BW.
    What do you mean? I don't get your question. What impact should those transaction have on BI?
    Markus

  • Transaction variant for VA02 is not working for few fields

    Hi All,
    I have created a transaction variant for VA02. Made the necessary code changes for populating the variant name in MV45AFZZ. It is working fine for all the screens and all the fields except for second screen of VA02.
    First screen - Enter sales order number.
    Second screen - Overview screen.
    In second screen, I have disabled all the screen fields. When I run the variant, all fields are disabled except sold-to party, ship-to party and create sold to party ICON. All these fields belongs to screen 4701.
    In the transaction variant I can see that these fields screen attributes set to output only. I don't see anything different for these fields compared to other fields.
    First I thought it is because of mandatory fields. But some other mandatory fields are disabled after my changes. Why is this happening only for these 3 fields (Only for screen 4701 I can say).
    Surprisingly, if I do any action like enter/select other tab, these fields are getting disabled.
    Your inputs on this are highly appriciated.
    Thanks,
    Vinod.
    Edited by: Vinod Kumar Vemuru on Dec 31, 2009 10:01 AM

    Thanks, happy to see the reply.
    But I have given the correct names as suggested by you.
    I have also created a Transaction ZVA02 as i dont want this variant to be applied on standard VA02.
    It is working on first screen but not on subsequent screens. Am i missing something, some link or activation?
    Transaction Code VA02                  Change Sales Order
    Transaction Variant  ZTRN_VA02                       testing
    ZTRN_VA02_0102                                        SAPMV45A     102
    ZTRN_VA02_4001                                        SAPMV45A     4001
    ZTRN_VA02_4021                                        SAPMV45A     4021
    ZTRN_VA02_4050                                        SAPMV45A     4050
    ZTRN_VA02_4401                                        SAPMV45A     4401
    ZTRN_VA02_4701                                        SAPMV45A     4701
    ZTRN_VA02_4900                                        SAPMV45A     4900
    when I run this the first screen is applied correctly but what happens next.

  • Transaction variant SHD0

    Hi Friends,
    When I am tryin to change the fields in VA02 to 'output only' through SHD0, it is not working. I have created my own Transaction variant and activated it. Still its not working. But I did the same thing in VL02N it is working there.
    Can anyone explain me whats the problem in VA02? or any other alternative for this.
    Friendly
    Rama rao

    Thank you rajan,
    My intention is to put the incoterms and payment terms in the main screen as display mode (output only). From SHD0 after giving the sale order number and pressing enter we will go inside. (There we will see Incoterms and payment terms in general header box.)  After pressing enter again we see popup box for this window to make the changes, if we keep on pressing enter we will get the pop up window where these payment terms and incoterms will be there. In that window we will put tick for output only to these two fields and will keep pressing enter until we go to the last screen and will click the 'save and exit' button.
    Thats it na. Or else we have to touch the header and line item tabs also? What do you mean by touch all the screens. Thats what I did na or to do anything more?
    Please explain me clearly.
    Rama rao

  • Transaction Variant for a Custom Report

    Hi Folks...
    I am trying to create a transaction variant for a custom report...and i am unable to do it. Have any one tried that before and got it worked..please let me know.
    Thanks in advance.
    Rajeev

    hi,
    i also used a different approach based on the requirement.  this might be helpful to someone:
    requirement: to make one of the parameter fields as display only.  other users should not be allowed to edit this field & make it modifiable again.
    _solution1:_ in the program, assign the parameter field to a modification id and make it protected (screen-input=0). 
    limitation: needs program modification incase there is a future requirement to change the parameter field value.
    solution2: [1]create & save a variant and protect that parameter field. [2] go to SE93 & create a report transaction, put your saved variant in the 'start with variant'. [3] go to SU21 & create an authorization object for controlling the access to the variant. [4] ask your basis to attach this authorization object to the user id responsible for maintaining the variants for that program. [5] add a logic to check the authorization object in your program whenever the user tries to save or delete variants.
    remarks: in production, make sure the authorization object & the update profile are transported.  create also the same variant name as what you have defined in your report transaction code.

  • Transaction Variant for XD04

    Dear experts,
    I am creating a Transaction Variant for XD04 in SHD0.
    But in the output screen the data displayed for customer is not captured. Nor the buttons on the output screen.
    The details displayed are sensitive address details of customer which need to be hidden.
    Since it's the data that is displayed in output, is it that Tr Variant will not work in this case?
    Is there any other solution for hiding this data? through some exits?
    Best regards and thanks in advance!
    Sumit

    I'm not sure if this is what you're looking for, but in XD04 it does not look like a variant can be created.
    Have you tried program RFDABL00 executable via SA38?  This is a list of changes to a customer instead of a specific customer.  Variants can be created in this program, and if you'd like to only look for one customer you can specify.
    Hope this helps!
    Andy

  • Problem in  transaction variant of standard transaction

    I am making transaction variant of VA01 throught t-code SHD0
    and i have to make tab item overview invibile , i do that and also created t-code for the variant ,
    but when i run that it is still visible can anybobdy tell y ??
    suitable answers will be awarded points
    Edited by: Akash Jain on Apr 2, 2008 8:56 AM

    Hello Simon,
    here you are my answers:
    1. Yes, I've run both ipak and RSA3 in the same mode (full), with the same selection parameters.
    2. I find this suggestion about debugging background processes very useful. I've been wondering several times about how to debug pieces of code in similar situations but could never find a good solution: now I know how to do in these cases. Thank you!
    In this specific case, to see what was going on in the extraction process in R/3, as an alternative to debugging I have put some logging messages in the cmod code with the WRITE statement, and then inspected the spool output of the ipak execution.
    The result of this test was that the query for selecting the LIFNR value
    select single lifnr into mov_cdc-lifnr from mseg
           where MBLNR = mov_cdc-REFBN
           and MJAHR = mov_cdc-REFGJ
           and ZEILE = mov_cdc-REFBZ
           and MATNR = mov_cdc-MATNR
           and WERKS = mov_cdc-werks.
    fails (sy-subrc = 4) because the fields REFBN, REFGJ and REFBZ are not filled (initial) in the extract structure passed to the custom function module.
    When the extraction is executed with RSA3, instead, the above mentioned fields are filled and the query works correctly.
    Thank you so much for your suggestions.
    Regards,
    Virginio D'Amico

  • Transaction variants

    Hi, I have one issue regarding transaction variants. I have created a transaction variant for a program (standard & customer developed) and want to assign it to a user in transaction SU01 - Parameter tab. What I don't know is what kind of Parameter ID to choose to get this work? I have tried to modify ITS service PZ03 (transaction PZ03) and tried to assign the transaction variant to special kind of users without luck.
    /Best Regards
    Patrick

    Hi Patrick,
    When you create a transaction variant, I assumed you created a Z transaction that points to PZ03 with a variant. Then in your user profile, you should have this transaction code included. Parameter id tab in SU01 is for the default values of a parameter id when a user logs in.

  • Define Business Transaction Variants (New GL) - transaction: S_AL0_96000709

    Hi people,
    I am Trying to create a New category inside the Business Transaction 0300 and Transaction Variante: 0001,
    But the system shows me: "Choose the key from the allowed namespace" and not save the data.
    Do you know what happend?
    Thanks,
    Rosana

    Entries in Table T8G031 are pretty standard. Generally these would be suffcient for majority of business scenarios. Thats the reason you are seeing this warning message. But if you have a valid business reason, go ahead and add this. Read warning message before doing this.

  • SHD0 - Transaction variant

    Hi friends,
    Can anyone tell me the transaction variant for VL01N. I want to change the BATCH field to display mode. So I when I am looking for transaction variant by F4, its giving message like ' no values for this selection' . Or else can I create screen variant of my own? If I created then what next? shall I assign that variant somewhere or it will apply automatically? Generally I did for VA01 before for some fields by taking the transaction variant which starts with BUS......  So now what to do for this? Please explain me clearly?
    regards
    Rama rao

    Hi,
    Just go to "Screen Variants" tab and enter the Screen Variant as BUS2032_4480, Program as SAPMV45A and Screen as 4480.
    Regards
    SD
    Edited by: Samier Danish on Jan 7, 2008 11:51 AM

  • Transaction variant for QE51N

    Hi Guru,
    I have a requirement to add a selection criteria from dynamic selection to selection screen in transaction QE51N
    It is posible to use transaction variant in this.
    Please advice..
    Thanks in advance.
    Mike

    Hi,
    Create a new transaction using  SE93 (Say ZTEST)
    select transaction type as "Transaction with Variant"
    Give the T-code as QE51N
    Transaction variant as (What you created using SHD0)
    Save & use the New transaction (ZTEST)
    Hope you find it usefull... if so Kindly be generous with points
    Regards,
    Gaurav

  • Transaction Variant for BD87 ? possible

    Hi all,
    I have the requirement to get a user access to BD87 but only for specific message types and status.
    I created a selection screen variant with the correct values.
    Then I tried to create a transaction in SE80 for the report + selection screen variant, but it was not accepted.
    I also tried to create a transaction variant in SHD0 but I'm lost. I didn't get it managed.
    Does anybody of you know if in principle it should work with BD87 or do you have another solution to solve this "little" problem.
    Thank you very much in advance
    regards
    Hans

    Hi,
    I have this issue as well, and wonder how I can limit access to change the variant?
    What I have done:
    Created a selection screen variant for BD87, limiting all unnecessary fields. I can of course create ZBD87 with 'start with transaction', but that won't limit the user to change the selections/variant.
    Any idea on how I can do this if I can't hide the menu functions in SHD0?
    Thans in advance!

  • Transaction Variant for ME59N

    Hi everybody,
    I am trying to set up a transaction variant for ME59N, and I followed a tutorial that covers this process for MM01.
    However, when performing these steps for ME59N (I am trying to default the test run check box to X), the window for confirming the screen entries doesn't pop up, so I can't continue...
    any ideas what the problem mighty be, and how to set up transaction variants for ME59N successfully?
    Thanks!
    beeline

    Hi ,
    Simply check the Test run checkbox and save the variant .
    And now if you will go to ME59N txn , you can find ur variant with test box as 'X'.

Maybe you are looking for

  • Report painter report

    Hi, Hopefully correct group I make this thread in. I'm new in report painter and have a question from a customer which is costcentre reporting related. In reports when current fiscal year and previous year(s) is selected and period 1-7 also for the p

  • Could not parse XMBMessage due to Binary index out of range

    I am trying to send a IDoc from SAP ERP to SAP PI. I am getting the following error during Call Adapter. <SAP:Category>XIServer</SAP:Category>   <SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>   <SAP:P1>500</SAP:P1>   <SAP:P2>Intern

  • 9i and 10g architecture

    Hi , What is the difference between Oracle 9i and Oracle 10g Architecture?

  • My iphone is acting really strange

    okay my iPhone 4 i got it on april 2nd and i dropped my phone and it cracked, i was running, but it still worked. After a couple weeks, it just started to restart and then reset and when i would have 48% or something i would charge it and it would sa

  • OIF: How can I create the SP metadata if unable to get from SP

    Hi, I have OIF working as IDP and there is one SP but for that unable to get metadata. Is it possible just for testing purpose to create one sample SP metadata using the details of SP which is not having its own metadata. I want to do this because I