Rename data if.....allowing me to group up....

Post Author: Stuart
CA Forum: Formula
Dear All, I have been creating some useful reports in crystal but I can't seem to work out how to do the following. I need a statement that can do two things, If data in field 1 is equal to "100100" and data in field 2 begins with Name1 then rename "Name1" to "Name2". Essentially my data has long names and I just want to be able to group in certain ways. The above will really help me achieve this. I have tried a formula to do this but I was unsuccessful. Hope someone can assist, Many thanks, Stuart

Post Author: Stuart
CA Forum: Formula
Hi
I am trying to amend your forumla to get this working;
if({Tab.NAME} like "Name1" ) then "GroupA" or if({Tab.NAME} like "Name2" ) then "GroupB" or if({Tab.NAME} like "Name3" ) then "GroupC" or if({Tab.NAME} like "Name4" ) then "GroupD" orelse {Tab.NAME}
I get the error "A boolean is required"
Hope you can help.
Also how can I manipulate the above code to enter the "GroupA" in a completely seperate field and leave the data in NAME the same.  I could then use thiis new field to group.
Many thanks,
Stuart

Similar Messages

  • Grouped data being split into single groups.

    I’m using DIAdem 10.0 and LabView 8.2. Trying to simulate a multi channel DAQ system, saving data as tdms. When using DIAdem Data Portal to load tdms data, the data come is as 1 Group (multi channels in one group) but when I use LabView and DIAdem to open / read / create report the data is loaded into DIAdem as multiple groups. One can use the LabView examples to reproduce this issue. Can someone help with some code that will open / read / create reports that keeps multi channel data as a single group? This will make it much easier to create a tdr template for multi page reports.
    thanks

    Hey Zilla,
    The issue you are mentioning is expected behavior for the Express Report VI.  This VI was created primarily for customers that wanted to create a report on the fly when streaming data. It does not work as well when using multi page report templates.  I would recommend downloading and installing the DIAdem connectivity VIs which I have linked below.  When you install these VIs, there will be a DIAdem palette that shows up under the connectivity palette within LabVIEW.  In this palette is an express VI that I think will work better for you.  The DIAdem connectivity VIs in general are very powerful and allow many options.  You can run scripts within DIAdem from LabVIEW, export to PDF, and do several other things.  I have posted an example below that should provide similar functionality to the Report VI, but it will work as you would expect with multi page reports. You will have to install the DIAdem connectivity VIs before running this example.  Hope this helps!
    DIAdem Connectivity VIs
    Pat P.
    Software Engineer
    National Instruments
    Attachments:
    DIAdem example.zip ‏53 KB

  • How to change config to allow posting to group currency field

    Hi,
    I am experiencing a problem whereby the asset for my local currency (USD) is different from my group currency (USD). There are many wrong postings causing this difference.
    And it is too late & tedious to do all the correction.
    Area 01 Local Currency (USD)
    Area 03 Group Currency (USD)
    However, I would like to do a posting to asset in both loc & group currency. My current config does not allow changes to group currency field when posting a transaction to an asset. It is grey off. System auto generate the figure.
    How to I change the config so that I can also input a different figure for the group currency ?
    Please help urgently.
    Thanks.
    Angel

    Hello,
    I contact you because I need to maintain a "Person Group" (PERS_GROUP in ADRP table) for 1 sales organization (SD module), but I have no idea how to do that... I checked the customer master data views (transaction XD02) but I did not find anything...
    Do you know which transaction I should use?
    Thanks a lot in advance!

  • Error in CJ88  Posting transaction is not possible (value date not allowed)

    When i try CJ88 with a wbs element, it shows the following error :
    Posting transaction is not possible (value date not allowed)
    Message no. AA 478
    Diagnosis
    A retirement was already posted on the asset 000022400733 0041 on 20091231. Based on the value date 20091231 of the transaction, this transaction should have been included in the calculation of values for the retirement.
    System Response
    The transaction is rejected.
    Procedure
    Check the value date of the transaction.
    In need to put year 2009 in date of the transaction, but it isnt posible. ¿Why? I dont know very much about asset accounting...

    Hi
    It is not allowing for WBS element final settlement, because of your asset already retairement was done.
    By best suggetion is, You will create the new WBS element and transfer the all cost line items from old WBS element to new WBS element, then you will try to settlement for another asset in CJ88.
    I hope it will use for you.
    Regards
    PVCPVC

  • How to see data fetched in a field group.

    Hi All,
    Is there any possibility to see data selected in a field group?
    attached is the source code.
    I need to see the data within loop -endloop
    REPORT  ZFIELDGROUP LINE-SIZE 132 LINE-COUNT 65(3)  NO STANDARD PAGE HEADING.
    TABLES:SPFLI,SCARR, SFLIGHT, SBOOK.
    SELECT-OPTIONS: MYCARRID FOR SPFLI-CARRID.
    FIELD-GROUPS: HEADER, SPFLI_FG, SFLIGHT_FG, SBOOK_FG.
    INSERT:
            SPFLI-CARRID
            SPFLI-CONNID
            SFLIGHT-FLDATE
            SBOOK-BOOKID
           INTO HEADER,
            SPFLI-CARRID
            SPFLI-CONNID
            SPFLI-CITYFROM
            SPFLI-AIRPFROM
            SPFLI-CITYTO
            SPFLI-AIRPTO
            SPFLI-DEPTIME
            SCARR-CARRNAME
          INTO SPFLI_FG,
            SFLIGHT-FLDATE
            SFLIGHT-SEATSMAX
            SFLIGHT-SEATSOCC
            SFLIGHT-PRICE
          INTO SFLIGHT_FG,
            SBOOK-BOOKID
            SBOOK-CUSTOMID
            SBOOK-CUSTTYPE
            SBOOK-SMOKER
           INTO SBOOK_FG.
    SELECT * FROM SPFLI WHERE CARRID IN MYCARRID.
      SELECT SINGLE * FROM SCARR WHERE CARRID = SPFLI-CARRID.
      EXTRACT SPFLI_FG.
      SELECT * FROM SFLIGHT
       WHERE CARRID = SPFLI-CARRID AND  CONNID = SPFLI-CONNID.
        EXTRACT SFLIGHT_FG.
        SELECT * FROM SBOOK
               WHERE CARRID = SFLIGHT-CARRID AND
               CONNID = SFLIGHT-CONNID AND FLDATE = SFLIGHT-FLDATE.
          EXTRACT SBOOK_FG.
          CLEAR SBOOK.
        ENDSELECT.
        CLEAR SFLIGHT.
      ENDSELECT.
      CLEAR SPFLI.
    ENDSELECT.
    SORT.
    LOOP.
      AT SPFLI_FG.
        FORMAT COLOR COL_HEADING.
        WRITE: / SCARR-CARRNAME,
                 SPFLI-CONNID, SPFLI-CITYFROM,
                 SPFLI-AIRPFROM, SPFLI-CITYTO, SPFLI-AIRPTO, SPFLI-DEPTIME.
        FORMAT COLOR OFF.
      ENDAT.
      AT SFLIGHT_FG.
        WRITE: /15 SFLIGHT-FLDATE, SFLIGHT-PRICE, SFLIGHT-SEATSMAX,
                   SFLIGHT-SEATSOCC.
      ENDAT.
      AT SBOOK_FG.
        WRITE: /30 SBOOK-BOOKID, SBOOK-CUSTOMID,
                     SBOOK-CUSTTYPE, SBOOK-SMOKER.
      ENDAT.
    ENDLOOP.
    *&      END OF REPORT                                                  *

    Hey Gurmahima ,
    This is sample code for Selecting and deselecting all the checkboxes .
    All you have to do is Set a pf-status and follow the code logic .
    Here w_check is the check box field , w_line is the line your raeding and w_lines is the total number of lines(entries ) you have in table .
    set pf-status 'SELECT' .
    case sy-ucomm .
        when 'SELECTALL' .
          set pf-status 'SELECT' excluding 'SELECTALL' immediately.
          w_line = w_line + 3  .
          do w_lines times .
            read line w_line field value w_check .
            if w_check = space .
              w_check = 'X' .
              modify line w_line field value w_check.   
              add 1 to w_line .
            endif .                        " IF W_CHECK = ' '
          enddo .                          " DO W_LINES TIMES
          clear w_line .
        when 'DESELECT' .
          set pf-status 'SELECT' excluding 'DESELECT' immediately.
          w_line = w_line + 3  .
          do w_lines times .
            read line w_line field value w_check .
            if w_check = 'X' .
              w_check = space .
              modify line w_line field value w_check .
              add 1 to w_line .
            endif .                        " IF W_CHECK = 'X' .
          enddo .                          " DO W_LINES TIMES
          clear w_line .
    Hope you get it!
    Much Regards ,
    Amuktha .
    Edited by: Amuktha Naraparaju on Feb 5, 2009 6:22 AM

  • Renaming a function in  a function group

    Hi,
    I'm trying to rename a function in a function group, and I keep getting
    Object components locked in request and separate task
    It was decided the Function group should be called a different name, and so I copied the function group, and then copied all the functions with a new name.
    Now in the original Function Group I want to rename the functions, so I can use the correct names in the new function group - or is there a faster way of renaming a function group?
    Thanks

    You are not able to rename original function group / modules because they are also locked in another task of same transport.
    Goto SE09, give the transport no and see the details of transport.
    There must be multiple tasks - may be some other developers are using same transport.
    So you need to change task owner to your id and then rename fm . function group.
    Pls make sure that you are not disturbing other developer's development as you all are sharing the transport.

  • ABUMN-error "Posting transaction is not possible (Value date not allowed)"

    Hi,
    When we are trying to transfer asset within company code thru Tcode ABUMN, we are getting a error as
    "Posting transaction is not possible (Value date not allowed)"
    What actually we are doing is we are trying to transfer the previous year asset for example say 01.04.2007 assets on today.
    the Parameters are as below
    Document date :26.03.2008
    Posting Date :26.03.2008
    Asset value date is 01.04.2007.
    Then the system is throwing an error and not alloing to post the previous year transfers.
    Can any one help me out.
    Cheers
    Sri

    Hi,
    I think, if you give old asset value date, system will give you the error.  This may be because, you are trying to transfer the assets with old values, means in your examble the dep. from the 01.04.2007 to 29.02.2008 whould have been charged.
    So, give the current year date means any date from 01.01.2008 to till date.
    If you read F1 help for the value date column, it states,
    Asset value date
    The asset value date is the value date for Asset Accounting. It can deviate from the posting and document date and be in posting periods already closed for Financial Accounting. However, the posting year and asset value date year must be the same.
    Since the asset value date can have a direct influence on the amount of depreciation, the system creates a default value when it can. You can specify in Customizing how the the default asset value date is  determined by the system.
    Hope it helps
    Saravanan.A

  • Error AA168 Ord.dep.start date not allowed in dep.area 60 (Please correct)

    Hi experts,
    We upgraded to ECC6 from 4.7 version last month.
    For some assets we have start deprecation date filled for area 60 with deprecation key LINV.
    We would like to modify deprecation key to 0000 but we have error "AA168 Ord.dep.start date not allowed in dep.area 60 (Please correct)"
    Have you any idea to resolve this issue.
    Thank you in advance
    Kind Regards.

    Dear Shankar
    here is what i have in transaction
    001     01/01/02/02          01     01     02     02
    002     01/01/01/01          01     01     01     01
    003     01/06/02/02          01     06     02     02
    004     06/06/02/02          06     06     02     02
    i do not anderstand any thing in this transaction
    Can you help me resolving this issue?
    Thanks in advance.
    Kind regards

  • Data View WebPart Expand on Group Header fails

    Using SharePoint Designer 2013, I've inserted a data view webpart and have grouped the rows by a number of
    columns (default for grouping is show expanded).
    When the webpart renders I can collapse each of the groups by clicking on the "minus" image, but they won't expand again  (interesting that the image changes to a arrowhead pointing southeast rather than a "plus").....on
    inspection the function ExpGroupBy is referenced which I believe is in the Core.JS file.  I've confirmed that core.js is referenced on the page.
    The same expand function works in 2010 but not in 2013. 
    I've updated my SPD to latest version and recreated webpart...
    Any ideas about resolution or debug strategy?

    Any update on this? Facing a similar issue. I am able to display the merged data from two lists, but when I attempt to group them by a common field they both have, I get an error.

  • Re: Retrieving data from the check box group.....

    Hi all,
    I am new to webdynpro Java. I'm facing a problem while retrieving data from the check box group..
    I've taken a simple type "Status" and Node with value attribute named status and set the property of that attribute as the simple type. This attribute is bound to the checkboxgroup.The cardinality of the Node is 0..n
    But i am unable to read the checked items of the group.
    Please help me out in solving my problem........

    Hi,
    Use the following
    for (int x=0; x< wdContext.nodeTest().size(); x++)
         if( wdContext.nodeTest().isMultiSelected(x) )
                     // Selected Element
              IWDNodeElement nodeElement = wdContext.nodeTest().getElementAt(x);
               nodeElement.setAttributeValue("<Your Attribute> ", <Value>);
              //Ex setting value for attribute called Name
              nodeElement.setAttributeValue("Name", "Test");
    Regards
    Ayyapparaj

  • ECCS - G06020 First consolidation data for unit x in group G2 contains err

    Dear Experts,
      When I try to consolidate the investment, I got error message as below:
    First consolidation data for unit E in group G2 contains error(s)
    Message no. G06020
    Diagnosis
    Investment or equity data was collected for consolidation unit x for a date that is after the period of first consolidation in consolidation group G2. This makes all activities for this unit ineffective after the first consolidation of those activities. This can also affect indirect activities and organizational changes of other consolidation units.
    Procedure
    Correct the investment or equity data for consolidation unit x.
    Then,  I have no idea how to fix the problem. If i changed the investment or investee's equity, the data validation can not be successful. And from the message is said, the date could be critical, but I don't know, which date is incorrect.
    The background information is described as below:
      This is the first consolidation, I have run all tasks of data collection and elimination of AR/AP and Dividends.
      The consolidation is based on purchase method.
    Any suggestion will be appreciated.
    Flex Yang

    How can you solve this problem?, please guide me to solve this problem, i have similar problem, thanks.

  • Renaming Data Forms

    How big of a deal is it to rename Data Forms?
    Is it just that we rename the forms and we are done with it or is there any other thing with essbase or shared services that we need to keep in mind before or after doing this?
    We might want to rename our data forms.
    Please let me know.

    Renaming a data form is not a big deal at all. The data form is tied to an object id (actually ALL objects in Planning are tied to their very own unique object id) and it's the object id that matters, not the name as the name is just what's displayed to human beings.
    All security, form definitions, etc., etc., etc. are set against that form's object id.. You are just changing the OBJECT_NAME field value associated with the form's OBJECT_ID in the HSP_OBJECT table.
    Regards,
    Cameron Lackpour
    Edited by: CL on Nov 3, 2011 1:22 PM
    Oooh, one thing -- if you have parentheses in your form names -- get rid of them. There's a known issue with LCM and form names with parens in them. What is maddening is that you can export them but not import them into the target. I once spent an afternoon manually modifying xml files (contents because I had composite forms) and a manifest file and the actual file names to get rid of those parens. Soooo frustrating.

  • Does BI Data Template allows calling of a package insite group element

    Hi
    Is it possible to call a package inside the group element tag.
    When i try to call a package outside the group element it works out, but when I try to call it inside the group element it doesnt return any result.
    Am currently using BI Publisher version of 5.6.3 in Oracle Applications 12.1.3
    Regards
    Anoop

    Thanks for your detailed answer!!
    I am trying to call a package just to understand how it works .This package just inserts a row in "suppliers" table.I ma calling this package through 'beforeReprot' trigger and querying the table after that.
    I have written a package "test_pack" :
    create or replace
    package test_pack as
    function test_insert_fun return boolean;
    end test_pack;
    create or replace
    package body test_pack as
    function test_insert_fun return boolean is
    begin
    insert into suppliers values (1,'p1','p2');
    return (TRUE);
    end;
    end test_pack;
    Data Template :
    <dataTemplate name="test" dataSourceRef="demo" defaultpackage="test_pack">
         <dataQuery>
              <sqlStatement name="Q1">
                   <![CDATA[SELECT * from suppliers]]>
              </sqlStatement>
         </dataQuery>
         <dataTrigger name="beforeReport" source="test_pack.test_insert_fun()"/>
    </dataTemplate>
    However after this , when I try to view data , I amnot seeing any output.When i go nad check the suppliers table in db, i dont see any values.
    I believe this package should be executed everytime i view the data.
    Please advice!!

  • How to populate data in PAY_PEOPLE_GROUPS table (People Group Flexfiled)

    Hello
    We are migrating the data from one oracle instance to another oracle instance which are in same version of Oralce Applications 11.5.10.2. As a part of migration can anybody let me know how to populate data in "People Group Key Flexfiled" (PAY_PEOPLE_GROUPS table), ideally I will create or update employee records from the source instance to destination instance, so while creating or updating the employee records in can pass people_group_id while calling to the assignment api but my question here is before passing group id to the api i should have the data populated in PAY_PEOPLE_GROUPS TABLE so that i can fetch the group id as per the combination and pass it in to the api.. please suggest...

    Thanks for your information! by any chance do you have any sample code which will create/update assignments with People Group Flexfield; when i check "hr_assignment_api.update_emp_asg_criteria" it only has parameter to pass people group id and not having segments parameters to pass individual segments.
    Also let me know the links if you have any for all HR API guide which will help me to develope the interfaces...
    My requirement is we have two instances in which in one instance we are treating as source for HR which will be used to master for all HR related activities and we are planning to develope an interface which will bring master instance in sync with dummy instance.

  • No data found message w/multiple group by

    I am doing a report that has multiple group by and not sure where the code needs to go so it will bring back No data found for the report. Can anyone help me out?
    group ROW by GRANDTOTAL
    group by EMP_NAME
    Employee Name: EMP_NAME
    group by CASE_MGMT_TEAM_CD
    Team: CASE_MGMT_TEAM_CD
    group by ACTIVITY_ID
    Activity: ACTIVITY_ID (Following is a Table)
    Process Date     Amount     Count
    F PROCESS_DT 9,990.00 9,990 E
    Total by Activity:     9,990.00 9,990
    end by ACTIVITY_ID
    end by CASE_MGMT_TEAM_CD (Following is a Table)
    Total for Employee <?EMP_NAME?>:     999,990.00 999,990
    end by EMP_NAME (Following is a Table)
    Grand Total:     9,999,990.00 9,999,990
    end ROW by GRANDTOTAL

    Take a look at this: http://winrichman.blogspot.com/2009/05/no-data-found.html
    Thanks!

Maybe you are looking for