Adding additional fields to an Infoset Query

Hi Experts,
I have added a couple of additional fields to an infoset query using SQ02.
I have also written code for filling in the fields.
I have also added them to some Field Groups.
Despite this, when I run the query, they are not being displayed in the output list.
What could be the reason for this?
Kindly help with your inputs.
Thanks in advance.
Regards,
Keerthi

goto sq01,
give the query name...
goto change.. just below output, you have a drop down for field group and field catalog. select field catalog.
select the fields you want to show in output

Similar Messages

  • Adding extra Field to a Infoset Query

    Hi Experts,
      I need to add an extra field to a SAP Query(infoset). SInce the code uses a dynamic program call, how do I add my code . Can I have some example code used to add extra field to a SAP Query

    Hi Mithun and gurus,
    My code is working now for these 3 new additional fields. The thing is it works if these fields were selected solo. but if all of these 3 or 2 of it simultaneously, an error occurs.
    Error when generating the report (see long text)
    Message no. AQ_AD_HOC221
    Diagnosis
    The report cannot be generated because the internal description is invalid or incomplete, or because the selection screen is too large.
    Regenerate the assigned InfoSet, and read the log. If the InfoSet is OK, make sure that at least one field is given as output.
    If you used the 'Refresh' icon to start the query, use the 'Output' menu option to execute the query. This gives you a full screen display of the data.
    If an output was generated, the query cannot work with actual data in the construction view. In this case, always use the 'Output' function to execute the query.
    Procedure
    If the selection screen is too large, you need to reduce the number of your selections.
    Make sure that the assigned InfoSet is correct. The name of the assigned InfoSet is stored in the menu option 'Extras -> Template Information'.
    Output at least one field. Otherwise you will not be able to save or generate reports.
    If you do not have this problem, execute the query using the 'Output' function.
    Otherwise, there is an error in the InfoSet Query.
    >>>I checked and the code seems fine at least. I think there must be something I need to configure. I tried the SEQUENCE for Codes but nothing happens..
    I hope you could helop me with these..Thanks a lot!!!

  • Adding additional fields in Sql Query (SQ01)

    Hi..
    please tell me all the steps to use additional fields option in  sap query (transaction code: SQ01)? can i use mandt field as additional field?
    Thanks and Regards
    Sri.

    Hi,
    You can add it in infoset using extra button.
    Here you can add the filed and the respective code for this field and add this in SQ01 in oytput list.
    Thanks
    Ajay

  • Question regarding adding new field to an infoset.

    Hi all!
    Actually i am not a programmer but HR functional, but i need to add an additional field to my infoset.
    I wanted to do it myself without ABAPers help.
    I have already added new field to an infoset and included a code:
    TABLES HRP1000.
    SELECT SINGLE short INTO ORG_UNIT_SHORT
           FROM hrp1000 WHERE objid = p0001-orgeh.
    And it almost works. The thing is, when on the report (sap query) a person have value '00000000' in the p0001-orgeh the report enters value into ORG_UNIT_SHORT from the previous record (of another employee).
    How to avoid this? i suppose i have to assign this field an initial value at the begining of the code (how?).. or?? as i said i just try to make first steps in abap programming...

    Ok, i have found a solution (clear statement)

  • Adding a field to rhe join query

    Dear Friends,
    I need your help in adding a field to a join query.
    I have created a reort using join(SQVI). Now i want to add an addition field to that report. The issue is the field i am looking at is stored in structure. Is there any way i can add this field....
    Sanjay

    It is not possible here (in SQVI).
    you have to Go with Query.
    SQ02 using this Create infoset, add all the tables , here include that structure field, and then add the logic to populate the field.
    Now go to SQ01 and create Query.

  • 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?

  • FBL5N : Adding additional field PERNR  to layout

    Hi experts,
    I had added additional field PERNR - personnel number in FBL5N layout for displaying in output.
    I had added pernr- personnel number by following the path
    SPRO -> Financial accounting ( new ) -> accounts receivable and accounts payable-> customer accounts ->line items -> display line items -> define additional fields for line item dispaly
    here i added bseg - pernr
    after adding , in FBL5N layout the field is appearing , but it is displaying blank in output  .
    Is there any thing needs to be done to display additional field in output of FBL5N.
    kindly give me any suggestions.
    thanks & tregards,
    Raghul
    Edited by: Raghul Gandhi on Mar 23, 2010 9:30 AM

    Hi,
    FBL5N: customer line item display.
    BSEG-PERNR: personnel number.
    Under which circumstances should BSEG-PERNR contain a value if you create customer related postings?
    If there is no personnel number given during posting (why should it?)  the field added to the FBL5N-layout will be empty.
    Best regards, Christian

  • Add color to an Additional Field inside a SAP Query (Infoset) in ALV

    I made an Infoset (transaction SQ02) out of table MARC. I created an Additional Field called "STATUS" which I coded to get a value of 1 or 2 depending on the value of another field in MARC.
    How can I make this cell in the resulting Query to appear in different colors depending on the value? I found the command "FORMAT" but that doesn't work on SAP List Viewer (ALV) mode.
    This is what I coded in the additional field called STATUS::
    clear: STATUS.
    if MARC-DISPO = 001.
      format intensified color = 6.
      move '1' to STATUS.
    else.
      format intensified color = 7.
      move '2' to STATUS.
    endif.
    The coloring didn't work. What ABAP command should I add to this additional field to make the coloring of the STATUS cell work under ALV mode?

    field catalog and layout are saved into database aqrdb
    just before displaying the results into ALV table, they are retrieved by function RSAQRT_ALV_DISPLAY which does
    concatenate rtmode-act_report sy-langu into l_srtfd_pattern.
      import fieldcat = fieldcatalog
             layout   = layout
             sort     = sort
             from database aqrdb(lv) id l_srtfd_pattern.
    so in order to display some cells with a different color, you have to
    - add an additional field that will contain the color codes of cells
    - set values in this field at record level (field is a table of type LVC_T_SCOL)
    but also adapt the layout in order to set the field as containing the colors
    - put the name of this field into layout (CTAB_FNAME)
    - export layout to corresponding entry of aqrdb
    this part I don't see exactly where to put it, I guess there is some place where it is possible to manage the layout - if not then you have to do it "manually" i.e. with a small report

  • Adding code to additional fields in Ad Hoc Query

    Hello,
    I am trying to add code to existing additional fields available in IT0001 - Field SYHR_A_P0001_AF_PL_CTRY.
    I have added code in the field code section, but the field does not get populated.
    I also tried to add code to Start of selection / Record processing sections, but the values are not populated.
    What am I doing wrong?
    Thanks,
    Vaishali

    Hi Vaishali,,
       Your question is not clear, no probs. you plz check  this code !!
      FUNCTION zhrintf_om_pernr_info_adhocqry .
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(FI_PERNR) TYPE  PA0001-PERNR
    *"     VALUE(FI_BEGDA) TYPE  PA0001-BEGDA
    *"  EXPORTING
    *"     VALUE(L_MC_STEXT) TYPE  HRP1000-MC_STEXT
      DATA: dep_text(40) TYPE c,
            l_plans TYPE pa0001-plans,
            l_sobid TYPE hrp1001-sobid,
            l_mc_short TYPE hrp1000-mc_short.
    Get Employee Position ID
      SELECT SINGLE plans
        FROM pa0001
        INTO l_plans
        WHERE pernr = fi_pernr
              AND begda LE fi_begda
              AND endda GE fi_begda.
      l_sobid = l_plans.
    Check if OU is Department
      IF ( l_sobid NE '00000000' ) AND ( l_sobid NE '99999999' ). " Terminated Employee
        WHILE NOT ( ( l_mc_short(1) EQ '2' ) OR ( l_mc_short(1) EQ '1' ) OR ( l_mc_short(1) EQ 'X' ) ).
          SELECT SINGLE sobid FROM  hrp1001
                 INTO l_sobid
                 WHERE  objid  = l_sobid
                 AND    rsign  = 'A'
                 AND    sclas  = 'O'
                 AND    begda LE fi_begda
                 AND    endda GE fi_begda.
          SELECT SINGLE mc_short mc_stext FROM  hrp1000
                 INTO (l_mc_short, l_mc_stext)
                 WHERE  otype  = 'O'
                 AND    objid  = l_sobid
                 AND    begda LE fi_begda
                 AND    endda GE fi_begda.
    Empty l_mc_stext if OU is not Department
          IF NOT ( ( l_mc_short(1) EQ '2' ) OR ( l_mc_short(1) EQ 'X' ) ).
            l_mc_stext = ''.
          ENDIF.
        ENDWHILE.
      ENDIF.
    ENDFUNCTION.
      Regards
    Zulfikhar Ali

  • Adding additional fields to an existing Infoset.

    Experts,
    I got a requirement to add additional fields to an existing info set which belongs to different Logical Data base.
    The existing info set is based on PNPCE LDB and the fields are from PD (i.e PCH ldb).
    Please let me know hw to add those fields...
    Thanks,
    Shrini

    Hi Shrini,
    You can add fields from PD infotypes (1000-1999) to a PNPCE infoset if the object has a relationship to a Person.  Example would be Position which has the relationship Holder.  You go to Change the Infoset.  Edit --> Change infotype selection.  Scroll down to the bottom and open Infotypes of Related Objects.  Open Position.  There you will see the possible relationships between a Position and Person.  Select Holder.  There you have the list of infotypes assigned to a Position that you can add by checking each.  You can then add whatever fields are in that infotype to the Infoset. 
    Problem comes in if there is no direct relationship between a Person and the object - such as Job that you want to include in the Infoset.  A Job describes a Position and a Person holds a Position, but a Person does not have the direct relationship to the Job except as a Dislike or Successor.    In this case you would need to create a new PCH Infoset with the root object Position.  Then using the relationships between Position and Job and Position and Person, you can access the infotypes from PA as well as PD.
    Paul

  • Add field in sq01, infoset query.

    i am trying to create a virtual field in sq01. i am creating a infoset query where i want to add two fields and need to displayed in the report. how can i do that without enhancing the infotype? i just need to add two fields and need to be displyed in third field. i want to add some logic of addition to those two fields and the result need to be stored and displayed.
    Message was edited by:
            shahid mohammed syed

    Hi ,
    I have got a query in AD-HOC query.
    After creating the Adhoc query using the join table functionality the resulting adhoc query does not results any out put.
    What I have done is :
    1.Created a user group through SQ03
    2.Attched user to My user group
    3.Created an infoset using join table functionality(SQ02).
    4.Saved and generated the infoset
    5.Added the user group to the infoset and than run the ADHOC query.
    The table I have used to join is all PA table (For test pupose)
    Though the purpose of the custom infoset is to join PA,OM and E rec infotypes, for testing purpose I have joined only PA infotypes.
    Result:The adhoc query does not gives any out put instead it says no data could be read.
    Could you please tell what else I need to do so that the custom infosets gives an out put.
    Will greatly appreciate your help.
    Thanks and best regards
    Rajeev

  • Currency as additional field in an Infoset

    Hi,
    I hope you can help me with the following problem. I want to extend an infoset with additional fields amount and currency. When I do this and want to use these fields in a query the system automatically generates to my amount field a currency field, so in the end I have one amount and two currency fields.
    I tried to fill these generated currency field but then I get a short dump using this infoset in the segment builder as this variable is not existing there. Well, of course I can solve it with my additional currency field, but then I have two currency fields to one amount field, as one is always generated.
    Is there a solution for this?
    Kind regards,
    Timo

    Hi Pablo,
    I guess you would have forgot to drag that extra field to the "Field Group/Data fileds" list ( on th eRight hand side pane ) in Tcode SQ02. Please check.
    Save the infoset and then saev the datasource, then check the RSA3 extractor check.  also make sure to replicate the datasource.
    Regards,
    Pratap Sone

  • Adding Additional field "Supplier name" & "Supplier No" in MB5B Report?

    Can i add the above stated two additional fields in the standard report of MB5b, is there any implicit enhancement in the standard report which can help achieve my objective?

    Hi,
    The possibility to include additional fields in the report MB5B is       
    limited to MSEG, just as you can see in the text of the                  
    report RM07MLBD_CUST_FIELDS itself:                                                                               
    This include contains the structure for additional fields for report 
    RM07MLBD ( transaction MB5B )                                                                               
    the following fields are not shown in the list of report             
    RM07MLBD                                                             
    If you want to insert some of these fields in the list of the        
    hidden fields delete the '*' in the type definition.                 
    >>* There are only fields from database table MSEG possible <<<<<<<<<<<  
    Please use only the following fields, because these fields           
    are considered during the creation of the field catalog;             
    plaese consider, that each active field will cost performance                                                                               
    If you need to add aditional information from other tables, like the     
    Reference Document Number you will need to  build your own query.    
    Regards,
    Mauro

  • Adding additional field 1 to selection screen of CATSSHOW (CADO)

    Hello all,
      We recently added one of the additional field's to show up on the data entry section when using
    transaction CAT2...This is working fine and the data is entered into CATSDB.
      When using CADO, one can display the addtional field 1 and sort by this field.
      However, the users now want this additional field1 to be one of the selections when they
    use report CATSSHOW (CADO).
      Is there some type of way to configure SAP to have one of these additional fields show up
    as a selection field on program CATSSHOW (CADO)? My searches in this forum and the web
    have not shown me a solution yet.
      Or do I have to create a 'Z' version of CATSSHOW like ZCATSSHOW and do this myself?
    Thank-you,
    Rick Crawford

    Enhancement
    text
    F050S001
    FIDCMT, FIDCC1,
      FIDCC2: Edit user-defined IDoc segment
    F050S002
    FIDCC1: Change
      IDoc/do not send
    F050S003
    FIDCC2: Change
      IDoc/do not send
    F050S004
    FIDCMT, FIDCC1,
      FIDCC2: Change outbound IDoc/do not send
    F050S005
    FIDCMT, FIDCC1,
      FIDCC2 Inbound IDoc: Change FI document
    F050S006
    FI Outgoing IDoc:
      Reset Clearing in FI Document
    F050S007
    FIDCCH Outbound:
      Influence on IDoc for Document Change
    F180A001
    Balance Sheet
      Adjustment
    FARC0001
    Enhancements within
      archiving (FI)
    FARC0002
    Additional Checks for
      Archiving MM Vendor Master Data
    FEDI0001
    Function exits for
      EDI in FI
    FICT0001
    Exits for
      inter-company transactions
    RFAVIS01
    Customer Exit for
      Changing Payment Advice Segment Text
    RFBVX001
    Enhancement for bank
      directory transfer (Austria)
    RFEPOS00
    Line item display:
      Checking of selection conditions
    SAPLBANK
    User exit: Bank data
    SAPLF040
    WF: Preliminary
      posting (authorized for release)
    SAPLF051
    Workflow for FI
      (pre-capture, release for payment)
    SAPLFCPD
    One-time account data
      or different payee in booking
    SAPLSSRV
    User exit: Bank
      account numbers
    RFKORIEX
    Automatic
      correspondence
    please check which one  is better .

  • Adding a field in already existing query layout

    Hi All,
    I have a requirement where I have to add couple of fields in an already existing query layout.
    Through SQ01 and layout painter I have added the fields to the layout. When I test from query painter it displays the newly added fields. But when I execute the transaction that is designated to run the query its not displaying those fields.
    What am I missing here?
    Thanks in advance.
    Thanks,
    Arun

    Arun,
    As you have done some changes to the query,the internal report generator will generate a new program correspponding to the Query which should be attached to the T-code.
    Currently the t-code might be having the earlier program name ie the program generated by the query before changes were made hence it is not displaying.
    Just check the program name of the Query and the  program name attached to the tcode.
    K.Kiran.

Maybe you are looking for

  • How to create a procedure using program unit

    Hai All Ii have created a procedure like this PROCEDURE Duty_calc IS procedure w_Time is begin update dail_att set wtime= (select lpad((to_number(to_char(outtime,'hh24mi')-to_char(intime,'hh24mi'))),4,0) from dail_att where attend_date=f_date); end w

  • USB upgrade

    I have a 6390 with the KM266 chipset. Is it possible to upgrade the 1.1 USB's to 2.0?

  • HT5552 Using PayPal for iTunes/App Store

    I try to select PayPal as my payment option for iTunes/App Store, but when I select the PayPal icon and click the "continue" button, as directed, nothing happens.  Why can I not select PayPal?  All of my payment information is stored in PayPal, and I

  • Locate my daughters lost iphone.

    Hi, my daughter lost her iphone today and we haven't activated her icloud yet. Is there anyway we can locate it from my iphone? Hope someone can help! Thank you. Susie

  • Is there an Oracle Identity Management (OIM) 11g certification?

    I wasn't able to find any Identity and Access Management (OIM 11g) certification. Is there any?