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

Similar Messages

  • Urgent Sql Query Problem - -Very Urgent

    Hi Guys,
    I need a urgent solution for a problem.I am
    using the following query
    select ename from emp where deptno =10
    Now I will declare a bind variable and if user passes 'A'
    then the query will run as it is and if he passes B
    then it should run the above query with this additional clause -> birthdate - hiredate >15.
    Please can any one help its very urgent

    Assuming that you have a birthdate column in your emp table, the following will do what you are asking for:
    VARIABLE bind_var VARCHAR2(1)
    EXECUTE :bind_var := '&bind_variable'
    SELECT ename FROM
    (SELECT 'A' AS selection, ename FROM emp WHERE deptno = 10
    UNION ALL
    SELECT 'B' AS selection, ename FROM emp WHERE deptno = 10 AND birthdate - hiredate > 15)
    WHERE selection = :bind_var
    However, the clause "birthdate - hiredate > 15" will only retrieve rows for employees who were born more than 15 days after they were hired. I doubt that this is what you really want, since this is impossible.

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

  • 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

  • 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

  • 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

  • Transport of infoset query urgent ?

    Hi ,
    any one can help me on this topic..
    i want to transport the infoset query ..
    please any body give the steps....regarding this topic..
    regards,
    goodyear,

    Hi,
    Goto SE10--> Find your request number (F5) -->ensure that you have all the required objects in your transport -->release all the tasks one by one by selecting the request and clicking on the red truck (F9) and finally release the request by selecting it and clicking on the red truck(F9).
    Once you have released it, contact your Basis/Transport Administrators to import into the required target system.
    Cheers,
    Sree

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

  • Query problem(solved)

    hi frs,
    i want to display work_location and office_location in a report.which is in table
    HR_LOCATIONS_ALL
    Which has two location_id
    work location : location_id from per_all_assignments_f &
    office location: location_id from hr_all_organization_units
    how to get both i a have attached the query what i have created but not getting correct values
    Thanks
    Rajesh
    Message was edited by:
    Rajesh.mani
    Message was edited by:
    Rajesh.mani

    What Sarma is basically implying is that we do not care if your problem is an urgent one.. as we, the forum, do not get paid to solve problems here. Forum members assist people in their free time. So why should we care if your problem is urgent? You are in no position to demand a quick response from us.
    Also, by saying that your problem is urgent, you are also saying that other people who have posted problems here, have less urgent and important problems than you. That you and your problem are special and more important than anyone else in this forum.
    Neither of these are acceptable - which is why using the word "urgent" in a posting to a public forum staffed by volunteers, is not acceptable.

  • Infoset-query-selection-screen-default-values

    Hi All,
    I am having the requirement as I need to put default values in the selecion-screen of the report by using  Infoset query. Let me know the settings required for this.
    I am using SQ01, SQ02, SQ03 T.Codes.
    And I need display  one record only if any field contains mulitple records, for example in the HR-ABAP, field p0105-usrid contains multiple values depending on the subtype.So, I need to display USRID when URSTY = '900'. All these should display by Infoset query only.
    Pls help me in this scenario , its an urgent requirement.I am very much thankful for you for reading my proble, if you will provide some sort of solution, I feel very happy.
    Advance thanks for this .
    Regards,
    Prakash.

    Prakash,
    To default the values on your selection screen, you will need to do some ABAP I guess. (if you do not want to use variant). Open up the infioset in SQ02 and then goto code option for the PNP**** field and then you can code to initialize the selection screen variables. Test with an ABAPer.
    To display multiple records as multiple columns, you will have to create custom fields in infoset, and then go from there. Again see ABAPer.

Maybe you are looking for

  • Ipod cannot find my library since I moved it to an external hard drive

    Ipod classic 80gb - Windows XP - HP Notebook - ... I recently moved my itunes music folder (which is exclusively music ripped from my CD collection) to an external hard drive. It was taking up too much space on the C drive. I sorted it all into playl

  • Command link display wrong

    I have a table with a commandLink nested into a column. command link display itemID. When I click the commandLink , it will take me to the item edit page(ADF Dialog). ** The problem is, Sometime I click first item in the table, command link switch to

  • I get slow script message  how do stop this ?

    I get a slow script message how do I stop this ? I read to open terminal app. in utilities folder then cut and paste message to add debug but can't figure how to do that

  • Show zeroes in a control table (Module Pool)

    Hi all. I need showing zeroes in a control table. I declared fields type char in the control table (and in the internal table) and it shows zeroes, but I need declare it type QUAN (control table and internal table). With all types (except CHAR) I cou

  • Need HP fax history past last 30 for HP OfficeJet v40 anyone know how?

    I have an HP OfficeJet v40 and need the complete fax history past the last thirty you can print off the standard report on the machine itself. Does anyone know how to get into the full memory of fax transactions? I have tried to find a route via the