Generate History

Hi all,
i will be very happy if iget a help from you, the tema is ABAP WD, i have created 2 field, one for Notes and the other one for history, and when writing my text in the notes field, after klicking save "Button"  it should be saved, and the history must be generated with date and user and cient, , my text is already saved in a DB table,  but next step, i need help for it,
Kind regards

Hi,
Can you please elobrate your problem as what excatly your requirement is?
You have two fields "Notes" and "History". What you want is what ever you type in Notes field should be displayed on the history field after save with client , date and time. and next time whne the application is opened the history should be there and any new content written in "Notes" should again save on the "History" field after save.
So are you saving field history in any DB table in ECC?
If yes then its pretty easy to achieve.
On action of your save button get the values of the context attribute of the "Notes" Field and set the context attribute of "History" field after concaneting with system time , date and client.
Thanks
Pradeep

Similar Messages

  • Activation of History Log for Material Classification CLASS TYPE 001

    Hi All.
    I've a question about this object.
    We need to launch RCCLUKA2 to activate multiple objects registration and to generate history log for changes in classification of materials (AUSP table).
    Reference are sap notes 942691 and 943559.
    I FOUND OUT THERE'S a big problem. RCCLUKA2 change AUSP objek key, using internal number range from INOB objects.
    There're hundreds of custom reports and other stuff that read AUSP directly with Matnr Code as objek key.
    I think that's a serious problem, isn't it? Or is there any solution about ?
    Thanks for Help!
    _______> old message
    This report RCCLUKA2 does 5 steps.
    1 step: activation flag for multiple objects in table TCLA and TCLAO only for  input class type (in this case 001 -> MATERIAL);
    2 step: download of KSSK data and AUSP data in two text files (name defined in input parameters);
    3 step: delete all KSSK data and AUSP data for class type 001,  10.000 records every loop;
    4 step: create reference object in table INOB for all records inserted in KSSKFILE, inserting all records in KSSK table at END of INOB upgrade;
    5 step: inserting record in AUSP table from all records inserted in AUSPFILE, using INOB objectid created in step 4.
    DEQUEUE ALL
    We think that this process is a little bit dangerous in production system, due to procedures that always run, in background or foreground.
    I've found a work around that creates an implicit enhancement for LCLVFF10 form FILL_REDUN.
    I think that it's not suggested to create this enhancement because of the missing flags in TCLA/TCLAO and missing reference in INOB and KSSK database.
    This enhancement would create records only in CDHDR and CDPOS with a general key object reference (such concatanate matnr(without-letters) mafid and atinn code).
    This enhancement couldn't also activate the standard function of reading document changes from standard menu in MM03/MM02/MM01, etc..
    Do you have any suggestion about this?
    RCCLUKA2 is a very old report. SAP didn't give any advice or upgrades for this need?
    Thanks for your help
    Message was edited by: Roberto Vacca

    Dear ,
    changes in values for a characteristic can be monitored in CL20N but as for MM02/MM03 transaction only for class type 023.
    For class type 001 or 300 the change document isnu2019t available.
    Thanks.

  • Adobe Ant peculiarity -- "Waiting for history.htm"

    Hi,
    I'm using the Ant tasks from Adobe labs, and when I run Ant
    via Flex Builder 2, it generates our output .swf differently
    compared to running the Ant task from a shell. We noticed this
    because it is causing a user-noticeable issue on our webapp.
    I'm hoping someone might have some insight into why this
    happens, and/or ideas on how to get the Ant execution working
    consistently.
    First off, let me explain my setup. I am using a separate
    bundle of Ant 1.7 (all the members of my team are using the same
    Ant version from a well-defined location). I copied flexTasks.jar
    and flexTasks.tasks to the ant\lib directory. I have Flex Builder
    use this bundle of Ant (Run menu -> External Tools ->
    External Tools, choose the Ant configuration, go to Classpath tab,
    set Ant home).
    Here is my "flexc" target:
    <!--=================================================================================
    Compile Flex sources into tds_flex.swf, and generates the
    html wrappers too
    -->
    <target name="flexc" description="Builds the flex
    front-end">
    <taskdef resource="flexTasks.tasks"
    classpath="flexTasks.jar"/>
    <mxmlc file="${dir.war}\tds_flex.mxml"/>
    <html-wrapper title="product name here"
    application="tds_flex" swf="tds_flex"
    version-major="9" version-minor="0" version-revision="0"
    history="true" template="express-installation"/>
    </target>
    When we execute this target within Flex Builder, the
    resulting application works. When we execute the target from a
    shell, the resulting application does not "work". (The definition
    of "work" in this context is that a user can get to our webapp and
    have it load completely. When it doesn't work, the browser shows a
    message "Waiting for history.htm" in the status bar.) The cause of
    this issue has been traced to the generated history.swf file; if we
    save a copy of this file from a good build, and copy it over the
    resulting history.swf from a bad build, then the webapp works.
    I've also found that executing my Ant flexc target within
    Eclipse will also generate a working webapp (which isn't too
    surprising considering Flex Builder is based on Eclipse), and
    executing the target from within IntelliJ will not make a good
    build.
    The only thing I could think of is that Eclipse/Flex Builder
    is invoking Ant differently. Does anyone have any insight into
    finding out how it is doing this?
    Thanks,
    KaJun

    I have no guesses as to what might be causing the difference,
    but when I'm debugging ant issues, I often use the -verbose flag.
    One option for dealing with the difference is to rebuild the Flex
    Ant tasks using the history.swf that works for you. The Flex Ant
    tasks include all the source, templates, and a build.xml for
    rebuilding.
    Another option is to get the Ant tasks that now ship with the
    Flex 3 SDK and try them out. The new templates no longer use
    history.swf. You can get the Flex 3 SDK beta here:
    http://labs.adobe.com/technologies/flex/sdk/

  • Error while saving Web Template in WAD

    When i try to save a web template in WAD i get an error masg " Unable to generate history entry" and when i save ok i can see that the templete has been saved wven though i had the error message.I am in BI 7.0.Any idea what this error is and how do i get it resolved

    Hello,
    This error comes when your portal configuration is incorrect.
    please deploy the support Desk Tool according to the note 937697 and fix the portal configuration.
    Regards, Karol
    SAP NetWeeaver BI, Development

  • IP Report not input enabled

    Hi Experts,
    I have done the below activities to make an IP report for manual planning.
    1)Creation of real time cube and made is available for planning by setting.
    2)Created aggregation level on around 7Characteristics & 4Key figures.
    3)Created a Bex query with all the 11 infoobjects as present in the aggregation level.
    4)Made the query to open in change mode.
    5)All 4 key figures are ready for input.
    6)Created a WAD template with analysis grid and its source is BEx query.
    7)Infocube in planning mode.
    The planning sequence & planning functions are running as desired when executed.
    However, even after all the above required setting when I run the WAD the key figures aren't coming as editable.
    I every now and then get these 2 below errors in WAD.
    '014 Transformer exception while transforming BEx Web templates'
    '171 Unable to generate history entry'
    However, when I ignore the messages I can still work properly on WAD and have completed the IP report
    Also I checked for disaggregation option of key figures setting in Bex query under planning tab.
    There I am getting below error.
    'Not supported by server'
    I learnt that this disaggregation property needs to be enabled only if manual planning is based on totals(e.g. result role) and not on individual rows of characteristics.
    I have just 4 records in the cube which are unique so every line in the report is unique.
    Even though all the criteria's are met I am still not able to get IP report with manual editing option.
    Please provide your valuable inputs.

    Hi Neeraj,
    you don't need characteristic relationships.
    Key figures usually have a currency or unit characteristic. Using such a key figure in an aggregation level requires the corresponding currency or unit characteristic to be included in the aggregation level since the key figure alone makes no sense.
    Create the following query as a simple test:
    - put all key figures of the aggregation level in the data columns of the query
    - drill down all characteristics in the rows of the query
    Are now some cells input-ready?
    If yes, then some of the requirements I mentioned above were not met by your old query.
    Regards,
    Gregor
    Edited by: Gregor Dieckmann on Jan 27, 2012 6:09 PM

  • What is a like profile in SCM?

    I search my APO book and SDN, I cannot find the exact definition of like profiles
    Would you please explain what is  a like  profile?
    Thanks!

    Hi,
    The F1 help in the field 'Like Profile' is self explanatory. Please see the text from F1 pasted below.
    *Profile Number for Like Dependency in Material Forecast*
    Used in Demand Planning, a "like" profile allows you to create the demand forecast of a product using the historical data of a product or products whose demand behavior is the same or similar.
    Use
    Use "like" modeling for products with short lifecycles or for products with insufficient historical data.
    You can use the same "like" profile for multiple products.
    Procedure
    To create a "like" profile:
    1. Call the product's master record in Create or Change mode.
    2. Select the Phase-in/phase-out tab.
    3. Select Maintain next to the "Like" profile field.
    As an alternative to steps 1-3, choose Goto -> LIKE profile -> Define from the master forecast profile.
    4. Enter the product or products whose historical data you wish to be used to create the forecast.
    5. For each product, enter an action. There are two possible actions:
    "S": This product's historical value is added to the forecasted product's generated historical value.
    "A": The mean average historical value for all products of action type "A" is added to the forecasted product's generated historical value.
    6. For each product of action type "S", enter a weighting factor or a weighting profile.
    If you enter both a weighting factor and a weighting profile, the system uses the weighting profile. If you enter nothing, the system sets the weighting factor to 100%. If you enter a weighting factor and/or a weighting profile next to a product of action type "A", the system ignores these entries.
    7. If required, enter a lag. You must enter the same lag for each "like" product.
    8. Choose Save.
    Example 1: "Like" Profile for MegaChocShock 200g
    "Like" product  Action History Factor  Generated history
    ChocBloc 50g  S  100  66  66
    ChocBloc 75g  S  200  34  68
    MegaChocShock 200g    134
    =======================================================================
    Example 2: "Like" Profile for MegaChocShock 300g
    "Like" product  Action History Factor Generated history
    ChocBloc 50g  S  100  33  33
    ChocBloc 75g  S  200  17  34
    MegaChocShock 100g A  100  -  150 [(100 + 200)/2]
    MegaChocShock 200g A  200  -  
    MegaChocShock 300g    217
    =======================================================================
    Example 3: "Like" Profile for MegaChocShock 400g
    Like...  Action Month History Factor Profile Generated history
    MCS 200g S  Jan  200  33  -  66
    Feb  250  33  -  82.5
    Mar  200  33  -  66
    Apr  300  33  -  99
    MCS 300g S  Jan  300  -  50  150
    Feb  200  -  30  60
    Mar  300  -  50  150
    Apr  400  -  70  280
    The generated history for MegaChocShock 400 is therefore:
    Month  Calculation  Result
    Jan  66 + 150  216
    Feb  82.5 + 60  142.5
    Mar  66 + 150  216
    Apr  99 + 280  379
    Example 4: "Like" profile for MegaChocShock 500g
    This example shows you how to use different "like" products in different periods.
    Like...  Action Month  History Profile Generated history
    MCS 300g S  Jan 98 300  100  300
    MCS 300g  Feb 98 200  100  200
    MCS 300g  Mar 98 300  100  200
    MCS 300g  Apr 98 400  100  400
    MCS 300g  May 98 400    0  0
    MCS 300g  Jun 98 400    0  0
    MCS 300g  Jul 98 400    0  0
    MCS 300g  Aug 98 500    0  0
    MCS 400g S  Jan 98 300    0  0
    MCS 400g  Feb 98 300    0  0
    MCS 400g  Mar 98 250    0  0
    MCS 400g  Apr 98 300    0  0
    MCS 400g  May 98 300  100  300
    MCS 400g  Jun 98 350  100  350
    MCS 400g  Jul 98 400  100  400
    MCS 400g  Aug 98 450  100  450
    The generated history for MegaChocShock 500g is therefore:
    Month Calculation  Result
    Jan  300 + 0  300
    Feb  200 + 0  200
    Mar  200 + 0  200
    Apr  400 + 0  400
    May  0 + 300  300
    June  0 + 350  350
    July  0 + 400  400
    Aug  0 + 450  450
    Dependencies
    You must assign the profile to one or more products. To do this, choose Goto -> LIKE profile -> Assign from the master forecast profile and make the desired entries. You can also assign a "like" profile to a product on the Phase-in/phase-out tab of the global product master record.
    To limit the use of the "like" profile to particular locations, choose Goto -> LIKE profile -> Assign from the master forecast profile and make the desired entries.
    Edited by: Senthil_APO on Oct 1, 2009 1:54 PM

  • CPU and Memory Utilisation Report from GROUP in OEM

    Hi,
    I am trying to generate History Average CPU and Memory Utilization from Charts in GROUP, but am getting following error..
    Servlet error: Internal Error has occured. Check the log file for details.
    or Is there any alternate to generate Histoty of Average CPU and Memory Util;ization Report.
    Please help me on this.....
    Thanks in Advance

    Bouns the oms and check

  • After insert trigger with :NEW.ROWID

    Hi All,
    I am using a After insert trigger to generate history record as following:
    CREATE TABLE TB_TEST (classID number(3), classNm varchar2(12));
    CREATE TABLE TB_HIST_TEST (hist_dttm timestamp(6), classID number(3), classNm varchar2(12));
    CREATE or REPLACE TRIGGER air_test AFTER INSERT ON tb_test FOR EACH ROW
    BEGIN PK_SRVC.CRT_NewRec('TB_TEST', 'TB_HIST_TEST', :new.ROWID); END:
    In PK_SRVC package, I use the following statment to create new record in TB_HIST_TABLE:
         Insert into tb_hist_test (hist_dttm, classID, classNm)
         values (select systimestamp, classID, classNm from tb_test where rowid = ROWID )
    The trigger DOES fire when a new row is inserted into TB_TEST. However there is no record inserted into TB_HIST_TEST. Any suggestion?
    Thanks,

    The PK_SRVC.CRT_NewRec is a generic service package that can be shared by many tables. It uses dynamic SQL to get all the collumns for different tables based on USER_TAB_COLUMNS.  The following is the code of this package:
    PROCEDURE CRT_NewRec ( p_TableName IN VARCHAR2, p_AudTableName IN VARCHAR2, p_RowID)
    IS
           TYPE TabCol_RecTyp IS RECORD (COLUMN_NAME VARCHAR2(30), COLUMN_ID NUMBER);
           TYPE TabCol_CurTyp IS REF CURSOR;
            c_TabCol TabCol_CurTyp;
            rc_TabCol TabCol_RecTyp;
            v_Sql_TabCol VARCHAR2(1000);
            v_ColNames VARCHAR2(1000);
            v_Sql VARCHAR2(1000);
            PRAGMA AUTONOMOUSE_TRANSCATION;
    BEGIN
            v_SQL_TabCol := ' SELECT column_name, column_id FROM USER_TAB_COLUMNS'
                                      ||  ' WHERE table_name = ' || CHR(39) || p_TableName || CHR(39)
                                      || '  ORDER BY column_id';
            v_ColNames := NULL;
            OPEN c_TabCol FOR v_Sql_TabCol;
            Loop
                   FETCH c_TabCol INTO rc_TabCol; Exit WHEN c_TabCol%NOTFOUND:
                   v_ColNames := v_ColNames || ',' || rc_TabCol.COLUMN_NAME;
            End Loop;
            CLOSE c_TabCol;
            v_Sql := 'INSERT INTO ' || p_AudTableName || '(HIST_DTTM, ' || v_ColNames || ' )'  
                      || ' SELECT systimestamp, ' || v_ColNames || ' FROM ' || p_TableName
                      || ' WHEN ROWID = chartorowid(' || CHR(39) || p_RowId || CHR(39) || ')';
             EXECUTE IMMEDIATE v_Sql;
             COMMIT;
    END;    
    (charmingholidays-yyz)

  • Error message while saving Webapplication

    Hi Experts,
    I'm learning SAP BI from SAP Help.
    while trying to do create a web application i have struct up with a message while saving the web application "RSOBJS 171 Unable to generate History Entry" .
    and when i'm trying to execute it is showing the below message in the BEx Launcher
    " Exception in BI runtime
      Initial cause
      Message:
      No message was provided.
    Stack trace:
    java.lang.ClassCastException "
    can anybody help what i should do to proceed further and execute the application.
    thanks in advance.
    Regards,
    Pavani.

    Hi Pavani,
    Please look over the notes: 944370 & 573284.
    Symptom:
    When saving an object (Query, Workbook, Webtemplates) in BI 7.0 system using BEx Tools, the user receives a message saying "Unable to generate history entry".
    Additionally, the user does not see any History entry in Web application designer, and the open dialog shows no history entry in any of the BEx tools.
    Other terms
    Reason:
    Personalization has not yet been activated in the current BW system.
    Solution:
    - Logon to SAP GUI
    - enter t-code RS_PERS_ACTIVATE to go into Activating Personalization in BEx view.
    Here you select all check-boxes and Execute (F8).
    Relogon to WAD and you'll not get that error.
    Cheers,
    Nhan Phan

  • Internal Error while Generating the History

    Hi All,
    In BI7, going through Bex Analyzer when i log in i get this message " Internal error when generating the History. Use a different view".
    The rest of the options i.e.roles, favorites, Infoarea are all okay but clicking the history tab pops up this message.
    any thought??
    Thanks,
    Talib

    check whether You activated the SPRO setting for BEX.
    SPRO -->SAP Business Information Warehouse --> reporting relevant settings -->
    general reporting settings > activate personilisation in BEX>
    P

  • Error: Internal Erorr when generating the history. Use a different view.

    Hello,
    When I am trying to open an workbook in BEX. I get the message: Internal Error when generating the history. Use a different view.  (production system)
    How can I solve this problem? And what could be the reason? In our Development and QAS everything is OK!
    Regards,
    Boyke

    hi
    If nobody have change or write access in prod, then
    ensure that everything is OK in QAS,
    Execute the workbook and views in QAS.
    If it works fine there, some thing is missing in the transported objects.
    Ensure everything is transported correctly
    Thanks
    N Ganesh

  • WAD-Internal Error when generating the history. Use a different view!

    Hello,
    When i am trying to open the WAD(Webapplication designer), BEx Open Dialog is being displayed with the message "Internal Error when generating the history. Use a different view"
    how to solve this problem...?
    Thanks
    kumar

    Hello Jeff,
    Thanks for your help, and it has solved my problem. Under Activate Personalization in BEx...
    I have seen 2 more options
    -Variable Personalization
    -Web Reportperson
    Could you inform me the pupose of above 2 options?
    Regards..

  • Calculate depreciation and generate Assets History Sheet / system currency?

    Hi, I want to know if I can calculate the depreciation and generate Assets History Sheet in system currency which is different of local currency. in fact the amount of depreciation calculated in TND and converted in euro is different of the amount calculate directly in euro.
    Example:
    01/01/2009 (rate EURO/TND = 1,27 )
    Acquisition cost: 1000 euro = 1270 TND
    Percentage of depreciation   10%               
    If I calculate the depreciation in TND and convert it in euro the amount is equal to 1270*10%/1,7(rate EURO/TND at 31/12/2009)= 74 euro
    otherwise if I calculate the depreciation directly in euro the amount is equal to 1000 *10%=100 euro
    Thanks.

    Hi Mohamed,
    If the asset is acquired with foreign currency, it will be booked with both local and foreign currency in accounting, but the asset values and depreciation will be always converted and calculated with local currency.
    How ever per your scenario, you can implement the report this way:
    1.You can get the planed and posted deprecaiotn value in local currency (TND) by depreciation area, period and asset number in table @BA_ODPV
      - Depr value for 2009 = 1270 * 10% = 127 TND
      - Depr value per month = 127 / 12 = 10.58 TND
    2.Convert the depreciation value into sysetm currency (EURO) with the exchange rate on acuqistion day (01/01/2009 (rate EURO/TND = 1,27 )), thus you need to retrieve the exchange rate on 01/01/2009 from table ORTT
      - Depr value for 2009 = 127 TND, you can easily get this with SQL
      - Depr value for 2009 = 127 / 1.27 EURO = 100 EURO  (01/01/2009 (rate EURO/TND = 1,27)
    SQL for report (You may set the ratedate and fiscal year as parameter):
    --Retrieve the exchange rate from ORTT by date and currency
    declare @rate as float     
    select @rate = Rate from ortt where RateDate = convert(datetime,'20090101',112) and Currency = 'USD'
    --Sum up the depreciation value grouped by asset number and filerd with fiscal year and depreciaiton area
    --Report: Asset Numer, Fiscal Year, Planed Depr., Posted Depr.
    select U_AsstNum as 'Asset Number',U_FisYear as 'Fiscal Year',sum(U_OrDpPlan)/@rate as 'Planed Depr.', sum(U_OrDpAct)/@rate as 'Posted Depr.' from [@ba_odpv]
    where U_FisYear = '2009' and U_DprArID = 100
    group by U_AsstNum,U_FisYear
    3.Display the report with PLD
    Hope it helps. Thanks.
    Regards, Yatsea

  • Stat forecast got generated without any order demand history

    Hello ,
    I have a issue came in , where we are seing a Stat forecast got generated without any order demand history. Is there any forecast strategy avaialable which can cause it.
    Any hint is appreciated.
    Regards
    Deven

    Hi Deven,
    may be due to some redundant data this issue is coming.
    Just write a simple macro and Give ROW_INPUT (0) to your history keyfigure .This will zero out the data for your "History" keyfigure.
    Again try to generate stat fcst see what is coming.
    Hope this will resolve your query.Same is the case happen with me i tried the same thing which i mentioned here.
    Regards,
    Nitish Panchal

  • To find out the history of alerts generated from repository .

    Hi,
    I have my grid control repository database with following details:
    Version:- Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
    OS:- AIX
    How can I find out the alerts generated in the past. For example, currently i need following two informations :
    1. How many critical alerts where generated related to temp tablespace in last three months and for which database ?
    2. During a os patching activity, it was found that targets where not blacked out properly. How do we find that what where the targets that were not balcked out properly ?
    Is there any way to find the above two information from the repository database?
    Regards
    Vinita

    I think you might have the wrong forum.

Maybe you are looking for