Infoset Query Problem

Hi,
I have built a query on a Infoset (Infoobject and ODS). Query is not getting the right values for the Infoobject attributes. It is picking the wrong values.
Any suggections on how this can be corrected?
Thanks for your help!
Raj

Hi,
Yes the join is an inner join and i have connected just one infoobject in both the objects i.e. infoobject and ODS.
When i run the query it is bringing the right values from the ODS based on the join but the attribute Data from the Infoobject master data is irrelevant i.e. it is not bringing data based on join.
Thanks.

Similar Messages

  • Urgent: InfoSet Query Problem

    Hi:
    I have a question related to the InfoSet issue I have been experiencing.
    I have a SD ODS which has e.g Material, Cal Year/Month and Sales Qty, Sales Amt. I have another ODS which contains BOM (Bill Of Material Data) consists of Material, Components and Qty for each component. I created an InfoSet by using material as join field between this. When I created a query it shows report as shown below.
    Material     Component     Sales Qty      Sales Amt     BOM Qty
    111           AAA              1000          500          50
    111           BBB              1000          500          20
    111           CCC               1000          500          10
    It means It keeps sales Qty for each component so at aggregated level my sales qty and amt is 3000 and 1500 resp. Which is not correct. What can I do in order for Sales Qty & Sales Amt not to repeat. Any help will be appreciated.

    Hi,
    One way to get your correct values is by using formulas for sales quantity ands sales amt:
    sales qty formula = sales qty * BOM Qty / SUM(BOM Qty)
    in this way you will get
    111 AAA 625 312,5 50
    111 BBB 250 125    20
    111 CCC 125 75,5  10
    Cioa
    Joke

  • I am facing a problem in a crystal report which is based on Infoset query

    Hi All,
    I am facing a problem in a crystal report which is based on Infoset query.in the Cost Analysis - Planned vs. Actual Order Costs
    There are two querys like Query: CO_OM_CA_20_Q1 and InfoSet: ZBPBI131_INFO_ODVR. I build infoset query based on sap best practice user guide but problem is not able to find CO_OM_CA_20_Q1
    Best Regards,
    Srinivas

    Hi,
    I would first of all suggest you don't open the same question twice. this looks like a duplicate to this entry:
    Best Practices v3.31 - SAP InfoSet Query connection
    Did you assign the queries and the infosets to an InfoSet user group and you assign the SAP account to it as well ?
    Ingo

  • I am facing a problem in a crystal report which is based on Infoset query.i

    Hi All,
    I am facing a problem in a crystal report which is based on Infoset query.in the Cost Analysis - Planned vs. Actual Order Costs
    There are two querys like Query: CO_OM_CA_20_Q1 and InfoSet: ZBPBI131_INFO_ODVR. I build infoset query based on sap best practice user guide but problem is not able to find CO_OM_CA_20_Q1

    Please re-post if this is still an issue to the Business Objects Integration Kits - SAP Forum or purchase a case and have a dedicated support engineer work with you directly

  • Problem in InfoSet Query data

    Hello All,
    I have a specification to develop an infoset query in HR.The problem i am facing is i need  particular PERNR's listed in output of query which satisfy few condtions like p000-massn = 31 and p0000-massg = Ub or Uc. this is an example of one condition. I tried to wirte my code in record processing and end of selection( before listing) . but there is no data coming at all.
    Please suggest how to go about this .
    Thanks in advance
    Nidhi.

    Hi Nidhi,
    Please write your code in Record Processing event of code section of Infoset . And instead of IF , use CHECK condition statement.
    CHECK P0000-MASSN = '31' AND ( P0000-MASSG = 'UB' or P0000-MASSG = 'UC' )
    OR P0000-MASSN = '91' AND P0000-MASSG = 'UE'
    OR P0000-MASSN = '10' AND P0000-MASSG = 'U2'.
    CHECK SY-SUBRC EQ 0.
    Edited by: Dinesh Tiwari on Oct 1, 2009 1:42 PM

  • Crystal report from SAP infoset query

    Hi All,
    I am facing a problem in a crystal report which is based on Infoset query. When I run the report after passing the parameters it gives me an error "Database error occured" "Parameter field value does not exists" "RFC Closed"
    But if I run the same Infoset query from SQ01 I am able to run it with same paramenter and it returns many records.
    To be very precise I am running the best practice crystal report "Cost Analysis - Planned vs. Actual Order Costs" which is based on infoset query CO_OM_CA_20_Q1.
    It throws me error that "Controlling Area does not exists".
    Did anyone faced similar problem?
    Best Regards,
    Chetan

    Hi,
    log into your SAP ERP system using the SAP GUI and choose in the SAP Menu the following path:
    SAP Menu -> Accounting -> Controlling -> Cost Cetner Controlling ->Environment->Set Controlling Area.
    Set the desired controlling area for your user there (DO NOT FORGET TO CLICK ON THE DISKETTE ICON) and try again.
    Regards,
    Stratos

  • Issue while extracting data using Gen DS of Type Infoset Query

    Hi All,
    We have a Generic Data source created using the Infoset query. I get some data discrepency when i am extracting the data with the same DS. The data for the Field Amount in the R3 and the PSA  is different. When i try to check the same using the RSA3 T-Code i am unable to execute the Gen DS in R3 production where as its working fine in R3 Dev, and i am able to execute the other DS in the R3 production using the RSA3 T-code.
    My concerns ::--
    1. if the DS is working fine in R3 Dev in RSA3 the y i am facing the problem in Production.
    2. Y i am getting the different data in R3 and PSA since PSA shuld be the replicate of R3?
    3. How can i resolve this problem.??
    Thanks in Advance
    Regards

    Thanks venkat,
    I am having the authorization to execute the query in R3 production, As  i am able to execute the other DS in RSA3 . But not able to execute this DS i had also checked it is active n working fine when loading the Data.
    There is only one routine ie to transfer rule  from lower to upper of a char value.
    As der r routines in Update Rule but i have to get the same data in PSA which is der in R3.
    The Routine of Update Rules will be executed when loading the data to the Targets right so the data may b vary in Data targets but y i am getting different data in PSA .
    Pls thru some light.
    Regards

  • Runtime error while executing infoset query

    Dear Experts,
    When we execute infoset query we get following dump :"
    " An SQL error occurred when accessing a table."
    Database error text........: "ORA-25153: Temporary Tablespace is Empty"
    Internal call code.........: "[RSQL/FTCH/EBAN ]"
    Please check the entries in the system log (Transaction SM21).
    You may able to find an interim solution to the problem
    in the SAP note system. If you have access to the note system yourself,
    use the following search criteria:
    "DBIF_RSQL_SQL_ERROR" CX_SY_OPEN_SQL_DBC
    "/1BCDWB/SAPLIQG000000000015" or "/1BCDWB/LIQG000000000015U02"
    "/1BCDWB/IQG000000000015EXTR"
    can any one hve idea about the above error.
    With Best  Regards,
    Jaspal

    Hi Jaspal
    Looks like a BASIS issue.
    Check with BASIS, they need to regularly monitor the tablespace and file system, at OS level
    Regards
    Madhan D

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

  • Infoset Query Modification Suggestion

    I'm new to ABAP Infoset and logical database, and need your help.
      I have a query running based on Infoset Z_FI_CHILE_XX(same copy from /SAPQUERY/FI_CHILE_PERU) and logical database SDF. Now I'm trying to modify the selection screen, for example: get rid of 'Fiscal year' and 'Period', and adding 'Posting data' criteria.
      As I can see so far, 'Fiscal year' critieria is from logical database SDF, and 'Period' was adding in Infoset. Please give me some suggestion, should we modified logical database, or you have better solution?
      Also do you have better documentation on how to modify the selection criteria in infoset rather than SAP library?
      Thanks a lot!

    Thanks for all help from you.
      I realised that my problem actually can not be just simply solved by modify the selection screen, since I need selection some periods from one fiscal year, then get some periods from another fiscal year, which two part of periods are not the same. Also I need the sum the total from all the periods that I selected, instead of list them in report.
      My solution is modified the code behind the infoset to control selection in different periods for different fiscal year, then adding the subtotal total section in infoset Query, finally use a menu function(total drilldown) to leave only subtotal sections in report.
      Thanks anyway, if you think there has better solution, please feel free to let me know. I would like to learn from you.

  • Infoset query ('At Selection-Screen') - Urgent

    Hi All,
    The below code for selection criteria 'At Selection-Screen' for an infoset-query works ok, but i find 2 problems, can someone help.
    1. When user presses F4, i wanted the output to display
       SG Singapore
       IN   India
       But at the moment it just displays
       SG
       IN
    2. If the user enters any other value apart from the above 2 i do not want the query to execute, instead show something like enter a valid value. But at the moment if i enter another country code manually just to test eg: US, the query runs with this selection which i do not want.
    Hope my problem is clear, await inputs.
    Code:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR VEN_CTY-LOW.
            IT_LAND-VEN_CTY = 'SG'.
            IT_LAND-LTEXT   = 'Singapore'.
              APPEND IT_LAND.
            IT_LAND-VEN_CTY = 'IN'.
            IT_LAND-LTEXT   = 'India'.
              APPEND IT_LAND.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD   = 'VEN_CTY'
          VALUE_ORG  = 'S'
        TABLES
          VALUE_TAB  = IT_LAND
          RETURN_TAB = IT_RETURN
        EXCEPTIONS
          PARAMETER_ERROR = 1
          NO_VALUES_FOUND = 2.
    IF SY-SUBRC = 0.
        READ TABLE IT_LAND INDEX 1.
        MOVE IT_RETURN-FIELDVAL TO VEN_CTY-LOW.
    ENDIF.

    Hi vivek,
    for the 2nd problem,
    create a range for ingapor and india say r_range.
    and
    r_range will have two values say india, singapore.
    loop at VEN_CTY.
    if ven_cty not in r_range.
    display error message.
    exit.
    endloop.
    try this and let me know.
    reward if helpful.
    thanks .
    ranya

  • Infoset Query Wrong result after removing document number in the drilldown

    Hi Friends,
    I have 2 oDS,billing ODS and Condition ODS.I have created an infoset query based on these two ODS.
    From my Billing ODS i need QTY and from Condition ODS i need Value,Discount etc.
    Since there are more than one record in condition ods for each and every document of billin gods,i have divided the qty using number of records in the query.
    Im getting wrong qty if i run report based on customer or material,but if i drilldown based on document im getting the correct quanity.
    Can any one help me..
    Thanks & Regards
    Sudhakar

    Thnaks Oscar and Ganesh for your interest.
    FYI,my infoset is created based on bill doc and item number which is available in both the ODS.
    Here,for every document in Billing ODS,there are more number of documnets in Condition ODS,so the bill qty is getting added according to the numvber of records in Condition ODS.
    Eg.Billing ODS: Doc Num:100012, Qty = 8.if 10 records are ther in condition ODS,then in the infoset my QTY becomes,
    Doc Num:100012, Qty = 80.
    So in the query i divided it by number of records to get the qty and is coming correctly for documnet wise report.
    Problem comes when i remove documnet from the report and drilldown to higher level,say material,then it is calculated wrongly.
    Your suggestions plz..
    Regards
    Sudhakar

  • Infoset Query - Filter Records

    Dear Experts,
    Please help me in defining in-built filter (by field values) in an Infoset query.
    Regards
    Jogeswara Rao

    Thanks Venu,
    This I am following already.
    But this is not totally fool-proof. If someone uses his own selection screen variant then the setup disturbs.
    If you are referring to ALV layout variant, that does not solve my problem. Because the output just filters the records, but the records are selected, this selection gives rise to a problem here (in some calculations)
    In-fact the filter word in my query, is meant towards Not selecting OR Deleting records of certain field values
    So I want this to be in-built either in Infoset itself or query design.
    (of course, I prefer a way free of code)
    Regards
    Jogeswara Rao
    Any inputs Expers?
    Kind Regards
    Jogeswara Rao
    Edited by: K Jogeswara Rao on May 22, 2011 9:22 AM

  • SQL: Infoset query

    Hi,
        I create on infoset query in SQL trace using LDB.
        Now my problem is, I want to the link text in corresponding value field how to link it.  that screen is customized screen

    Look also at <a href="https://service.sap.com/sap/support/notes/491403">Note 491403 - Identifying text in SAP Query</a> or <a href="http://help.sap.com/saphelp_46c/helpdata/en/d9/9958e0c50a11d396f80000e82de14a/frameset.htm">Application-specific Enhancements</a>
    Regards

  • 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

Maybe you are looking for

  • Open Sales Order Thru Report

    Dear All, I want to write a code, where if I click on in ALV Report or Clasic Report then related Sales order should open in display mode. I have found on the forum, but I could not get it. Regards H P Singh

  • WYSIWYG editor upload with images

    Hello, friends! I need help solving following problem: I need to create WYSIWYG editor, which just to enter text and image. Other options (like font-size, font-weight...) not need. Then when submit the form with richedit, all data in form with images

  • VBA  After_Expand is not working in EVDRE Report

    Hello Everyone, I am working on a report that started redisplaying rows that are grouped and hidden after clicking on expand. I created a sub routine in VBA code that will hide the rows. I then created the After_Expand function to call the subroutine

  • Problem in different mapping according to XPATH in Inteface determination

    Hi Gurus of XI, I have an input and according to a flag in it I need to execute 2 mappings (if flag is 1 -> mapping A else mapping B) and hence post an IDOC [mapping A / B uses the same IDOC]. I have a single sender and a single receiver, hence durin

  • Can I download the source codes of JVM?

    Thanks!