Writing a formula to populate a field

Post Author: robertr
CA Forum: General
Hi - I have a report that includes a "STATUS" field.  I would like to know if there is a way to add an additional value to the STATUS field that is NOT generated by the report?   For example, the "STATUS field only populates either Active or LOA but not Terminated.  I need the STATUS field to look at a field called ACTUAL TERMINATION DATE and populate the value "TERMINATED" within the STATUS field if there is a DATE value wthin the ACTUAL TERMINATION DATE field.  This way I can include the reason TERMINATED for all employees that have a termination date.  Please help!!!!

Post Author: SKodidine
CA Forum: General
Create a formula with this and place it on your report instead of the {table.status} field.
Whileprintingrecords;
if not isnull({TERMINATION DATE }) then 'Terminated'
else
{table.status};

Similar Messages

  • How do I click a key and have Firefox populate a field I am in with specified text?

    I provide online assistance for a specific group of clients. I am finding myself repeatedly writing almost the exact same paragraphs. Which Add-on would allow me to simply populate a field on a page with the exact text -- I'm hoping to set up 20 or 30 responses that I can just select instead of having to retype everything. Thanks for any guidance.

    Nailed it cor-el!!!!! I am so delighted! It's exactly what I've been looking for. I gave you a SOLVED with pleasure.

  • Formula to select multiple fields (true/False) and create one

    Post Author: mmishkin
    CA Forum: Formula
    I have fields that have true and false options. I need to graph the true options all together but it's not working. I have tried writing a formula to put them all together but i'm still not getting the results I need....here is what I have
    Select {BriefOperativeNote.SCIP PreOpABX60Min} case True : "ABX60Min";Select {BriefOperativeNote.SCIP ABXDCd24h} case True : "ABXDCd24h";
    I've also tried
    If {BriefOperativeNote.SCIP PreOpABX60Min} = True  then  "ABX60Min";
    My results should be
    ABX60Min =      130 Etc... so that I can graph all the true options together..
    Any ideas?

    Post Author: sharonmtowler
    CA Forum: Formula
    either create a group for your true statement and place graph in the header or footer
    or limit your report in the select statement to only true, create the graph
    then create a sub report in the footer for the others.

  • On iprocurement page..How to populate task field dependent on Project lov field value which Project type is "Capital Project Type"

    Hi,
    I have an requirement on Iprocurement page where in i have to populate task field as CAPL in case my project field contains the project which is of type 'Capital Project Type'.
    Please suggest how can we implement this.
    Thanks,
    Abhishek

    try these links:
    http://sharepoint.stackexchange.com/questions/103682/autopopulate-form-fields-based-on-selection-in-people-picker-column-using-javasc
    http://sharepoint.stackexchange.com/questions/80261/people-picker-not-getting-populated-in-the-sharepoint-site
    http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx

  • How to populate text fields with data present in a table

    Hi,
    The page i'm building has got a select list for the primary key column and text fields corresponding to rest of the columns in the table.
    upon selecting some value from the list, the data corresponding to that row should get populated in the respective items. I don't want to add source in each item. can't i create a process or something else where this is done for each item.
    for eg there's a table with columns A(primary key) and B.
    there is a text fields on this page.
    this textfield should populate the data from the table whenever i submit the page such that teh value in B is select B from tablename where A = the selected value.
    Thanks
    Dhirendra

    So I assume page was not built using a wizard. Why on earth you would want to I dont know, but you could create an "After Header" pl/sql process to populate the relevant fields, assuming the id was know on entry to the page. If you want to select the id on the page and then populate the fields, guess you will need to use a "Text Field (always submits page when Enter pressed)" and then use an "On Submit" process to populate the items.
    If you are using an Automated Row Fetch, remember to select "Set memory Cache on Fetch" in that process.
    Hope this helps.

  • In VB Programming code -- How to access the formula for suppressing a field

    In VB Programming code -- How to access the formula for suppressing a field
    I am using Crystal Reports 2008 v1
    Using VB code, I am attempting to modify a Crystal Report before exporting it into a PDF format and then displaying it on the Web.
    My problem is that I am unable to access the formula used to dynamically suppress a field.
    The following code is working:
    mySections = rd.ReportDefinition.Sections
    For Each mySection As CrystalDecisions.CrystalReports.Engine.Section In mySections
       ' myFieldToChange is a String set to the text of the field I need to adjust the Suppression
       iloop = 0
       For Each RecObj As CrystalDecisions.CrystalReports.Engine.ReportObject In mySection.ReportObjects
               If mySection.ReportObjects.Item(iloop).Name.ToLower = myFieldToChange Then
                   myTextObject = CType(mySection.ReportObjects.Item(iloop), CrystalDecisions.CrystalReports.Engine.TextObject)
                   myTextObject.Text = "new field text goes here"
                   mySection.SectionFormat.EnableSuppress = True
                   '  Here is where I want to change the formula for the Suppression
                End if
                iloop = iloop + 1
        Next
    Next
    I can not find any reference to the actual suppression formula in the SDK help file.
    Note, the EnableSuppress can be set to True for False, but if there is a formula for dynamic suppression, the True or False value is overwritten.  The results of the formula determine the suppression.
    Is there a way to reference this formula.  I know that I can put on in using the Crystal Report Designer software, I need to modify this formula using VB code and the SDK.

    Hello, Mark;
    If you are using the ReportDocument object you do not have access to the Conditional Suppression formula. You can get around it by using a formula field in the report for the supression and then using the FormulaField code to change it at runtime.
    If you want to change the supression condition directly at runtime you need to use RAS and the ReportClientDocument.
    Elaine

  • Using an event in table maintenance view to populate a field

    I have a table maintenance view, and I would like to populate one field of the table with derived data. I am trying to do this by coding a routine for one of the events, but so far no luck. I have been able to chege the data in the TOTAL table, but still it does not populate the field on the screen.
    Note this is not for one row as it is entered, but I want all rows of the table displayed to show this field with derived data.
    So the question is: what is the correct event to use, and what is the correct internal table to update? Can I make changes to EXTRACT or TOTAL to do this?
    Kind Regards,
    Tony.

    Hi Rob,
    Sorry for being lazy; I'll close this and off and search :-}
    BR,
    Tony.

  • In Sales Order form populate charges field after saving the Sales Order

    Can we populate Charges field in Sales Order form after saving the sales Order automatically.
    The charges to be calculated based on the amount entered and the item selected in Sales Order.
    In the Manual process it is done by hitting the Actions Button and then select the Charges.
    The charge type would be "Freight Costs"

    by using process_order API, I am able to update the charges field.

  • Writing data to append structure / z-fields of table lqua

    hi,
    does anyone have a clue?
    looking for a badi or user exit in order to populate append fields / z-fields on table LQUA. customer is using ECC 6.0. this needs to be done e.g. when a goods receipt is posted and a quant in the gr-zone is created initially.
    thx for an answer.
    bye rob

    hi,
    does anyone have a clue?
    looking for a badi or user exit in order to populate append fields / z-fields on table LQUA. customer is using ECC 6.0. this needs to be done e.g. when a goods receipt is posted and a quant in the gr-zone is created initially.
    thx for an answer.
    bye rob

  • How to populate the field Discount Percent (DIS) in the outbound S1ORDEXC?

    Hello all,
    I am working with the Spec2000 to send out the IDOC S1ORDEXC.
    Does anyone know how to populate the field Discount Percent (DIS)?
    This field length of Discount Percent is 2 characters, but our customer discount in the Princing Conditions (Sales Order) is longer than 2 characters (ex:  7.500-%)
    Thank you

    Hello Thuan
    I guess you are working with IS- ADEC and SPEC 2000. I am not an expert on this but leave you some hints from OSS notes I came across.
    It appears like Discount Percent - DIS and Procurement Discount Percent -PDP are complementary and mutually exclusive. If one exists, the other need not.
    Looks like DIS is computed as (100-PDP)/100 and it is just a 2- integer data (as in 20 Percent). It is a kind of multiplier (Factor), example if  PDP discount is 10 percent, then DIS (Factor) is 0.9 and so  final (net) price after discount = Price*0.9.
    " If the discount comes in the S1BOOKED inbound into SD in the field DIS, then the discount has to be sent back in the DIS field .. if it came in the PDP field then it has to be sent back in the PDP field. If there was no discount in the incoming IDoc, then the discount has to be filled in the PDP if there was a change in the discount".
    KDATE in SPEC 2000 file maps to DIS and KPERC to PDP.
    PDP has 4 characters and per OSS note 440380, the point is ignored meaning you can work with 1225 instead of 12.25.
    So may be you can work with PDP?
    OSS notes: Apply to older releases but may still be applicable conceptually speaking.
    456153 - S1ORDEXC does not send out Discount
    440380 - PDP has only 4 characters in the SPEC IDoc instead of 5
    596042 - Discount percent DIS not considered e processing S1ORDEXC
    698668 - Incorrect calculation of unit price for PO item by S1ORDEXC
    Let me know you final findings.

  • How to populate custom fields for Outbound delivery header (LIKP)

    Hi All,
    I have added one field in the structure LIKP using APPEND structure. Now want to populate this field from a batch program. I have delivery number. Is there any API or BAPI. I already tried using the FM BAPI_OUTB_DELIVERY_CHANGE by populating the extension. Is there any another area (EXIT or BADI) where I need to change.
    Thanks in advance
    Subhankar

    Hi Keshav,
    No . Nothing was happend.
    l_wa_header_data-deliv_numb = '8600007138' .
    l_wa_header_control-deliv_numb = '8600007138'.
    l_wa_extension1 = 'X'.
    append l_wa_extension1 to i_extn1.
    l_delivery = '8600007138'.
    call function 'BAPI_OUTB_DELIVERY_CHANGE'
      exporting
        header_data    = l_wa_header_data
        header_control = l_wa_header_control
        delivery       = l_delivery
      tables
        extension1     = i_extn1
        return         = l_i_return1.
    After processing l_i_return1 is coming as blank.
    Thanks
    Subhankar

  • How to populate the field VTTK - EXTI1 in the shipment

    Hi there,
    I have a situation where I need to populate the field VTTK - EXTI1  with certain values, I would like to know if there is a user exit or badi to do this.  Actually the field is empty and it's possible to enter any value.
    Thanks in advance
    Regards

    I have found in the screen of shipments a program where the logic of PBO PAI could be changed.
    INCLUDE mv56aozz.                      " User-modules PBO
    INCLUDE mv56aizz.                      " User-modules PAI
    However in the field vttk-exti1 I don't know how can I asociate a custom match code to this field using Abap code.
    Any help will be appreciate.
    Thanks in advance.
    Alexis

  • How to populate this fields in ce_bank_accounts?

    Hey there, first, i want to apologize for my bad english.
    i'm working with Cash management and i'm using this API ce_bank_pub because the bank are internals. i have the load from banks and branch, and kinda the bank accounts, but i can´t find how to populate this fields, that are mandatory for my requeriment:
    AUTORECON_AP_MATCHING_ORDER
    AUTORECON_AR_MATCHING_ORDER  
    RECON_ENABLE_OI_FLAG
    RECON_OI_FLOAT_STATUS
    RECON_OI_CLEARED_STATUS
    RECON_OI_MATCHING_CODE
    AUTORECON_AP_MATCHING_ORDER2
    this is my "flow of work", first, i load the data with SQL*Loader in a custom/personal table, after this, i have a cursor that select all the records of this table and do some validations, after this (and if all the records are ok) i use the API ce_bank_pub.
    i don't know if that API support those fields, I've read the documentation but can not find what I require.
    any help will be appreciate.
    thanks a lot.
    [SPANISH]
    Estoy trabajando con una carga de bancos, sucursales, cuentas bancarias y usos de cuentas, hasta ahorita todo bien, solo tengo problemas al poblar los campos que se muestran en la parte de arriba en la tabla ce_bank_accounts, estoy utilizando el API ce_bank_pub ya que los bancos son internos.
    mi procedimiento, o la manera que lo hago es ésta:
    cargo los datos con SQL*Loader a una tabla intermedia/temporal por decirlo así, posteriormente un cursor selecciona los datos para realizar las validaciones y las reglas de negocio y si los datos son correctos utilizo el API, eso es en general para las 4 cosas, pero los campos de arriba no se como cargarlo, modificarlos o si hay alguna otra manera para agregarselos.
    cualquier ayuda es apreciada.
    Muchas gracias.

    Hi Miguel,
    hope this helps ...
    AUTORECON_AP_MATCHING_ORDER - Order of matching statement lines to AP transactions, by transactions first or by batch first, lookup type BATCH_OR_TRX
    AUTORECON_AR_MATCHING_ORDER - Order of matching statement lines to AR transactions, by transactions first or by batch first, lookup type BATCH_OR_TRX
    AUTORECON_AP_MATCHING_ORDER2 - Order of matching statement lines to AP transactions, by transactions first or by batch first, lookup type BATCH_OR_TRX_OR_GROUP
    For all the above three fields, navigate to Lookups from Cash Management responsibility and find the lookup type BATCH_OR_TRX, this will have 3 values, B for Batch, G for Group and T for Transaction ..... pass any one of the three value as per your requirement ..
    RECON_OI_MATCHING_CODE - Open interface transactions matching code, T for matching by transaction number, D for matching by date and amount. Lookup type: OI_MATCHING_CRITERIA
    For the above field, navigate to Lookups from Cash Management responsibility and find the lookup type OI_MATCHING_CRITERIA, this will have 2 values D for Date and Amount, T for Transaction Number .... Pass any one of the two values as per your requirement ...
    RECON_ENABLE_OI_FLAG -  Flag to indicate whether to allow reconciliation of statement lines to open interface transactions, Y or N
    As per your requirement indicate Y or N ....
    RECON_OI_FLOAT_STATUS - Code to specify the float status for open interface transactions
    RECON_OI_CLEARED_STATUS  - Code to specify cleared status for open interface transactions
    I am not sure about the above two ...i.e. the values that needs to be passed ...
    Regards,
    Ivruksha

  • How to populate a field in a standard SAP screen through FMs and Workflows

    Hello Everyone,
    I have a requirement in which I have to populate a field in an standard SAP Screen.The logic for finding the value of the this field will be done in a new FM and this value has to be passed to this field on the standard SAP screen through workflow.I am new to workflows and need some quick help.Kindly let me know the basic steps I need to follow to realise this requirement.
    Thanks,
    VP

    Hi,
    You can create the task in the workflow which contains the method in which you set the value of the field in standard screen using set parameters id and the aprameter name attach to the field

  • Auto populate text fields with a trigger such as entering text into input fields in ADF

    Hello all,
    I am not able to auto populate text fields with a trigger such as entering text into input fields in ADF.
    I tried AdfFacesContext.getCurrentInstance().addPartialTarget(val); in the back end using setter method of input text field.
    its not working ..
    is there any way to achieve it
    Regards,
    Shakir

    Hi,
    Always mention your JDev version.
    The valueChangeListener would fire only when you set the autoSubmit property of the field to true. Can you elaborate your requirement? What do you mean by related data? Are you performing some sort of search?
    If you want to get the value you entered on the field, just set autoSubmit to true and get the new value from the valueChangeListener. If your requirement is something like as and when you type, do something, you need to check out this approach :https://blogs.oracle.com/groundside/entry/auto_reduce_search_sample
    -Arun

Maybe you are looking for

  • How do you get Mountain Lion Mail to show sent email size?

    I upgraded to mountain lion I think a couple months ago so I don't remember exactly when I lost this feature, but in Snow Leopard for sure there was an option that when composing a new email, a little bar across the bottom of the email showed the siz

  • Creating calender for a field in a form

    hi, We have a date field in our form.We would like to implement it with a calendar.kindly help tahks and regards

  • Upgrading Raw Conversion X-Trans Censors

    Good Morning, I a thinking of upgrading my LR to the new 5.  I was able to try Irdient new upgrade for X-Trans and my file are so much more crisp and detailed then they are in LR with your support for the X-Trans.  Are you going to upgrade you suppor

  • Would appreciate it if you could help me out

    Hi, I am currently using the Nokia 2730 Classic. When I bought the phone, it came pre-installed with Opera Mini. However, I can't seem to visit some sites and I will prefer using Mozilla Firefox or Internet explorer. Could anyone please advise if I a

  • Podcast doesn't sync

    Hi, I subscribe to a number of podcasts, both video and audio only, but one of them, a video podcast (Kayak Journal podcast) doesn't get synced at all. The others are working fine and many of them has been for a long time, but this on I added last we