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.

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

  • 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

  • Attach a transaction code to abap query program

    Hi!
    I have developed a report with ABAP query in development server with transaction codes SQ01, SQ02 AND SQ03 respectively.
    program is generated from SQ01 and i also got the program name from SQ01.
    Now how to attach a transaction code with the program that is generated from ABAP query and transport it to production server
    successfully.
    points to be rewarded .
    regards
    Amit

    hiiii
    go to
    sq02 ->
    Select Environment -> Query Areas..
    Select Standard Area (Client specific)
    (If Query does not exist in Standard Area then You will have to copy that Query From Global Area to Standard Area.)
    For Coping Query From Global To standard first select that query from list.
    Now select Environment-> Transports
    In next screen select Copy Global to standard radio button.
    Check Overwriting allowed (only with import/upload/copy)
    Remove Check for Test Run
    Select Transport InfoSets and queries radio button
    Fill Infoset and Query with corresponding names.
    Now Press Execute button.Copy Log will be displayed.
    Now Query exist in Global & Standard Area.
    Go to SQ02 .
    Select Environment -> Query Areas..
    Select Standard Area (Client specific)
    Select Infoset from list.
    Select Download radio button
    Check Overwriting allowed (only with import/upload/copy)
    Remove Check for Test Run
    Select Transport InfoSets and queries radio button
    Click on Execute button
    same way you can upload sap query..from one system to another
    regards
    twinkal
    Fill Infoset and Query with corresponding names.

  • Transaction code for SAP query reports

    Hi All,
    I am trying to create transaction code for sap query report but couldn't go further.
    1) Created User group in SQ03
    2) Created infoset in SQ03 and assigned that to the user group
    3) Created query in SQ01 using the infoset.
    I executed the report in SQ01 and it is working fine.
    Now I try to create a transaction code in SE93 using the steps mentioned in the following link:
    Assign transaction code to SAP Query (created via SQ01)
    But when try to execute the report using the transaction code, it is giving error message 'User group xxxxxx is not yet created'
    Could any one advice me if I miss something? Or please help me to create this transaction code and transport to production?
    Thanks in advance

    HI,
    based on the thread you've already mentioned:
    In SE93, Create a Paramter Transaction
    -> Transaction = Start_report
    -> In default values, give the below details:
    D_SREPOVARI-REPORTTYPE = AQ
    D_SREPOVARI-EXTDREPORT = Name of the Query
    D_SREPOVARI-REPORT = User Group
    So check if the user group is typed correct in SE93 and check also if the user group exits in the system where you are trying to run the transaction.
    best regards, Christian

  • T.code for ABAP Varaints

    Hi,
    Can anybody tell me the transaction code for ABAP varaints.
    In Se38 , Giving a program name and selecting the radiobutton varaints and click on display.
    We get  varaints screen. I need the transaction code for that screen.
    Regards,
    Sai

    Hi,
    This screen is only called from function module RS_VARIANT_SCREEN (easily found by using 'where-used').  This in turn is called from a number of places (SE38, SA38 etc) but I don't know of a transaction that goes to the variant screen directly.
    After all, the screen is only used if you populate the program name first, like in SE38 for example.
    Regards,
    Nick

  • Access code  for abap

    Hi everyone,
    Can you please guys post the access code for abap to mscagin at yahoo com
    thanks
    sri

    What do you mean by access code? Is this the same as a developer key?

  • Hello, I am a user of the iPhone is not the place for bi çıkıcak turkey apple brand products and product support and equipment does not work as it used to fix and send back waiting for your help. Please support me in this regard quit

    Hello, I am a user of the iPhone is not the place for bi çıkıcak turkey apple brand products and product support and equipment does not work as it used to fix and send back waiting for your help. Please support me in this regard quit

    We are all iphone users just like you.
    Do you have a question for fellow iphone users?

  • 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

  • Question on creation of t-code for SAP query

    Hello,
    I posted a thread in here back on 06/20/2007 asking for help on creating a t-code for a SAP query. one of the responses that I recieved was
    <i>"Sure, all you need to do is get the report name which is generated by the query. You can find this in SQ01, select the query and from the menu, Query, More Functions, Display Report name. Then go to Se93 and create the tcode with this report name."</i>
    the report name was AQFKZFINANCE====GL_FRANCE=====.
    I created the t-code using this name. I had it transported to my QAS system an now we are getting a error stating that the the program is not found.
    When I check in SE38, I can see this program AQA0ZFINANCE====BP_RECON====== in both my development system and my QAS system.
    Should I have created in the t-code using the AQA0ZFINANCE====BP_RECON====== instead of the AQFKZFINANCE====GL_FRANCE===== program? 
    Is there any reason why the program AQFKZFINANCE====GL_FRANCE===== would not be in QAS?
    I do not have access to SQ01 in our QAS system so I cannot perfrom the process stated above.
    thanks in advance for the help.

    Hi,
    Please check this thread perhaps it may help.
    Re: How to create TCode for Sapquery
    Regards,
    Ferry Lianto

  • Select from KONV using Additional Code in ABAP Query

    I'm attempting to modify an ABAP Query Infoset (using transaction SQ02) that already has a join in it between tables VBAP and VBAK, and two additional alias tables on KONV (to get price history for sales documents).  I wish to get history of all PN00 records from KONV.  I can get ONE record with the following code in the Record Processing of the Extras element in my Infoset:
    SELECT SINGLE KBETR KPEIN KMEIN KDATU
    INTO (PN00_PRICE, PN00_PER, PN00_UOM, PN00_DATE) FROM KONV
      WHERE KNUMV  = VBAK-KNUMV
      AND KPOSN  = VBAP-POSNR
      AND STUNR = 198
      AND ZAEHK = 01.
    But we have many counters (field ZAEHK) for the PN00 condition and I want to have a new row for each PN00 record in KONV.  I've tried some loop syntax, but I've not been able to get any code to function or return more than one row for each sales order item row (VBAP-POSNR).
    Thanks for any hints.
    Dan Gallagher

    Change it like this
    SELECT KBETR KPEIN KMEIN KDATU
      INTO (PN00_PRICE, PN00_PER, PN00_UOM, PN00_DATE)
      FROM KONV
    WHERE KNUMV = VBAK-KNUMV
       AND KPOSN = VBAP-POSNR
       AND STUNR = 198.
    ..... do something with this record and store
    ENDSELECT.

  • Adding code in ABAP Query(ABAP HR)

    I have created an ABAP Query for getting the Absence details of employee within a specified period.I am populating the fields
    Employee number, Organization Unit,Absence start date,Absence hours, Absence enddate.
    If an employee is in leave for 10 days, this information will be stored in PA2001 table,and this table is not Organization specific.
    During the specified period(20 days), if an employee is under two Organization units(5 days in 1st Org Unit,15 days in 2nd Org Unit). The query is extracting two records for the same employee, because of two Organization units. And while populating the data, the query is getting the Absence information from PA2001 table, and this is causing overlapping of data. So it is showing the Absence details for that employee as 40 days(20 days in 1st Org Unit and 20 days in 2nd Org Unit,Instead of total 20 days). So i would like to add validation over here after extraction of data from the PA2001 table,before displaying the data.
    I have tried adding the code in the infoset, at END OF SELECTION Event,but i am not able to change the list, as i am not able to access the tables used by the Query.
    Can anybody suggest me where to add the code in the Query, so that i will be able to solve this issue, instead of changing the code in the Report program generated by the Query.

    you can look at BAPI_PTIMEOVERVIEW_GET
    this gives the output back for the selected period so you don't get alle the records back from you're pa2001 table. (only this overview doesn't take into considerationd the distiction the difference between leave and illness)
    further on if you consider using the pa2001 table you can loop through the begda and endda and add 1 day for each record and programm the logic how you want to intrepet each day you'reself
    I use the data from perws which comes from the function HR_PERSONAL_WORK_SCHEDULE
    (which is also used in the BAPI mentioned above)
    and from PA0001 you can retrieve how long somebody was in 1 org unit !!
      LOOP AT it_2001 WHERE begda BETWEEN i_begda AND i_endda
                        OR endda BETWEEN i_begda AND i_endda.
          h_datum = it_2001-begda.
          IF it_2001-awart BETWEEN '0100' AND '0199'.
            WHILE h_datum <= it_2001-endda.
              READ TABLE it_perws WITH KEY datum = h_datum.
              IF sy-subrc = 0.
    * you're logic
              ENDIF.
              CALL FUNCTION 'FKK_DTE_ADD'
                EXPORTING
                  i_base_date               = h_datum
                 i_periode                 = 'D'
                 i_period_factor           = 1
    *       I_USE_FACCAL              = ' '
    *       I_WORKDAY_INDICATOR       = '-'
                IMPORTING
                  e_datum                   = h_datum
    *     EXCEPTIONS
    *       ERROR_OCCURED             = 1
    *       OTHERS                    = 2
              IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ENDIF.
            ENDWHILE.
    kind regards
    arthur de smidt
    Edited by: A. de Smidt on Jul 16, 2008 8:47 AM

  • ABAP Query not transporting properly

    Hi,
      I m trying to transport an ABAP Query and infoset together in a single change request. The infoset of query has generated fine except for some warnings about currency. And the query is also running fine on development. But when I transport the infoset and query together to the quality client the transport log shows the transport as successful, but doesnt show the.
    Activate inactive runtime objects at all.
    Also the query and infoset have not been transported, I checked in SQ02.
    Please see the transport log below. I dont know what I m doing wrong. I cant move the infoset and query separately to production, I have to move them together. Any suggestions, will give points for the right answer. Thanks for reading
    QTD        Master Data QA                                                                               
    600 Selection for Import                     11/30/2006 17:08:14    (0) Successfully Completed
               Check Versions                           11/30/2006 17:13:03    (0) Successfully Completed
           600 Selection for Import                     11/30/2006 17:13:50    (4) Ended with Warning   
           600 Import                                   11/30/2006 17:14:30    (0) Successfully Completed
    5  Import steps not specific to transport request                                                                               
    Feedback after export or import          11/30/2006 17:13:15    (0) Successfully Completed

    Hi
    After transport the request from original system to destination system, you have to do the import.
    So run trx SQ02, Enviroment->Transports
    Here you should be in the same screen where you have created the request.
    Now choose <b>IMPORT</b> options,<b> Overwriting allowed</b> chekbox ans insert the request number in <b>Dataset with imports</b>.
    Max

  • Adding code in ABAP QUERY

    Hi,
      Can any one tell me the way in which i can write some code in the abap query? I need to create one internal table which will bring data from different tables based on some coditions. For all entries in this internal table, I should get data from some other group of tables into second internal table.
      At the end, I need to display only some required fields from the second internal table.
      It would be helpful if anyone can give me the way in which we can do that with some example.
    Thanks in advance.
    Regards,
    Raja sekhar

    SELECT BUKRS BELNR GJAHR BUDAT BLDAT
           FROM BSIS
           INTO CORRESPONDING FIELDS OF TABLE I_BSIS
           FOR ALL ENTRIES IN I_BKPF
           WHERE BELNR = I_BKPF-BELNR
             AND BUKRS = I_BKPF-BUKRS
             AND GJAHR = I_BKPF-GJAHR
             AND BUKRS IN S_BUKRS
             AND BUDAT IN S_BUDAT
             AND ( MWSKZ BETWEEN 'A0' AND 'F9'
                     OR MWSKZ = '' ).
    SORT I_BSIS BY BELNR.
    DELETE ADJACENT DUPLICATES FROM I_BSIS.
    IF I_BSIS[] IS NOT INITIAL.
      SELECT BUKRS BELNR GJAHR VBELN
             FROM BSEG
             INTO CORRESPONDING FIELDS OF TABLE I_BSEG
             FOR ALL ENTRIES IN I_BSIS
             WHERE BELNR = I_BSIS-BELNR
               AND GJAHR = I_BSIS-GJAHR
               AND BUKRS = I_BSIS-BUKRS
               AND BUZEI = '001'
               AND VBELN <> ''.
    ENDIF.
    LOOP AT I_BSEG.
      CLEAR : I_GL, I_SAKN1.
      REFRESH : I_GL, I_SAKN1.
      SELECT HKONT
             INTO CORRESPONDING FIELDS OF TABLE I_GL
             FROM BSEG
             WHERE BELNR = I_BSEG-BELNR
               AND BUKRS = I_BSEG-BUKRS
               AND GJAHR = I_BSEG-GJAHR
               AND KOART = 'S'.
      IF NOT I_GL[] IS INITIAL.
        SELECT SAKN1
               INTO CORRESPONDING FIELDS OF TABLE I_SAKN1
               FROM C501
               FOR ALL ENTRIES IN I_GL
               WHERE SAKN1 = I_GL-HKONT.
        IF SY-SUBRC <> 0.
          DELETE I_BSEG INDEX SY-TABIX.
        ENDIF.
      ELSE.
        DELETE I_BSEG INDEX SY-TABIX.
      ENDIF.
    ENDLOOP.
    SELECT * FROM VBRP
           INTO CORRESPONDING FIELDS OF TABLE I_VBRP
           FOR ALL ENTRIES IN I_BSEG
           WHERE VBELN = I_BSEG-VBELN.
    LOOP AT I_BSIS.
      LOOP AT I_BSEG WHERE BELNR = I_BSIS-BELNR
                       AND BUKRS = I_BSIS-BUKRS
                       AND GJAHR = I_BSIS-GJAHR.
        LOOP AT I_VBRP WHERE VBELN = I_BSEG-VBELN.
          I_MAIN-BUKRS   =   I_BSIS-BUKRS.
          I_MAIN-BELNR   =   I_BSIS-BELNR.
          I_MAIN-GJAHR   =   I_BSIS-GJAHR.
          I_MAIN-BUDAT   =   I_BSIS-BUDAT.
          I_MAIN-BLDAT   =   I_BSIS-BLDAT.
          I_MAIN-VBELN   =   I_BSEG-VBELN.
          I_MAIN-SPART   =   I_VBRP-SPART.
          I_MAIN-POSNR   =   I_VBRP-POSNR.
          I_MAIN-MATNR   =   I_VBRP-MATNR.
          I_MAIN-WERKS   =   I_VBRP-WERKS.
          I_MAIN-FKIMG   =   I_VBRP-FKIMG.
          I_MAIN-VRKME   =   I_VBRP-VRKME.
          I_MAIN-MWSBP   =   I_VBRP-MWSBP.
         I_MAIN-NETWR   =   I_VBRP-NETWR.
          APPEND I_MAIN.
        ENDLOOP.
      ENDLOOP.
    ENDLOOP.
    fill ur required fields in Main internal table using this type of loop.
    regards,
    shardul shah

  • 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'.

Maybe you are looking for

  • List problem of birthdays in the calendar application

    Hi, I have an iPhone4 and an iPad. When using the list view in the calendar aplication in the iPad, then all birthday dates are one day too early, but when opening for example the week view then the date is correct. In my iPhone4 the dates of the bir

  • How to add hint in a text field

    Hello, How do I add a hint in a text field to let the user know what to type in and the hint will disappear when they click on it?

  • Problem when connecting locally to Oracle Database 10g from Java code

    Good afternoon, I try to connect to my local Oracle 10g from JAVA code. Could somebody tells me what are the 'values' to enter in place of 'value1, value2, value3' in the following: final String connectionURLThin = "jdbc:oracle:thin:@value1:value2:va

  • How to create pdf

    i am trying to create a pdf.... of data i requested thorugh php........ can u tell me how to achieve this........ or any other method by which i can get the output in a file so that i can easily print it and save for my records.......

  • Best way to export from iMovie 09 to iMovie HD

    Due to a) image quality issues, and b) no export to tape feature, I need to stick with iMovie HD for all my editing needs. However, I do want to use those nifty map and photo animations in my iMovie HD project. What are the best settings for exportin