ABAP Query Execution via Custom Transaction Code - Not working

We have created an ABAP Query in our DEV client and we then created a transaction code to run that query. We have done this because the customer does not want anyone to have access to SQ01, SQ02 in production. This works great in DEV but we can not get it to work in production.
The ABAP Query was exported to our Prod client successfully.  I say exported because you do not do direct transports with queries.
We then transported the new transaction code to run the query to production and it was successful.
However, when we run the transaction is production we get a sys dump stating it can not find the query.
We believe the problem is the TRDIR table is missing an entry for the program in production (it has an entry in DEV).
I would have thought that the export on the query would have brought in this entry -but obviously not.
Any suggestions on how we can get this entry into the production client?  Did we miss a step on the export that would do this?  We want to only bring over this entry - not the entire TRDIR table for obvious reasons (size (1.5 million entries, programs not ready for production, etc.).
Please help!
Thanks.
Scott

Hi,
The above solution will work if you assign the transaction in one server, If you want this will not work in quality/production boxes when transported the query..the program name will not be the same in all the servers...
For this. Do the below:
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
Save the transaction..Now if the program is generated with different names in the quality/proudction, this will still work..
Regards
Vijay Hebbal

Similar Messages

  • PNPCE in ABAP Query !!! Slection is not working completely

    Hi
      I have developed an ABAP query using LDB PNPCE. I am reading data from IT000,IT0001 etc . I test the query in QA and I noticed that the PNCPCE screen doesn’t care about the selection in query. Like I have given the date range in PNCPE default screen. But it’s not filtering that data at all. It pulling up the employee’s regardless of date, it behaves the same for field action type (P0000-MASSn). The surprising thing is that for company code its working fine. My question is that Why PNPCE standard screen-selection not filtering data in ABAP query.
    Did any one of you also experience that?
    <u>
    <b>FYI</b></u>
    I also find an OSS note # 730005 but we are already on 52 Patch !!
    OSS note :PNPCE: Incorrect data of infotype 0000 and 0001
    Symptom
    When you carry out a reprot which is based on logical database PNPCE, errors occur during the processing of infotypes 0000 and 0001.
    Other terms
    PNPCE, AS PERSON, P0000, P0001, data selection period, person selection period, CHECK_IT_0000_DATA_RESTRICTED, CHECK_IT_0001_DATA_RESTRICTED
    Reason and Prerequisites
    You start a report which is based on logical database PNPCE. In the report, infotype 0000 or 0001 is processed (that is, it was declared via the INFOTYPES statement). At event 'GET GROUP' or 'GET PERAS', the system either returns too few data records in the infotype tables or it returns data records twice.
    The error (missing data records) has only occured since the implementation of Note 687004 or the import of Support Package SAPKE47028.
    Solution
    Implement the attached corrections. or import the corresponding Support Package.
    Thanks
    Saquib Khan

    Hi Saquib,
       Recently i am facing the same issue can u pls do reply how you have overcome this issue..The data is not getting picked up at the right time it is lately picked up by the program . Earlier it was PNP and it has been changed to PNPCE also we had implemented OSS Note 687004 and the later's Notes  were also implemented but still now we are unable to track down why there is delay in picking up the records this has been happening for the past 8-10 Months(i m not sure far more before). I am finding 2 main issues,
    1. we are using GET peras in PNPCE and no other event after that may be this is not fetching all the data because my selection screen does contain PERSONID where i suppose there should be GET PERSON event to define it
    2. RP_READ_INFOTYPE macro while using for P0000 ,, the code in the macro is such that it fetches using P0001 also ...I suppose if there are any inconsistency between IT0 and IT1 then this might one to take care ...
    kindly let me know how you have approached to resolve this issue.

  • Customized Button code not working on selection screen.

    Hello Experts,
    I have a button on the selection screen next to Execute button on the Application Tool Bar.
    I have written some validations on the button.It was defined on the PF-Status and its funtion text i have given as 'Show'.
    But the problem is that the code is not working.When I execute the button,the screen just remains their.
    The sy-comm always returns the value of 'UCOM' for whatever even takes place on the screen.The execution of the program does not stops their in debugger.
    Can anyone help me with some sample code and also provide the value of sy-ucomm which i should use for the customized button.
    Good points will be rewarded.

    Here is the short program which will show how to do it. You are simply checking for the USER-COMMAND value CHK and changing it to ONLI which is the F8 button, then the START-OF-SELECTION will be fired and you can output the list.
    REPORT zyou_0001.
    TABLES:  sscrfields.
    SELECTION-SCREEN PUSHBUTTON 2(10)  pbut1 USER-COMMAND chk.
    AT SELECTION-SCREEN OUTPUT.
      pbut1 = 'Test This'.
    AT SELECTION-SCREEN.
      IF sscrfields-ucomm = 'CHK'.
        sscrfields-ucomm = 'ONLI'.
      ENDIF.
    START-OF-SELECTION.
      DO 10 TIMES.
        WRITE:/ sy-index.
      ENDDO.
    Regards,.
    Mohammed

  • Custom Javascript code not working in Safari

    Hello.
    I'm trying to get some javascript to work properly in Safari. The script works fine in Windows IE for and Firefox on both platforms, but Safari it just doesn't work.
    If you look here:
    http://robsimonsen.com/film.html
    and click on the Tides mp3, you will see that the track loads in an iframe right next to it. No javascript is used in the live version. Unfortunately, for some reason, it doesn't work in any other browser- just Safari. So in trying to figure out how to make it work the same in all browsers, some custom javascript code was created to accomplish the same thing:
    http://robsimonsen.com/film4.html
    but it doesn't work in Safari- just every other browser.
    Can anyone help me figure out what's going on?
    Dual 1Ghz G4 MDD   Mac OS X (10.3.9)  

    document.all is audi 5000. use document.getElementById() instead. this seemed to work:
    document.getElementById('plotz').src ="mp3s/Tides.mp3"
    and changing iframe...name=plotz to ...id=plotz
    ibook g4     OSX.4.x

  • Customized transaction type not working

    In Change Request Management, we have copied a transaction type from "Normal Correction" and tried to customize it.  We have also copied a new action profile for this new transaction type.  And copied exactly the same action conditions.  However, when I trigger action "Set to 'In Development' " and save the change.  Status of the message does not change to "In Development" as "Normal Correction" did.
    Is there any setting missing that I should do?

    Hi Martin,
    have you followed the instruction in the IMG, when copying the transaction type?
    IMG: SPRO -> Configuration -> Scenario-Specific Settings -> Change Request Management -> Important Information
    See copy of the IMG activity below:
    IMG ###########################
    <i>Important Information</i>
    Before you start to configure Change Request Management, make sure that you have performed all the Solution Manager IMG activities under the following nodes:
    Solution Manager -> Basic Settings
    Solution Manager -> Scenario-Specific Settings -> General Settings
    When you copy the standard Change Request Customizing into customer namespace, you should just change the first character to Y or Z e.g. SDCR -> YDCR or ZDCR but not Z1CR, if you change more characters you should be aware that modifications will be necessary and it is not standard SAP. This restriction is required for all CRM related objects like catalog, transaction type, status schema ...
    Ruediger

  • Transaction code not defined - Reg

    Hi ,
    I have copied the program  RKAEP000 ( of transaction KSB1) into ZRKAEP000. I have assigned to new transaction to the program ZRKAEP000 and screen no :0100 .
    When I try to exicute the tranction system  is throwing below message .
                                     'Transaction code not defined'
    Can you please let me know if i miss any process.
    I am getting the same error when i try to exicute the program RKAEP000 from se38 .
    Thanks in advace,
    Regards,
    Jagadeshwar.G

    Hi Jagadeshwar ,
    Program RKAEP000 uses a function module , K_LINE_ITEM_LOGICAL_KEY_GET.
    This fm has input as tcode name... and you are getting error in your program because this FM is fixed for only few tcodes....that is few T codes are hard coded in this FM
    the code for that FM is as follows:
      CASE I_TCODE.
    documents
        WHEN 'KSB5'.
          E_ITEM_GROUP = CON_ITEM_GROUP-COST_ACTUAL.
          E_REP_OBJECT = CON_REP_OBJECT-DOCUMENTS.
        WHEN 'KABP'.
          E_ITEM_GROUP = CON_ITEM_GROUP-COST_PLAN.
          E_REP_OBJECT = CON_REP_OBJECT-DOCUMENTS.
    cost centers
        WHEN 'KSB1'.
          E_ITEM_GROUP = CON_ITEM_GROUP-COST_ACTUAL.
          E_REP_OBJECT = OBJEKTART_KS.
        WHEN 'KSBP'..........................................
    and so on.----
    So when u give ur tcode.... it is goin to give error.
    you need to copy this FM and make modification for your req.
    Edited by: brijesh soni on Sep 1, 2009 8:31 AM

  • Program associated with Custom transaction code.

    Hi Guys,
    I was studying two custom transaction code made in my company's SAP System.
    Program associated with one custom transaction was starting with name SAPZMxxx and program associated with other custom transcation code was starting with Z.
    Can anyone tell me whhat is the difference or in other words what is the significance of starting with SAPZM....
    Tushar.

    You can exactly know the kind of program only seeing the program attribute.
    Infact if the program name begin with SAPMZ, you're sure it's a module pool custom, but if it begin with Z* you can't be sure it's a report.
    SAPM is a convention, if you're creating a program called SAPMZ... the system know you want to create a module pool.
    But if you're creating a program called Z... the system can know which kind of program you want to create only after you've indicated the type in the attributes.
    Here you can choose whichever type of program, a module pool too.
    So the name of module pool can begin with SAPMZ or Z.
    Max
    Message was edited by: max bianchi

  • Transaction code not defined

    HI Guru's,
    I have a little problem, when I do a
    SUBMIT rkaep000
        WITH SELECTION-TABLE i_tab
         TO SAP-SPOOL
    I receive the following error message : "Transaction code not defined"
    When I try also to run alone the program "rkaep000" se38, I receive the same error.
    Anybody have a solution?
    Regards,
    MohameD.

    Use call transaction method. Call the program by using following relevent t-code.
    T-Code      program                                                                                Description
    CJIG     RKAEP000     800          80          Display PS Cash Documents
    CPB1     RKAEP000     120          80          Business Processes: Act. Line Items
    CPBP     RKAEP000     220          80          Business Processes: Plan Line Items
    KABP     RKAEP000     400          80          Controlling Documents: Plan
    KKAA     RKAEP000     740          80          Sales Document Line Items Res.Anal.
    KKCA     RKAEP000     630          80          Cost Objects: Variance Line Items
    KKCP     RKAEP000     230          80          Cost Object Line Items - Plan
    KKCS     RKAEP000     130          80          Cost Objects: Line Items - Actual
    KKFB     RKAEP000     650          80          RS Header: Line Items Variance
    KOB1     RKAEP000     110          80          Orders: Actual Line Items
    KOB2     RKAEP000     310          80          Orders: Commitment Line Items
    KOB3     RKAEP000     610          80          Orders: Variance Line Items
    KOB4     RKAEP000     910          80          Orders: Budget Line Items
    KOB5     RKAEP000     510          80          Orders: Maint. Line Item Settlement
    KOB6     RKAEP000     510          80          Orders: Settlement Line Items
    KOB7     RKAEP000     510          80          Orders: Line Item Settlement Retirem
    KOB8     RKAEP000     710          80          Orders: WIP/Results Anal. Line Items
    KOBP     RKAEP000     210          80          Orders: Plan Line Items
    KRMI     RKAEP000     150          80          Run Sched. Header: Line Items Actual
    KSB1     RKAEP000     100          80          Cost Centers: Actual Line Items
    KSB2     RKAEP000     300          80          Cost Centers: Commitment Line Items
    KSB5     RKAEP000     400          80          Controlling Documents: Actual
    KSBP     RKAEP000     200          80          Cost Centers: Plan Line Items
    KVBI     RKAEP000     140          80          Sales Documents: Line Items Actual
    KVBO     RKAEP000     320          80          Sales Documents: Commit. Line Items
    Thank You,
    Ganesh

  • Ukelele generated custom keyboard layouts not working in Lion?

    I asked this question in the stackexchange site a few days ago.  Nothing I've tried has worked so far, except for creating a new account.  Because a fresh account works, it's got to be something with my preferences, right?
    http://apple.stackexchange.com/questions/21691/ukelele-generated-custom-keyboard -layouts-not-working-in-lion
    Here's the question from above:
    I created a custom keyboard layout with Ukelele (http://scripts.sil.org/ukelele) in Snow Leopard (idea is to generate scandinavian letters with Alt-key, otherwise have a pretty much standard U.S. layout). After the upgrade, the old installed (to ~/Library/Keyboard Layouts) layout wasn't working.
    Ukelele seems to work OK in Lion, but whether I put the generated keylayout in a bundle or single file, or save it "/Library/Keyboard Layouts" or "~/Library/Keyboard Layouts" doesn't seem to matter.
    Help?
    EDIT:
    @Sergio, I cannot choose the layout in Input Sources. One keylayout file I tried:http://semeai.org/~sjl/us-scands.keylayout
    [EDIT: Removed unrelated stuff]
    UPDATE 2011/08/15:
    @Tom:
    Copied your keylayout (it naturally ended up in my Junk folder):
    midgard (01:55) >ls -l ~/Library/Keyboard\ Layouts/MongolianQWERTY.keylayout-rw-r--r--@ 1 sjl  staff  44536 Mar 13  2008 /Users/sjl/Library/Keyboard Layouts/MongolianQWERTY.keylayout
    Logged out, logged in, isn't showing in Input sources (I'm looking very closely between "Maori" and "Myanmar - QWERTY").
    I've also uninstalled bunch of software and plugins giving suspicious messages to system.log, but hasn't helped.
    UPDATE 2011/08/16:
    I created a test account, and lo, the layout works perfectly for it. Also the bug in preferences doesn't show for that account. When trying this on my own account, there are no errors in Console logs with the suggested keywords (I can't seem to locate console.log file, though).
    UPDATE 2011/08/16 later:
    Nuking Library/Caches (and relogging) didn't help.
    UPDATE 2011/08/17:
    I did
    % find Library -name "*.plist" -exec mv {} {}.renamed \;
    and restarted, but it didn't help. I restored the situation with
    % for file in `find Library -name "*.plist.renamed"`; \  do mv "$file" "${file//.renamed/}"; done
    addendum: I also went through all the .plist files with plutil -s as described inhttp://www.askdavetaylor.com/can_i_check_my_plist_files_in_mac_os_x_for_problems .html. There was some brokennes, but in very unrelated applications.

    Tom,
    I think I love you.
    That absolutely did it! Thanks so much!
    If you'll answer with the same link in the stackexchange site, I'll mark the answer as correct, so you'll get the rep there.
    Thanks,
    Sami

  • Safari 5.1 customized keyboard shortcut not working

    I've just updated safari on snow leopard and my customized keyboard shortcut: go to next/previous panel (ctrl -> and ctrl <-) don't work anymore even if i set them in my system preferences

    I'm also experiencing issues with custom keyboard shortcuts not working after the update to Safari 5.1. I had no problems with the previous version of Safari.... I wish I had not updated.

  • PS4 Game Voucher Code not working

    my PS4 Game Voucher Code not working and says: "The code you entered may not be correct or may no longer be valid" "Please check your entry (e-820000134)  

    Voucher codes are region-specific. For instance a US voucher won't work with a UK account. First thing to check is whether the voucher's region matches your account's region.

  • How to find all Custom tables (transp) that have a custom transaction code?

    My client has asked us to provide a list of all Z (custom) tables and the associated transaction codes for maintaining them.
    I know I can manually do this with a Z* search in se11 and then do a where used on each table to find out if a view (transaction code) exists for the table - BUT THIS WOULD TAKE HOURS IF NOT DAYS TO DO AND BE LIABLE FOR HUMAN ERROR.
    Does anyone know the way we could code a search for this information (ABAP) and know what tables to use?
    Thanks.
    Scott

    Hi
    You can search in table TSTCP for custom tables that have a maintainance view and a transaction associated, which is a call to SM30. To do this, just select the table with TCODE starting with 'Z' and PARAM starting with '/*SM30'.
    But you can also have some Z tables updated by an module pool program. This is more complex to find, because you don't know if you simply have the field used in the screen for some other use in a transaction, or if it is in that screen just to update the table. In this case, you need to analyze each screen.But I hope the first tip help you to solve your problem.

  • Custom Transaction codes overwritten during transports

    Hi,
    When I create custom queries in my production client, assign transaction codes to them, and assign them to roles they get overwritten every time I perform a transport for those roles. We are still at an early stage of implementation and there are still some daily authorization changes that require a transport from test to production. When the roles are transported it wipes all my reports (transaction codes) assigned to these roles in the production system. Is there a way to perform a transport without wiping out the customizations made to the role in the production system like these?
    Thank you,
    Sergiy

    The answer is in the way one works with BI (or BW).
    If the design is that queries are to be created in production (which is often used). As far as i know the only exception on the rule that everything should be build in DEV. And this is the only good way as you do not want end-users to work in DEV. There are some things to know about the way SAP works.
    If a role is changed in DEV and transported to PROD all queries assigned to the role in PROD will be disconnected.
    Solution a role to be used in PROD were queries will be assigned to should never be transported again.
    Solution in detail, there should be roles for different use:
    1.     Access to Info providers in version read and write.
    2.     Access to publish reports in roles per query role.
    3.     Query/Menu roles per info area.
    Roles 1 and 2 allow for access and can be transported as often as you want. Role 3 is only to be used as a container of queries to be used by end users and should NEVER be transported again (best practice is to delete if in DEV after transport and NOT assign it to a transport before deletion).
    In the publisher role it can be arranged to which role(s) the publisher can assign reports. It is also possible to force users to use a report naming convention in this role.

  • Create custom Transaction code

    BW Experts,
    Can I create a custom transaction (T-CODE) in BW  which will basically bring up a screen to trigger an event which would run a infopackage.
    I need to give user the access to run a infopackage and not to admin workbench. The above is the method I thought about, but do not know if it is possible to do it. I would appreciate any help on this.
    Thanks
    Ashwin

    Aswin,
       It is very much possible. Create an ABAP Program and call the Function Module BP_EVENT_RAISE . Pass your Event to Function Module.
    Go to SE93. Create a Transaction Code by providing Technical Name. You will get a pop up to choose the Transaction Type. Select Program with selection Screen. provide Description and Program Name you created earlier. Save.
    all the best.
    Nagesh Ganisetti.
    Assign Points if it helps.

  • Transaction launcher not working for custom business role

    Hi Experts,
    I am facing a very weird problem where the transaction laucher define for BOR transaction is working for one business role(Z business role Customized one) but its not working for other business role (Z business role).
    to emphasize further we have the code:-
    case ls_attributes-object_type.
        when lc_z23 or lc_z25.
          lv_logical_link = lc_ZITISU.
        when lc_BUS2000115.
          lv_logical_link = lc_ZITERP1.
        when others.
          lv_logical_link = lc_ZITERP2.
      endcase.
      l_if_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
      IF l_if_navigation IS BOUND .
    Navigate to transaction launcher using link id
        l_if_navigation->navigate( iv_link_id = lv_logical_link ).
      ENDIF.
    in this the logical link is is lc_ZITISU whenever this BSP application is called from both the business roles but in  one the window opens up for BOR transaction whereas when we login again using different business role the code is the same as given above. I mean the sam logical link id is used and navigated to but window is not opening for transaction launcher as it happens for the previous business role.
    Request your help to resolve this issue.
    Thanks,
    Rajwin

    Hi,
    I tried by applying the PFCG role id of business role which was working to the business role id of the one for which it wasn't working and then try testing whether the transaction launcher is triggering. But the transaction launcher screen is still not opening even after doing this.
    Probably there's something else too which is causing the problem. Request your inputs on this,
    Thanks,
    Rajwin

Maybe you are looking for

  • Is it possible to handle formatted text actions(RTF) using Clipboard?

    Hi All, Is it possible to handle formatted text actions(RTF) using Clipboard? My application requires to copy the contents from other applications like MS-Word and contents to be pasted in my Application.. if so how?i appreciate for any piece of code

  • Is SUN's Java Web Server 2.0 running on Solaris 8?

    Hi, I had installed Java Web Server 2.0 on Solaris 8 under /opt/SUNWjws/JavaWebServer2.0 directory. When I tried to start up the java web server by calling "./httpd &" from /opt/SUNWjws/JavaWebServer2.0/bin directory I got the error message "jre was

  • How do I see the duration of a clip in the timeline ?

    Hi there, How do I see the duration of a clip in the timeline ? How do I change the duration by typing in a number (instead of dragging its ends) ? Thanks

  • Confirm Dialog (JavaScript)

    Hi, I'm using the JavaScript confirm dialog attached to a button (return confirm('xxxxxxxxxxxxxxx'). It works fine but I need two things: 1. How can I change the window title? 2. How can I change the titles of the two buttons? (I need them in Spanish

  • My photo library now a complete mess... help needed!

    Oh woe is me! I decided to use a referenced library, and used A3 to move all my gathered photos into a Master Library on another drive. First thing that went wrong.... A3 can't tell the difference between JPG and jpg, so I ended up with piles of dupl