Navigation to Transcation from SAP QUERY Reports

Gurus
Can we navigate to specific transaction codes by clicking on a field in a report developed using SAP QUERY, similar to HOT SPOTS we have in ABAP reports
Thanks
nithi A

Dear ,
FORM user_command USING r_ucomm TYPE sy-ucomm rs_selfield TYPE slis_selfield.
  DATA  : fieldnm(15) TYPE c .
  DATA   : v_para(15) TYPE c.
  DATA   : v_para1(15) TYPE c.
  CLEAR mt_fieldcat.
  CLEAR lt_fieldcat.
  CASE r_ucomm.
    WHEN 'SAVE'.
      PERFORM save.
    WHEN 'SELALL'.
      PERFORM select.
    WHEN 'DEALL'.
      PERFORM deselect.
    WHEN  '&F03' OR '&F12' OR '&F15'.
      LEAVE PROGRAM.
  ENDCASE.
  fieldnm = rs_selfield-fieldname.
  READ TABLE it_zmseg INDEX rs_selfield-tabindex.
  IF sy-subrc EQ 0.
    IF rs_selfield-fieldname = 'BISMT'.
      v_para = rs_selfield-value .
      submit "transaction name " exporting from memory  return .
  ENDIF.
  CLEAR v_para.
check syntax of submit "taransaction .
this will help you .
Deepak Dhamat

Similar Messages

  • E-recruiting - reporting from SAP Query

    Hi all,
    We are using SAP Query to run reports for e-recruiting and have created our own infosets copied from the SAP standard delivered ones.
    We are also using the EEO entries based on the configuration tables in the IMG and making these available when creating questions in questionnaires for EEO data. This is all successful and the questionnaires can be completed. However, when trying to report on this data by testing it in SQ01, none of the ethnicity data appears on the output.
    Does anyone know if there are any jobs that need to be run to extract the information from questionnaire responses to be reportable through the SAP Query tool?
    Thanks in advance.
    Jim

    Hi Jim,
    I need a favour from you, Pls give me some sample SAP query reports that are generated for E-recruiting so as to get familiar with using SP Query for E-recruiting as one of my clients need the same.
    Thanks in advance,
    Kuamr.

  • SAP QUERY report for vendor line items

    Hi
    I have created a SAP QUERY report for vendor line items with fields vendor no.,vendor name,amount,company code and period.But there is one line item i donot know from wher system is getting it picked with is not in that vedor account,when i compare with fbl1n.I checked the document number too...the same doc number is twice in my query report.One with correct amount and another with wrong one.How do i chk.Where did i go wrong in creating query.I used logical database KDF.
    Please advise.

    i chked...how do we get the amount displayed in query...it just displays amount no debit credit symbol... i have selected BSEG-DMBTR field but no -/+ sign,how is it done in query,please suggest.

  • SAP Query report

    Hi Friends,
    For reporting and documentation reasons I set up SAP Query report which almosts fits our needs.
    Regarding values, what we need is the total value (header or sum of all items) before and after tax.
    I am only able to display the BEFORE TAX VALUE with reference to VBAK-NETWR or VBAP-NETWR.
    is there any possibilty to displays the AFTER TAX VALUE (total value) as well from sales order or invoice?
    Pls keep in mind that I am using SAP query, so i cannot do any coding or calculations.
    Regrards,
    Srikky

    Hello,
      as of my knowledge not. So a different solution could be the following one: in customizing, in "Define and assign pricing procedure", you can assign a subtotal (field T683S-KZWIW) to the price condition item corresponding to the AFTER TAX VALUE. So this value will be stored in the corresponding field of table VBAP (i.e. if you assign subtotal '1' the value of that condition will be stored in field KOMP-KZWI1, and then in the corresponding field of table VBAP-KZWI1).
    I hope this could help.
    Best regards,
    Andrea
    Edited by: abrusa on Sep 13, 2010 2:12 PM

  • Debugging in SQ02 (Sap Query Report)

    Hi All ;
    I want to learn that ,how can I debug a sap query report.I added some fields to the query with code.
    How can I reach that code by debugging ?Thanks for your reply.
    Regards.
    Fırtına.

    Hi Yigit,
    Every Query generated one program like  AQZZ/FSCMA/IS===CDM_10_Q1=====
    Go To your QuerySQ01 , run your query and From selection screen, check your program name  after that you can search your added code. what you added in infoset but your breakpoint  and debug your query code.
    Regards,
    Prasenjit

  • Get selection screen parameters from sap query

    Hello. I use SAP Query Reporting, so I added a report assignment for detailing (sq01 ->  Change button -> Goto -> Report Assignment -> Insert row -> Other type row -> Abap Report Program)
    and put there ABAP program.
    When I run query and press CtrlShiftF1  (or double click) It calls my abap program.
    So the question is: how to get selection screen parameters in my program ?
    to be more precise I want to get date parameter (begda, endda)
    Thanks a lot.

    There is a Z query which I can see in sq01. I set reporting period and run the query; when I run it, it gives me the employee list.
    So I wrote the abap report to get an employee details, customized query as I mentioned above.
    The query calls my report and I need to get parameters.
    SELECTION-SCREEN BEGIN OF BLOCK frm1 WITH FRAME TITLE text-001.
    PARAMETER :  p_pernr LIKE p0001-pernr OBLIGATORY MATCHCODE OBJECT prem.
    PARAMETER : p_date LIKE sy-datum.
    SELECTION-SCREEN END OF BLOCK frm1.
    Parameter
    p_pernr
    passes normal. ALV Query contains it, but I'd like to get one more parameter from selection screen of the query and don't know how to get it.

  • Reading Archived Data Through SAP Query Report

    Dear SAP Gurus,
    My client archived their SAP data in a particular year range and all the Z reports have to modified to read these archive data. Normal ABAP reports can be modified to read the archive data without no problem.
    But there are two Z SAP query reports which should be modified the same way so it will be able to read archive data.
    What is the best method for this? Does SAP Query tool provide facility to read archive data? or do I have to append the code?
    Thank you in advance for your help
    Regards,
    Isuru Fernando

    >
    Isuru U Fernando wrote:
    > hi Manthan,
    >
    > Yes I used these FMs and read the data without any problem for normal ABAP reports.
    >
    > But SAP query report is the problem. Is it advisobale to modify the SAP query generated report source code? since it is a system generated report.
    >
    > Regards,
    > Isuru
    No, do not adapt the SAP generated report source. The reason is: every time someone re-generates the query from tx. SQ01 your changes will be lost.
    You could add the functionality Manathan gave you to add to the infoset of said query - but to be honest: in my opinion that is shooting nuclear rockets at flies. Also you run the risk that every change of the infoset (add a join/delete a join) requires adjustment of said coding you applied ... and where will you be then? Fancy repairing the same query over and over again? Try talk sense to your client - go for a Z-report here ...

  • Dump in SAP query report

    Dear All,
    I have written some development in SAP Query report.
    The main aim is to assign to own defined parameter par1  combination of version and object-partner (internal order with defined order type).
    The text is following:
    DATA: it_aufk like aufk
          occurs 10 with header line.
       DATA: p-auart like aufk-auart.
       select * from AUFK into table it_aufk
         where AUFNR = coep-parob1+2(12).
      if sy-subrc = 0.
       if coep-versn = '000'.
        par1 = 1.
       elseif coep-versn = 'GR0'.
        par1 = 2.
      endif.
    endif.
      if coep-versn = 0 and ( p-auart = 'V112' or p-auart = 'V114' ) .
        par1 = 1.
      endif.
    I have performed check and generated this info-set successfully.
    Than I have generated program in queries - other function- generate program.
    I execute report and get dump.
    What did I miss?
    With best regards,
    Kamila.

    Category               ABAP Programming Error
    Runtime Errors         CONVT_NO_NUMBER
    ABAP Program           AQICZCO=========QUE_KZHAKEN_01
    Application Component  Not Assigned
    Date and Time          15.12.2011 16:18:35
    Short text
         Unable to interpret "GR0" as a number.
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "AQICZCO=========QUE_KZHAKEN_01" had to be termi
          because it has
         come across a statement that unfortunately cannot be executed.
    What can you do?
         Note down which actions and inputs caused the error.
         To process the problem further, contact you SAP system
         administrator.
         Using Transaction ST22 for ABAP Dump Analysis, you can look
         at and manage termination messages, and you can also
         keep them for a long time.
    Error analysis
         An exception occurred that is explained in detail below.
         This exception cannot be caught in the context of the current statement.
         The reason for the exception is:
         The program attempted to interpret the value "GR0" as a number, but
         since the value contravenes the rules for correct number formats,
         this was not possible.
    How to correct the error
        Whole numbers are represented in ABAP as a sequence of numbers, possibl
         with an algebraic sign.
        The following are the possibilities for the representation of floating
        point numbers:
          [algebraic sign][mantissa]E[algebraic sign][exponent]
          [algebraic sign][whole number part].[fraction part]
        For example, -12E+34, +12E-34, 12E34, 12.34
        If the error occurred in your own ABAP program or in an SAP
        program you modified, try to remove the error.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "CONVT_NO_NUMBER" " "
        "AQICZCO=========QUE_KZHAKEN_01" or "AQICZCO=========QUE_KZHAKEN_01"
        "START-OF-SELECTION"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
       In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.

  • Issue in transaction code creation for sap query report .

    Hi  Gurus,
    I have a requirement to create transaction codes for sap query reports. I found two ways to create transaction code for sap query report
    1) By Generating program for sap query report and creation of transaction code for that generated Program. in tcode.
    2) By using parameter transaction options in start object of se93
    What are the difference between creation of these two ways. Please specify  the advantages and disadvantages of both methods.
    Regards,
    Suneel Kumar Uggina.

    Hi Jogeswara Rao,
    But I am getting problem while transporting form development system to  the production system. After transporting to Production system  I have used the code created in development system, but it is giving Error ' No Program Found for that Transaction Code. And  I would like to know  on what conditions should I have to  use the First one  and as well as a second one in sap query reports.
    Thank You,
    Suneel Kumar Uggina.

  • 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

  • Sap query report-selection screen modification

    Hi
    I  have created a SAP query report using the logical database KDF ,the selection screen was created automatically.For vendor report open item and Cleared item Push button would be there in FBL1N but here it only displays Open key date,clearing dates.The open key date is mandatory to give though i give clearing dates as i need vendor cleared items.
    Is ther way to change the selection screen to get the option open item and cleared item push button as in FBL1N.
    This is because i was filtering a vendor only for particular doc type only for clearing items but report takes open item too though i meantioned clearing date rate.How to modify the selection screen in sap query report when Logicaldatabase is selcted.

    I need to get only the cleared items.I donot need open items.Then if go for BSIK is it wrong.Should go only for BSAK.
    I couldnt find the table BSAK in logical database KDF.
    Edited by: mysap query on Mar 18, 2009 3:15 PM
    Edited by: mysap query on Mar 18, 2009 3:15 PM

  • How many ways we can create authorization for user groups in sap query reports

    Hi Gurus, I am getting a problem when I am assigning users to user group in sap query report .The users other than created in user groups are also able to add &change  the users .So please suggest me how to restrict users outside of the user group.
    Please send me if u have any suggestions and useful threads.
    Thank You,
    Suneel Kumar.

    I don't think it can be done. According to the link below 'Users who have authorization for the authorization object S_QUERY with both the values Change and Maintain, can access all queries of all user groups without being explicitly entered in each user group.'
    http://help.sap.com/saphelp_46c/helpdata/en/d2/cb3f89455611d189710000e8322d00/content.htm
    Although I think you can add code to your infoset and maybe restrict according to authority group, i.e.:
    Use AUTHORITY-CHECK to restrict access to the database based on user.
    Press F1 on AUTHORITY-CHECK to find out how to use it in the code

  • SAP query reports

    why  reports naming contains ==== in sap query reports????

    Dear Changhal,
    Welcome to SDN!
    Do you mean to ask why "====" is in report queries?
    You can create queries by confirming to naming conventions followed by your company.
    Visit [SAP Query|http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb4145455611d189710000e8322d00/frameset.htm]
    Post your queries in relevant Forum.
    Regards,
    Naveen.

  • Fetch data from SAP Standard Reports

    Hi,
    I want to fetch the data of internal Table from SAP-Standard Reports. After than I can use in different report of these data. So Please guide me how to do this. How to fetch the data for use in different programs at run time of new object.
    Thanks !
    Ram Shanker
    Edited by: Ram Shanker on Feb 7, 2012 6:02 PM

    YOU WANT LIKE THIS
      SELECT VBELN FKART FKDAT KUNAG FROM VBRK CLIENT SPECIFIED INTO TABLE IT_VBRK
        WHERE MANDT = SY-MANDT AND FKDAT IN SO_YEAR
        AND FKART IN SO_TYPE
        AND BUKRS IN SO_BUKRS
        AND KUNAG IN SO_KUNAG.
    *********Selection from Billing Document: Item Data ******
      IF IT_VBRK[] IS NOT INITIAL.
        SELECT VBELN POSNR FKIMG AUBEL AUPOS MATNR INTO TABLE IT_VBRP
          FROM VBRP CLIENT SPECIFIED FOR ALL ENTRIES IN IT_VBRK
          WHERE MANDT = SY-MANDT AND VBELN = IT_VBRK-VBELN
          AND MATNR IN SO_MATNR.
    ********Selection from Material Descriptio*****
        IF IT_VBRP[] IS NOT INITIAL.
          SELECT MATNR MAKTX INTO TABLE IT_MAKT
            FROM MAKT CLIENT SPECIFIED FOR ALL ENTRIES IN IT_VBRP
            WHERE MANDT = SY-MANDT AND MATNR = IT_VBRP-MATNR.
        ELSE.
          MESSAGE TEXT-005 TYPE TEXT-001.
          STOP.
        ENDIF.
      ELSE.
        MESSAGE TEXT-005 TYPE TEXT-001.
        STOP.
      ENDIF.
      IF IT_VBRP[] IS NOT INITIAL.
    *********Selection from Sales Document: Business Data ******
        SELECT VBELN POSNR KDKG1 INTO TABLE IT_VBKD
          FROM VBKD CLIENT SPECIFIED FOR ALL ENTRIES IN IT_VBRP
          WHERE MANDT = SY-MANDT AND VBELN = IT_VBRP-AUBEL
          AND POSNR = IT_VBRP-POSNR
          AND KDKG1 IN SO_VTEXT.
        IF SY-SUBRC <> 0.
          IF SO_VTEXT IS NOT INITIAL.
            MESSAGE TEXT-028 TYPE TEXT-001.
            STOP.
          ENDIF.
        ENDIF.
      ENDIF. 
      IF SO_VTEXT IS NOT INITIAL.
        SORT IT_VBKD BY VBELN POSNR.
        SORT IT_VBRP BY AUBEL POSNR.
        LOOP AT  IT_VBKD INTO WA_VBKD.
    ***Selection to get warranty period
          SELECT SINGLE VTEXT FROM TVKGGT INTO WA_FINAL-VTEXT
          WHERE KDKGR = WA_VBKD-KDKG1
          AND SPRAS = 'EN'.
          READ TABLE IT_VBRP INTO WA_VBRP WITH KEY AUBEL = WA_VBKD-VBELN POSNR = WA_VBKD-POSNR.
          IF SY-SUBRC = 0.
            WA_FINAL-VBELN = WA_VBRP-VBELN.
            WA_FINAL-POSNR = WA_VBRP-POSNR.
            WA_FINAL-FKIMG = WA_VBRP-FKIMG.
            WA_FINAL-AUBEL = WA_VBRP-AUBEL.
            WA_FINAL-AUPOS = WA_VBRP-AUPOS.
            WA_FINAL-MATNR = WA_VBRP-MATNR.
            CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
              EXPORTING
                INPUT  = WA_FINAL-MATNR
              IMPORTING
                OUTPUT = WA_FINAL-MATNR.
          ENDIF.
          READ TABLE IT_VBRK INTO WA_VBRK WITH KEY VBELN = WA_VBRP-VBELN.
          IF SY-SUBRC = 0.
            WA_FINAL-FKART = WA_VBRK-FKART.
            WA_FINAL-FKDAT = WA_VBRK-FKDAT.
          ENDIF.
          READ TABLE IT_MAKT INTO WA_MAKT WITH KEY MATNR = WA_VBRP-MATNR.
          IF SY-SUBRC EQ 0.
            WA_FINAL-MAKTX = WA_MAKT-MAKTX.
          ENDIF.
    ***Selection to get sold to party
          SELECT SINGLE NAME1 FROM KNA1 INTO WA_FINAL-NAME1
          WHERE KUNNR = WA_VBRK-KUNAG.
          APPEND WA_FINAL TO IT_FINAL.
        ENDLOOP.

  • Report from SAP Query due by universe

    Guys,
    I create universe based on SAP Query.
    Now I want to build BO report.
    So I connect a Universe drag to window my objects, but when I push Run Query I receive error:
    A database error ocured.
    The database error text is:
    The MDX query SELECT  { [Measures].[D4M5A7PITT7CVVVC8GMZS6QIH] }  ON COLUMNS , NON EMPTY [WLENTITY].[LEVEL01].MEMBERS ON ROWS FROM [Z_ROSDOB/REP_20081202071548]  failed to execute with the error See RFC trace file or SAP system log for more details. (WIS 10901)
    I can easily build reports based on other queries or cubes.

    Hi Roman,
    This is normally a connection issue when connecting to RDBMS rather than infocubes. a couple of questions
    Is you universe set up to pass through the authentication or is it using a specific logon?
    Does the user running the report have the appropriate responsiblities to run the query?
    Regards
    Alan

Maybe you are looking for

  • Work around passcode? help!

    My dear friend died suddenly and left me his new ipad2, but I can't find his passcode anywhere. I am the executor of his estate and have been thru all his things.  Any way to work around this problem?  Really need help here, thx!

  • Sun update manager with patch manager

    I need to use both products since I have systems running Solaris 10, 9 and 8. Is there a way to get them to work together? Ideally, I would like to have 1 system talk to SUN to manage the application and downloads. I would want the system to distribu

  • Seeded reports with landwide style not printing correctly

    Have are running into a problem where seeded reports with landwide as the style is printing with a blank line between each printed line.  We have tried changing the font from 8 to 7 for the print driver.  But that didn't resolve our issue either. We

  • BPM for Windows - I see Apple has a BPM web ap

    but it only designates MAC ... I don't even know how I got into the Web Aps section .. I do not have an iphone ... I just have iTunes and I do not want to buy the whole program of BeaTunes especially if there is just an add-on or something small that

  • After update cant create new libraries

    i have a couple different libraries for 3 ipods in itunes (1 big one 2 smaller ones) and i lost the small ones after I updated which isn't such a big deal except now itunes wont let me open or create a new library. I push shift when i open itunes but