Query: link a specific output field to a transaction

Dear All,
I create a infoset and a query (join MARA - MARC - MARD) for manage a report/list with some data:
-  Material code & descript.
-  Builder
-  Bin (only MM not WM storage bin)
-  MAterial group
- etc...
When I run the query and the system shows the list I would like to allow a double click in the material code in order to link/jump to the MM03/MM02.
I know that is possible and the past I found the solution but unfortunately I have lost the file with all informations.
Thank you in advance!!!
Best Regards.
Gavino

Gavino,
Open your query in change SQ01.
Goto > Report Assignment.
You will probably have a blank popup.  Insert row (F8 or hit green plus)
You will get a popup with 3 blank fields.  I assume you wish to 'jump' to a transaction.  So, hit the 'Other report type' button.
Select 'TR' transaction.  Enter the Transaction code.  Green Check.
Save.
Save.
This won't work on all transactions, where the data item is carried from the query output to the transaction, although the jump will still happen.
Rgds,
DB49

Similar Messages

  • Download specific output fields to excel

    Hi All,
    We have a report program that downloads an excel file having about 60 output fields. The program has no ALV output.
    Everytime we do not require these 60 fields to be shown in output excel. we need specific output fields in excel and those specific fields could be dynamic.
    Is there any way to download specific output fields in excel as we do in ALV variant.
    In alv,  we can achieve this through a layout variant in selection screen and download the alv output in excel. But we dont require alv to download excel from there.
    Thanks,
    Srilakshmi.

    Hi
    Something like this:
    DATA: BEGIN OF t_layout OCCURS 0,
            mark      TYPE c,
            fieldname LIKE dd03l-fieldname,
          END  OF t_layout.
    TYPE-POOLS slis.
    DATA: gt_fieldcat TYPE  slis_t_fieldcat_alv WITH HEADER LINE.
    DATA: lt_report TYPE sy-repid.
    DO 60 TIMES.
      t_layout-fieldname = 'Field'.
      MOVE sy-index TO t_layout-fieldname+6.
      APPEND t_layout.
    ENDDO.
    lt_report = sy-repid.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
      EXPORTING
        i_program_name     = lt_report
        i_internal_tabname = 'T_LAYOUT'
        i_inclname         = lt_report
      CHANGING
        ct_fieldcat        = gt_fieldcat[].
    CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
      EXPORTING
        i_title              = 'Field List'
        i_zebra              = 'X'
        i_checkbox_fieldname = 'MARK'
        i_tabname            = 'T_LAYOUT'
        it_fieldcat          = gt_fieldcat[]
      TABLES
        t_outtab             = t_layout.
    LOOP AT t_layout WHERE mark = 'X'.
      WRITE: / t_layout-fieldname.
    ENDLOOP.
    Max

  • Including MANDT field in ABAP Query Report as output field

    Hi All,
    I need to display the client(MANDT) field in the ABAP Query Report as an output field.
    But in SQ01 where we select the fields to be displayed as output in query , this field is not visible.
    I later checked in the Infoset. Even in the infoset the field MANDT is greyed out and all other fields are active.
    Can someone tell me how to include the field MANDT in the output of the ABAP Query Report.

    self resolved

  • Query Print Layout-Linking a new header field with ref to repetitive area

    Hi,
    In a query print layout, the query result based on pending items from a specific vendor is to be displayed.
    On trying to insert a new database field (eg. Vendor Name), in the header area based on the pending item details in the repetitive area, the print output shows up a random vendor name (not related with the query result).
    The RELATE TO property-option of the header field does not list the repetitive area fields, and the LINK TO option does not help either.
    Please advise any other way to link the new db field to display the correct vendor name (contact person, address) as used in the query.
    thanks,
    Avinash
    Edited by: Avinash Sashee on Jun 30, 2009 1:14 PM

    Yes, the fields are part of the query.
    Eg. The pending items from a specific vendor(with vendor code, name) is listed in the repetitive area of the layout. But the requirement is to have the Vendor Name and Address details in the Header portion(i.e. Letter to Vendor). Please help me on this.
    thanks,
    Avi.

  • Adhoc query-Problem with Personnel no output field

    Hi Gurus,
    We are trying to run an adhoc query using a customized Info set(PNPCE logical database).
    While running the query,we had selected Personnel no(from Payroll status P0003 table) as output field and Company code(from Org assignment P0001) as input field in the selection.
    Problem is in the output field we are seeing the Personnel name details in place of Personnel no.Could anyone please suggest what could be the reason behind this and how to fix it.
    Your help will be highly appreciated.
    Warm Rgds
    Sushil

    Hi Sushil,
    The default output for fields with a text and a value (Name = text, PERNR = value) is the text.  You can change this by right clicking on the output box in Ad Hoc and selecting "Value".  If you want both name and number, select "Value and Text". 
    You can also change this default to Value from Text if in Ad Hoc, you go to Edit --> Settings.  On the last tab, change the radio buttion for output default to Value from Text.  This will change it for all fields so you would see the eight digit number rather than the name of the position or org unit.  Thus, you may want to keep it at Text and use the right click to change specific fields as needed.
    By the way, it is usually best to utilize the personnel number field from IT0000-Actions, although it can be obtained from any infotype if you include that field in the field group when creating your infoset. 
    Paul

  • ABAP query output not showing all output fields

    I added a new field group in an existing query and marked them to display in the output list. When I test the output from SQ01 -> InfoSer Query, the output is what I expect. However, if I execute the query itself, it does not show the additional fields I just created.
    I notice that in the Basic List layout design, the new fields are on a new line and not appended to the same line as the output fields before I did the modifications. I already tried to manipulate the output length and positions, but it didn't help. I turned on the ruler to drag the fields in the desired positions, sometimes it works but not for all the fields. Can someone help me please?

    I figured it out already. The maximum width for the report output is 255 only. Switching from graphical query painter, I got the error that some fields were overlapping. Then I recalculated the starting positions of the fields and adjusted their lengths. 

  • Editable ALV - how to throw an error message for a specific line & field

    Hi all,
    I've implemented an editable ALV and also the ON_DATA_CHECK event to check the values, entered in the ALV. So this works fine and I can check the values.
    But now, I want to throw an error message corresponding to the field in the ALV, where the error occured.
    How can I throw this error message corresponding to a specific line/field in the ALV?
    I was using REPORT_ATTRIBUTE_ERROR_MESSAGE and REPORT_ELEMENT_ERROR_MESSAGE but without success.
    I'm also using a loop over the "CHANGES" in the ALV and within this loop, I use
    elem_alv = node_alv->get_element( index = <change>-element_index ) 
    to get the element for the message.
    CALL METHOD lo_message_manager->REPORT_ELEMENT_ERROR_MESSAGE
      EXPORTING
        MESSAGE_TEXT              = 'my message'
        ELEMENT                   = elem_alv
    *    ATTRIBUTES                =
    *    PARAMS                    =
    *    MSG_USER_DATA             =
    *    IS_PERMANENT              = ABAP_FALSE
    *    SCOPE_PERMANENT_MSG       = CO_MSG_SCOPE_CTXT_ELEMENT
    *    MSG_INDEX                 =
    *    CANCEL_NAVIGATION         =
    *    IS_VALIDATION_INDEPENDENT = ABAP_FALSE.
    2.) is it right, that for an editable ALV, I can't use the WDDOBEFOREACTION to do the checks?
    If I try to use this, I can't get the values of my ALV table to check it.
    Thanks,
    Andreas

    Hi Andreas,
    I have tried to replicate your problem and I am getting the desired output. I have a row by name TEMP_NEW in my ALV and I want to throw an error message whenever the user enters a value of 4 for that particular field. Please find my coding as below. The important thing is where we perform the actual comparison between the r_value and 4. r_value is defined in SALV_WD_S_TABLE_MOD_CELL as reference to type DATA. So suppose the user enters a value of say 3 in the TEMP_NEW field of the ALV then r_value would contain 3 but if you observe its type in debugging mode it would be as TYPE REF TO I and not TYPE I. So you cannot directly say something like:
    "if ls_modified_cells-r_value = 3" as this would lead to a syntax error. Define a field-symbol say <temp> and then use it to get the actual value into it by saying like:
    ASSIGN ls_modified_cells-r_value->* TO <temp>.
    Then you can use this <temp> for comparison in your IF statement like:
    IF  <temp> = 3.
    Find the entire coding as below:
    METHOD check_data.
      DATA: lr_node TYPE REF TO if_wd_context_node,
            lr_element TYPE REF TO if_wd_context_element,
            ls_modified_cells TYPE salv_wd_s_table_mod_cell.
      FIELD-SYMBOLS <temp> TYPE data.
    " get message manager
      DATA lo_api_controller     TYPE REF TO if_wd_controller.
      DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
      lo_api_controller ?= wd_this->wd_get_api( ).
      CALL METHOD lo_api_controller->get_message_manager
        RECEIVING
          message_manager = lo_message_manager.
      lr_node = wd_context->get_child_node( name = 'NODE' ).
      LOOP AT r_param->t_modified_cells INTO ls_modified_cells.
        lr_element = lr_node->get_element( index = ls_modified_cells-index ).
        IF ls_modified_cells-attribute = 'TEMP_NEW'.
    " Get the value extracted into the field symbol from the reference variable
          ASSIGN ls_modified_cells-r_value->* TO <temp>.
    " Use the value present in this field-symbol for your comparison
          IF  <temp> = 4.
    " report message
            CALL METHOD lo_message_manager->report_attribute_error_message
              EXPORTING
                message_text   = 'Sample message text'
                element        = lr_element
                attribute_name = ls_modified_cells-attribute.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDMETHOD.
    Hope this helps resolve your problem.
    Regards,
    Uday

  • Linking a User Defined Field in Items table

    How to Link a User Defined Field in 'Item Master Data' table, to my own User Defined Table?
    Example:
    In Item Master Data table, I want to add 3 User Defined Fields, for e.g, Country, State and Region.
    When the value of Country combo is changed, values loaded in State and Region combos should change automatically.
    I'm storing the relationship between Country,State and Region in my own user defined table. I want to load the comboboxes with a query from that table.
    Or, if there's no solution to the above problem:
    when the Item Master data table is opened, can we launch our own form?
    Is there a way to specify that?
    Please reply me back.. I'm a beginner learning SAP.
    With Thanks in advance,
    Geetha
    Key: Loading a user defined field through Query defined by us.

    Geetha,
    You should search this forum on user defined fields as you will find many posts that may assist you with your question.
    HTH,
    Eddy

  • Adhoc query - Hit list 40, output 5

    My client has an adhoc query set up and the selections make sense the hit list number is correct as compared to what is on the DB - I have checked using SE16.
    However when the output is produced only 5 records are shown.
    There are no auths issues according to SU53 and also I have access to all infotypes in PA & PD so I am slightly confused as to what is going on here.
    Perhaps some of you have had the same experience and have an idea or clues as to what is going on here.
    Many thanks in advance,
    Kind regards,
    Dan

    Hi,
    Hit lists show employee hits, output shows output hits. You have difference because in the output not every employee has a record in the infotype that you selected for output.
    For example you have 40 employee and only 5 of them have record in IT 0016. So if you select IT 0016 for output only 6 records will be displayed, though according with you selection criteria 40 employee were selected.
    Just add to output fields from infotype that every employee has (e.g. from IT 0001) and you will see all of them in the output.
    Cheers

  • Turn a text database search result into a clickable .pdf link to specific images

    Hello and Good Afternoon all. 
    This is baffling me to no end, pretty desperate at this point. 
    I have a successfully implemented a search and results page from my database table 'products'.  The results page displays a field from this table as products, msds, datasheet, description.  I would like the msds & datasheet results to be clickable links to files in my images/pdf/msds folder or the images/pdf/datasheet folder. 
    The links are specific filenames such as msds-product.pdf or datasheet-product.pdf..  How can I get these links to open the exact filename that comes up in my search result?  I can make it open the entire folder but I want just the specific file. 
    I don't write code very well - thank you for any help you can provide.  Cindy

    Hi Murray - Here is the exact code in DW on the results page with file names exposed in live view.  I am concerned about not properly implementing this statement - where exactly should I insert?
    <form action="data_search.php" method="get" name="data_results_form" id="data_results_form">
             <p> </p>
             <?php do { ?>
                  <table width="75%" border="0" align="center" cellpadding="5" cellspacing="5" summary="MSDS & Datasheet search results page.  You may click on the hyperlinks to download pdf for each document.">
                       <tr>
                            <td> </td>
                            <td> </td>
                            <td> </td>
                            <td> </td>
                       </tr>
                       <tr>
                            <td style="color: #686666">Product</td>
                            <td style="color: #686666">MSDS</td>
                            <td style="color: #686666">Datasheet</td>
                            <td style="color: #686666">Description</td>
                       </tr>
                       <tr>
                            <td style="color: #23276A; font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-style: normal; font-size: 16px;"><?php echo $row_Recordset_results['product']; ?></td>
                            <td style="font-size: 16px"><a href="images/pdf/msds/"".pdf"><?php echo $row_Recordset_results['msds']; ?></a></td>
                            <td style="font-size: 16px"><?php echo $row_Recordset_results['datasheet']; ?></td>
                            <td style="font-size: 16px"><?php echo $row_Recordset_results['description']; ?></td>
                       </tr>
                  </table>
                  <?php } while ($row_Recordset_results = mysql_fetch_assoc($Recordset_results)); ?>
        </form>

  • How to give the link to specific post in this newsgroup?

    Hi everybody.
    I run to a situaion when I wanted to give a link to some earlier posts in this newsgroup, but I did not know how .
    There is a long line in address field in my IE and it is to my personl setting I guess. What I shell do to give somebody a link to specific posr?
    thanks in advance
    Pawel

    I believe you are wanting to just provide a link to another newsgroup? If so, you can just copy and paste the address into your response. Also, you can use HTML code to make it look nicer. For example, I can use the following address:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000008F550000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    Or, you can use simple HTML code within your posting. The format in this case is display text .
    So, for example, I could also have a link LIKE THIS which will take you to a page also. Refer to This Page for more of the simple HTML commands you can use.
    J.R. Allen

  • ALV OUTPUT FIELD LEANTH

    HI EXPERTS,
    IN ALV OUTPUT FIELD LENTH IS MAX 128?
    IN MY REQUIRMENT THE FIELD HAS 500 CHARTERS
    Moderator Message: So where is the question? And why type in CAPITAL letters? Do some research before you post a question here. Also, please read the Rules of Engagement of this forum
    Edited by: kishan P on Apr 1, 2011 10:10 AM

    Hi,
    Linking F4 Help to Fields
    For the last section, we will deal with linking F4 help to fields. It is easy. As usual, define, implement and register the event “onf4” at proper places in your code. For F4 help, you must register the fields whose F4 request will trigger the “onf4” event. For this you must prepare a table of type “LVC_T_F4” and register this table using the method “register_f4_for_fields”. While preparing table you must include a line for each field which will trigger F4 event. For each field in the structure;
    Pass the fieldname to ‘FIELDNAME’
    Set ‘REGISTER’ to make the field registered,
    Set ‘GETBEFORE’ to provide field content transport before F4 in editable mode
    Set ‘CHNGEAFTER’ to make the data changed after F4 in editable mode.
    Preparing table for the fields to be registered to trigger F4 event
    DATA: lt_f4 TYPE lvc_t_f4 WITH HEADER LINE .
    lt_f4-fieldname = 'PRICE'.
    lt_f4-register = 'X' .
    lt_f4-getbefore = 'X' .
    APPEND lt_f4 .
    CALL METHOD gr_alvgrid->register_f4_for_fields
    EXPORTING
    it_f4 = lt_f4[] .
    A sample “onf4” method implementation
    METHOD handle_on_f1 .
    PERFORM f4_help USING e_fieldname es_row_no .
    er_event_data->m_event_handled = 'X' .
    Again, we set the attribute “er_event_data->m_event_handled” to prevent further processing of standard F4 help.
    Regards,
    Ranjit Thakur.
    <b>Please Mark The Helpful Answer.</b>
    ENDMETHOD .

  • ABAP Query insterting 'NO' on output

    Hi Gurus!
    I've created an ABAP Query which reads various Infotypes in HR.
    There are screen modifications which hide\display certain fields on Infotypes depending on the Country Grouping.
    However, on my Query, when I run for a Country for which a field(s) are hidden, the Query enters the value 'NO' on the Query output.
    Basically, the screen modification has the field(s) hidden for that Country - so no data can be maintained for it.
    But the field(s) is available for other Country Groups.
    If I run the Query for an Employee, it returns the value 'NO' in a column even though no value can be maintained in the field as it's hidden by the screen modification.
    Does this make sense?
    Here's an example:
    On each Employee Master in Bahrain (Country - BH), the date of a Medical Examination must be indicated.
    This Infotype also exists for Employees in Ireland (Country - 11) - however the 'Date of Medical Exam' field is hidden by a screen modification.
    When I run my Query, it inserts the word 'NO' in the 'Date of Medical Exam' field when it's run for EEs in Ireland.
    This field is hidden on the Infotype as it's not required.
    Do you know if the ouput value can be left blank instead of inserting the word 'NO' when the Query is selecting data from fields which are hidden via screen modifications???
    Thanks,
    k

    AT LINE-SELECTION.
    case sy-cucol.
    when 16 OR 17 . "Col No
    DATA: BDCDATA TYPE TABLE OF BDCDATA.
    DATA: ITAB TYPE TABLE OF BDCMSGCOLL.
    DATA: PROGRAM LIKE SY-REPID,
          WA_BDCDATA TYPE BDCDATA.
    WA_BDCDATA-PROGRAM  = 'SAPMV45A'.
    WA_BDCDATA-DYNPRO   = '0102'.
    WA_BDCDATA-DYNBEGIN = 'X'.
    WA_BDCDATA-FNAM     = 'VBAK-VBELN'.
    WA_BDCDATA-FVAL     = IT_ITAB-VBELN.
    APPEND WA_BDCDATA TO BDCDATA.
    CLEAR WA_BDCDATA.
    CALL TRANSACTION 'VA03'  USING BDCDATA  MODE 'A'
                             MESSAGES INTO ITAB.
    Regards
    Ravi

  • Setting value of input/output field of screen in abap program

    I have a screen.I have added a input/output field in my screen.The purpose is i just want to display a text in that field upon PBO through my abap program.I m a newbie.PLS help me
    Also can i use textfield instead of input/output field for this purpose.if so then wats the difference between both of them

    Hi
    To display a text in I/O element, go to the PBO of this screen and
    assign the text to your I/O element.
    Lets say if TEXT_IO is the name of ur UI element, and you want to display "Hello" into it, do it as follows:
    TEXT_IO = 'Hello'.
    Must ensure that the type of this UI element is CHAR type and you define its lenght properly.
    to display "Hello", length would be 5.
    Hope it will solve ur query.

  • P0000-STAT1 (Customer Specific Status) field on Infotype 0000

    Hi All,
    I have a requirement on Customer specific status field on infotype 0000,  Where I should be able to maintain that field through PA40.
    As this field is standardly delivered as output field only through SAP I am unable to force that field as input field in module pool.
    did any one used this field before as input field in IT0000? I couldn't find OSS note on this issue.
    Please let me know if any one has solution on this.
    Thanks,
    Sang

    Hello sangarshitha
    try using field symbol ,
    asssign field symbol to p0000-stat1
    like
    field-sybmbols : <fs> type p0000-stat1.
    ASSIGN ('(MP000000)PSPAR-STAT1') TO <fs>. "check table pspar in debug wether field stat1 is there else go for P0000-stat1
    <fs> = "assign what you want to here.
    write this in PBO of User Exit/Badi for IT-0000
    reward points if helpful

Maybe you are looking for

  • Report for Excisable and Non Excisable vendor

    Hello Is there any Std report is there....it can give us the list of Excisable and Non excisable Vendors based on the Perticular Purchase Orgnisation. Regards sapman man

  • Final Cut Express 4

    I need help with final cut express 4, i was told when when i purchased this software that it would work with final cut pro, i have tried to put my film from final cut pro onto express and it says that the file is too new, what does this mean and can

  • 6.0.2 reading pixel aspect ratio wrong

    Hey, I'm wondering if this is a bug or just my user error. Here's the scoop. I have a ProRes HQ master that is 1920 x 1080p. When I open it in QT 7 or 10 or VLC it shows the proper aspect ratio. When I open it in Compressor it shows it is square pixe

  • White screen of death? power/sleep button?

    so my ipod is in what they call the white screen of death. I have found a way to fix it but that involves my power/sleep button to work... and it doesn't. it is jammed. I dont know how to fix it. also, when i connect the ipod to the computer it doesn

  • Indesign CS5 does not force quit

    ID CS5 froze when I tried to copy and paste an image from one layer to another. Then it wouldn't force quit. I had to hit the Power button on my MacBookPro to restart. This is not the first time this happens. What's the story with force-quitting? I'v