To capture Formula field name i.e Object name..

Post Author: achaithanya
CA Forum: Formula
Hi ,
Here i have createda formula field and inserted it into my Report.
Right click that field in 'Common' tab we get Object name.is it possible to capture this and based on this can we write supress condition.
Lets consider  Object name as 'ON'. I need to take this 'ON' in my formula field and use it for other calculations.
Thanks,
Chaithanya.

Post Author: bryanflora
CA Forum: Formula
I will recommend you write your original requirement.Instead of such a question.Maybe you're thinking in the wrong way or difficult way.

Similar Messages

  • How to capture the field name on a form when it's double-clicked?

    Hello,
    I plan to create a two field Help table that uses the thirty or so unique field names on the user form in field one. The second field is a Memo type field that contains the Help information for each field.
    Once I know the field name clicked, I will probably use a query to retrieve the help information. I'm planning to use the Double-Click event so the users can double-click any field on the form to be presented the specific field related information
    from the Help table.
    How can I capture the name of the field that was double-clicked, so I can proceed with this project? Thank you.
    Cordially,
    John
    Thank you, John Portland, Maine

    Thank you, Hans,
    How about this code:
    Dim varClickedFieldName as String
    varClickedFieldName = ScreenActiveControl.ControlSource
    Or would you recommend other code?
    Cordially,
    John
    Thank you, John Portland, Maine

  • How to apply formula field for a chart object in crystal report XI

    Hi
    how to add formula field for a chartobject, i tried the following code but returns invalid condition field.
    i want to show  different chart in same crystal report viewer with different coursestatus values.
    please suggest where ia m wrong.
                   FormulaField oFormulaField;
                   oFormulaField = new FormulaField();
                   oFormulaField.Name = "Status1";
                   oFormulaField.Text = "{CSP_PROCESS_REPORT.Coursestatus} = 'Mastered'";
                   oFormulaField.Syntax = CrFormulaSyntaxEnum.crFormulaSyntaxCrystal;
                   oFormulaField.Type = CrFieldValueTypeEnum.crFieldValueTypeStringField;
                    boChartObject.ChartDefinition.ConditionFields.Add(oFormulaField);
    regards,
    Padmanaban V

    i missed the following line in my code.
    rcDoc.DataDefController.FormulaFieldController.Add(oFormulaField);
    now it works......
    my next issue is that,
    chart returns True & False captions. but i want to show actual value. how its to be done
    regards,
    Padmanaban V

  • Capture the field names of structure

    TYPES: BEGIN OF I_EKKO,
           EBELN LIKE EKKO-EBELN,
           AEDAT LIKE EKKO-AEDAT,
           BUKRS LIKE EKKO-BUKRS,
           BSART LIKE EKKO-BSART,
           LIFNR LIKE EKKO-LIFNR,
           END OF I_EKKO.
    how to capture ebeln,aedat in the variables.
    pls help
    rajeev

    TYPES: BEGIN OF i_ekko,
    ebeln LIKE ekko-ebeln,
    aedat LIKE ekko-aedat,
    bukrs LIKE ekko-bukrs,
    bsart LIKE ekko-bsart,
    lifnr LIKE ekko-lifnr,
    END OF i_ekko.
    DATA: obj_type TYPE REF TO cl_abap_structdescr,
    t_components TYPE STANDARD TABLE OF abap_componentdescr.
    obj_type ?= cl_abap_typedescr=>describe_by_name( 'I_EKKO' ).
    CALL METHOD obj_type->get_components
      RECEIVING
        p_result = t_components.
    in t_components you can see the components of the structure, i mean all the fields of it.

  • Capture field name in table control on double click

    Hi,
    How can I capture the field name of internal table passed to table control on double click?
    I have set function code as 'PICK' and applied 'Respond to double click' and used GET CURSOR statement. Here I can get the values like row number (line number), field value also. But I would like to capture on which field the cursor is (or on which column the cursor is)?
    Thanks in advance.
    Regards
    Ramesh.

    Got it.
    We can capture it by using the statement GET CURSOR only.
    GET CURSOR field <field xx> .
    Here the <field xx> is the field name where we have said double click.

  • Accessing formula field in subreport..

    Post Author: kior
    CA Forum: Data Connectivity and SQL
    Hi,
    I'm new in Crystal report and need help on my problem "how to access the formula field i have created in subreport to my main report". Thanx in advance..

    Post Author: DubbleOh7
    CA Forum: Data Connectivity and SQL
    I haven't tested this but is should look something like this(VB.NET code)
    Dim mainreport As CrystalDecisions.CrystalReports.Engine.ReportDocument
    Dim subreport As CrystalDecisions.CrystalReports.Engine.ReportDocument
    Dim formulaField as FormulaFieldDefinition
    subreport = mainreport.Subreports(SUBREPORTNAME) ' Or index
    formulaField = subreport.DataDefinition.FormulaFields(INDEX OR Formula Field name)
    hope this helps.

  • Fields name

    HI Frds
    Can anyone give me the table name and field name of
    R(P) - Planned revenue
    C(P) - Planned Cost
    R(A) - Actual Revenue
    C(A) - Actual Cost
    R(C) - Calculated Revenue
    C(C) - Calculated Cost
    in KKA2 (T.Code).
    Thanks
    Pari

    Hi,
    1.Execute the transacvtion.
    2. Go to the respective field.
    3.Press F1.
    4. Press technical settings tab(screw type icon)
    5.you find the table and fild name there.
    6. if structre banme is defined, capture the field name and go to SE85 and search for the tables for that field.

  • Getting an object's field name

    In the snippet of code shown below, 'parent' represents a UI dialog, and 'child' represents one of the components of the dialog. What I would like to know is the field name of 'child'. The variable 'fieldName' would contain the name I am seeking, if I knew how to determine the value of 'ii' that corresponds to the object 'child'.
    I hope you can help.
    Thanks,
    Miguel
    String getFieldName(Object parent,Component child) {
    Class cl = parent.getClass();
    Field [] fields = cl.getDeclaredFields();
    String fieldName = fields[ii].getName();
    // problem: how to get 'ii' that corresponds to 'child'?
    return fieldName;
    }

    Is there a way to get the
    corresponding array of component objects? It depends on the way the "parent" class is defined.
    For example (a BAD example, but an example):
    I could have the parent keep it's components in a HashMap, with a key of the component type and a value of an ArrayList that contains each component matching the component type.
    This would be very annoying to deal with, and hard to find any given component (whether reflectively or with normal code).
    If I can get
    the value of a field (Object val =
    field.get(parent);), there must be a way to get the
    reference to the object that correspond to the pair
    'field','parent'.
    Thanks.Huh?
    What do you think field[1].get(parent) returned?
    It's the value that the field is referring to (e.g. the actual object refered to by the field).
    I think dubwai's questions about "what are you trying to do" are very relevant. Using reflection like this usually means the design is lacking some important functionality

  • Authorization object to display table field names in english text in SE17

    Hi,
    One of users have issues with the filed name getting displayed in technical format instead of english text while browsing table information in SE17. Normally we can set this in through Settings->User Parameters. But here for this user, user parameter option is greyed out and he doesn't have access to SE16.
    Is there any other way to change user specific parameters, instead of granting him accesss to SE16 or enabling user parameters in SE17?
    Thanks,
    Mano

    Hi,
    I made him run SU53 on SE17 transaction the log is showing that authorization check failed for S_ALV_LAYO with value 23.
    Actually i have access SE16 and for me also, user parameter option is greyed out in SE17. I ran SU53 on SE17 in my session i also got same log.
    One more observation is, the user's colleague also doesn't have access to SE16 and user parameter option is greyed out in SE17 but he can view the table field names in english. So we are wondering if some authorization object is missing here.
    We do not want user to make any changes through GUI.
    Thanks,
    Mano.

  • Field name of column to be captured after click using Hotspot in block ALV

    Dear All ,
    A block list ALV Report has been designed using ' RESUSE_ALV_BLOCK_LIST_APPEND' . On a particular cell of the ALV List another screen comes up which gives details of that particular cell by fetching data from a particular Ztable .In the where clause I have already got the parameter which depends on the row no. Row no is being captured by using a structure SELFIELD type SLIS_SELFIELD which gives Row no in the field TABINDEX but the FIELDNAME field is blank .My Column no is a particular date spread across the month which i have to give in where clause .
    Further DEBUGGING has given these results . Just after double click on cell a particular program SAPLKKBL opens up and in that perform USER_COMMAND_NEW comes up which has a perform by the name of SELFIELD_GET . In it the field name is captured in the structure ls_selfield .But how to get that particular field name my main program from that standard coding .
    Plz help .
    Regards,
    Bharti Jain

    Check this ( i have created a prog )
    i am writing code:
    *declaration of internal tables
    DATA I_MAKT TYPE TABLE OF MAKT WITH HEADER LINE.
    DATA IT_FCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA IT_LAYOUT TYPE SLIS_LAYOUT_ALV.
    DATA IT_EVENT TYPE SLIS_T_EVENT.
    DATA WA_EVENT LIKE LINE OF IT_EVENT.
    *query
    START-OF-SELECTION.
      SELECT * FROM MAKT INTO TABLE I_MAKT UP TO 70 ROWS.
    *function module to get field catalogue
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
      EXPORTING
    *     I_PROGRAM_NAME               =
    *     I_INTERNAL_TABNAME           =
         I_STRUCTURE_NAME             = 'MAKT'
        CHANGING
          CT_FIELDCAT                  = IT_FCAT
    *initial function module you must use to use event user command and pf status (custom pf).
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'    <----- add this FM to your code
        EXPORTING
          I_CALLBACK_PROGRAM       = SY-CPROG
    *     I_CALLBACK_PF_STATUS_SET = 'SET_STATUS'
          I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
          IT_EXCLUDING             = IT_EXCLUDING.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         I_LIST_TYPE           = 2
      IMPORTING
         ET_EVENTS             = IT_EVENT[]
    *modify event table for top of page form.
    READ  TABLE IT_EVENT INTO WA_EVENT WITH KEY  NAME = 'TOP_OF_PAGE'.
      WA_EVENT-FORM = 'TOP_OF_PAGE'.
      MODIFY IT_EVENT FROM WA_EVENT INDEX SY-TABIX.
      CLEAR WA_EVENT.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          IS_LAYOUT                        = IT_LAYOUT
          IT_FIELDCAT                      = IT_FCAT
          I_TABNAME                        = 'MAKT'
          IT_EVENTS                        = IT_EVENT[]
        TABLES
          T_OUTTAB                         = I_MAKT
    *at last use this FM to display data
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    FORM USER_COMMAND USING R_UCOMM TYPE SY-UCOMM SELFIELD
                  TYPE SLIS_SELFIELD.
      BREAK-POINT.
      MESSAGE 'user command triggered' TYPE 'I'.
    ENDFORM.
    FORM TOP_OF_PAGE.
      BREAK-POINT.
      WRITE 'top of pageeeeeee.' COLOR 5 HOTSPOT.
    ENDFORM.
    <removed by moderator>
    Edited by: Thomas Zloch on Feb 21, 2012

  • Changing the field names in a CFQUERY object

    Hello, I wonder whether you know the answer to this?
    I want to change the names of the fields in a CFQUERY result
    set after I have retrieved the results from the database (ie. I
    can't use "AS" in the original SQL statement). I can think of 2
    ways to do this - use the query-a-query (CFSQL) feature or just
    build and populate a new query object, as set out below:
    <cfquery name="CustList" datasource="name">
    SELECT CustId,CustName,CustAddress FROM Customers
    WHERE OrderStatus='P'
    </cfquery>
    OPTION#1:
    <cfqueryname="GenericList" type="query">
    SELECT CustId AS Id,CustName AS Name,CustAddress AS Address
    FROM CustList
    </cfquery>
    OPTION#2:
    <cfset GenericList = QueryNew("Id,Name,Address")>
    <cfloop query="CustList">
    <cfset unused = QueryAddRow(GenericList)>
    <cfset unused =
    QuerySetCell(GenericList,"Id",CustList.CustId)>
    <cfset unused =
    QuerySetCell(GenericList,"Name",CustList.CustName)>
    <cfset unused =
    QuerySetCell(GenericList,"Address",CustList.CustAddress)>
    </cfloop>
    Do you know which of these would be more efficient? And is
    there a better way, whereby I can maniplulate the names of the
    columns in the original query (ie. so that I can rename the
    "CustName" field to "Name" and then use "CustList.Name" directly)?
    Thanks!

    Thanks guys!
    If there is a close to zero overhead to the simple
    query-a-query then that seems like the way to go, with no need to
    look for a means of manipulating or modifying the original query.
    The reason I want to change the field names is so that the
    rest of my code can contain references to "CustList.Name" whereas
    otherwise I would have to do something like
    "Evaluate('CustList.#NameField#')" which is horribly messy. And the
    way the original query is generated means I can't use "AS" in it,
    but I still want to use the same code to work with that query
    result and other query results that share similar/related data with
    different field names.

  • Field name is not known Error in formula field...

    Hi,
    I have a report in CR11.5 r2 that I call from VB6.
    The report works fine, until a I create this formula, Trim ({RSE.PatName}).
    When I put this formula field in a section in the report, I have this error, "Field name is not known Error".
    Any idea?

    Make sure you have SP 6:
    https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe
    Does the formula work in the designer?
    Are you changing datasource at runtime? If so, can you change to that datasource in the designer and run the report there?
    If you do not use the Trim function, does it work?
    If you do not use the field in a formula abd place it in say, the detail section as a test, does the report work?
    But remember that what ever the report is doing at runtime, must work in the designer 1st.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • How to programmatically retrieve the real field name from a view object ?

    Dear all,
    when I map a business component (a database table) to a view, the fields are automatically converted by JDeveloper, for example, a field named 'user_id' in the oracle table definition, becomes 'userid' in the view.
    The question: how can I retrieve the right table column name from within a backing bean ? Please explain also what should I bind and how; should I use an iterator ?
    Another more: since we can change the label of a field on a view, how can then I get the mapping between the column name on the view and the column name on the table in the database ?
    Thanks in advance,
    Sergio.

    Hi Timo,
    many thanks for your answer.
    The rest of my question: you know we can drop a view from the DataControls onto a ADF page, with each field of the table having a label.
    That label is initially set like the internal table field name, so for instance, if user_id is the real table field name, userid will be the (by JDeveloper) internal renamed table field name, and the label would be userid too.
    If I then change the label text to, for example, "myUserid", the question is: how can I know which real table field does "myUserid" point to ?
    In other words, when my form is submitted, I want to know which field name has been changed and prepare an update sql in a bean.
    For this purpose I bind each view field to a validator function in the bean, and collect al the pairs "label_name + submitted value" in an hash table.
    Now inorder to build up that update query, I need the mapping between the label_name ("myUserid") and the real table field name ("user_id"). The question: how to map the label to the real table field name ?
    By the way, I'm using JDeveloper 11g rel. 2.
    Regards,
    Sergio.

  • Unable to capture screen fields in eCATT

    Problem description 1 : Unable to capture screen fields in eCATT
    Recording using SAP GUI Method.
    Problem description 2 :Unable to capture Tab controls while recording
    in eCATT using SAP GUI Method.
    Thaks for any suggestion you could provide me and once again for your courtesy attention.
    Regards,
    Eric Monteiro

    Hi Phani,
    Please try below code:
    *data declaration for reading values given by user in the selection screen field.
      DATA: BEGIN OF i_tab OCCURS 0.
              INCLUDE STRUCTURE rsselread.
      DATA: END OF i_tab.
      MOVE: 'LOGSYS' TO i_tab-name,
            'P' TO i_tab-kind. u201CP For parameter
      APPEND i_tab.
      MOVE: 'GP_SIMVE' TO i_tab-name,
            'P' TO i_tab-kind. u201CCheck if field is Parameter
      APPEND i_tab.
    *move program name and screen number into local variable.
      l_prog = sy-repid. u201C(Try by directly passing program name also)
      l_dynnr = sy-dynnr. u201C(Try by directly passing Screen number also)
    *calling function module to get the value given by user.
      CALL FUNCTION 'RS_SELECTIONSCREEN_READ'
        EXPORTING
          program     = l_prog
          dynnr       = l_dynnr
        TABLES
          fieldvalues = i_tab.
    Hope this should slove your issue.
    Thanks & Regards,
    Gaurav.

  • Unable to get Field Names from Archived File

    Hi All,
    We have a ECC 6 Ehp4 system. When i retrieve Idocs archived using SARA, the data only contains application data. There is no field names available - eg: posting date, tax code etc. Please find below the background on this issue.
    I configured archiving of process idocs (status 52,12,03) from EDIDC tables. I set up the settings for Archive Object IDOC and archived the data for 15 days.
    Both archiving and deletion of data from the table was successful.
    I tried reading the Idoc data from Archive File using the Information System option -> Info structure (available as default for Idoc).
    But the data retrieved only shows the Application data for all the segments of the IDoc. The fields for the segments like Tax Code, Posting Date etc are not available in the data. Functional teams will not be able to make sense with just the application data.
    Am I missing some setting? Is there any way to retrieve the related field values also ?
    Please help.
    Thanks and Regards,
    Raghavan

    Hi All,
    There is tcode WE10. You could choose if the data source is archive and also the archive session. You will get the list of segments provided. click on the segment number and you will get the data.
    Thanks and Regards,
    Raghavan

Maybe you are looking for