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

Similar Messages

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

  • 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

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

  • 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

  • Infoset Query based on 0023 IT

    Hi,
    I have created one infoset query for infotype 0023. When I am executing this report for all the employees I can see the records. But if I select just one employee only blank fields are coming.
    Samriddhi

    Hi,
    That employee has four records on 0023 infotype.
    And I have checked with both Reporting periods All and Past(until today).
    But still one record is coming that too blank although employee has four records.
    1st record (01.06.2000 - 21.12.2002)
    2nd record (01.12.1996 - 01.06.2000)
    3rd record (01.04.1991 - 01.08.1996)
    4th record (01.061989 - 01.03.1991)
    Then I created one more record from the date 01.09.2008(start date in the present company) to
    31.12.9999.
    When I am executing the Adhoc Query I am getting only this last record. In selection I have choosen personnel number of that employee.
    But if in the selection field I didn't choose any personnel number it will show all the records of all employee.
    Samriddhi

  • Selecting table fields in InfoSet query manually?

    Hi Experts,
    I have created an infoset query with two table. At the end selected field group as 'Key fields only'.
    Can you please tell me how to manually select the fields from both tables so that I can build an InfoSet with the selected fields?
    Thank you for you help!
    Lakshmi

    hi,
    For manullay selecting the fields, Just drag and drop fields from respective tables ( left sub tree) to their
    respective field groups( Right sub tree ) in a infoset.
    If you wish to create your own field group, just delete the sytem created field group and then recreate it by giving suitable name and then again drag & drop fields from table to  your field groups.

  • Custom Field in Infoset Query missing in Infoset

    Hi Everyone,
    I'm in a puzzle and I hope someone can help me. Basically I need to maintain an existing infoset Query - While looking through the query and it's related Infoset I noticed there is a custom field appearing in the query (SQ01) but this field is nowhere to be seen in the Infoset (SQ02) - I'm just wondering how can this be ?
    The same custom field exists in another Infoset - is it therefore possible to build a query using an infoset while pulling in fields from another ?
    I would appreciate any thoughts on this matter as I'm in a very confused way over this.
    Thanks in advance
    Kind Regards
    Damien
    Edited by: Damien Kesle on Jul 22, 2009 3:48 PM

    Hi Damien Kesle ,
    There are ways by which you can create fields ( they are called Local fields ) in the Query too.
    Please see , whether the custom field you are asking is present in the Query.
    Even then , just to confirm that your said field does not exist in the infoset, follow the steps.
    Go to SQ02, put the name of your Infoset and click on tab "Description ".
    Then do a Ctrl + F (Find/Search) for the field. If its not there, then you can confirm that the field comes from Query and not Infoset.
    Approach for any further queries.
    Regards,
    Subin John

  • Mandatory fields for Infoset query

    Hi all,
       I am creating a datasource using Infoset queries.to test it, how to make a field as mandatory in selection screen.
    thanks in advance.
    Reagrds,
    Murali

    hi murali,
    Mandatory selection screen:
    When you display infoset go into the infoset>Goto >selections or click on the app tool bar button for selections,
    it will open up a table will all the screen fields. Adjacent to these, there are 3 check boxes for Standard selection, required entry and default. Check the required entry field.
    You would have to place the code in the PBO. In case of selection screens, you will have to do it in the AT SELECTION-SCREEN OUTPUT EVENT.
    Doesn't really make much sense to try and do it in the PAI ( = AT SELECTION-SCREEN).
       You can do it using customer exit. You have the options to verify a variable input and display a message back to the users, check the attached documents. The check can be done in the customer exit step I_STEP = 3.
    https://websmp102.sap-ag.de/~sapdownload/011000358700002765042003E/HowToVerifyVariableInput.pdf
    A tool that provides reporting on one or multiple ODS Objects. InfoSet Query provides Web reporting capabilities (known as ABAP Query or SAP Query).
    Check this link.May be it can help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/ed/084e3ce0f9fe3fe10000000a114084/content.htm
    Hope IT solves ur problem
    Thanks
    Varun CN

  • BW Datasource on an Infoset Query based on 2 DSO Active tables

    Hello,
    We have created a Datasource in the BW system over an Infoset query (through SQ02) built on 2 DSO tables.
    In RSA3, this datasource is working fine - it shows us some data (close to 1000 records).
    The issue is when i try and run a infopackage for the datasource.
    The request times out and no records are fetched.
    I have added all the users to the Infoset user group - so, no issue with the authorization.
    IDoc Statuses changes from 53 --> 62 --> 64 --> 50.
    The extraction process does not complete - does not get the no. of records sent.
    Can anybody point to a probable cause here?
    Thank you.

    IDoc logs do not say much.
    Status Record 53: IDoc was successfully transferred
    Status Record 62: IDoc passed to application; Direct call started
    Status Record 64: IDoc ready to be transferred to application; No filter, no conversion
    Status Record 50: IDoc added
    Then, it does not go any further.
    We're using the Datasource on the Infoset query because we could not use the traditional BW infoset.
    Datsource is used to feed a DSO as we directly could not use anything else (we're trying with an expert routine also).
    The issue is that the base DSO tables are huge and querying on them (using SELECT) is taking a very long time.
    So, we thought of using an Infoset to create a view and then populatet he data.
    In an traditional infoset, we could not specify a condition with a range. So, the infoset query through SQ02.
    I have not tried using an APD, but that might be a good option.
    Only thing, we'll have to use a Direct DSO - which i am not sure will satisfy our requirement.
    Thank you.

  • Urgent! group by query based on a logical OR (bitwise)

    Let's say I have the following table:
    field: f1 f2 f3 f4 f5
    record 1: a a 1 0 4
    record 2: a b 2 3 7
    record 3: a b 0 8 1
    I want to make a group by on f1 so that I get just one record which is:
    field: f1 f3 f4 f5
    record 1: a 3 11 7
    where the result of each field is actually a group by based on a logical OR (bitwise)
    ie:
    3 = 1 or 2 or 0
    11 = 0 or 3 or 8
    7 = 4 or 7 or 1
    any suggestion ?
    Thank you

    You can try using DECODE
    e.g.
    Select F1,
                Sum( Decode( F3, 1,1,  2,2,  0) ) F3,
                Sum( Decode( F4, 3,3,  8,8,  0) ) F4,
                Sum( Decode( F5, 7,7,   0) ) F5
      from your_table
    group by F1
    I want to make a group by on f1 so that I get just one record which is:
    field: f1 f3 f4 f5
    record 1: a 3 11 7
    where the result of each field is actually a group by based on a logical OR (bitwise)
    ie:
    3 = 1 or 2 or 0
    11 = 0 or 3 or 8
    7 = 4 or 7 or 1
    any suggestion ?
    Thank you

  • Extract error for an Infoset Query based Datasource

    Hello All,
    When I test a Info set Query Extraction in RSA3, I am facing the error message:
    The field 'ZBW_EXTRACT' is unknown, but there are following fields with similar name '%COUNT-ZBW_EXTRACT'.
    Syntax Error in Program 'AQZZSYSTBWGENER.....'
    The Program is an Internal system generated program.
    Has anyone faced the issue and know the way out..?
    Definitely, will award points..
    Thanks in advance,
    Ameya.

    Hi Ameya,
    which system are you testing this? I mean are you testing this in dev or qa? If you are testing in QA, make sure you import the infoset correctly. It is a different procedure. Hope it helps.
    Thanks and Regards
    Subray Hegde

  • Query based on a non-database item in master/detail block

    Hi,
    I have a master/detail block, and in the master the block in have non database control item which displays the user name. Now i would want to retrive all the master/detail records based on the control item. Is that possible? How can i do it?
    Any help would be appriciated.
    Thanks
    Kavitha

    use the set_block_property (default_where) and the execute_query built-ins. more info in the online help

  • How to add a selection criterion to a SQ01 query based on logical database SDF?

    Hi,
    How should I add a selection criterion to a SQ01 query based on the logical database SDF? Is it possible through additional code? How to make use of the custom selection fields? I need a selection criterion based on BKPF-CPUDT (creation date).
    Thanks.

    Hi John,
    Please check the given below link in addtion to Atul post.
    http://scn.sap.com/community/erp/sd/blog/2012/04/16/query-report-tips-part-2--mandatory-selection-field
    Thanks,
    Senthil Maruthappan.

  • Search help for field in ABAP Query

    Hi Experts,
    For a particular field in standard table the search help(F4) is not maintained in the table level, which is used in a ABAP query.
    Is there any possibilities for user-defined Search help using InfoSet or Query?
    Please help me in this regard.
    Thanks in advance,
    Balaganesh.

    Hi Bala,
    I understand your question better now.  Since you mention standard selections I assume that your InfoSet is based on a logical database instead of a table join, direct read, or custom data retrieval program.  You are correct that the AT SELECTION-SCREEN ON VALUE REQUEST logic I mentioned earlier will not work for the standard selections of a logical database.  The system gives you an error when generating your InfoSet if you try to use the standard selection name (in ECC 5.0 at least).  I've tried various tricks to attempt to get it to work, but so far no luck. 
    You could, of course, use a different logical database as your InfoSet basis (e.g. VAV has a matchcode on VBAK-VBELN) or create your own data retrieval program and change your InfoSet to use the custom program instead of a logical database.  In the second case you wouldn't need to deal with standard selections at all.  I understand that these solutions are probably not what you need and, in the case of the custom data retrieval program, would be more complex (it may not be worth it to write a custom program just to allow F4 help... or maybe it would be... just depends). 
    Please keep us updated if you find a way to do it.  I'll also report back if I happen to discover a way.
    Best Regards,
    Jamie

Maybe you are looking for

  • Mapping issue with mapWithDefault

    Well i am a liitle confused: i have following mapping for target field: /MT_NC_ART_edit/ARTRecordSet/ARTDetailsStruct/sAfoBez=replaceString(oneToMany(concat([delimeter=]/ZBC14_ARTIKEL/IDOC/ZBC14_ARTIKEL/ZBC14_ARTIKEL_VORNR/SAFOBEZ=, const([value=:]))

  • Setting Apps for another domain machines in SharePoint 2013

    Hi, How can I deploy developed app for another web application / another domain's web application? My Senarion is, I have configured Apps in SharePoint 2013. I have followed the link "https://www.nothingbutsharepoint.com/sites/devwiki/articles/pages/

  • Solid State Drive Issue on Macbook pro mid 2012 extremely slow

    I recently purchased a Corsair Force LS solid state drive and installed it on my laptop. The hard drive is extremely slow and I cant even install Yosemite on it. It's stuck at the installation screen and kept showing the remaining wait time is 12 min

  • Can't see any trace of DW extension...

    I just tried to install the new Dreamweaver Extension that seems to open Proto-files. The Extension Manager happily informs me that the installation succeeded, I quit/restart Dreamweaver as always, but the .pro files (on my Mac) are still grayed out

  • Audio special effects in Pr12

    I'm back!  I want to add the "reverb" audio special effect to an audio clip I have.  [using Premiere Elements 12 on a WinPro7 computer].  This is what I've done: click on the audio clip open special effects and open audio special effects click on 're