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

Similar Messages

  • Additional fields in infoset query can not be used as datasource fields

    I create one infoset query with additional fields (using ABAP code) in R/3. When I create datasource RSO2 using this infoset query, system only show all fields without additional fields that I enhanced in infoset query. Does that mean we can not get additional fields information in generic datasource creation that we enhanced in infoset query?

    dear Awa,
       you are enhanced some fields in r/3.right that fields are  shown in
    rsa6 select your data source click on display your datasource then select
    extract structure its shows how many fields are haveing particular
    datasource .or otherwise goto rso2 select your data source display
    double click on  your extractstructure  its show how many fields haveing
    the particular datasource. check the Rsa6 what ever fields you newly added that field default hide mode
    you remove the hide tickmark.

  • 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

  • Selection field in Infoset Query

    Hi All,
    I have an Infoset which is based on Logical database PNP &  it has few additional fields. Now the requirement is to add one of the additional field to the selection screen of "Infoset Query". But in the Infoset query the 'Selection' checkbox for all the additional fields is graded out, & only the 'Output' Checkbox is enabled for all the Additional fields.
    I added a new additional field in Infoset and even that is not available for selection in the Infoset query.
    Kindly let me know if you have any info regarding this....
    Please note that i have this problem in 'Infoset Query' only.
    Thanks in advance.
    Regards,
    Karthick.

    Navin,
    Try with this link,everything in detail is explained about Infoset queries..
    http://shafiq.us/sap/index.php?view=article&id=54%3Aadhoc-query&option=com_content&Itemid=61
    hope..this will help you!
    Cheers,
    KK

  • 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

  • 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

  • BW - additional field in infoset

    Hi all ,
    I used data source with infoset and I added additional field into infoset . But additional fields did not come to the data source selection screen ( Field list screen ).  Is there a way to do this ?
    Can anyone help me ?
    Thnks a lot ..

    Thnks for answers ,
    I have just do that but there is no hided field . I haven't see the additional field  there already.
    I think it 'll more clear if  I tell about what am I doing step by step ;
    First , I created infoset in SQ01 with joinig tables LIKP -  LIPS .Then I added some additional field ; I collect different value from another table . Then I create field group called " ADD" in infoset and assigned additional fields that I created to "ADD " . Finally generate and saved infoset .
    Second , in RSO2 I create data source and joined with infoset . Then comes to selection filed screen .  Here was my problem ; there were no field that I added to infoset ,additional fields didn't appear
    Can I  explain it ?
    Thnks for help ..

  • Additional i/o fields to infoset query based on PNPCE logical database

    Hi All,
    I have a requirement to add two additional input and output fields "job function" and "job family" to a infoset query based on logical database PNPCE. I am new to writing code in infset query and there are so many code areas in infoset query. I am confused where to write code and how to limit the output list based on the user selection to the additional fields "Job function" and "job family". have any one done this in the past?. is there sample code somewhere to do something similar to this?
    Your help will be much appreciated with points! (as per our community guidelines)
    Regards,
    Arul

    Hello Arul,
    Your question would be better answered if you post it in on of the Business Intelligence Forums. Please close this thread and goto:
    Expert Forums » Business Intelligence
    or
    /community
    Regards,
    Manny

  • Creation of additional fields in Infoset SQ02

    Hi Experts,
    I'm a FICO consultant trying to create a query.
    Requirement : Link RSEG Table to BKPF Table in the join condition
    Link: RSEG-BELNR concatenated with RSEG-GJAHR = BKPF-XBLNR
    Now I'm trying to create an additional field in SQ02 named MiroYear and in the field code part i gave the below piece of code
    "CONCATENATE RSEG-BELNR RSEG-GJAHR INTO MIROYEAR."
    It shows no syntax errors. I added the same to the field group as well.
    Issue: The additional field (MIROYEAR) is not appearing in the join condition in SQ02.
    Is this the right way to create an additonal field? Have i made any mistake? Or any of you have any better ideas to join RSEG and BKPF in SQ02?
    Your quick response will be appreciated
    Best Regards
    Vimal

    Hi,
    Table RESG and BKPF are linked BKPF-AWKEY.
    Now first of all if you create an additional field, that field will not appear in the join.
    One way will be to create an infoset with direct read to table RSEG, and then inside add additional fields for each BKPF field.
    Then in the code
    CONCATENATE RSEG-BELNR RSEG-GJAHR into MIROYEAR
    select single ....
    into (ADDFIELD1, ADDFIELD2, ADDFIELD3,.....)
    from BKPF
    where awkey = miroyear.
    Regards,
    Khusro Habib

  • 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

  • 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

  • Creating an additional field for a query

    Hi All,
    making an infoset for a query, I've created an additional field. Its value must be equal to BSET-BUKRS + BSET-BELNR.
    I've set my additional field format like C.
    Could anyone advice me about the coding for the additional field to get it equal to BSET-BUKRS + BSET-BELNR?
    Thanks

    Hi,
    CONCATENATE BSET-BUKRS BSET-BELNR INTO #name of your field#.
    Regards,
    Eli

  • Additional field in adhoc query

    Hi all, I need to be able to report on the IT105 subtype 0001 system ID for employees who are withdrawn from the company, however, when someone leaves their IT105 record is delimited so adhoc query will not output anything.  Has anyone coded an additional field that will look at the latest record regardless of the date?
    If you have, please can you share the code with me!?
    Many thanks!

    Hi Tanya ,
    Please find the code below. It is designed for additional structure z105_last which is bassed on P0105 type.
    data l_it_p0105 type standard table of p0105.
    clear: l_it_p0105, z105_last.
    call function 'HR_READ_SUBTYPE'
      exporting
        tclas                 = 'A'
        pernr                 = peras-pernr
        infty                 = '0105'
        subty                 = '0001'   
        begda                 = '18000101'
        endda                 = pn-endda
      tables
        infty_tab             = l_it_p0105
      exceptions
        others                = 1.
    if sy-subrc = 0.
      describe table l_it_p0105.
      read table l_it_p0105 into z105_last index sy-tfill.
    endif.
    Regards,
    Sergey

  • Additional field for Infoset in BI 7.0

    Hi
    I have created an Infoset with a cube and a masterdata object. Now my requirement is to have an additional field which i can not extend to cube or masterdata.
    Is it possible by any chance to add an additionla field to Infoset and write an abap code ?

    Any suggestions ?

  • Additional field in infoset as string

    Hi,
    Is it possible to add an additional field in an Infoset with type string?
    When i'm creating it, I need to fill the definition of the field, with a certain type or with reference to some table field, but I'm not finding any suitable to here of type string. I always get an error "you must use a flat structure" or "you cannot use internal tables, strings, references, or structures as components".
    This means I cannot create an additional field as a string?
    Thanks in advance for your help.
    Best regards,
    Sónia Gonçalves

    Thnks for answers ,
    I have just do that but there is no hided field . I haven't see the additional field  there already.
    I think it 'll more clear if  I tell about what am I doing step by step ;
    First , I created infoset in SQ01 with joinig tables LIKP -  LIPS .Then I added some additional field ; I collect different value from another table . Then I create field group called " ADD" in infoset and assigned additional fields that I created to "ADD " . Finally generate and saved infoset .
    Second , in RSO2 I create data source and joined with infoset . Then comes to selection filed screen .  Here was my problem ; there were no field that I added to infoset ,additional fields didn't appear
    Can I  explain it ?
    Thnks for help ..

Maybe you are looking for

  • Lenovo Services/P​rogram takes a long time to start after bootup

    It seems like Lenovo services take a long time to start after boot up is completely done. My Bootup time is less than a minute (0:51s), but my lenovo services (Power Manager Gauage, Lenovo Services in the Sidebar, have th ThinkVanatage Button work, a

  • The JAVA program for "Philosopher Problem"

    When I learn the book of "Operating Systems (Design and Implementation)"(written by Andrew S.Tanenbaum), I try to write a program for the "Philosopher Problem" . In the book there is a sample of this problem in C language, and I write it in JAVA. The

  • Word wrap in simple table

    Hello , Can some one suggest , how to word wrap long strings as field value in a simple Table .In my project there is a situation where i have to dispaly long description data in a table , but because of description usually being very long the width

  • Is it possible to change the automatically set image on the new iMovie Theater title screen?

    I made a few movies on the new iMovies 2013 then uploaded into iTheater. I love the software and its ease of use. However, I noticed iTheater automatically sets the title image. Similar to youtube, iTheater probably uses the video mid point image as

  • Import pdf Into Passbook

    Hi All, I have a lounge pass that has been emailed to me as a pdf. Is there anyway I can add this to Passbook? I dont want another piece of paper to lose!! Thanks, Andy