Hyperlink on field in Basic list of ABAP Query

Dear All,
Could somebody tell me, if its possible to have a hyperlink on a field in the Basic list of ABAP Query (SQ01,SQ02).
Example :- There is a basic list which has the field MARA-MATNR displayed.There should be a hyperlink on this field, such that when the user clicks on it , the transaction MM03 is called.
Thanking You.
Ranu

Hi,
Loop at itab.
write:/ itab-matnr hotspot,
          itab-maktx.
hide: itab-matnr.
endloop.
data: c_field(16).
at line-selection.
  get cursor field c_field.
  if c_field  = 'ITAB-MATNR'.
    check not itab-matnr is initial.
    set parameter id 'MAT' field itab-matnr.
    call transaction 'MM03' and skip first screen.
  endif.
This is one example to call the transaction.
If this helps you award points.
Thanks,
Deepak.

Similar Messages

  • Interactive list musing abap query and how to create infoset records

    hi,
    Can any one suggest how to create interactive list using ABAP Query .And also infosets and ranked list ..thanks in advance
    Regards,
    Raghu.

    Hi,
    Check this
    Re: How to make output of ABAp query interactive(drill down)..?
    some info on the ABAP query
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c
    hope it helps.
    Regards!

  • Header & Footer in Basic list of infoset Query.

    Dear Experts,
    In an Infoset Query, I have been trying to make use of the Header & Footer Features (available in the Basic list screen) for quite sometime, but with no success.
    Even though I add these, they do not appear in the list output.
    Please throw some light of knowledge in this regard.
    Regards
    Jogeswara Rao

    The Header & Footer text in the Basic list of Query will only be shown in the "ABAP List". Not sure if you are are looking at the Header & Footer text in SAP List Viewer.

  • Product Category field in basic list be edit mode.

    Hi Expert,
    We are using SRM 5.0.
    In basic data we have a field Product Category which is gradeout mode(not editable).
    my requirement was to make it editable.
    please help me.
    Thank and reagrds,
    Tirumala

    Hi Experts,
    In module pool we made changes and it is working fine.
    Thanks and regards,
    Tirumala.

  • ABAP Query --List Width

    Hi,
        I have a requirement for ABAP Query using transaction sq03.
    I have to add a new column and since the field length is char132, when i place the field in "Basic List" tab in Sq03, the field goes to the
    next line.Now, when I execute the output, only the fields in the first line (in Basic List) get displayed. The fields in the second line do not get displayed. Also, I cannot fit the second line fields in the first line as the maximum list width is 254. I need a solution to display the 2nd line fields in output.
    Thanks in advance.
    Regards,
    Tejas Savla

    Hi Teja ,
    what u can do is , change its display length of that field .
    SQ01---> In the change Mode --->basic List ---> Click on the Field --->Down Left u will get options to change display length.
    regards
    Prabhu

  • ABAP Query - Sorting Issue in Basic List (SQ03)

    Hi,
        I have developed a ABAP Query. I want to sort some of the fields, for which I need to add some output fields to the sort sequence box in the Basic List page in SQ03/SQ01. But, I am not able to drag and drop the fields directly. Please suggest how can this be done? Thanks in advance.
    Best Regards,
    Tejas Savla

    Hi Abhishek,
    There are three things related to Query.
    1) You have to create the USER GROUP in SQ03.
    2) You have to create the Infoset in SQ02. In this infoset you can write the logic of the program/Query what ever you want to perform.So you can sort the table in the infoset in the program logic.you have to create the output table of the query.
    3) you have to create the Query in SQ01 and you have to associate the User group and infoset . you have to design the layput of the output you want to have.this output fields would be same as you have defined in infoset(step 2).
    hope this will help you.
    thanks
    Tanmaya

  • SAP Query: Display Selection Fields in the header page of Basic list

    Hello,
    I have to display the selection fields in the header page of the basic list and statistics
    in a SAP Query.
    I know the usage of short names for fields in the header page, but this doesn't work
    for the selection fields.
    How can I display the selection fields in header pages?
    Kind regards
    Thomas

    Try using:
    DATA: wa_lstab TYPE line
    READ LINE sy-index line value INTO wa_lstab
    Thanks,
    SKJ

  • Abap basic list .

    My requirement is as below .
    For every new sales org /Distribution Channel /Division  Combination of these three . I have to display the basic list .Can some one guide me on this .
    Required output
    Sales Area: <KONA-VKORG>/ <KONA-VTWEG>/ <KONA-SPART>
    Document no   date              Validity date
    Thanks in advance
    -padma

    go through this report
                     TABLES DECLARATION
    type-pools: slis.
    data: it_fieldcat type slis_t_fieldcat_alv,
           wa_fieldcat like line of it_fieldcat.
    tables:vbak,        "Sales Document Header Details
            vbap,        "Sales Document Item Details
            kna1.        "Customer Master Details
                        INTERNAL TABLES DECLARATION
    data:begin of it_vbak occurs 0,
         vbeln like vbak-vbeln,     "Sales Document
         erdat like vbak-erdat,     "Date on which the record was created
         erzet like vbak-erzet,     "Entry time
         ernam like vbak-ernam,     "Name of Person who Created the Object
         auart like vbak-auart,    "Sales Document Type
         end of it_vbak.
    data: begin of it_vbap occurs 0,
           vbeln like vbap-vbeln,
           posnr like vbap-posnr,
           matnr like vbap-matnr,
           matwa like vbap-matwa,
           matkl like vbap-matkl,
           arktx like vbap-arktx,
           end of it_vbap.
    data:begin of it_finaltable occurs 0,
          vbeln like vbak-vbeln,     "Sales Document
          erdat like vbak-erdat,     "Date on which the record was created
          erzet like vbak-erzet,     "Entry time
          ernam like vbak-ernam,     "Name of Person who Created the Object
          auart like vbak-auart,
          posnr like vbap-posnr,
          matnr like vbap-matnr,
          matwa like vbap-matwa,
          matkl like vbap-matkl,
          arktx like vbap-arktx,
          end of it_finaltable.
                              SELECTION-SCREEN
    selection-screen begin of block b1.
    select-options:s_vbeln for vbak-vbeln.
    selection-screen end of block b1.
    selection-screen begin of block b2.
    select-options:s_erdat for vbak-erdat.
    selection-screen end of block b2.
    selection-screen begin of block b3.
    select-options:s_erzet for vbak-erzet,
                   s_ernam for vbak-ernam,
                   s_auart for vbak-auart.
    selection-screen end of block b3.
                 START-OF-SELECTION
    start-of-selection.
    perform get_vbak.
    perform alv_datas.
    perform alv_displays.
                 END-OF-SELECTION
    end-of-selection.
    form alv_datas .
    wa_fieldcat-fieldname = 'VBELN'.
    wa_fieldcat-seltext_l = 'SALES DOCUMENT NUMBER'.
    append wa_fieldcat to it_fieldcat.
    wa_fieldcat-fieldname = 'ERDAT'.
    wa_fieldcat-seltext_l = 'DATE ENTERED'.
    append wa_fieldcat to it_fieldcat.
    wa_fieldcat-fieldname = 'ERZET'.
    wa_fieldcat-seltext_l = 'TIME CREATED'.
    append wa_fieldcat to it_fieldcat.
    wa_fieldcat-fieldname = 'ERNAM'.
    wa_fieldcat-seltext_l = 'Person Created'.
    append wa_fieldcat to it_fieldcat.
    wa_fieldcat-fieldname = 'AUART'.
    wa_fieldcat-seltext_l = '----
    append wa_fieldcat to it_fieldcat.
    wa_fieldcat-fieldname = 'POSNR'.
    wa_fieldcat-seltext_l = 'Item Number'.
    append wa_fieldcat to it_fieldcat.
    wa_fieldcat-fieldname = 'MATNR'.
    wa_fieldcat-seltext_l = 'Material Number'.
    append wa_fieldcat to it_fieldcat.
    wa_fieldcat-fieldname = 'MATKL'.
    wa_fieldcat-seltext_l = 'Order Qty'.
    append wa_fieldcat to it_fieldcat.
    wa_fieldcat-fieldname = 'ARKTX'.
    wa_fieldcat-seltext_l = 'Order Unit'.
    append wa_fieldcat to it_fieldcat.
    wa_fieldcat-fieldname = 'POSAR'.
    wa_fieldcat-seltext_l = 'Net Qty'.
    append wa_fieldcat to it_fieldcat.
    endform.                    " ALV_DATAS
    *&      Form  GET_VBAK
          text
    -->  p1        text
    <--  p2        text
    form get_vbak .
    if not it_vbak is initial.
    select vbeln
           erdat
           erzet
           ernam
           auart from vbak
           into table it_vbak
           for all entries in it_vbap
           where vbeln = it_vbap-vbeln.
    endif.
    endform.
           " GET_VBAK
    *&      Form  ALV_DISPALYS
          text
    -->  p1        text
    <--  p2        text
    form alv_displays .
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
      I_CALLBACK_PROGRAM                = ' '
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  = I_STRUCTURE_NAME
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      = I_GRID_TITLE
      I_GRID_SETTINGS                   = I_GRID_SETTINGS
      IS_LAYOUT                         = IS_LAYOUT
       it_fieldcat                       = it_fieldcat
      IT_EXCLUDING                      = IT_EXCLUDING
      IT_SPECIAL_GROUPS                 = IT_SPECIAL_GROUPS
      IT_SORT                           = IT_SORT
      IT_FILTER                         = IT_FILTER
      IS_SEL_HIDE                       = IS_SEL_HIDE
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        = IS_VARIANT
      IT_EVENTS                         = IT_EVENTS
      IT_EVENT_EXIT                     = IT_EVENT_EXIT
      IS_PRINT                          = IS_PRINT
      IS_REPREP_ID                      = IS_REPREP_ID
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   = IT_ALV_GRAPHICS
      IT_HYPERLINK                      = IT_HYPERLINK
      IT_ADD_FIELDCAT                   = IT_ADD_FIELDCAT
      IT_EXCEPT_QINFO                   = IT_EXCEPT_QINFO
      IR_SALV_FULLSCREEN_ADAPTER        = IR_SALV_FULLSCREEN_ADAPTER
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           = E_EXIT_CAUSED_BY_CALLER
      ES_EXIT_CAUSED_BY_USER            = ES_EXIT_CAUSED_BY_USER
      tables
        t_outtab                          = it_finaltable
    exceptions
    program_error                     = 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.
    endform.                    " ALV_DISPLAYS
    reward points if helpful.....

  • Problem in Currency field in Abap Query

    hi.
         I have created an additional field for storing the currency type.
         Based on some calculations i want to store the currency type into this additonal field.But the problem is that the currency field is not getting displayed in the report though i am getting the currency type in the additional field when i check it while debugging. Can anyone help me out...

    Vimal,
      Is it ABAP Query problem(SQ01).If yes, then
      In tcode SQ02(Infotype)>press extras button(F5)>In right side you will find 4 tabstrip buttons.Press on Extras--> create variable with same type of currency.
    goto Field group button--> add this field to field groups.
    In record processing event after your calculations assign your value of cuurncy to this new variable.
    In tcode SQ01-->enter query name >F6>F6>F6>select your new varaible
    >Press on basic list button(shift+F4)>left side you will find additional fields Node From there select your new field-->Save come back and execute the query.Now  you will find your variable.
    Don't forget ot reward if useful....

  • Add 2 new fields to an existing ABAP query in a particular position

    Hello,
    I have added 2 new fields to an existing ABAP query. These have been successfully added and the query is also executing.
    But these 2 new fields are displaying at last. I need to add these fields in a particular column position.
    Also I need to change the heading of these 2 new fields.
    I tried to do so from the basic list, layout design from SQ01.
    But I could not.... whatever I do.. the 2 new fields are displayed at the end of the list...
    Please help me

    Hi Andreas,
    Do you mean that I should create a complete new abap query?
    Is there no way to add some new fields at a particular position to an existing abap query?

  • How to add the fields to the transaction 'Z10SD25' using ABAP Query

    Hello,
    I want to add the new fields like 'From' and 'To' depending on some conditiions. But i have to do this using ABAP Query.
    Can any one help me with this as I am not much aware of ABAP Query .
    Regards,
    Darshana

    Hi,
    ABAP/4 query can be designed in four steps
    1.     Creation of a user group
    2.     Creation of Infoset
    3.     Assignment of user group to Infoset
    4.     Creation of the query based on Infoset
    By executing the transaction codes mentioned below
    u2022     SQ01   ABAP/4 Query
    u2022     SQ02   Infosets
    u2022     SQ03   User group
    Step 1: To create an Infoset without a logical database
    One of the following can be selected
    u2022     Based on a single table
    u2022     Using an ABAP/4 program
    u2022     Using Table Joins
    u2022     Using Sequential Dataset
    NOTE: The tables to be used in the join should have at least one field in common i.e. it should have the same name, domain or data element.
    Step 2: Here you specify the users who should be authorized to run the query. A user group is always associated with a Infoset.
    Step 3: In Query Definition you can define the Selections Screen. Here you can check against the fields(fields from the tables specified in the infoset above) that you require to be shown on the selection screen.
    Now we Finally need to specify the output type for the query as Basic List, Statistics or Ranked List. Choose the option Basic List and also select the fields to be displayed in the output list(in your case from and to fields...)
    After providing all the above options you can save the query and execute it by clicking the Execute button twice.
    Hope this helps
    Regards
    Shiva
    Edited by: Shiva Kumar Tirumalasetty on Sep 15, 2009 12:44 PM

  • How to hide some fields in ABAP Query

    Hi,
    My ABAP Query has a long list of extracted fields. I wanted to set some of these output to "HIDE".
    This allow User the flexibility to decide what fields to show.
    How can I set the field to "HIDE" in my query?
    Thanks
    bye

    Hi Tim,
    You can do this by setting the Report layout variant in following steps:
    1. First define the parameter on selection screent for report variant.
    2. Data decelaration for variant.
    3. Value request to get already present variants on report:
    4. If doesn't choose the layout take out the default report layout.
    5. Initialize the report variant.
    6. Apply the variant to the REUSE_ALV_GRID_DISPLAY funtion module.
             Here to generate report variant first to open report output and then as per according to user set the layout of report using the layout icon of ALV with summation on value fields (as required) and create layout name.
    *Data Deceleration as below:
    Data :g_save(1) TYPE c,
    **      g_default(1) TYPE c,
    g_exit(1) TYPE c,
    gx_variant TYPE disvariant,
    g_variant TYPE disvariant.
    *First Define the parameter to give layout of Report variant.
    SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE text-003.
    PARAMETERS: p_vari TYPE disvariant-variant.
    SELECTION-SCREEN END OF BLOCK 3.
    * Process on value request
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
    PERFORM f4_for_variant.
    * Selection-Screen Checking
    AT SELECTION-SCREEN.
    PERFORM pai_of_selection_screen.
    INITIALIZATION.
    w_repid = sy-repid.
    PERFORM variant_init.
    * Get default variant
    gx_variant = g_variant.
    CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
    EXPORTING
    i_save     = g_save
    CHANGING
    cs_variant = gx_variant
    EXCEPTIONS
    not_found  = 2.
    IF sy-subrc = 0.
    p_vari = gx_variant-variant.
    ENDIF.
    FORM f4_for_variant .
    CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
    EXPORTING
    is_variant = g_variant
    i_save     = g_save
    IMPORTING
    e_exit     = g_exit
    es_variant = gx_variant
    EXCEPTIONS
    not_found  = 2.
    IF sy-subrc = 2.
    MESSAGE ID sy-msgid TYPE 'S'      NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    **  ELSE.
    **    IF g_exit = space.
    **    ENDIF.
    ENDIF.
    ENDFORM.                    " f4_for_variant
    FORM pai_of_selection_screen .
    IF NOT p_vari IS INITIAL.
    MOVE g_variant TO gx_variant.
    MOVE p_vari TO gx_variant-variant.
    CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
    EXPORTING
    i_save     = g_save
    CHANGING
    cs_variant = gx_variant.
    g_variant = gx_variant.
    ELSE.
    PERFORM variant_init.
    ENDIF.
    ENDFORM.                    " pai_of_selection_screen
    FORM variant_init .
    CLEAR g_variant.
    g_variant-report = w_repid.
    ENDFORM.                    " variant_init
    **While Showing report pass the variant :::
    g_save = 'A'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = w_repid
    i_structure_name   = 'IT_MAIN'
    is_layout          = i_layout
    is_print           = i_print
    it_fieldcat        = i_fieldcat[]
    it_events          = i_events[]
    i_save             = g_save
    is_variant         = g_variant
    TABLES
    t_outtab           = it_main
    EXCEPTIONS
    program_error      = 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.
    Many Thanks / Himanshu Gupta

  • Astericks appearing in place of a particular value in basic list ????

    Hello,
    I am outputting values thru a basic list, but the system is outputting ' *********** ' (Astericks) in place of the value. I have increased the length while outputtin on a basic list but to no avail. What can be the reason?
    Thanks,
    Shehryar Dahar

    hi,
    check whther both field type are identical..check for type..
    thanks
    jaideep
    *reward points for useful answers..

  • A report for MM where basic list will contain the material no and material

    how to develop a report for MM where basic list will contain the material no and material description for the range of material no chosen by user. ...plz help me...how to do this step by step..

    Hi Raja,
    Firstly declare a select-option for material number.
    write a select query specifying the required field and specify a where clause
    as
    WHERE MATNR IN S_MATNR.
    Obviously you will select the records into internal table and so loop that internal table and display the records...
    The records will be displayed on the basic list.
    Hope this will solve your problem.
    Regards,
    Narin Nandivada

  • How to make fields in field group as text fields in ABAP query

    Hi friends,
    I a have a ABAP query 85 corresponding to infoset A205,
    there is a field group in the infoset A205 and it contains some fields
    but some of the fields are made as text fields ................i want to know how to make these fields in
    the field group as text fields.
    there is a small icon  " T " on the field when it is made as a text field .
    Please help me
    Thanks & Regards

    Hi,
    IF you can specify which Field Catalog then it will be useful for us to provide appropriate answer.
    1. For Customer Master
    IMG> Financial Accounting New> Acs Recev and Acs Payable --> Customer Accounts --> Master Data --> Preperation of creating customer master Data --> Define Account Groups with screen layout (customers)
    In that you can create your own account group, and click Details Screen.
    There will Field Status header within that are listed three main areas
    General data
    Company code data
    Sales data
    When you double click these lines it will take you into "Status Group" Overview. Wherein under "Select Group" are listed fields Address, communiucation.... Double click on one group , you will bet aken into the group field wherein you will find 4 colums with indicators assigned to it. ( Suppress, Req. Entry, Opt Entry, Display) you can choose the required option. "Req. Entry" against the field. Click save after you complete your selections.
    2. Similarly you can do for Material Master in
    IMG --> Logistics General --> Material Master --> Field Selection --> Maintain Field Selection for Data Screens
    But be careful when you do it for material master as it is cuts across all the modules...
    Regards
    Sathya

Maybe you are looking for