DAX - Grouping by 2 different fields in 1

Hi,
Imagine a table that has persons. Persons have a set of attributes like Father and Mother profession. In each of the fields, the contents are on the same context, you can have a person that has a father or mother that is a doctor, engineer or teacher.
Imagine this set of data now:
Name: Michael - Father Profession: Doctor -
Mother Profession: Teacher
Name: John - Father Profession: engineer - Mother Profession: Teacher
Name: Sarah - Father Profession: Doctor - Mother Profession: engineer 
Name: Connor - Father Profession: engineer - Mother Profession: Teacher
What I want is to group the 2 profession fields to count the number of people that has a father /mother of that profession, so In the end the result has to be like this (3 fields) -
using DAX expressions
Doctor: 2 on Father  0 on Mother
Engineer: 2 on father 1 on mother
Teacher: 0 on father 3 on mother
Thank you

Hi Pedro,
According to your description, you want to group number of fathers and mothers on Profession based on your source data. Right?
In Analysis Services Tabular, there's no function to pivot the result set in DAX. For your requirement, the most effective workaround is calculate the result on T-SQL query level. Then return retrieve it into Tabular. Please refer to the query below:
create table #temp1(
name nvarchar(50),
parent nvarchar(50),
profession nvarchar(50))
insert into #temp1 values
('Mike','Father','Doctor'),
('Mike','Mother','Teacher'),
('John','Father','Engineer'),
('John','Mother','Teacher'),
('Sara','Father','Doctor'),
('Sara','Mother','Engineer'),
('Connor','Father','Engineer'),
('Connor','Mother','Teacher')
WITH Cte AS(
select profession,parent,count(1) count from #temp1 group by profession,parent
SELECT profession,isnull([father],0) father,isnull([mother],0) mother FROM Cte
pivot
sum(count) for parent in([father],[mother])
) as pvt
Best Regards,
Simon Hou
TechNet Community Support

Similar Messages

  • Is it possible to order a group by a different field

    I have a report that groups everything perfectly by Type.  The issue I am having is trying to order the values returned in each grouping by a different field in the returned data, it is a number.
    Is it possible to sort a group based on a field in the returned data, without having to create another group?

    Never mind, just made the the second field a sub group

  • Different field groups in the different account groups

    Dear IT Experts,
    I´m working on restructuring authorization in roles concerning the IC and TP customers.
    The goal of this changes is be able to have different field groups in the different account groups (TP and IC), for give you some more detail a good example can be, the same AMS user should be able to change general data and sales views for TP customers  but for IC he should only be allowed to change the sales views, however when the changes are made in the roles they are being ignored because as far as I could check the system does not have as a rule that the field groups are or can be dependent from the account group...
    I can give you a clear example:
    Role A
    F_KNA1_AEN -> VGRUP = 10-16
    F_KNA1_GRP -> ACTVT = 01, 02, 03
    F_KNA1_GRP -> KTOKD = INTR
    Role B
    F_KNA1_AEN -> VGRUP = 16
    F_KNA1_GRP -> ACTVT = 01, 02, 03
    F_KNA1_GRP -> KTOKD = THIR
    Despite it looks fine, the system is not validating the account group with the correspondent field group in each role, so the field groups that the system use is unique, it means it the content of the object F_KNA1_AEN in total independently of used account group!
    So my question is, can we apply any other object that makes the field group being directly depending of the account group, as we can see for example activities for each account group having something similar for field group and account group?
    Can someone please explain me step-by-step how I can do this work even if by another method?
    I´m quite new on this issues and I really need your wisdom to find a solution for this.
    Many thanks
    Katjia

    Hi Manoj
    The debate is each inidividual business unit has defined different account groups for the same vendor in their respective systems.
    The question is : What is the best practice-- Should we keep Vendor account group as main table field and define Vendors with one unique account groups OR we maintain the account group in qualified table each pointing to different business unit.
    In my opinion this is going to be very complex solution. Ideally we need to define all the Harmonization rules before syndicating data to different target systems.
    Is this possibel that the same vendor record which is existing as vendor of different account groups in different systems have same set of attributes. If yes then enabling the remote key for Account group Lookup field is one option and defining a unique Account group 'AG" (which is mapped to say AG1 from remote system1, AG2 from remote system2 and so on..)..
    Managing this via Qualified table will be very complex and not advisabel. As Rajesh also mentioned Account Group in MDM should be considered as Global attribute and all such harmonization rules should be defined in your project. AG1=AG2=AG in above exmaple.
    Hope this clarifies.
    Thanks-Ravi

  • How do I insert multiple values into different fields in a stored procedure

    I am writing a Stored Procedure where I select data from various queries, insert the results into a variable and then I insert the variables into final target table. This works fine when the queries return only one row. However I have some queries that return multiple rows and I am trying to insert them into different fields in the target table. My query is like
    SELECT DESCRIPTION, SUM(AMOUNT)
    INTO v_description, v_amount
    FROM SOURCE_TABLE
    GROUP BY DESCRIPTION;
    This returns values like
    Value A , 100
    Value B, 200
    Value C, 300
    The Target Table has fields for each of the above types e.g.
    VALUE_A, VALUE_B, VALUE_C
    I am inserting the data from a query like
    INSERT INTO TARGET_TABLE (VALUE_A, VALUE_B, VALUE_C)
    VALUES (...)
    How do I split out the values returned by the first query to insert into the Insert Statement? Or do I need to split the data in the statement that inserts into the variables?
    Thanks
    GB

    "Some of the amounts returned are negative so the MAX in the select statement returns 0 instead of the negative value. If I use MIN instead of MAX it returns the correct negative value. However I might not know when the amount is going to be positive or negative. Do you have any suggestions on how I can resolve this?"
    Perhaps something like this could be done in combination with the pivot queries above, although it seems cumbersome.
    SQL> with data as (
      2        select  0 a, 0 b,  0 c from dual   -- So column a has values {0, 1, 4},
      3  union select  1 a, 2 b, -3 c from dual   --    column b has values {0, 2, 5},
      4  union select  4 a, 5 b, -6 c from dual ) --    column c has values {0, -3, -6}.
      5  --
      6  select  ( case when max.a > 0 then max.a else min.a end) abs_max_a
      7  ,       ( case when max.b > 0 then max.b else min.b end) abs_max_b
      8  ,       ( case when max.c > 0 then max.c else min.c end) abs_max_c
      9  from    ( select  ( select max(a) from data ) a
    10            ,       ( select max(b) from data ) b
    11            ,       ( select max(c) from data ) c
    12            from      dual ) max
    13  ,       ( select  ( select min(a) from data ) a
    14            ,       ( select min(b) from data ) b
    15            ,       ( select min(c) from data ) c
    16            from      dual ) min
    17  /
    ABS_MAX_A  ABS_MAX_B  ABS_MAX_C
             4          5         -6
    SQL>

  • How to creat a Data provider  based on different fields in SAP BW ?

    Hi,
    Experts,
    There are  20 fields  of  Plant Maintainace  like : 
    SWERK
    BEBER
    STORT
    TPLNR
    EQUNR
    INGRP
    QMDAT   ---peroid
    STTXT
    QMDAT  - Date of Notification
    QMNUM
    QMTXT
    QMART
    AUSVN
    AUZTV
    AUSBS
    AUZTB
    AUSZT
    ERNAM
    QMDAB
    AUFNR
    I  want to creat a  Report based upon these fields  ?
    For that I h'v  checked the relevant Fields to the   existing standard  Datasource  in Bw side   &
    Checked  cubes   created  based upon these Datasource  in Bw side !
    i h'v found  some fields are  existing different cubes & some are  missing .
    How to creat a Data provider  based on different fields in SAP BW ?
    plz suggest      !!!!!!!
    Thanx,
    Asit
    Edited by: ASIT_SAP on Jul 15, 2011 6:25 AM
    Edited by: ASIT_SAP on Jul 15, 2011 6:27 AM
    Edited by: ASIT_SAP on Jul 15, 2011 12:37 PM

    Hi Lee, Please see below..
    DECLARE @Machine2 TABLE
    DispatchDate DATE
    INSERT INTO @Machine2 VALUES ('2014/02/01'), ('2014/02/02'), ('2014/02/03')
    DECLARE @DateFrom DATE
    SELECT @DateFrom = DATEADD(D,1,MAX(DispatchDate)) FROM @Machine2
    SELECT @DateFrom AS DateFrom
    Please mark as answer, if this has helped you solve the issue.
    Good Luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles.

  • How to get different field in two are more different table using open sql

    Dear all,
              This SenthilMani am very new into sap abap am having doubt in reports how get the different fields from different tables like mara,marc,mard using open sql and native sql program give me some tips to get the data .
    with regards,
    senthil

    HI ,
      1) If u want to select data from more the two table then u can use FOR ALL ENTRIES.
             EX ..Open sql
                       select matnr from mara into table t_mara.
                      select matnr werks from marc into table t_marc for all entries in t_mara where matnr = t_mara-matnr.
      2) U can join more than one table.
               ex:
                   select mara~matnr
                              marc~werks
                    from mara join marc into table t_maramarc
                     on maramatnr = marcmatnr
    3) Using  native sql  ...only u can use JOIN statement

  • Formula that looks at two different fields

    Hi,
    I posted this request for help not too long ago but didn't clearly explain what is needed. 
    When text is entered into a field (currentgoal1, currentgoal2 - each equaling 1), the formula needs to look at a different field (point1, point 2 - each holds a list box of with points 1, 3, 5, or NA) to see if "NA" was chosen.  If NA was chosen (rather than a point, 1, 3, 5) then the goalcount (total number of populated currentgoal fields) needs to subtract 1 from goalcount.  
    currentgoal 1 = 1 point
    currentgoal 2 = 1 point
    currentgoal 3 = NA
    3 goals, 2 points, 1 point field with NA
    Since one of the current goals is has a point of NA, the overall count of currentgoals in the goalcount field (total number of populated currentgoal fields) should state 2 with the totalpoints field (all points fields added together) stating 2. 
    How can the formula be adjusted to subtract a currentgoal with a chosen point of NA? 
    Formula used now for counting current goals:
    goalcount = 0
    != null){
    = goalcount + 1;
    != null){
    = goalcount + 1;
    (Table3.Row3.currentgoal3.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row4.currentgoal4.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row5.currentgoal5.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row6.currentgoal6.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row7.currentgoal7.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row8.currentgoal8.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row9.currentgoal9.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row10.currentgoal10.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row11.currentgoal11.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row12.currentgoal12.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row13.currentgoal13.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row14.currentgoal14.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row15.currentgoal15.rawValue!= null){
    = goalcount + 1;
    = goalcount;
    this.rawValuegoalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    if
    goalcount
    (Table3.Row2.currentgoal2.rawValue
    if
    goalcount
    (Table3.Row1.currentgoal1.rawValue
    if
    var

    Sorry, I was trying to edit. Is this better?
    var 
    goalcount = 0
    if
    (Table3.Row1.currentgoal1.rawValue
    != null){goalcount
    = goalcount + 1;}
     if(Table3.Row2.currentgoal2.rawValue!= null){goalcount
    = goalcount + 1;}
     if(Table3.Row3.currentgoal3.rawValue!= null){goalcount
    = goalcount + 1;}
    this.rawValue= goalcount;

  • Different field mode(display/change) in sales order payment terms (VA02)

    Hello All,
    In the VA02 transaction, when we are changing the sales orders, in the billing document of that material shows different modes for different fields.
    VA02->DOUBLE CLICK ON THE MATERIAL->BILLING DOCUMENT->FIELD PAYMENT TERMS.
    For some orders, field is in display mode and for some orders, it is in changeable mode.
    Could anyone please let me know about this..?
    thanks and regards,
    MERVIN

    Dear Jignesh
    As you would be aware Payment Terms will flow in SO both at header level and at item level.
    So in order to control the item level changes, go to VOV7, select the item category and untick the box [Business Item]   By doing so, whatever header level datas flows into SO, that will be copied to item level also and you will be controlling the changes at item level and end users cannot make changes at item level.
    Now you have to control at header level for which you have to apply User exits in the program MV45AFZZ - USEREXIT_MOVE_FIELD_TO_VBAK
    thanks
    G. Lakshmipathi

  • Split data into different fields in TR

    I have a flat file with space (multiple spaces between different fields) as a delimiter. The problem is, file is coming from 3rd party and they don't want to change the separator as comma or tab delimited CSV file. I have to load data in ODS (BW 3x).
    Now I am thinking to load line by line and then split data into different objects in Transfer rules.
    The Records looks like:
    *009785499 ssss BC sssss 2988 ssss 244 sss 772 sss  200
    *000000033 ssss AB ssss        0  ssss   0 ssss 0 ssss 0
    *000004533 ssss EE ssss        8  ssss   3 ssss 2 ssss 4
    s = space
    Now I want data to split like:
    Field1 = 009785499
    Field2 = BC
    Field3 = 2988
    Field4 = 244
    Field5 = 772
    Field6 = 200
    After 1st line load, go to 2nd line and split the data as above and so on. Could you help me with the code pleaseu2026?
    Is it a good design to load data? Any other idea?
    I appreciate your helps..

    Hi,
    Not sure how efficient this is, but you can try an approach on the lines of this link /people/sap.user72/blog/2006/05/27/long-texts-in-sap-bw-modeling
    Make your transfer structure in this format. Say the length of each line is 200 characters. Make the first field of the structure of length 200. That is, the length of Field1 in the Trans Struc will be 200.
    The second field can be the length of Field2 as you need in your ODS, and similarly for Field3 to Field6. Load it as a CSV file. Since there are no commas, the entire line will enter into the first field of the Trans Structure. This can be broken up into individual fields in the Transfer Rules.
    Now, in your Start Routine of transfer rules, write code like this (similar to the ex in the blog):
    Field-symbols <fs> type transfer-structure.
    Loop at Datapak assigning <fs>.
        split <fs>-Field1 at 'ssss' into <fs>-field1 <fs>-field2 <fs>-field3....
        modify datapak from <fs>
    endloop.
    Now you can assign Field1 of Trans Struc to Field1 of Comm Struc, Field2 of Trans Struc to Field2 of Comm Struc and so on.
    Hope it helps!
    Edited by: Suhas Karnik on Jun 17, 2008 10:28 PM

  • How to map different fields to same repeating/Same field in XSD

    Hi,
    I am using the Transform activity in a BPEL Process, my source is a Database table and the target is the and XSD file.
    Now the requirement is to map 3 different fields from source to a single field in the XSD.
    In the final xml file the tag name would be the same and will repeat 3 times but with different value for attribute and values with 3 diiferent columns/fields from database.
    How can achive this kind of mapping. Do i need to use some functions etc for that? please guide
    regards

    To answer "What does "<ns1:Code>" and "<ns1:Id>" indicate? are they fields in the DB table or XSD Schema?".
    The transformation is from Source(database) to target(an XML file).
    "<ns1:Code>" and "<ns1:Id>" are tags/fields in the outbound XML.
    <dbcolumn1>,<dbcolumn2> and <dbcolumn3> are database columns.
    I have removed the "ns1:" and also the Condition to make the code easy to read. Hope it helps. You could remove the condition and see how it goes when trying out in your project.
    <xmltag1_non repeating>
    <xsl:choose>
         <xsl:when test="SOME CONDITION" >
         <xml_tag2_repeating>
              <xsl:if test="SOME CONDITION">
                   <Code>
                   <xsl:value-of select="string(&quot;SOME VALUE 1 &quot;)"/>
                   </Code>
              </xsl:if>
              <xsl:if test="SOME CONDITION">
                   <Id>
                   <xsl:value-of select="dbcolumn1"/>
                   </Id>
              </xsl:if>
         </xml_tag2_repeating>
         </xsl:when>
    </xsl:choose>
    <xsl:choose>
         <xsl:when test="SOME CONDITION" >
         <xml_tag2_repeating>
              <xsl:if test="SOME CONDITION">
                   <Code>
                   <xsl:value-of select="string(&quot;SOME VALUE 2 &quot;)"/>
                   </Code>
              </xsl:if>
              <xsl:if test="SOME CONDITION">
                   <Id>
                   <xsl:value-of select="dbcolumn2"/>
                   </Id>
              </xsl:if>
         </xml_tag2_repeating>
         </xsl:when>
    </xsl:choose>
    <xsl:choose>
         <xsl:when test="SOME CONDITION" >
         <xml_tag2_repeating>
              <xsl:if test="SOME CONDITION">
                   <Code>
                   <xsl:value-of select="string(&quot;SOME VALUE 3 &quot;)"/>
                   </Code>
              </xsl:if>
              <xsl:if test="SOME CONDITION">
                   <Id>
                   <xsl:value-of select="dbcolumn3"/>
                   </Id>
              </xsl:if>
         </xml_tag2_repeating>
         </xsl:when>
    </xsl:choose>
    </xmltag1_non repeating>

  • Amount in document currency & group currency is different

    dear all,
    In my company i have been activated material ledger & parallel currency. I want to make sure is my setting is correct or not and i want give the example:
    <b>Material master data:</b>
    MAV material :
    Company code currecny : 20000 IDR
    Group currency : 2 USD
    <b>Purchase Order (foreign currency)</b>
    PO currency : 2 USD
    Qty order : 10 PC
    <b>Result of FI document on GR transaction(Exchange rate : 9000):</b>
    Document Currency
    Inventory 22,22 USD 200000 IDR
    GR/IR 20 USD 180000 IDR
    ML 2,22 USD 20000 IDR
    Group Currency
    Inventory 20 USD 200000 IDR
    GR/IR 20 USD 180000 IDR
    ML 20000 IDR
    My assumption, calculate to get amount inventory in document currency & group currency is different,
    Document currency:
    <u>Previous MAV (IDR) * Qty GR</u>
    Current Exchange rate
    Group Currency :
    Previous MAV (USD) * Qty GR
    My question is it correct, amount in document currency & group currency is different. If not correct there is other config to setting that.
    Thanks for your help..

    see if you have maintain the PO in the some other currency and your local currency is different from the Po currency  and if you have maintain in the excahnge rate for the same then the system will calculate the price in both currency and yoy can choose <b>1SAP Amount in document and local currency</b>  and if you want to display in the group currency  then maintain the exchange rate and  craete the layout and save that you can display in that cureency while you do the invoice  the system will show the accounting documents in that way on chossing the correct layout.
    Regards
    sunny

  • Group managers and Contributors fields are randomly cleared out in Terms Store Management Tool

    Is there any explanation or how to solve this problem?
    Group managers and Contributors fields are randomly cleared out in Terms Store Management Tool in SharePoint 2010.
    Any ideas? Thanks!

    Hi arevsun, 
    For this issue, I'm trying to involve someone familiar with this topic to further
    look at it. 
    Thanks,
    Eric Tao
    TechNet Community Support

  • Facing problem in getting data in different field

    hi,
    i have made a report in ALV format. n the whole code is this..
    TABLES: VBAK,vbap.
    type-pools: slis.       "ALV Declarations
    SELECT-OPTIONS:
    s_sales   for    vbak-kunnr    obligatory,
    s_date    for    VBAK-audat    obligatory.
    *Data Declaration
    types: begin of s_sales,
      kunnr like vbak-kunnr,
      ernam like VBRP-ernam,
      audat like VBAK-audat,
      aufnr like VBAK-aufnr,
      KBMENG like vbap-KWMENG,
      matnr like vbap-matnr,
      matwa like vbap-matkl,
      end of s_sales.
    DATA: IT_VBAKUK TYPE STANDARD TABLE OF s_sales INITIAL SIZE 0,
          WA_sales TYPE s_sales.
    *ALV data declarations.
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid.
    *start-of-selection.
    START-OF-SELECTION.
      perform data_retrieval.
      perform build_fieldcatalog.
      perform build_layout.
      perform display_alv_report.
    *&      Form  build_fieldcatalog
          text
    form build_fieldcatalog.
      fieldcatalog-fieldname   = 'KUNNR'.
      fieldcatalog-seltext_m   = 'Customer Code'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'ernam'.
      fieldcatalog-seltext_m   = 'Customer Name'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'stadat'.
      fieldcatalog-seltext_m   = 'Order Date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'aufnr'.
      fieldcatalog-seltext_m   = 'Order No'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'KWMENG'.
      fieldcatalog-seltext_m   = 'Quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'matnr'.
      fieldcatalog-seltext_m   = 'Material Code'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'matkl'.
      fieldcatalog-seltext_m   = 'Material Description'.
      fieldcatalog-col_pos     = 7.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    "build_fieldcatalog
    *&      Form  build_layout
          text
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
    endform.                    "build_layout
    *&      Form  display_alv_report
          text
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = gd_repid
          is_layout          = gd_layout
          it_fieldcat        = fieldcatalog[]
          i_save             = 'X'
        TABLES
          t_outtab           = IT_VBAKUK
        EXCEPTIONS
          program_error      = 1
          others             = 2.
      if sy-subrc <> 0.
      endif.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  data_retrieval
          text
    form data_retrieval.
      select vbakkunnr VBakernam VBAkaudat vbakaufnr vbapKWMENG vbapmatnr vbap~matkl
      up to 10 rows
        from vbak inner join vbap on vbakvbeln = vbapvbeln
        into table IT_VBAKUK.
    endform.                    "data_retrieval
    When a execute this query it get this result:
    Customer code Customer No. Order Date      *Order No. *        *Quantity *        Material code  Material Description
    0000001390     0000001390     0000001390     0000001390     0000001390     0000001390     0000001390
    0000001175     0000001175     0000001175     0000001175     0000001175     0000001175     0000001175
    0000001175     0000001175     0000001175     0000001175     0000001175     0000001175     0000001175
    0000001175     0000001175     0000001175     0000001175     0000001175     0000001175     0000001175
    0000001175     0000001175     0000001175     0000001175     0000001175     0000001175     0000001175
    0000001001     0000001001     0000001001     0000001001     0000001001     0000001001     0000001001
    0000002200     0000002200     0000002200     0000002200     0000002200     0000002200     0000002200
    0000002200     0000002200     0000002200     0000002200     0000002200     0000002200     0000002200
    0000002200     0000002200     0000002200     0000002200     0000002200     0000002200     0000002200
    0000002200     0000002200     0000002200     0000002200     0000002200     0000002200     0000002200
    You can see in all column data is repeating even tough i have given different field name...
    Kindly give me solution of this problem.
    Thanks n Regards.

    hi,
    i have these field:
    *select VBAK~KUNNR VBAK~ERNAM VBAK~AUDAT VBAK~AUFNR VBAP~KWMENG VBAP~MATNR VBAP~MATKL
      up to 10 rows
        from VBAK inner join VBAP on VBAK~VBELN = VBAP~VBELN
        into table IT_VBAKUK.
    endform.*
    I want to add these field in my parameter by using WHERE clause but don't know how to restrict these field using where clause.
    Kindly give me some example related to this.
    Regards

  • How different fields linked with Application Utilities Lookups

    Hi,
    I need to know how different fields at different forms are linked with utilities lookups and pick the values(meaning)?
    For example #1;
    at Organization form, Type of organization is must to define, value of Type comes from Utilities lookups. Type field name is ORGANIZATION_TYPE (Help ---Diagonestics --- Examine), if we try to search the ORGANIZATION_TYPE in utilities lookups we will not find it, we will find if we enter in front of type ORG_TYPE and search then system displays all the codes and meanings defined in the system.
    #2;
    at People -- Additional Information form, Nationality is defined which is picked up from utilities lookups. Nationality field name is LOC_ITEM08 (Help ---Diagonestics --- Examine), if we try to search the LOC_ITEM08 in utilities lookups we will not find it, we will find if we enter in front of type NATIONALITY and search then system displays all the codes and meanings defined in the system for different nationalities.
    my question, what's the relationship b/w
    ORGANIZATION_TYPE to ORG_TYPE
    LOC_ITEM08 to NATIONALITY
    I hope that my question is simple and you guys understand it. Please reply soon.
    Regards,

    Hi
    There is no link between the block/field name you see in help->examine and the application utilities lookup type. I'm afraid this is just something you have to learn as you go!
    Regards
    Tim

  • Account assignment for group asset is different from that in asset

    Dear experts,
    I have creted one main asset . and i have created group asset. and my main asset class and group asset class are both are different.If i continue that error assets are shoud be craeted .but the depreciation key and usefull life and ordinary depreciation will going and it's showing grey.
    My question at the time of assighning the group asset for the particular assets the below error is comming.
    Account assignment for group asset is different from that in asset
    Message no. AA810
    Diagnosis
    The account allocation 14000 of the group asset 140000001 0 is different from account allocation 1000 of the asset.
    System Response
    This error needs to be corrected for balance sheet valuation (usually determined in depreciation area 01). For all other depreciation areas, this is only a warning you should check.
    Procedure
    Check your entry. When an individual asset has a different account assignment than the group asset, it is not possible to reconcile the individual asset to the group asset in reporting by means of accounts.
    kindly help on this issue
    regards
    venkataswamy

    Hi sudhakar
    Thanks for your reply
    1) for example i have buliding asset class and i have one group asset class.under the building asset account determination i have assighned the gl a/c for both b/s and book deprecitaion
    In groups asset class also i have done same things. i have craeted asset under building asset class and created one asset under group assets.
    then assighned the group asset to main assets. the error is comming like this Account assignment for group asset is different from that in asset
    I have serched in sdn forum and service .sap.com . they are saying you can use same gl a/c for both asset class.for depreciation .i have tried this scenario. still i am getting the same error and same problem.
    The most important thing is we are working on ECC 6 versions
    sap note 76186.
    Kindly help me
    Regards
    venkataswamy
    Edited by: venkataswamy bathini on Jul 6, 2009 9:22 AM

Maybe you are looking for

  • How to connect HP Pavilion to HD TV as monitor

    Bought an HP Pavilion P6204Y approx Dec 2009. Would like to attach the PC to my Panasonic TV as it's monitor (just got rid of cable). PC only has VGA & S out. TV only has S and HDMI in. YouTube says to use DVI to HDMI. Can I add DVI to this PC or am

  • Why can 't I log in college cengage?

    why can't i log in my college cengage?

  • Weblogic Server Crash on accessing service bus console from remote

    Please help me out here. Thanks. Error Message: <2009-01-28 16:05:50 CET> <Warning> <netuix> <BEA-423430> <The portal <directive.page> element has been deprecated. You can set the page encoding on the <netuix:desktop> element.> <2009-01-28 16:05:51 C

  • Parental controls

    Since "Parental control" on Leopard is currently "busted", see thread: http://discussions.apple.com/thread.jspa?threadID=1618967&start=0&tstart=0 What are some other effective 3rd party parental control apps available that is recommended? I've done g

  • Some blank WebI report sent by publication

    Hello I'm working on BO XI 3.1 SP2. I have created two webi documents. The first one contains a report used to list the dynamic recipients of mail. This report is filled and display : Ids, Full Name, destination mail adress. It contains undreds of re