Retrieve date, time, guid and user id data from IP u2013wrong mapping of fields

Hi
I have used the How to guide Line Items in BI Integrated Planning to implement the functionality to save the username, guid, date and time of who is planning. I do not get any errors but the field 0uname is empty and the guid field gets the username of the planner (0uname). The date and time field get populated correctly. Why does the fieldu2019s username and guid populated incorrectly? Do I have to change the code (I just copied the code from the How to document)? To me the abap code looks correct.
We use BI 7.0 and SPS 17.
Kind regards
Erik

Try this: Just replace the objects for ...LOGD = date, ...LOGT = time and ...LOGU = User:
FIELD-SYMBOLS:  <l_chavl> TYPE ANY,
                <l_curk> TYPE ANY.
ASSIGN COMPONENT '/BIC/M2PLOGD' OF STRUCTURE c_s_chas to <l_chavl>.
<l_chavl> = sy-datlo.
ASSIGN COMPONENT '/BIC/M2PLOGT' OF STRUCTURE c_s_chas to <l_chavl>.
<l_chavl> = sy-timlo.
ASSIGN COMPONENT '/BIC/M2PLOGU' OF STRUCTURE c_s_chas to <l_chavl>.
<l_chavl> = sy-uname.
Regards,
Andreas

Similar Messages

  • Extract date/time stamp and modifier name from memo field

    I need to extract all date/time stamps and modifier name strings from the Work Log memo field - or conversely, filter out all of the comments after the date/time modifier strings.    I have the string extract but it only extracts the first one.  I need to loop until all are found - how can I do this?  The memo field will look something like this:
    3/5/2009 3:32:05 PM John Doe
    Comments - string can be any length
    3/4/2009 12:35:43 PM John Doe
    Comments - string can be any length
    3/4/2009 12:28:17 PM Jane Dough
    Comments - string can be any length and include date format 2009-06-04 14:20 CST.
    3/4/2009 12:27:47 PM Mary HadaliddleLam
    Comments - string can be any length
    3/4/2009 12:26:55 PM Lamseedivy
    Comments - string can be any length
    3/4/2009 12:15:22 PM Mareseedoes
    Comments - string can be any length.

    Here is a formula that will strip all 'comment' and blank lines and puts the datetime stamp and user names into an array.  You have to manipulate the elements of the array to further separate the datetime stamp and user name if required.
    // Declare two indices
    numbervar i := 1;
    numbervar j := 1;
    // Split each row of the memo field into an array
    // if chr(10) does not work then try with chrw(13) or chr(13)
    stringvar array x := split({Sheet1_.Comments},chr(10));
    // Declare a holding array
    stringvar array y;
    // Declare the size of the new array to be equal to the elements in array 1
    redim y[ubound(x)];
    // Copy only if the first word of each element of array 1 is neither "comments" nor a blank line
    for i := 1 to ubound(x) do
    if split(x<i>) = 'comments' or x<i> = '' then
    else
    (y[j] := x<i>;
    j := j + 1;
    // Compress the new array to eliminate the last blank element
    redim preserve y[j-1];
    // Joining the elements of the new array and the number of elements for display
    join(y,chrw(13)) & chrw(13) & ubound(y);
    With your example, this formula will return:
    3/5/2009 3:32:05 PM John Doe
    3/4/2009 12:35:43 PM John Doe
    3/4/2009 12:28:17 PM Jane Dough
    3/4/2009 12:27:47 PM Mary HadaliddleLam
    3/4/2009 12:26:55 PM Lamseedivy
    3/4/2009 12:15:22 PM Mareseedoes
    6.00
    Make sure the "can grow" option is checked to display the results and also check for case sensitivity of "comments".
    Edited by: Sanjay Kodidine on Jun 30, 2009 10:13 AM

  • Can you export the date and user to Excel that appears into a Comments field in a tracking list?

    Hi everyone,
    Can you export the date and user to Excel that appears into a Comments field in a tracking list?
    When i export a tracking list with a Comment field in the Content type, the screen where you enter the data for an item, the Comments field just export the text of the comment into the Excel file.
    In the Comments field appears also, besides the comment text,  the user and date from who and when the comment is added.
    Is there a way to export also the user and the date?
    Thanks
    Wim

    create another comment field that doesn't use 'appending', and through SP Designer change workflow keep
    updating that field with the new comments  (prepend the field with date/username/new comment). Hide the field on all forms, but put it in the view you need to export to Excel.
    Please refer few more links: Hope they will help
    http://www.nothingbutsharepoint.com/2009/04/16/versioning-append-changes-to-existing-text-view-entries-aspx/
    http://sympmarc.com/2011/02/07/showing-all-versions-of-append-changes-to-existing-text-in-a-data-view-web-part-dvwp/comment-page-3/
    https://mossipqueen.wordpress.com/2013/03/06/display-all-appending-field-entries-in-a-single-list-view/
    http://community.office365.com/en-us/f/154/t/278560.aspx
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • GREP: date/time search and replace

    Hi everybody,
    I frequently import XML files to InDesign. The XML structure always contains the following information among others:
    start date
    start time
    end date
    end time
    For example, it looks like this:
    21.08.2013
    09:00
    25.08.2013
    18:00
    Now I need to re-arrange these fields in one row, just like this:
    21.08.2013, 09:00 - 25.08.2013, 18:00
    I already found out how to do this via GREP, but I need to go one step further:
    If "start date" and "end date" are the same (for example both are "21.08.2013"), I would like to skip the "end date" in the output. It should look like this:
    21.08.2013, 09:00 - 18:00
    Is there a way to do this via GREP?
    Thanks in advance!

    This will do it
    Trevor
    // By Trevor http://forums.adobe.com/thread/1261365?tstart=0
    app.doScript("formatDates ()", ScriptLanguage.javascript, undefined, UndoModes.ENTIRE_SCRIPT, "GREP: date/time search and replace");
    function formatDates ()
            app.findGrepPreferences = app.changeGrepPreferences = null;
            app.findGrepPreferences.findWhat = "\\d\\d\.\\d\\d\.\\d\\d\\d\\d\r\\d\\d:\\d\\d\r\\d\\d\.\\d\\d\.\\d\\d\\d\\d\r(?=\\d\\d:\\d\\d\r)";
            var doc = app.activeDocument,
                  dateFinds = doc.findGrep(),
                  l = dateFinds.length, dates;
            while (l--)
                    app.findGrepPreferences.findWhat = "(\\d\\d\.\\d\\d\.\\d\\d\\d\\d)";
                    dates = dateFinds[l].findGrep();
                    app.findGrepPreferences.findWhat = "(\\d\\d\.\\d\\d\.\\d\\d\\d\\d)\r(\\d\\d:\\d\\d)\r(\\d\\d\.\\d\\d\.\\d\\d\\d\\d)\r";
                    if (dates[0].contents == dates[1].contents) app.changeGrepPreferences.changeTo = "$1 $2 - ";
                    else app.changeGrepPreferences.changeTo = "$1 $2 - $3 ";
                    dateFinds[l].changeGrep();

  • Data Management Guide and ALE Monitoring Guide

    Hi All,
    I'm looking for two SAP documents (pdf) that have been available in the past.
    Data Management Guide and ALE Monitoring Guide.
    Have scoured the net and sap.service.com, but can't find them anywhere.
    Does anyone know where the latest versions live?
    Thanks,
    Chris

    they are still available:
    http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000695478&
    Systems Operation
    -> Monitoring
    -> setting up your monitoring
    They are also available in solution manger.

  • Any difference between Master data and User master data ?

    Any difference between Master data and User master data ?

    hi
    A user master record defines the authorizations assigned to a user. Based on these authorizations one can access the master data.
    Master data - it is the data which is used long term in SAP r/3 system such as vendor master , material master, customer master,
    there is no such thing like user master data to the best of my knowledge
    hope this helps
    regds
    Manan

  • Using a checkbox in numbers- if,then, I want to display today's date if checked, and keep that date, the day it was checked, not the current day

    Using a checkbox in numbers- if,then, I want to display today's date if checked, and keep that date, the day it was checked, not the current day

    this will not work.  Numbers does not provide a timestamp.  you can, however, enter the formula "=now()" in any cell, then copy that same cell, then paste (using the command "Edit > Paste Formula Results"
    If you need a time stamp often,
    make a single cell table with the formula (mentioned earlier).
    and copy and paste as needed

  • TS1424 Message "your request could not be completed...make sure computer date is correct and will accept cookies from ITunes Store"

    Attempting to purchase music on ITunes Store which I have done for years, now get message "your request could not be completed, make sure your computer date is correct and computer accepts cookies from ITunes Store." I have changed nothing. Of course the date and time are correct and my browser accepts cookies.

    Now the apple support team won't even e-mail me back. Not even saying no. This is rediculus.

  • GetSelectedFields()  for time stamp and user stamp using java api

    using Java API's
    getSelectedFields() returns NULL  value if values presented also, for Time stamp and User stamp
    properties in Flat tables , is there any other alternative way to get the SelectedFields values ?
    Edited by: Vijaya Sekhar Reddy Alla on Mar 19, 2008 3:16 PM

    Well, I can't say I solved the problem, because I got another one afterwards.
    As usually I created a GetFieldListCommand, set its needed attributes and executed it. Then I read all the field properties out:
    FieldProperties[] fieldProp = getFieldListCommand.getFields();
    Afterwards it is possible to do what you want. Using a for-loop.
    for (FieldProperties fp : fieldProperties) {
        UserStampFieldProperties usfp = (UserStampFieldProperties) fp; // <= Cast error
        FieldId[] fieldIDs = usfp.getSelectedFields();
    And this is what I get now:
    Exception in thread "main" java.lang.ClassCastException: com.sap.mdm.schema.fields.FixedWidthTextFieldProperties cannot be cast to com.sap.mdm.schema.fields.UserStampFieldProperties
    Why this happens, I don't know. But it should somehow be solveable.

  • Users Guide and Users Manual for iPod Touch 4?

    Has anyone located the PDFs for the "Users Guide" and "Users Manual" for iPod Touch 4? I can't seem to find them.
    TIA
    Judie

    In addition to the "User's Guide" there has also been a PDF "Features Guide" for each version of the iPod touch. (The one iwell provided a link for is not for the 4th generation iPod touch. (The 'at a glance' sketch shows the on/off button on the left. It's on the right on the 4th generation iPod touch.) It's possible Apple hasn't posted it yet. But I appreciate you both for trying. Thank you.

  • Difference between implementation guide and user guide.

    Hi All,
    I am a recent graduate, just wanted to know what is teh Difference between implementation guide and user guide.
    Sorry the question may sound to simple but I am not aware of the aswer.
    Regards,

    Hi,
    The implementation guide is the reference that you need to use to do the functional setup while the user guide covers how the navigation of the module/application and tells you how to use it.
    Thanks,
    Hussein

  • HT4108 can I use my IPAD with a data projector?  and does the data projector have to be an iOS compatible one?

    can I use my IPAD with a data projector?  and does the data projector have to be an iOS compatible one?

    You can connect via a cable or wireless using an Apple TV.
    http://ipad.about.com/od/iPad_Guide/a/How-To-Connect-Your-Ipad-To-Your-Tv.htm
    iPad Accessories: Connections for a TV or Projector
    http://www.dummies.com/how-to/content/ipad-accessories-connections-for-a-tv-or-p rojector.html
    You may be interested in AirPlay on the Apple TV:
    Apple - AirPlay - Play content from iOS devices on Apple TV
    http://www.apple.com/airplay/
    Alternately, there are Apple Digital AV Adapters for hardwired connections:
    iOS: About Apple Digital AV Adapters
    http://support.apple.com/kb/ht4108
     Cheers, Tom

  • Am replacing airport extreme with Time Machine and want to upgrade from Tiger to Snow leopard. Am told I should manually back up into T Machine before OS update but set up utility won't allow anything with OS below 10.5 and I'm 10.4.11. What to do?

    Am replacing airport extreme with Time Machine and want to upgrade from Tiger to Snow leopard. Am told I should manually back up into T Machine before OS update but set up utility won't allow anything with OS below 10.5 and I'm 10.4.11. What to do?

    I think you mean you are replacing your Airport Extreme with a Time Capsule. Time Machine is software integrated into OS X 10.5 & 10.6 used to automatically backup a system to an external HD. Time Capsule is an Airport Extreme that has a hard disk integrated into it that can be used for storage or  as a Time Machine backup drive.
    Because you are currently on Tiger 10.4.x you can backup to a external HD using SuperDuper or Carbon Copy Cloner. Having a backup is very wise before doing any major system update. After  you have created the backup and have successfully upgraded to Snow Leopard you can still use the external HD for many things. The strategy I'd recommend is to use the new Time Capsule as your Time Machine backup and then use the external HD as backup using SuperDuper or CCC. Redundant backups is wise because backups can (and do) fail too! In addition both SD and CCC are bootable clones, this is useful in that if your internal HD crashes you can boot from a cloned drive and continue working until the internal HD is replaced.
    Below are some links to some articles from MacWorld, I would recommend reading them where you find a common theme, redundant backups. Backup Plan I, Backup Plan II & Backup Plan III.
    Roger

  • Time and Date Stamp Format and User name

    Hi All,
    I am very new to adobe acrobat so forgive my ignorance.  I am trying to add a date and time stamp to pdf files using adobe acrobat so that when they are printed using adobe acrobat the print date will be automatically added.  First I have found the below script on the forum which is entered as a field, will this work using acrobat version 5 or version 7?  Also i believe that the date format is 10/01/2009.  How can I change this so that it will be in the 01 October 2009 and 24 hour clock format?  Finally how do I also add some descriptive text before the date and time i.e. 'print date' and 'not valid 24 hours after printing'?
    var f = this.getField("today");
    f.value = util.printd("mm/dd/yyyy
    h:MM tt", new Date());
    One last question is there a way to add a user stamp to a pdf so that when the document is printed out the user's name is printed i.e. 'printed by J Smyth'.
    Many thanks,
    John

    As noted, you need to change the formatting string to generate the date appearance as you need. You can add additional text to this string using the concatenation string operator, '+'. So you can do:
    var f = this.getField("today");
    var sDate = util.printd('dd mmm yyyy HH:MM tt", new Date())
    f.value = 'Print date: ' + sDate + ' not valid 24 hours after printing';
    All of the above information is covered in Adobe's freely down loadable Acrobat JS API and there are additional resources for JavaScript programing at the Acrobat Users Community and Planet PDF.
    Accessing the 'identity' object is more complex. First, all users will need to complete the 'Identity" information for the application's preferences, as only the login name is picked up from the OS. Then each user will need to have an application folder level JavaScirpt installed on their computer to capture this information during the application initialization of Acrobat/Reader
    // Folder level script to create an application level variables for the "identity" objects properties
    var Identity = new Array(); // array for the identity objects elements
    Identity.Corporation = identity.corporation;
    Identity.Email = identity.email;
    Identity.LoginName = identity.loginName;
    Identity.Name = identity.name;
    // or
    var Identity = new Array();
    for (i in identity)
    Identity.i = identity.i;
    You can then access the items in a PDF  by adding the array element name to the Identity array:
    // set a fied's value to the value of:
    this.getField("loginName").value = Identity.LoginName;
    this.getField("name").value = Identity.Name;
    this.getField("by").value = "By: ";
    this.getField("by").value += Identity.Name;
    You can find the necessary JavaScript folders for Acrobat using the following code in Acrobat's JavaScript debugging console:
    app.getPath("app","javascript");
    app.getPath("user","javascript");

  • Ok. Add me to the moron list. I guess I am an over zealous trash emptier. Can I retrieve those images from the vastness by entering my time machine and restore the library from a previous date (when I wasn't a moron?)

    Ok. Add me to the moron list. I guess I am an over zealous trash emptier. Can I retrieve those images by entering my time machine and restoring the Iphoto library from a previous date (when I wasn't a moron?)

    Masters is where you want to be. They'll be in there in folders based on the date and time they were imported.
    Regards
    TD

Maybe you are looking for

  • How can I renew my match subscription?

    I recently received a notice from Apple saying that my Match subscription could not be automatically renewed due to a problem with my payment option. I checked and everything was in order. However, I again received a notice saying that my subscriptio

  • My email and Internet is not working on MacBook Pro.  On iPad everything works.  On MacBook in mail I get the following message":

    Cannot send message using the server icloud The server "p07-smtp.mail.me.com" cannot be contacted on the default ports. Select a different outgoing mail server from the list below Can anyone help me on this?  Thanks

  • Samsung blu ray hook-up

    I guess i'm like a couple of people who are not getting the picture quality at home that we experience in the stores.  I would like to know the best way to hook up my Samsung blu ray player to my Samsung hd tv?  Just use the HDMI cable?  I also have

  • Best way to set up homesharing via airport express and NAS

    Hi, I've just bought an Airport express and was wondering what the best way to set it up would be so that I can play music stored on my NAS, controlled by my iphone / ipad.  I have itunes match as well, and don't want my phone to be streaming the mus

  • Smart Album's Display Wrong Photos (By Date)

    Compiling the family photos from vacation, about 8 different camera's. Different clocks on all the camera's I'm trying to get photos to show up in Date driven smart albums. Day 1 June 25 Day 2 June 26 I have adjusted the timezones successfully for mo