Modifying the audit field

Hi,
Is there a way that the audit fields can be modified by any users. In my case, I wanted to add proxied dn value in to the modifiersname and creatorsname audit filed ?
these audit fields are operational attributes. I am able to modify "aci" "nsroleDN" which are also operational attributes. but not these fields. Do you know why ?
Please help.
Thanks
Rajesh

Have you added teh Label as a text field?
If you have done that, try replacing the label with a Input/Output type field in the display mode by selecting 'Output Only' in the attributes->Program Tab of Screen Painter.
Now from the program , when the user presses F7, you can code to change the value of the Label (Input / Output field).
This will work out. Please let me know if you have any issues.
Regards,
Anish Thomas

Similar Messages

  • Is there any api to modify the form field in PDF?

    Hi,
    Our client need we provide the editable PDF, i.e. some form fields in the PDF report can be edit. Now we created the PDF template and merged it with the XML data definition in Jdeveloper, but when we get the final PDF report, we found that the PDF form field property is changed to "Read-Only" automatically. We make sure that in PDF template the form field is not "Read-Only", something happened when we merging the XML data and the PDF template.
    Now we wonder if there is any API can help us to modify the PDF form field property, after we merge the XML data and PDF template, we can use it to change the form fields to editable, not "Read-Only".

    Hi,
    What I need is to modify some form fields' property, I explore some web and found before I create the PDF file, I can set the security of the PDF:
    Properties prop = new Properties();
    prop.put("pdf-security","true");
    prop.put("pdf-open-password","welcome");
    So I wonder if there is one property related to the PDF form field.
    Thank you.

  • Using module pool pgm, Con't modify the table field valus

    Hello frnds,
    i m create one rpt using module pool pgm, click display button display the table values .
    Iwant to modify some fields that changes is update to table.
    Bellow coding is correct or not, how can modify the fields with save changes.
    TABLES : ZRFIM1.
    DATA: ZREPNO TYPE ZRFIM1-ZREPNO,
    ZPLANT TYPE ZRFIM1-ZPLANT,
    ZRIMNO TYPE ZRFIM1-ZRIMNO,
    ZRIMDAT TYPE ZRFIM1-ZRIMDAT,
    DISPLAY TYPE C,
    CLEAR TYPE C,
    EXIT TYPE C,
    SAVE TYPE C,
    OK_CODE LIKE SY-UCOMM.
    data : itab type table of zrfim1 with default key.
    data : wa_itab type zrfim1.
    CALL SCREEN 100.
    *& Module STATUS_0100 OUTPUT
    text
    SET PF-STATUS 'SAVE'.
    AT USER-COMMAND.
    module STATUS_0100 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    CASE SY-UCOMM.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    WHEN 'BACK'.
    LEAVE PROGRAM.
    WHEN 'DISPLAY'.
    SELECT SINGLE ZREPNO ZPLANT ZRIMNO ZRIMDAT FROM ZRFIM1
    INTO (ZRFIM1-ZREPNO, ZRFIM1-ZPLANT, ZRFIM1-ZRIMNO, ZRFIM1-ZRIMDAT)
    WHERE ZREPNO = ZRFIM1-ZREPNO.
    WHEN 'CLEAR'.
    CLEAR ZRFIM1.
    WHEN 'SAVE'.
    select single * from zrfim1 into wa_itab where ZREPNO = ZRFIM1-ZREPNO.
    wa_itab-zrepno = ZREPNO.
    wa_itab-zplant = ZPLANT.
    wa_itab-zrimno = ZRIMNO.
    wa_itab-zrimdat = ZRIMDAT.
    modify zrfim1 from wa_itab.
    ENDCASE.
    endmodule.
    Thanks in advance.

    hello,
    change the code like:
    (IF ZRFIM1 is the structure has been used on screen)
    wa_itab-zrepno = ZRFIM1-ZREPNO.
    wa_itab-zplant = ZRFIM1-ZPLANT.
    wa_itab-zrimno = ZRFIM1-ZRIMNO.
    wa_itab-zrimdat = ZRFIM1-ZRIMDAT.
    modify zrfim1 from wa_itab.
    thanks
    K.

  • How can I modify the display field names on the output port of my bi query

    Hello,
    I integrate my bi query in the visual composer storyboard.
    Then I click on my output port of the query and see the output fields.
    The display field names are very strange.
    For example:
    ABZCNQMDOPWJGHS1Q5Q27090
    I have never save such a field name while I create my query in the query designer.
    Have somebody an idea, where I can modify my displayed field names??
    Thanks.
    Thomas

    Hi Thomas,
    the cryptical names are the technical names of your query components. If there is no decription available (depends also on your portal language) then the technical names are displayed. Check your portal language in your user settings and then check if you have entered a description in the query designer for this language.
    Best Regards,
    Marcel

  • FB70  how to modify  the Reference field

    Dear experts,
    In FB70  Customer Invoice entry, If I want to put several Invoice reference in the Reference field  for tracking of  Agents Commission,  Is any report generation possible for Sales Commission
    Thanks
    Mdas

    Hi
    Sales Agent Comission can be better tracked using a std SAP functionality called rebates. Here in you can accrue Rebates with every billing document. For eg, you need to give a comission to sales agent, if the sales reach USD 100 in a month, that can be set up through the SD Pricing procedure and the corresponding assignment in VKOA.
    Refer the link
    http://help.sap.com/saphelp_46c/helpdata/en/5d/363eb7583f11d2a5b70060087d1f3b/content.htm
    Consult your SD Colleague for further info
    Regards
    Sanil Bhandari

  • When can i modify the 'Expression' field in the tab [Attribute Settings]?

    Question 1:
    I have created a View Object. Then, i would like to retrieved a formatted column from it, to be simple, I try to modify in the [Attribute Settings] tab - field 'Expression', when I found the field cannot be modified. (The field is having NUMBER type and not allow NULL value). Must I 'new' an attribute to obtain the formatted column ... if yes, seems confusing that i need to include 2 columns with the same content but different format ~~~ seems not flexible enough bo ... please advice!
    Question 2:
    I found whenever I try to build a view to include necessary columns into the right-handed side. I found all primary keys for the entity are forced to be included? Is it a must? Will it decrease performance for handling more retrieved columns?
    Thanks for replying!

    Question 1:
    I have created a View Object. Then, i would like to retrieved a formatted column from it, to be simple, I try to modify in the [Attribute Settings] tab - field 'Expression', when I found the field cannot be modified. (The field is having NUMBER type and not allow NULL value). Must I 'new' an attribute to obtain the formatted column ... if yes, seems confusing that i need to include 2 columns with the same content but different format ~~~ seems not flexible enough bo ... please advice!'Expression' is for the default value. For formatting, you need to use Control Hints. Please see the following OTN article for details.
    http://forums.oracle.com/forums/message.jsp?id=844274
    Question 2:
    I found whenever I try to build a view to include necessary columns into the right-handed side. I found all primary keys for the entity are forced to be included? Is it a must? Will it decrease performance for handling more retrieved columns?For an EO based VO, the PK must be included. This is so that when the VO brings the data in from database table, the data can be decomposed into entity objects that are registered to the entity cache. Since entity object instances are uniquely identified by their PK attrs, they must be included.
    In terms of performance, inclusion of PK shouldn't cause a notable degradation unless the PK values take up a lot of memory. But, PKs should never big huge (in memory consumption) objects anyway.
    Thanks.
    Sung

  • How does one modify the Notes field in a contact already in the address book?

    The iPhone is running iOS 5.0.1
    [as upgrade from purchased iOS 4].

    The reason the that the edit button ( - ) top righthand corner had 'disappeared', was that iCloud was enabled but that the Addressbook subsetting under iCloud was set to off in the phone settings.
    Changing it to 'on' made the edit button reappear.
    Thanks to the guys in Cambridge Apple Store!!
    The reason the that the edit button ( - ) top righthand corner had 'disappeared', was that iCloud was enabled but that the Addressbook subsetting under iCloud was set to off in the phone settings.Changing it to 'on' made the edit button reappear.
    Thanks to the guys in Cambridge Apple Store!!

  • Get default audit field behavior with an external datasource

    Others have posted and blogged extensively about creating a robust audit trail for LightSwitch. However, if you are looking to achieve the default behavior with an external datasource, you could simply add the fields to your database
    and write code in every entity's Inserting() and Updating() method.  However, if you have many tables in your app this can be a lot of work.  Here is a very easy way to DRY this up. 
    1. Add the audit fields to your tables
    - CreatedBy
    - DateCreated
    - UpdatedBy
    - DateUpdated
    2. Use this code in the DataService class for your datasource.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.LightSwitch;
    using Microsoft.LightSwitch.Security.Server;
    namespace LightSwitchApplication
    public partial class ApplicationDataService
    partial void SaveChanges_Executing()
    EntityChangeSet changes = this.Details.GetChanges();
    IReadOnlyCollection<IEntityObject> addedEntities = changes.AddedEntities;
    IReadOnlyCollection<IEntityObject> modifiedEntities = changes.ModifiedEntities;
    if (addedEntities.Any())
    foreach (IEntityObject entity in addedEntities)
    InsertAuditFields(entity);
    if (modifiedEntities.Any())
    foreach (IEntityObject entity in modifiedEntities)
    UpdateAuditFields(entity);
    private void InsertAuditFields(IEntityObject entity)
    string userName = this.Application.User.FullName;
    DateTimeOffset currentDateTime = DateTimeOffset.Now;
    entity.Details.Properties["CreatedBy"].Value = userName;
    entity.Details.Properties["DateCreated"].Value = currentDateTime;
    entity.Details.Properties["UpdatedBy"].Value = userName;
    entity.Details.Properties["DateUpdated"].Value = currentDateTime;
    private void UpdateAuditFields(IEntityObject entity)
    string userName = this.Application.User.FullName;
    DateTimeOffset currentDateTime = DateTimeOffset.Now;
    entity.Details.Properties["UpdatedBy"].Value = userName;
    entity.Details.Properties["DateUpdated"].Value = currentDateTime;
    Hopefully this helps someone.

    This version will check whether the table has the audit properties, thus allowing you to opt in.  Paul's solution is going to be better in the long run because it checks at compile time.  This was meant to be a quick way to get the default behavior. 
    This is not a substitute for a full audit capability (see Paul's blog) if that is your requirement.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.LightSwitch;
    using Microsoft.LightSwitch.Security.Server;
    using Microsoft.LightSwitch.Details;
    namespace LightSwitchApplication
    public partial class ApplicationDataService
    partial void SaveChanges_Executing()
    EntityChangeSet changes = this.Details.GetChanges();
    IReadOnlyCollection<IEntityObject> addedEntities = changes.AddedEntities;
    IReadOnlyCollection<IEntityObject> modifiedEntities = changes.ModifiedEntities;
    if (addedEntities.Any())
    foreach (IEntityObject entity in addedEntities)
    if (AuditProperties(entity))
    InsertAuditFields(entity);
    if (modifiedEntities.Any())
    foreach (IEntityObject entity in modifiedEntities)
    if (AuditProperties(entity))
    UpdateAuditFields(entity);
    private bool AuditProperties(IEntityObject entity)
    bool hasAuditProperties = true;
    bool createdBy = entity.Details.Properties.Contains("CreatedBy");
    bool dateCreated = entity.Details.Properties.Contains("DateCreated");
    bool updatedBy = entity.Details.Properties.Contains("UpdatedBy");
    bool dateUpdated = entity.Details.Properties.Contains("DateUpdated");
    bool[] checkForAuditProperties = new bool[]
    createdBy,
    dateCreated,
    updatedBy,
    dateUpdated
    if (checkForAuditProperties.Any(a => a == false))
    hasAuditProperties = false;
    return hasAuditProperties;
    private void InsertAuditFields(IEntityObject entity)
    string userName = this.Application.User.FullName;
    DateTimeOffset currentDateTime = DateTimeOffset.Now;
    entity.Details.Properties["CreatedBy"].Value = userName;
    entity.Details.Properties["DateCreated"].Value = currentDateTime;
    entity.Details.Properties["UpdatedBy"].Value = userName;
    entity.Details.Properties["DateUpdated"].Value = currentDateTime;
    private void UpdateAuditFields(IEntityObject entity)
    string userName = this.Application.User.FullName;
    DateTimeOffset currentDateTime = DateTimeOffset.Now;
    entity.Details.Properties["UpdatedBy"].Value = userName;
    entity.Details.Properties["DateUpdated"].Value = currentDateTime;

  • Tabular Report Audit Fields Update

    Hi All,
    I have a tabular report. And I am Updating Multiple rows on Submit.
    I have issue with the Audit Fields. When I make changes and click 'submit' (MRU) , all the columns are updated but my audit fields (Standard report columns) are not being updated.
    Please help me fix this.
    I am using version 3.1 and 9i db.
    Thanks in Advance,
    Daniel

    daniel,
    The best approach would be creating an database upate audit trigger on your audit columns and update them with sysdate and app_user. For example see below
    CREATE OR REPLACE TRIGGER  SMAPLE_TBL_TRG
    BEFORE
    UPDATE ON SAMPLE_TBL FOR EACH ROW
    BEGIN
    IF UPDATING THEN
         :NEW.UPDATE_DT  := SYSDATE;
         :NEW.UPDATE_SID := CASE WHEN V('APP_USER') IS NOT NULL THEN
                              V('APP_USER')
                        ELSE
                             NVL(:NEW.UPDATE_SID,USER)
                      END;
    END IF;
    END;update_dt and update_sid are audit columns of the sample_tbl table. In this way the before update trigger will fire when ever you update any record within sample_tbl table.
    thanks,
    orton

  • Modifying the HR Infotype 25 Screen

    There are 6 fields on the infotype 25 screen we are using for this one client, P0025-PKT01 to P0025-PKT06, that use the data element BUPKT, which in turn is of the domain DEC3 - it is of type P, but it is essentially a whole number up to the hundreds.  Our client requested that these fields be able to accept numbers with 3 decimal places.  So my plan of action was to modify BUPKT to be of domain DEC3_3 (since doing that has no effect on other processes anyway), and then modify the screen fields to accommodate the change.
    This is where I got lost.  I only managed to manually extend the length of the fields, and my gut feeling says that I'm missing something.  Sure enough, I tried to create a record in said infotype, and the process still treats the contents of the fields as whole numbers.  For example:
    KRT01 = 0.70
    PKT01 = 2.95
    PROD1 = KRT01 * PKT01
    PROD1 = 0.70 * 2.95
    PROD1 should be 2.065, but the total says 2, 065!  It interpreted 2.95 as 2, 950 (it's correct in having a length of 6, but it has no decimal point).
    Does the answer to this problem lie in the screen modification, or will this require enhancements?  Or can I just regenerate the entire screen?  Please help me.

    normally the dynpro inherits field attributes from DDIC, so if you changed the data domain it should be OK
    now if you have a problem with values, the easiest way will be to divide them by 1000 each time you handle a calculation on those values...

  • Automatic UserName for Audit Field

    Hello Everyone,
    I have a Form with various fields,including the AUDIT field.I need to get the user name(logged in user) automatically to this field.How to do it??????????????

    Hi Scott,
    I assume you just want to record in the table the username that updated that field? Is this correct.
    I would possibly by pass the forms and just use a trigger on insert or update of the table.
    Add two columns to the table
    updated_by varchar2(50)
    last_update date
    Create a trigger that looks like this
    create or replace TRIGGER lu_my_table BEFORE INSERT OR UPDATE ON my_table
    FOR EACH ROW
    BEGIN
    :new.updated_by := nvl(v('APP_USER'),'DB_USER');
    :new.last_updated := sysdate;
    END;
    That won't give you a history, just the user who last updated the data. You can just add these two columns into your report.
    Chris

  • How do you edit the url field

    When you create an iCal event from a mail message, the mail link is added the url field. I later receive another email with an update regarding the event. How can I change the url link to point to the new email message. I don't find anyway to modify the url field once it's been set. Will I have to just remove the old event and create a new one? That wouldn't be as desirable.

    Ditto here. Is there no way to edit the URL field? you can edit Attendees...I haven't tried editing the Attachments field...

  • How to modify the field lengh of file upload

    Hi All,
       I am facing a problem with u201Cuploadu201D filed length in BSP application.
    When we upload the file in BSP page, the path displayed should be the full path (i.e. from where the file is being upload the file)
    Now this field is appearing 20 char length
    Now I want to increase the length of the upload field (Input field) to be 100 char so that the path is visible.
    In the current application the file upload is being done through a structure (attributes)
    In this structure the fields are like this
    PAGE_NAME
    ID
    FOR
    TAGS
    ROW_INDEX
    COLUMN_INDEX
    OTR_NAME
    REQUIRED_NAME
    MAXLENGTH
    SIZE
    TABLE_NAME
    ON_SELECT
    VALUE
    DISABLED
    ONCLICK
    TEXT
    TYPE
    Using this method:
    CALL METHOD cl_htmlb_fileupload=>factory
              EXPORTING
                Id      = ls_form_save-id
              RECEIVING
                Element = lv_fileup.
            bee_table->add ( level = 2 element = lv_fileup ).
    This cl_htmlb_fileupload is named as class interface.
    Which has the CLG_HTMLB_FILEUPLOAD (it is a class) it is defined in attributes.
    In this class it has the attribute u201CSIZEu201D by default string 20.
    Now I need to change this attribute length from 20 to 100
    For this I copied the standard class CL_HTMLB_FILEUPLOAD into ZCL_HTMLB_FILEUPLOAD.
    This ZCL_HTMLB_FILEUPLOAD contains all attributes of the standard class CL_HTMLB_FILEUPLOAD
    Including the one class (CLG_HTMLB_FILEUPLOAD), this is defined as an attribute (ABOVE MENTIONED?)
    This class is appearing in non editable mode, so   I have copied this class into zclass (ZCLG_HTMLB_FILEUPLOAD).but still I am not able to edit the attribute called u201Csizeu201D
    And also I am not bale to add the zclass in place of the ZCLG_HTMLB_FILEUPLOAD
    Kindly tell me how to modify the length of the field u201Csize u201Cand also how to add the zclass in the attributes of one class (syntax)
    Thanks in advance
    Rambabu.A

    Hi,
    Class CLG_HTMLB_FILEUPLOAD is a class automatically generated when a BSP Element is created. You should not change/create such a class, unless by creating your own BSP Element.
    As per your requirement, you can use the SIZE parameter of method factory:
    ls_form_save-size = '100'.
    CALL METHOD cl_htmlb_fileupload=>factory
    EXPORTING
    Id = ls_form_save-id
    Size = ls_form_save-size
    RECEIVING
    Element = lv_fileup.
    Regards,
    Tanguy

  • Modify the Field Type of standard Table fields in a Query

    Hello. I have a question.
    Is there a way to "modify" the field type for standard table fields that are included in a Query?
    I made a simple query out of a join of tables, but several fields have a lot of decimals, and I would like to present them in the query without any decimals, just as a regular "N" field.
    I tried the possibility of creating extra local fields where all I do is transfer the value to the new "N" field, but I have many fields like this, so if there's a better way; I'd prefer that.
    Maybe somewhere in the InfoSet there's a way to modify the type of the standard table fields?
    Thank you.

    Hi,
    This document may help you out.
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/d2/cb4468455611d189710000e8322d00/frameset.htm|http://help.sap.com/saphelp_erp60_sp/helpdata/en/d2/cb4468455611d189710000e8322d00/frameset.htm]
    Cheers,

  • Modify the text of a data field on the screen

    Hi,
    I am looking to change the text of a  SAP data field on the display screen for an infotype 106. I have the required object key for it. When I entered the key it logged me successfully, however it displayed a message that I am not authroized for changes. Infact as a developer my user profile has the highest authroization level 'SAP_ALL'.
    I am looking to modify the module pool MP010600 and screen number 0100 on the infotype screen 106.
    It displays the message:
    "you have no authroizations for the authroization object 'S_DEVELOP' which would allow you to change the screen'. I checked with the admin guy. He did not have a clue either. Am I missing something?
    Any thoughts how to resolve it?
    It would be very helpful.
    Thanks in advance,
    VG

    Thread closed.

Maybe you are looking for

  • How can I update iTunes 11.1.2?

    I recently bought an iPhone 5c and I plugged in my phone to sync with my iTunes library. However, I had not installed the latest update yet and my computer notified me that I must have the latest update (11.1.2) to sync my new device. So I attempted

  • Exempted vendor Service Tax Issue

    Hi , One our vendor having exemptions from service tax . The scenario is follows If total amount of invoice is 100000 Rs then in normal case service tax payable is 10.33 % = 10330 Rs and Total value is 110330 Rs . Now for this particular vendor if am

  • Invisibility sticks

    I have a series of visualizations in a TabPane. They are classes that extend StackPane. Some of them are a little expensive to layout, so their layout routines check isVisible() and return if they are not showing. I have a ChangeListener on the visib

  • Itunes/ express failure

    Hello, I`ve downloaded the latest version of itunes and when connecting to my airport express, I get "Unknown error code -3256"..... and no connection. I`ve had itunes for years, had the usual glitches and have tried to sort this one out, spent all d

  • Question for experts: SVG vs GIF

    Hello everyone Lets say I have a website that is populated with multiple simple and complex, plain white icons. These icons will be resized in muse where needed, sometimes they will be with reduced opacity. The website is heavy on parallax scrolling