Bringing in Additional Fields into SAP Query

Hi,
I'm new to SAP Query. I had to modify an existing report to bring in an additional field from one of the tables of the query. When i look at the tables in query, i don't even see the field i would like to add under the table. I guess it needs to be first bring into query and later i can add. Can someone help me how to do this?
Thanks in Advance.

HI,
IN SQ02, IF table is already in JOIN, just click on the PLUS sign to expand the strcture.
All the field showing Plus sign in the strcture are selected in your query and with MINUS sing are no selected.
So you have to just click on the MINUS sign for the field you want to use through table field.
Generate the query and execute thriugh SQ01.
If you want to add some other field which is not a part of JOIN,
then click on EXTRAS Button shown in the MENU option.
Click on Create button and system will ask abt the additional field.
Regds,
Anil

Similar Messages

  • Additional fields in SAP Query

    Hi ,
    We have a requirement in HR reporting wherein we are providing the late attendance records of the employees. That is the person is scheduled to come at a respective time but he comes in late and this record is created in attendence infotype . Now we need to see the variance in his planned and actual arrival . Majorly all the fields are availabe in the Infosets but the one with the variance is not there . So do we need to create a custom report for the same or it can be handled in the SAP query adding one field for calculation. If it can be handled , how can that be possible .
    Thanks & Regards

    Please check this link:
    Re: query report
    I guess, it can help for your case too...
    Even this:
    Re: sap query infoset and fieldgroup
    Re: Additional field in SAP Query
    Kind Regards
    Eswar

  • Multiple Value in additional fields using SAP Query

    HI All,
    I have a question related additional field in SAP Query. I tried to create report about PR and PO using SAP Query. Since one PR can be converted to multiple PO, I decided to create additional field
    po_1
    to display the value of PO that related to the PR. But I meet problem when I want to show several PO number in additional field
    po_1
    , I couldn't look the way to solve this problem. Can anybody help me? Just for info, I assign value to additional field
    po_1
    in record processing part.
    Thanks....

    HI,
    IN SQ02, IF table is already in JOIN, just click on the PLUS sign to expand the strcture.
    All the field showing Plus sign in the strcture are selected in your query and with MINUS sing are no selected.
    So you have to just click on the MINUS sign for the field you want to use through table field.
    Generate the query and execute thriugh SQ01.
    If you want to add some other field which is not a part of JOIN,
    then click on EXTRAS Button shown in the MENU option.
    Click on Create button and system will ask abt the additional field.
    Regds,
    Anil

  • Text of additional fields on SAP query show blank

    Hi All,
    I'm encountered a problem when text of additional fields on SAP query is not working and it's show blank after HRSP is implemented.
    SAP_ABA : Rel. 701 Lvl. 3
    SAP_BASIS: Rel. 701 Lvl. 3
    SAP_HR: Rel. 604 Lvl. 8
    Below are the config that we have done before HRSP in table: TEXC_FLD_C and it's work perfectly.
    Table Name: P0000_AF
    Field Name: ZZAPPRATING
    Function Module: ZHRGYYFMPA_PDRATING_TEXT
    Exception Priority: 1
    Object Type Name: CL_HR_TEXT_IDENTIFIER
    During debugging, we found that program (Form: %_GET_PERAS) is retrieve text of additional fields based on structure P0000_AF. At this point, text of fields are successfully take place and filled. However, program try to retrieve the text based on structure P0000 again right after that. Due to additional fields are added on P0000_AF not P0000 and no ZZAPPRATING field found in P0000, hence program has cleared the text which filled in previously. This give the result, text is blank.
    Please advise, how should I get this resolved.
    Thank you very much.
    Best Regards,

    Please check this link:
    Re: query report
    I guess, it can help for your case too...
    Even this:
    Re: sap query infoset and fieldgroup
    Re: Additional field in SAP Query
    Kind Regards
    Eswar

  • Additional field in SAP Query

    This problem is about sap query. I have created an additional field in an infoset. The initial header text of this additional field is english. Then I created a query which use the additional field as an output field. If I use this query in other language, however the additional field header remains english. How can I maintain addtional field header to support mutil-language?
    Thanks in advance!
    --Alex Miao

    Hi Alex
    Please see if below example helps you to understand:
    Supposing, we are displaying material description within our query.
    1. So we define the join with MARA & MAKT while creating infoset in transaction SQ02.
    2. We create feild groups to identify the fiels we use for selection and display.
    3. Here after selecting language key from MAKT, by default this will take SY-LANGU always for the case.
    4. To make it applicable for different languages we can code in INITIALIZATION Event.
    5. To do so we can do it by two options: Use menupath: Goto->Code->Initialization
    i) First option using variable: <b>MAKT-SPRAS = SY-LANGU.</b>.
    ii) Second option using Parameter-Id: <b>SET PARAMETER ID 'SPR' FIELD SY-LANGU</b>.
    6. Save & Generate.
    Now when we execute the query, we are defaulting the language as System Language.
    Hope the above info helps you for better understanding.
    Kind Regards
    Eswar

  • How to write Additional Logic IN SAP Query

    Hi All,
    I need to Add 1 more field in Query.
    How to Write a Logic in Infoset?
    For Ex : Need to add age field in the output.
    Thanks
    Partha.

    Hi,
    Refer to this link..Additional field in SAP Query
    [Creating Additional Fields |http://help.sap.com/saphelp_nw04/helpdata/en/d9/9958e0c50a11d396f80000e82de14a/frameset.htm]
    [Code|http://help.sap.com/saphelp_nw04/helpdata/en/d9/9958e0c50a11d396f80000e82de14a/frameset.htm]

  • Alignment and restriction of Custom field in SAP query report

    Hi Experts,
    I have one custom field in query report(SQ01) called Amount in local currency which is calculated based on Amount in document currecy * exchange rate.
    But this field values are coming in left alignment instead of right alignment so how i should get in right alignment and second issue is how i can restrict field value to only 2 decimals.
    I tried the below link "http://media.techtarget.com/searchSAP/downloads/SAP_Query_C7.pdf" but the steps they mentioned are not appearing in SQ01 for example in that link they mentioned to click Basic List option for advanced steps but when i click i goes directly to field list with field groups on left pane
    Please provide solution for this.
    Thanks&Regards,
    narasimha

    Hello narasimha,
    In the Infoset when you create the additional field, enter an existing SAP table field that has type CURR in the parameter labeled LIKE Reference.  For example you can enter BSAK-DMBTR as a value. When you select the additional field in the query, the currency will also show.
    Kind Regards,
    Rae Ellen Woytowiez
    Edited by: Rae Ellen Woytowiez on Apr 25, 2011 11:27 PM

  • Order of the selection fields in SAP QUERY

    Hello All,
    How can we set the order of the selection fields in SAP QUERY!
    Regards!
    Ashish

    Hi,
    You can go into infoset and change the order.
    Or you can select 1 by 1 in the same order, you want to display.
    Below is the link which might help you:
    help.sap.com/printdocu/core/Print46c/EN/data/.../BCSRVQUE.pdf
    Please revert, if needed more clarifications
    Regards,
    Yashwin

  • How to add additional field into output table for RFIDYYWT(Generic Withholding Tax Reporting)

    Hi Experts,
    How to add additional field into output table VENDORS/WH TAX TYPES AND CODES in RFIDYYWT(Generic Withholding Tax Reporting).
    I have no idea how to start with, please give some advice.
    Thanks!
    Ice

    Dear Ice,
    Use Append structure, see given link:
    https://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm
    Regards,
    Abbas.

  • Additional field in SAP Infoset - internal table

    Hi Gurus,
    I have invoices like:
    VBELN    Matnr     mtart
    1234           Ek21    MCFE
    1234           Ek33    MCFE
    1234            Ek29    MCFE
    1234           321       MRM1
    1235          EK11      MCFE
    1235           EK17      MCFE
    3212           EK23      MCFE
    3212           EK33       MCFE
    How can create additional field in SAP infoset, what show in every line in invoice, that invoice have line with  mtart = u2018MRM1u2019 or mtart <> u2018MRM1u2019. Aim is to filter invoices with line mtart = MRM1
    VBELN    Matnr     mtart         result
    1234           Ek21    MCFE        1
    1234           Ek33    MCFE         1
    1234            Ek29    MCFE        1
    1234           321       MRM1        1
    1235          EK11      MCFE        0
    1235           EK17      MCFE       0
    3212           EK23      MCFE        0
    3212           EK33       MCFE       0
    How can create additional field in SAP Infoset?

    Hi Have you had any luck on this?

  • Populating Additional Field in InfoSet Query

    Hello,
    My team and I are working on generating a relatively simple report from the VBAK (Sales Header), VBAP (Sales Items) and VEDA (Date data) tables.  We would prefer to be able to build an InfoSet (SQ02) and Query (SQ01) instead of writing a custom report.
    The problem is the VEDA table contains data that may link to the VBAK and sometimes the VBAP table.  The usage is that the header has begin and end dates for a contract, which is denoted by a blank value in POSNR field in the VEDA table.  If a particular line on a contract has different dates than the header, there will be an additional record in the VEDA table where the POSNR value matches the POSNR value from the VBAP (Item) record.
    The link to the VBAP table is straight forward being keyed off of the VBELN (doc number) and the POSNR (item number) fields in both tables.  However, there's isn't a POSNR field in the VBAK (header) table and the VEDA table shows this as a blank value in the POSNR field.
    The simplest thing I can think of doing is link the VEDA table to the VBAP and let it retrieve all the exact matches on Sales Doc & Item Number but add two "Additional Fields" to the Query that would represent the Sales Header begin and end dates.
    I know how to add an additional field but how would you "re-query" the VEDA table and under which option under the Code tab.
    Thanks

    Hi Alex
    Please see if below example helps you to understand:
    Supposing, we are displaying material description within our query.
    1. So we define the join with MARA & MAKT while creating infoset in transaction SQ02.
    2. We create feild groups to identify the fiels we use for selection and display.
    3. Here after selecting language key from MAKT, by default this will take SY-LANGU always for the case.
    4. To make it applicable for different languages we can code in INITIALIZATION Event.
    5. To do so we can do it by two options: Use menupath: Goto->Code->Initialization
    i) First option using variable: <b>MAKT-SPRAS = SY-LANGU.</b>.
    ii) Second option using Parameter-Id: <b>SET PARAMETER ID 'SPR' FIELD SY-LANGU</b>.
    6. Save & Generate.
    Now when we execute the query, we are defaulting the language as System Language.
    Hope the above info helps you for better understanding.
    Kind Regards
    Eswar

  • How to Substr field in SAP Query.

    Dear Developer,
    How to substr any field in SAP Query ?
    Regards,
    Ujed.

    Hi Ujed,
    if SUBSTR stands for substring, then possibly your question may be how to get the substr method as konown in languages like php in ABAP.  If SAP Query points to a SAP query as created in transaction SQ01, then you should explain what you want to achieve.
    Note: Better ask a specific question and get am answer you can or which is already generalized.
    If I need a substr function, I'd create a functional method for that:
    method substr
      importing
        anyfield type any
        offset type i
        length type i
      returning substring type string.
      try.
        substring = anyfield+offset(length).
      catch cx_root.
    * handle error
      endtry.
    endmethod.
    Regards,
    Clemens

  • Addition of new column into SAP query program

    Hi freinds,
    There is a query program(joins EKKO,EKPO) which contains columns like vendor,purchase doc,item,material and material description etc..
    I need to insert a new column 'Supplying plant' in 2nd position after vendor column...When I try to add a field into internal table,am getting short dump error...
    Kindly suggest on this problem...
    Thanks in advance...
    Bharat.

    Hi,
    the program you got is it a copy from a SAP QUERY created on TCode SQ01 ?
    If yes got to Tcode SQ01 draw a new one and see the report generated
    Best Regards
    Jaime

  • Concatenate 2 fields in SAP Query

    Hello,
    We have a requirement where we have developed a report in SAP query, but we require a local field to basically give the concatenation of two fields detailed in the info set (EKPO-EBELP & EKET-ETENR)
    Can you help me with how to learn to do this?
    Many thanks
    Steve

    Hi Rich,
    Yes, I figured the code would be something like that, however, when I generate the infoset, I get the following:
    Global syntax check
    Additional Fields
    Error in code for additional field ITSCH
    The last statement is not complete (period missing)
    I have placed the following code in the Additional fields/structure section
    Concatenate EKET-EBELP EKET-ETENR into ITSCH
    Can you help with what is probably a simple issue?
    Many thanks
    Steve

  • Add new manager field in SAP Query

    Hi All,
    I need to find manager for the employee. Is RH_GET_LEADING_POSITION right function module?
    After finding the manager I need to add new field 'Manger' in the existing SAP Query. Please can anyone help me inserting additional code into the SAP Query.
    Please kindly help me
    Thanks in advance.
    Archana.

    Thanks for the reply. But my question is there is no direct field called manager I need to write a piece of code to find the manager and insert in the existing sap query. I want to know is there any function module to find the manger where import parameters are pernr and export parameter I want manager objid or pernr.
    Please help me...
    Thanks,

Maybe you are looking for

  • What is the OPTIMAL version of the OS for a 2010 Mac mini?

    Searching for expert opinions on which is the optimal (not necessarily the latest) version of OS X to run on a 2.4GHz Mac mini 4,1 2010 model, built in Feb of 2011?  It's currently on Snow Leopard 10.6.8.  This is my wife's machine. Additionaly, if i

  • How do I save a picture in "Preview" to the desktop?

    Hello, Now that I'm using Lion, I'm having to re-learn several things and right now I'm trying to figure out how to save a picture to my desktop when I'm in "Preview". In Snow Leopard, all I had to do was go under the File menu and choose, "Save As".

  • It is taking too much time run the page from Jdeveloper (R12)

    Hi Gurus When i m running a page in R12 from Jdeveloper ,it is taking abt 15-20 minutes to render the page ,it is happening first time with me ,i m working on Jdeveloper 10G .Would some one please give some hints . Am i missing some setting in Jdevel

  • Cannot find the Outlook profile in the Desktop Manager

    Hi, I treid to sync my contact number in my BB with outlook 2007 but in the synchornization menu when I chose to sync my contact there is not out look profile in the box so I don't know if its the problem of my outlook2007 or I need to do some config

  • BEA WebLogic 6.0 with Compaq Open VMS

    Hi folks, could anybody tell me when the certification of this platform will be done...... Cheers, Peter