Using Special Fields in Formula's

Hello,
I'm trying to use a Crystal "Special Field" to filter data in my report. Specifically, I want to use the "Current CE User Name" field to achieve row-level security. Does anyone know how to use these fields in parameters or filters?
Regards,
Gilbert

You can use the special field CUrrentCEUserName like this
If (IsNumeric(Right(CUrrentCEUserName,3))) then
   ToNumber(Right(CUrrentCEUserName,3)) = {dbvalue}
else
   ToNumber(Right(CUrrentCEUserName,2)) = {dbvalue}

Similar Messages

  • How to use RECNUM special field in a file bulk load interface (sqlldr)

    Hi,
    I'm trying to load an ordered set of full text lines from a flat file using Sql Loader 11.2 with ODI 11.1.1 bulk LKM (LKM File to Oracle - SQLLDR).
    I have to keep track of each line number in a separate target table column NUM_SEQ and feed it with sqlldr RECNUM special field.
    I haven't found any other way to do that but to tweak manually the generated sqlldr .ctl control file (bad but it works) :
    NUM_SEQ RECNUM,
    FULL_LINE CHAR(4000)
    I've tried to map "RECNUM" as an expression in the map tab of the loading interface but the column itself gets discarded at .ctl generation.
    I haven't found any mention of RECNUM in the whole ODI documentation, neither on this forum nor the Web.
    Using an internal Oracle sequence in the subsequent steps of the ETL breaks the garantee of ordered lines.
    Any hint ?

    You will have to enhance the KM so that this clause gets added to the CTL file each time.
    Add an Option to the KM in which you can specify name of the column that you want to act as line_number.
    And then in the KM, change the "Generate CTL File" step and add
    *<%=odiRef.getOption("RECNUM") %> RECNUM*
    after the call to the <%=odiRef.getColList(" ") %> API
    So, this will add the RECNUM column to the list of the columns generated.

  • Can the file extension be removed when using the File Special Field?

    I placed a Special Field on the top of my topics that gives
    me the filename for that specific topic. I used the Insert >
    Field > Special Field > File and the File Name is inserted
    where I want it. The problem is that i don't want the file
    extension to show, just the name. I can't figure out how to do
    this...Any suggestions....anyone? Maybe a Script or an applet? Any
    input will be greatly appreciated...

    Thank you for your response. I did try something similar to
    what you suggested but the problem is that whatever I modify it
    automatically puts it back like it was as soon as I try to save it.
    This is probably because I used the Insert Special Field commands
    from the Menu. It automatically places this on the code:
    <!--kadov_tag{{<variable name=file
    x-format=default
    x-value=017.htm>}}-->017.htm<!--kadov_tag{{</variable>}}-->
    Where 017.htm is the actual name of the file for the specific
    topic. This means that it's apparently doing this on the background
    somewhere I can't see and inserting the value on the code for the
    topic...
    I hope that made sense! Again, I thank you in advance for any
    suggestions...

  • How to Use conditions in PLD Formula Field

    Dear, Experts
    for eg I have two fields in pld  Field_A and Field_B
    Field A Contains values and fieldB also have values and 0.00 values as well.
    I need to fetch the value to Field C from Field A where Field B >0
    Field_a                                             and field_B                  In third field (Field_C) i need the values of Field_A where Field B>0. 
    1000                                                         567
    2000                                                             0
    500                                                            89
    888                                                           79
    777                                                             0
    700                                                             0
    9000                                                         78
    So here what conditions i should give in the formula filed (Field_C)
    Please help me to solve this issue.
    thanks

    Hi Sudatta,
    Your solution seems to be correct, but I am not getting the point of keeping some of the fields visible.. You can make field Z in your example invisible.
    To make the right formula in PLD you need an extra field, the formula fields in SAP allways give back an 0 or an 1.
    So if you have Field_A and Field_B and Field_C, you also have to create another field (eg Field_D)
    Field D should be typed as a formula field and contain Field_B > 0 or Field_B != 0 or Field_B > 0.00 (just the exact value when you don't want field_C to be filled.
    Field_C should be marked as a formula aswell and contain Round(Field_A,2) in this 2 is the ammount of decimals.
    Then you have to make a connection between field C and D on the general tab (as mentioned before). So Field_C should be connected to field D.
    You can make field_D invisible so it won't be displayed on your lay-out.
    After that it should work.
    Good luck,
    Kind regards,
    Hendri Wessels

  • Answers - would like to use calculated field's name, not expression

    Hi Everyone,
    I'am trying to make several calculated fields in a single query in Answers. Each field references the previous one, and the expression of the first one is already 5 rows long.
    Now I reference it in the second calculated field by using "Edit Formula" -> "Column" -> 'Colum name'.
    My problem is, that it puts the expression of the previous field, not it's name. I have to use it for almost 10 times in this single expression, so -although it works fine- it is totally unreadable, and very hard to debug for example.
    And after all, I should use this field again, in several next calculated fields.
    Does anyobody have an idea, how to make calculated fields having only the name of referenced other fields in it?
    The repo is set for ad hoc reporting also, so using session variables which need to be set in Administrator Tool, is not an option.
    Thanks for help in advance.
    Tom
    Message was edited by:
    user608765

    Hi Venkat,
    thanks for the response. It would work, no doubt, in this special case, the problem is, that users use the repo for ad-hoc reporting aswell (and they don't have access to repo administration of course), so one can count on it, that there would be a new request of this kind every day to change the repo with customized user variables. I would like to avoid this of course.
    Having the name of a referenced field in a new expression would be a simple solution. Is it possible, that it can't be done?
    Tom

  • Special Field Record Numbers

    I have this information in a group header and there is some suppression based on dollar figures.  When I change the date to pull the information my record numbers change but I do not see the reasoning.  I also tried to use a formula for a record counter and got the following
    Last Name          record number          Formula record counter
    Allen                         1                                   1
    Balz                          2                                   2    
    Brazzell                     3                                   3
    Brochey                     4                                   4  
    Brod                          5                                   5   
    Bull                            6                                   6    
    Bull                            7                                   7
    Cahill                          8                                   8    
    Date change I get this         
    Last Name          record number          Formula record counter
    Agro                         1                              1    
    Allen                         5                              4
    Allen                         12                             7
    Altheide                    14                            10
    Anderson                  18                            13
    Anello                       21                            16
    Arist                         22                             19
    I'm going nuts with this one!!!

    Hi Peggy,
    The record number special field does not account for suppressed records!
    If you're using a formula to number each row, you also need to include the condition where a particular row is not numbered.
    Something like this:
    whileprintinrecords;
    numbervar row_count;
    if <condition> then
         row_count := row_count + 1;
    Plug the condition you have as the suppression formula in the <condition> portion of the code above. For e.g: If the rows are suppressed for rows where the 'sales figure' is less than 500, then the <condition> part of the code above would be:
    if {sales_figures} > 500 then
         row_count := row_count + 1;
    -Abhilash

  • To show a special field on the ME2K report

    Hi everyone,
    The question is about adding a field in the ME2K report. In the layout is needed the PO status, that is wether the PO is still open/completed or not. I was taught dynamic selection can be used to filter by the 'Delivery Completed' criteria, however the info does not appear on the report when doing this way. Is there a way, excl. programming a new transaction, to have the 'Delivery Completed' field appearing on the report? Are special fields available for ME2K?
    Many thanks and regards,
    SB

    to close

  • File Name and Path special field

    Post Author: puser01
    CA Forum: .NET
    I have a report created in CR 9 with the File Name and Path special field on the report displayed correctly. when i try to run it on CR XI environment i get this:
    C:\WINDOWS\TEMP\{4D86438D-54F5-4EEF-A0AB-05D5EB2BFF35}.rpt
    How can i correct this?

    Our installer names don't make it easy for the new user, or the seasoned veteran for that matter. Although both those installers have 2008 in the name, they are for entirely different products.
    CRRedist2008_x86.msi
    This MSI installer is used to install the runtime for Crystal Reports Basic for Visual Studio 2008 - version 10.5.
    cr2008fp35.exe
    This installer package is used to install the CR .NET runtime for Crystal Reports 2008 - version 12.3.
    Since you've updated your development system to Crystal Reports 2008 you'll only want to use the runtimes listed on this reference page - http://www.sdn.sap.com/irj/sdn/crystal-xcelsius-support?rid=/webcontent/uuid/10e38d93-7f07-2d10-beae-e739182f8ada. [original link is broken]
    I suggest either of these
    SP 3
    https://smpdl.sap-ag.de/~sapidp/012002523100007123592010E/cr2008sp3_redist.zip
    FixPack 3.5
    https://smpdl.sap-ag.de/~sapidp/012002523100006341772011E/cr2008fp35_redist.zip

  • FAGLL03 Special Field Values Do Not Display in Production

    We are using the new GL in ECC 6. I have a strange problem where special fields that were added to the line item transactions display in dev and quality but not in production. Please read the steps that I have taken.
    1. Using note 984305 we defined special field BSEG-MATNR using this path:
    Financial Accounting (New)
      General Ledger Accounting (New)
        Master Data
          G/L Accounts
            Line Items
              Define Special Fields for Line Item Display
    This field (U_MATNR) displays correctly in FAGLL03.
    2. I used note 1034354 to create an implementation of BAdI 'FAGL_ITEMS_CH_DATA. Then I
    followed the documentation of the BAdI to create structure CI_FAGLPOSX within FAGLPOSX and added these fields:
    Material Type: field MARA-MTART
    Material Group: MARA-MATKL
    I added code to method CHANGE_ITEMS to read for those fields. Here's part of the code:
    * MARA - Get Material Type and Material Group
        SELECT SINGLE mtart matkl
          FROM mara
          INTO (wa_items-zzmtart, wa_items-zzmatkl)
          WHERE matnr = wa_items-u_matnr.
    The values of these fields display correctly in development and quality, but they do not display in production.
    3. When I debugged FAGLL03 in development I found that the value of U_MATNR was filled when I stopped at method CHANGE_ITEMS. However, when I debugged in production, U_MATNR was not filled. It had to be filled at a later time because the value appears on the report. In my code, I am using U_MATNR to find the values of material type and material group. Because U_MATNR doesn't have a value at that point in time in production, my code doesn't find material type or material group.
    4. I contacted SAP and was instructed to use note 984305. I executed the function module
    ITEM_STRUC_EXTENSION which did not help.
    5 I also used note 205096 to execute report BALVBUFDEL, but this did not help either.
    6. At this point, SAP told me that it is a consulting issue. I'm not sure that it is because I'm using SAP solutions without modifying anything.
    7. I tried to compare configuration between development and production, but everything looked OK to me.
    Has anyone had this problem? Any tips?
    Brenda

    Hi Brenda,
    >
    Brenda Bankert wrote:
    > 6. At this point, SAP told me that it is a consulting issue. I'm not sure that it is because I'm using SAP solutions without modifying anything.
    I have no idea except that you can make sure Include CI_FAGLPOSX is active as well as the including FAGLPOSX. And please check the transport protocol(s) if CI_FAGLPOSX  is included. If you have any kind of error/warning in the import protocol, that may give you a hint.
    If nothing helps, create a new sap support case and tell them you are using SAP solutions without modifying anything.
    Regards,
    Clemens

  • Line item display-special fields

    Hi,
    i selected a special  field for fbl5n and saved in a new lay-out.When i select the particular lay-out special field values are displayed .
    But when i default the layout , system not displaying the values though the field is avilable.
    regards
    Guru

    Hi meena,
    search below link useful yours.
    scn.sap.com/docs/DOC-45019
    scn.sap.com/docs/DOC-49772#comment-439481
    https://scn.sap.com/thread/1636245
    Thanks,
    G Rajendhar.

  • Pulling a Record set and then using a field within that record to pull additional information from the table.

    I am pulling information based on the following "If" statement;
    If({JCT_CURRENT__TRANSACTION.Category} = "L"
        and "cost" in {JCT_CURRENT__TRANSACTION.Transaction_Type}
        and {JCT_CURRENT__TRANSACTION.Transaction_Date} > {@Prev Week}
        and {JCT_CURRENT__TRANSACTION.Transaction_Date} <= {@Week 1})
    then
    {JCT_CURRENT__TRANSACTION.Units}
    This works fine and I can print it on the report with other associated fields.  One of those fields is a "Cost Code" field associated with the above conditions and date set (I am pulling for one pay period week).  Of these transactions, each week different "cost codes" could be available.
    One item I need to figure out another formula is associated with the cost codes that are pulled, but, I need to compare them to a different date range.
    Here is how I get the cost codes that were used in a specific time frame;
    If({JCT_CURRENT__TRANSACTION.Category} = "L"
        and "cost" in {JCT_CURRENT__TRANSACTION.Transaction_Type}
        and {JCT_CURRENT__TRANSACTION.Transaction_Date} > {@Prev Week}
        and {JCT_CURRENT__TRANSACTION.Transaction_Date} <= {@Week 1})
    then
    left({JCM_MASTER__COST_CODE.Cost_Code},6) & "001"
    This gives me the cost codes used in that period but changes the last three digits to be "001" (xx-xx-001).
    Now, I need to take that cost code, the xx-xx-001 and compare it to a completely different date range to get an "estimate" number.
    My problem is that, because I need to use a date range in the original conditions, even after I truncate the cost code, for some reason, it stays associated with that date range.
    How can I use a field from a group of records based on date, but, associate it with a competely different date range.
    I hope this is clear, I am having a real hard time with this, I am fairly new, but have pretty normal working knowledge of basic formulas, etc...
    Thanks, Mike

    Please re-post if this is still an issue

  • Special fields for FAGLL03

    Hi,
    I need to add Purchase order, vendor, vendor name, customer, customer name and ar invoice field as a special field for FAGLL03.
    I am able to add vendor, customer and purchasing number fields but I am not able to find name field for customer and vendor. Also I was not able to find ar invoice field.
    Any help will be apprecaited.
    Thanks,
    Mark

    Hello Mark,
    Here at our side this has been implemented this way. You will need ABAP consultation:
    1) Create an append structure in RFPOS structure with the new desired fields;
    2) You will have to use a BTE to implement the exit. Ask the ABAPer to create a new Z function module based on existing SAMPLE_INTERFACE_00001650.
    3) Through transaction FIBF, Menu Settings -> Products -> ...of a customer, you should create a code to identify the customization. Lets say FIN01. Don't forget to click on checkbox field to activate the business transaction event.
    4) Through transaction FIBF, Menu Settings -> Modules P/S -> ...of a customer, you should create an entry to assign the Z function module with the product. Something like below:
    Event                Product        Ctr.         Appl.                  Function module
    00001650         FIN01                          FI-FI                   Z_INTERFACE_00001650
    Hope it helps you.
    Regards,
    Daniel
    Edited by: Daniel Carvalho on Oct 2, 2009 5:14 PM

  • Add a special field called gsber

    Hello AL,
    I want to add one special field called gsber in to vendor line item display report, i'm using standard report define additional fields for line item display(SPRO).
    but its not allowing me to do so, pls let me knw what can be the reason
    Thanks
    Sunny

    Hi,
    Look at the BADI's
    CUSTOMER_ADD_DATA ans CUSTOMER_ADD_DATA_CS
    Regards
    Sudheer

  • Special Field in FBL1n

    Dear Experts
    How can i add table in special field of FBL1n,  can i add GL table in special field to get offseting account in FBL1n?
    please suggest. how can i add entry in this table?
    Thanks

    By Activating BTE (Business Transaction Event) 00001650 wherein the function module "LINE_ITEMS_GET_GKONT" works. After activating this BTE, you will be able to see the offseting G/L.
    For activating the BTE Use the transacton code FIBF got the setting and P/s module custome
    you need enter event and module "LINE_ITEMS_GET_GKONT
    gkont is our offsetting a/c
    it will work for the versions i did the same thing for my erlier client it was worked properly
    try T.Code FIBF

  • How to use Special value set with Column clause to display addtional column

    hi
    can anyone tell me
    How to use Special value set with Column clause to display addtional column
    how can i use FND POPID and with COLUMN clause ?

    Dear Yaseen,
                To get the value in formula cumulative,after you have created the formula for that particular key figure,go to edit and click on tab "calculations".
    In that select overall result as 'count all values not equal to zero' and single result as 'count all values not equal to zero' .
    And mark the cumulative check box underneath.
    I hope you get the desired result and please do me favour .
    Sumit goomber

Maybe you are looking for