How to create a tcode for abap query

how to create a transaction code for abap query,
i used a single table , my requirment is as i enter the tcode i should get the selectioin screen of my query.

Hi
Follow this
. Make a transaction with parameters transaction from se93 .
2. Put START_REPORT in the transaction
3. Check the skip intial screen checkbox
4. in the table control in the end of screen put these values
D_SREPOVARI-REPORTTYPE = AQ
D_SREPOVARI-REPORT = <USER GROUP in WHICH THE QUERY IS CREATED> G
(G stands for GLOBAL AREA:)(Entered after a space)(G should come after 9
chanracters(8 char for user group,one space and then G)
D_SREPOVARI-EXTDREPORT = <QUERY NAME>
refer this:
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/how-to-assign-a-tcode-to-a-sap-query-579623
Regards
Shiva

Similar Messages

  • Creating t.code for ABAP query and Transport  it TO Production and run it .

    Hi Friends
    Thanks for ur reply ,
    The requirement is that i want to create tcode for abap query and that query can be regenearted ,
    in case of regeneration programe name i got answer programame name will be change, i created and modified query but i saw the same programe name ,,, may be it changed when it is trasnported if so then what ??
    and also pls give me solution for asiging tcode for query which is going to be regenerated.
    thanks and regards
    farukh

    Dear Farukh,
    As we know,
    Query is created in Production server and a corresponding program is generated by System.
    What we have to do is just to assign the program to the desired transaction code in Development server and transport it.
    If you have any doubts please let me know.
    Kindly assign points if you find this info usefull.
    Regards,
    Lijo Joseph

  • Creating TCODE for ABAP Query

    Hello everyone! I have created my very first ABAP Query, but I still need to create/assign TCODE for the said report.  Can anyone help me with it? Somebody told me to use SE93.  I found out that there are 5 options in SE93 to create a TCode, I tried all options but I could not get through it because I was asked for a program name or a transaction.  What should I put in there? The query name?  Please help.
    Thanks!

    HI Ervyone! Got it Already. To Get the program name of the ABAP Query,
             1. Go to SQ01> Query Menu>More Function--> Generate Program
             2. Go to SQ01> Query Menu>More Function--> Display Report Name. Copy the Report Name that Will be displayed.
             3.  Go to SE93 Enter the TCODE that you want to use, then click on Create BUtton.  Choose the second option "Program 
                  and Selection Screen (Report Option)".  The next screen will ask for your program name,  Paste/copy the program
                  name and save it.
    Thanks!
    Edited by: Ksbaizas on Jun 22, 2010 3:19 AM

  • How to create Transaction code for ABAP and execution by other user

    Hi All,
    Could someone please let me know how to create transaction code in detail for ABAP program. Step by step procedure expected. I would like to know how other user can execute the report using same transaction code which I have created.
    More about authorization.
    Thanks in advance.

    Hello,
    You can create transaction code from se80 as well.In object navigator,right click on your program name and create->transaction code.You can create transaction and select if it is only a report,a report with selection-screen depending on your requirement.You can run your report directly by entering the transaction code in the command field.
    You can authorise the users who can use your transaction:
    <b>Authorisation objects</b> are used to restrict certain transactions to users.Critical data must be protected from unauthorised users.For example,the head has access to certain data.But it cannot be accessed by his subordinate.For this we need to define <b>roles</b>.
    •Create an authorization object with transaction SU21.
    An object usually consists of the ACTVT (activity) field and one other field,which specifies the data type to be protected.By ACTVT, we can decide if the data is accessible for change,display only etc.
    •Add authorization fields to the authorization object created.
    •Assign the authorization object to the transaction using SE93.
    Attach the authorization object to the role using transaction PFCG.
    If you want <b>to assign roles</b>,use transaction PFCG.Create a new role.In the AUTHORIZATIONS tab,you can get a self generated profile name and a profile text by clicking on the icon next to it.Then go to the "Change Authorization data" and choose an authorization template.Then you can choose to display/change/create an activity and after the selection,click on the red and white circle.The profile will now be created.
    In the user tab,you can give the user details who can use this role.
    <b>Also check this link:</b>
    http://www.*********************/r3_security/r3_security_tips.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/6716a6439b11d1896f0000e8322d00/content.htm
    <b>Very helpful guide:</b>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c
    Regards,
    Beejal
    **Reward if answer is helpful

  • How to create custom folder for parameterized query

    Hi Gurus,
    I developed a query to generate report to " who is reporting to who in organization", when i am trying to create custom folder using this query but i am getting error like "The custom sql entered contains parameter and therefore invalid". Could you please help to parameterize the emp_key in query in Oracle Discoverer. Is there any way to pass the value using external procedure for this query.
    SELECT
    lpad(' ', 8 *(LEVEL -1)) || emp_last_name, emp_key, manager_id, emp_key, manager_key,
    mgr_last_name, mgr_first_name, empid,
    emp_last_name, emp_first_name, LEVEL FROM cmp_ppl1 START WITH emp_key = &emp_key
    CONNECT BY PRIOR emp_key = manager_key;
    Thanks & Regards
    Vikram

    I agree 100% that it's way easier to create a dataview or a custom folder - with no run time parameters being passed to the EUL - as is being done by Vikram.
    The only concern I would have is that I don't know if it would work - or at least ever come back in reasonable time - for Vikram and therefore the question about parameters (only Vikram can say).
    The reason I'm wondering is that I've created SQL similar to being shown (when used in an org chart report at a large client) and the start / connect by is used for going down the tree getting everyone on the way. And if it's not limited - that could be a huge undertaking - of records and/or time. Guess it depends on how many people work at the organization (and of course, levels).
    But otherwise, absolutely, I would try and bring back all logical records to the folder and then filter in Disco.
    Russ

  • How to create an iview for ABAP Webdynpro Application in Portal?

    HI,
    I am Webdynpro Java webdynpro developer.
    I want to create an IVIEW for an ABAP Webdynpro application in the enterprise portal.

    The process is almost exactly the same as creating a Web Dynpro Java iView. You simply chose the ABAP instead of the Java radio button when you reach that step in the Web Dynpro iView creation process.  There is a video on the topic here:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/eae111e7-0b01-0010-6cb7-e0dd2bfbfa7a
    You can also read about the process in the online help:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/1d/e4a34273f60b31e10000000a1550b0/frameset.htm

  • How to move the TR for ABAP query from Dev to Qua

    Hello Experts,
    We are into suppoort project. I have requirement to add one field in the existing query ME80FN. I have copied the standard query in to "Z" and created transaction code for the same. When I move the transport request from dev to quality, only Info set got transported. Quary is not getting transported and also the transaction code as well. Could you please guide me is there any other method we need to use to move the transport request.
    Note: Created query in the global area.
    Regards
    Bala

    Hi,
    you can transport queries between systems in SQ02 (hit the lorry button) or run program RSAQR3TR.
    You download the infosets, queries etc into a file and load them into whichever system you wish.
    Just wanted to share my experience of transporting queries:
    I needed to move a user group, 2 infosets and 3 queries from a 4.6 system to a 4.7 system.
    When I tried doing this via the SQ* transactions I did not get the import/export option, so instead ran RSAQR3TR.
    Step 1. Run RSAQR3TR in 'old' system. Select EXPORT and specify the objects to be transported.
    (System includes these in an automatically created transport request)
    Step 2. Release this transport and request it be transported to 'new' system.
    (This results in the entries being populated in transport table AQTDB in 'new' system).
    Step 3. Run RSAQR3TR in 'new' system. Select IMPORT and tick the Overwrite checkbox. Specify the transport number in the field labelled 'dataset with imports'.
    (RSAQR3TR gives the message that stuff has been imported OK).
    Step 4. In my example I still couldn't find the queries, so ran RSAQR3TR one more time, this time specifying 'Copy Standard Area -> Global Area'.

  • How to create a tcode for table maitenance

    i have a ztable which is having a maintenace view now  i have to create a transaction code for the given table maintenance please can anyone give me the details how to create it and what steps i have to follow.

    Hi Suleman,
    1) Go to SE11
    2) In Delivery and Maintenance TAB
    i) Delivery Class as A ( most of the times)
    ii) Data Browser/Table View Maint. as "Display/Maintenance Allowed"
    3) Enter the required fields.
    4) Goto Technical Settings.Enter the appropriate data
    5) Then go to Utilities-->Table Maintenance Generator
    i) Enter the Authorization Group (Varies from project to project...when no authorization required give &NC& )
    ii)Function Group as "Table Name"
    iii)Package varies from project to project
    iv)Maintenance Type as "One Step"
    a)Give overview Screen Number (Your own number..but remember)
    b)Single Screen "Any number"(it can be 0 also)
    6) Then click on the white color create button on menu bar(Create)
    7) To view the maintenance Screen Transaction is SM30(There you need to give the table name)
    8) If you want to change the description of the fields,alignment,mandatory,greying the fields,Validations and many more
    goto SE51 enter program name as "SAPL(TABLE NAME) EX:SAPLZH116 and enter the screen number what you gave in the step 5,iv,a.
    9)If u want to have a transaction to table maintenance
    a)Go to SE93
    b)Choose "Transaction with Parameters" Radio button
    c)Give the Package Name which is given in 5,iii
    d)Give transaction as SM30
    e)Choose Skip Initial Screen
    f)In GUI Support Choose all the three options
    g) In the default values Tab
    Name of the Screen Field Value
    UPDATE X
    VIEWNAME (Enter Table Name)
    After doing this goto se93..in 9(a)
    1.In the home page create a prgm name..
    2.give the description below description choose anyone suitable to ur project
    3.Give the program name and screen number
    4.In sap gui area enable all the check boxes...
    cheers
    Mohinder Singh Chauhan

  • How to create a tcode using sap query

    Hi
        I have created a query using SQ01. It is working fine. But I want to create a transaction code for that. How can we achieve this?
    Regards.
    Hari

    Hi,
    Go to se93 and select the create button.
    You will then be asked to writed down the tcode of your choice then create a short text for that tcode.
    Select the 2nd option button w/c is the "Program and Selection Screen (report transaction)." Press enter.
    Then key in the program name and the variant you saved in the program.
    When transporting to Prod, Save the variant there as well.
    If you placed "DEFAULT" in the creation of tcode, you should also save "DEFAULT" variant in production
    Thanks,
    Reward If Helpful.

  • How to create a tcode for a program in FMEQ transaction

    Hi ABAP Experts,
    I need to assign a program from FMEQ transaction to a custom z-transaction code. Can anybody tell me
    how to do this. I already tried  go to system-status-> "copy program name from here and past it in SE93).
    This would not work because each time when you made changes to a program in FMEQ and generate it
    system will generate new program name.
    Hope to see a reply from you. Thnks in advance.......
    Regards,
    Meera.

    Hi All,
    I got it how to do. Just I would like to share solution here.
    go to SE93,
    Enter transaction code name & description
    and choose option "Transaction with parameters (parameter transaction)" and press on "Continue" button.
    Enter Transaction = START_REPORT and select all check-boxes in GUI support tab and enter below values in
    Default values area.
    D_SREPOVARI-REPORTTYPE  = RE
    D_SREPOVARI-REPORT =
    D_SREPOVARI-EXTDREPORT = FM  01IFMEISA                       <name of program in FMEQ>
    save and execute.

  • Tcode for sap query

    hi experts,
                   Pls let me know how to create a tcode for a SAP query .I am using infoset query for combining two tables.I have created a query and the report is working properly .now i need to create a tcode for end users to work on it .when they enter the tcode it has to go to the selection screen ie variant part of my report.

    Hi,
       Go to se93 and select the create button.  You will then be asked to writed down the tcode of your choice then create a short text for that tcode. Select the 2nd option button w/c is the "Program and Selection Screen (report transaction)."  Press enter.  Then key in the program name and the variant you saved in the program.  When transporting to Prod, Save the variant there as well.  If you placed "DEFAULT" in the creation of tcode, you should also save "DEFAULT" variant in production.  Hope this helps.

  • Creting t.code for ABAP query and Transport  it TO Production and run it .

    Hi Friends
    Thanks for ur reply ,
    The requirement is that i want to create tcode for abap query and that query can be regenearted ,
    in case of regeneration programe name i got answer programame name will be change, i created and modified query but i saw the same programe name ,,, may be it changed when it is trasnported if so then what ??
    and also pls give me solution for asiging tcode for query which is going to be regenerated.
    thanks and regards
    farukh

    Hi farukh,
    1. If any query is re-generatred,
       then some MANUAL INTERVENTION
       is absolutely required.
    2. Hence, what we prefer is this :
       1. Generate first query.
       2. Copy the code to a Z Program
       3. Attach tcode to THIS z program.
       4. Transport
    3. Now,
      whener the query is generated again,
       AGAIN COPY THE CODE
      TO OUR Z PROGRAM (2ND STEP ABOVE)
                        (which has already been created)
      AND TRANSPORT JUST THIS Z PROGRAM.
      REST WILL TAKE CARE OF ITSELF.
    4. In such cases,
      ONLY COPY-PASTE IS REQUIRED.
      (and it takes not more than 15 SECONDS)
    regards,
    amit m.

  • How to create authorisation object for save button please help in abap

    how to create authorisation object for save button please help in abap

    Hi
    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.
    Regards
    ANJI

  • How to create authorization role for just displaying query prefix Q and X.

    Hi Expert,
    I hope someone can help me on how to create authorization role for just displaying and executing  BEX  Queries prefix Q and X. I'm currently using SAP BI 7.1.
    Actually, I already created one role called : Z_FORINDO_ONLYDISPLAY_QX
    where I only put in the Authorization Component (in the Role Maintenance - Tcode 'pfcg'):
    -->Manually Business Information Warehouse
        --> Manually Business Explorer - Components
    Activity : Display, Execute, Enter, Include, Assign
    InfoArea : *
    InfoCube : *
    Name(ID) of a reporting component : *
    Type of a reporting component : Calculated key figure, Restricted key figure, Template structure
        --> Manually Business Explorer - Components
    Activity : Display, Execute
    InfoArea : *
    InfoCube : *
    Name(ID) of a reporting component : Q* , X*
    Type of a reporting component : Query
    But, the problem is I still can make changes on that queries (Q* and X*). Even, I still can run query with prefix Z. I use S_RS_RREPU Tamplete for Query Display and execution.
    Please assist. Very much appreciate your help. Thanks.
    Edited by: nadiyah salleh on Mar 18, 2008 11:22 AM

    Question close. This issue has been resolved.

  • How to create function module in abap for VirtualProvider in bi

    how to create function module in abap for VirtualProvider in bi ???????????????
    can any one help me with simple example ?????????????????
    Moderator message : Duplicate post locked. Read forum rules before posting.
    Edited by: Vinod Kumar on Jun 15, 2011 4:40 PM

    Hi ,
    Thanks for replies about my question??.
    If i am using the exit in my char relation ship how can i debugg that exit???
    if i am using BPS0 how to do it???If i am using BPS_WB how to do it??
    Case1.Variable (type Exit) I known how to do debugg this one in BPS0 but i'm not sure in BPS_WB??
    Case2:Char Relation Ship(Type Exit) how to do in BPS0 and BPS_WB??.
    Thanks.

Maybe you are looking for

  • How to install creative cloud on a second mac?

    i just bought creative cloud and installed it on a mac book. now i want to install this on a second and on a third mac (imac and macbook. how i manage this? thks for help.

  • How can i restrict the qty/value at the time of invoice

    Hi, Can you plesae tell me at the time of MIRO how can i restrict the user not to enter the qty more than in MIGO & PO Thanx

  • Time machine on one external drive, multiple MAC's

    Dear all, I have connected a external drive "LaCie" to my Imac. Time machine on this Imac works fine. I am trying to get my Macbook's Time Machine to use the LaCie drive as well, but it just won't work. I know there are similar topics on this forum d

  • Email from addresses IN my Address Book are getting filtered to Junk

    I thought I had Mail trained. But, when I send mail from a web account of mine to Mail, where the sending account email address is IN Address Book in my own Address Book card, it is getting sent to the Junk Mail mailbox. The same thing has happened t

  • Quality Inspection in MIGO

    HI Experts, Can any body tell me how to do Qualit check process  and rejection process for the goods at the time of goods reciept Please also tell me basic config steps and T-codes. Thanks in Advance.... Sri.....