Code to include Structure infoset query

Dear Experts,
I am a functional person in Plant Maintenance.
I am working on an infoset/query and having to use some fileds from structure RIWO00.
System warns for a code in case of use of Structure in the Extras-->Additional structure option.
Kindly help me in knowing what is the code I have to add in the Extras-->Code page of Infoset to include this structure.
Regards
Jogeswara Rao

Hi,
If you are creating the Infoset using SQ02 than in Extras u have to click on create button >Additional StructureGive the name as ZRIWO00 -->In DDIC structur provide RIW000 ( YOUR STRUCTURE NAME ) --. ENTER.
Its done.
Now you can write the ABAP Code for fetching the values as per your business logic.
Hope it helps you.
Thanks
Arbind

Similar Messages

  • Infoset Query Authorization

    Hi guys,
    I've created some infoset queries, and assigned those queries to specific user group. My purpose is to let only specific user group (e.g. Accounts User Group, to access only relevant queries)
    But later I found out, those users can actually switch to another group (at SQ01 -> Other User Group), and access those queries that they shouldnt be accessing.
    May I know if there's any way to prohibit this switch of group? Or is there any authorization that can be set?
    All ideas are appreciated. Thanks ^^

    Hi TY Ng,
    By including the InfoSet query in a role, you ensure that the InfoSet query is started with an InfoSet (and a query), and can therefore be easily used for appropriate reporting within the role.
    The basis for this is the assignment of user groups to roles, the option of calling the InfoSet query from different roles, and, in doing so, noting the specified context for this role.
    You assign user groups and InfoSets with transaction SQ10. You can also create and manage menu entries for the InfoSet query with this transaction.
    In order to include the InfoSet query in a role, you have to assign user groups first to the role and subsequently to one or more InfoSets.
    Check
    Please check administrator authorization for the SAP Query (authorization object S_Query, field ACTVT, value 23).
    Check whether the correct work area is set before you reassign user groups. If you call the role administration by using transaction SQ02 (see above), the work area set in transaction SQ02 is transferred.
    Hope you get some help
    Atul

  • Addtional Structure on InfoSet query of Logical database

    Hi Experts,
    We have a logical database on which we are supposed to create an InfoSet query. We could create the InfoSet query and also the query on top of it.
    We have a requirement to add addtional fiels which are not part of the logical database. The addtional fields are in a strucuture. I added the strucuture using the Extras option, but I need help on how to extract data from this strucuture.
    Can you please help me with a sample code:
    Logical Database in question is - FTI_TR_PERIODS
    Structure to be included is - VTG_IRATE_STRUCTURE
    Field in structure to be included is - PKOND, SKOART
    As this is a structure we cannot right a select statement, and I am very new to abap and require help on how to extract data from the structure.
    Thanks for your help.
    Best Regards,
    Ravi

    Hi,
    This is SAP Business one reporting and printing forum. Please find correct forum and repost above discussion to get quick response.
    Please close this thread here with helpful answer.
    Thanks & Regards,
    Nagarajan

  • Question about infoset query with code

    Hi experts.
    I always appreciate your help. Today, I have some problem. I made infoset query using SQ01 and got some data. Those data include WBS no but some of them didn't. So I tried to put some code into the infoset query that any data has not WBS has some value, for example 'X', in WBS no field.
    I needed to know what field or table I should control to display value 'X' in WBS no field in case that WBS field has no value.
    I tried to put code at "END-OF-SELECTION(before display)" and control %dtab. But I met error message there is no such table %dtab. So, I define %dtab then during runtime, I also met error message %dtab has already been defiend.
    How can I do? Is it impossible thing?? I'm wating for your answer.
    regards.

    Hi, if you just want to fill the field if it is blank, you can do this in the Record Processing Section.
    I'm not familar with the WBS number, so for this example, I will fill the BISMT in MARA during the "Recording Processing" Section.
    if mara-bismt is initial.
    mara-bismt = 'X'.
    endif.
    Regards,
    Rich Heilman

  • SAP Infoset Query Reporting Set Restriction by Org. Structure

    Dear Experts,
    I am giving some new users a demo on using Infoset Query on an IDES server.
    I am using the user group Personnel Administration (PA) and the HRDATA infoset.
    As per my understanding, I should be able to restrict the reporting set according to organizational structure as the infoset is based on logical database PNP. However I am only seeing "No. of hits" in the restrict by drop-down (as can also be seen in the screenshot).
    What am I missing to be able to see the restrict by option of "Persons along organizational structure"?
    All assistance in this regard is really appreciated.
    Regards,
    Talha

    Dear Azury,
    Thankyou for your response.
    Your solution is perfectly sound for fulfilling the purpose.
    However, because I am conducting a demo, I thought a reporting set restriction on the main screen would be more appealing, than an additional selection screen.
    In a demo screenshot I have seen that the restrict by option "Persons along organizational structure", is listed right under "No. of hits" like in my screen shot. Can you shed some light on that. I am attaching the demo screenshot I am talking about for reference as well
    Thanks,
    Talha

  • How to include a table multiple times in InfoSet Query

    Hi,
    Is it possible to include a table more than once in an InfoSet Query, I created an InfoSet Query and Include Table A, then included Table B now i want to join Column 1 and 3 of Table A to be join with column1 of Table B, in other words, Table B is a Master data table, and Table A is a transaction data table, how this can be acheived.
    Thanks
    Akila. R

    You cannot achieve this.
    Instead, compound the column 1 with column 3 info objects and create join with Table B.
    This will result in same intended functionality.

  • InfoSet Query: Syntax Error while generating the program.

    Dear All,
    I have a Query in CRM system which contains an Infoset based on LDB.
    The InfoSet Query throws up a Syntax error while generating the program.
    So, we are not able to change the Infoset using the Infoset Query through SQ01.
    The error is as follows:-
    Syntax error in program "AQZZ==/SAPQUERY/CRM_ACTMON1 ".
    Error in the ABAP Application Program
    The current ABAP program "CL_QUERY_OUTPUT_DEFINITION====CP" had to be
    terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "AQZZ==/SAPQUERY/CRM_ACTMON1 "
    in include "AQZZ==/SAPQUERY/CRM_ACTMON1 " in
    line 28:
    ""CRMT_REPORT_LOCATORLIST" must be a flat structure. You cannot use int"
    "ernal tables, strings, references, or structures as components. -"
    Please help me arrive at an solution, so that we are able to change the Infoset through the InfoSet Query.
    Awaiting your reply as soon as possible.
    Thanks and Regards,
    Pankaj.

    There is an error in your query, specifically in the definition of CRMT_REPORT_LOCATORLIST. In the short dump (transaction ST22) you will see more details and the exact location of an error if you just scroll down.
    I can't tell more because this problem is specific to your system, to which I have no access. Read the whole dump and look at all the objects mentioned there.

  • Creating Infoset query based on ABAP program

    Hello
    I have 3 tables FEBEP, BKPF and BSEG and I need to join the 3 tables based on:
    FEBEP-MANDT = BKPF-MANDT = BSEG-MANDT
    FEBEP-NBBLN = BKPF-BELNR = BSEG-AUGBL
    FEBEP-GJAHR = BKPF-GJAHR = BSEG-GJAHR
    Then I have a few view fields from all the 3 tables. After this I can build an infoset query based on structure + ABAP program, and a generic datasource on top of it.
    Can someone give me the ABAP code to be written SE38? Also should I select integrated program/external program in the infoset query?
    Thanks,
    Srini.

    Hi,
    Even if you create an ABAP program for infoset, you will writing a SELECT statement from BSEG table which is quite huge.
    And you will putting JOIN with other tables.
    Performance wise this is not advisble.
    Why do not try the following other tables and check if the fields you need are available?
    You can't join BSEG as it is a Cluster Table.In the place of BSEG you can use:
    Account Recivables data use BSID and BSAD tables
    GL Account Related data use BSIS and BSAS tables
    Account payables data use BSIK and BSAK tables
    Thanks.

  • Infoset Query-concatenate fileds

    Dear Experts,
    How to Concatenate two fields into a local field in an infoset query.
    Regards
    Jogeswara Rao

    Hello Jogeswara,
    If you are creating an additional field in the query, then do the following when calling transaction code SQ02.
    1.  Click pushbutton labeled Extras and create an additional field.  Make sure that it is in character format and that its length is long enough to fit the two fields to be concatenated including a space in between (if desired).
    2.  Then click the CodingForAddition pushbutton for the field you created in step 1.  Enter your CONCATENATE command.
    Suppose you want to concatenate MARA-ERNAM and MARA-ERSDA into additional field NAME_DATE separated by a space.  Define NAME_DATE to be character of length 23 which is large enough to contain the maximum size of the concatenated fields plus a space.  You would enter the command below for the additional field. 
    CONCATENATE MARA-ERNAM MARA-ERSDA INTO NAME_DATE
    SEPARATED BY SPACE.
    Kind Regards,
    Rae Ellen Woytowiez

  • Generic Extractors for HR Reports using views and Infoset Query

    Hi Friends... I am working to come out with the HR reports in BW for the HR reports which are already there in R/3. The HR reports in R/3 are created based on Infoset Query.I could not find any standard business content cubes which can give me these reports.
    1)So please can anyone give me step by step approach so to create a generic extractors based on Infoset Query.
    2)And also how to populate the data into the fields of the generic extractor which is created by Infoset Query( Please provide any sample ABAP code if available)
    3)can anyone give me step by step approach so to create a generic extractors based on View/Table.
    4)And also how to populate the data into the fields of the generic extractor which is created by View/Table( Please provide any sample ABAP code if available)
    Thanks

    Hi Kalyani,
    We normally go for View or infoset when the data to be fetched in BW is distributed in different tables in SAP R/3.
    Had the data been available in one table we can easily build our datasource on that table but if there are more tables then its not possible to do it without Views or Infosets. You can use Function Modules to build your datasource in case it involves complex logic to figure out the data from various tables.
    Depending upon the table relationships we create view and include various fields from these tables in that view. Same is with the Infosets, you can have more flexible options like Outer Join, left outer Join etc.
    Regards,
    Pratap Sone

  • Generic Extraction using Infoset Query

    Hi Experts,
    I am trying to create on Infoset query on the R3 side for creating one generic Extractor Joining EKKO and EKPO table.
    u2022I have created the User group in SQ03.
    u2022I have created the Infoset in SQ02 and selected few 5/6 fields from each EKKO and EKPO tables into the Field Groups of the Infoset.
    u2022I have generated the Infoset and assigned it to the user group created on SQ03
    u2022I have created a query on SQ01 using this Infoset and deselected the u201Ctextu201D fields created by default and selected the Basic list. Done everything needs to be done in there.
    Now when I am going to RSO2 and created the extractor using that Infoset, I am not seeing the Function groups that I have created in the Infoset in the Extract Structure, rather its pulling all the fields that is there in the Infoset joining both tables. It should show me those 5/6 fields that is there in the field group.
    I just want to see only those 5/6 fields in the extract structure of the DS.
    I am not sure what is missing.
    Any documentation on the same or if anyone faced similar problem, please help.

    Hi,
    You can create the infosets in r/3 using the t code Sq01,sq03 etc.
    You can create a generic extractor in r/3 using the tcode rso2 and that you can specify the infoset name.
    Regards,
    K.Manikandan.

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

  • How to see the underlying program for Infoset  query in ECC?

    HI all ,
    we have generic datasource based on Infoset .
    now ii need to add 2 fields from batch characteristics .
    my question is how to go & edit the underlying abap program .
    i have added the fields to the extract structure , but not populated the 2 fiields .
    regards ,
    srinivas .

    Hello,
    Go to SQ02 T code -
    > Give your Info set Name -
    >Click on your Info set -
    >There top you will find Option GO TO click on Go To then you will get Global Properties -
    >if you click on Global Properties -
    >You will get another scree there if you click on External Program------->You will get  underlying program for Infoset  query in ECC.
    if you find the answer usefull kindly asign some points.
    Regards,

  • Changing the Infoset Query out put field

    Hi,
      Please let me know can we do the changes for the Input/Output field for the infoset query in PRD. That mean  if some of the fields are hidden and we want to show them at the output can we directly do the changes in PRD .
    Thanks & Best Regards,
      Mahesh

    hi
    Create the infoset with PNP database and add all the infotypes required (including custom ones). Add all fields.. vale, text etc. as seperate fields of the custom Z tables as additional fields in the infotypes and write your code accordingly to select the data into these fields based on the already existing infotype fields. For example if you want to get designation based on position you will write:
    select <designation> from ZDESG
    into <custom field>
    where PLANS = P0001-PLANS
    Creating joins over already existing joins will not be a stable solution.
    thanks & regards
    Satish

  • Missing variables in Infoset Query.

    Hi All,
    0P_KEYD2 is a variable for characterstic "Posting Date" in the  query which fires on ODS 0FIAR_O03.I have created an Infoset on ODS 0FIAR_O03 and 0CUST_SALES(Master Data)and created a query on this infoset. But I am unable to see variable 0P_KEYD2 for Posting Date in the Infoset Query.
    (There are some other variables too which are not visible in Infoset Query, these include - custom "Z..." variables & BC variables, with SAP exit and with User entry, etc)
    Could anyone suggest how to access this same variable for query on infoset as in ODS query?
    I tried having an new Infoset with just the ODS 0FIAR_O03, but here again these variables are missing for this characterstic (and possibly other variables for other characterstic), while if I try to build the query on the above ODS directly I get the variables!
    Version: We are on BW 3.5
    Thanks,
    Melwyn Joseph
    Message was edited by: Melwyn Joseph
    Message was edited by: Melwyn Joseph

    Hi,
    I'd put this query in SDN quite some time back..but didn't get any response then.
    As Raymond said above, that is what I'd done in my case. The original variables are SAP exit (u can view their code in the standard SAP FM's). Here the code refers to other variables/objects with their specific tech names (or something similar..don't remember it now). In infoset, as we dont get the original tech. names of the objects in the query ...these SAP exit codes will not work for these variables.
    The solution is to create your own custom variables & populate it in Customer Exit. U can get the logic from the SAP exit code...its not that difficult to understand.
    cheers,
    -Me

Maybe you are looking for