Issue in new macro calculating values in time series in CVC

Hi friends.
I'm new in APO.
I have a problem with a new macro in CVC which calls up a FM to calculate and store data.
This new macro calculates the selected data in time series (TS) and e.g. we select 3 days to make calculation with this macro, the first selected day in TS is ignorated.
We created this macro to do this calculation when user enter some manual values and want it to be calculated in the deliver points in CVC, by TS.
This macro calls up my Z function which internally calls up a standard FM '/SAPAPO/TS_DM_SET' (Set the TS Information).
Sometimes, this FM, raises error 6 (invalid_data_status = 6), but only when I user 'fcode_check' rotine together.
After that, we call the FM '/SAPAPO/MSDP_GRID_REFRESH' in mode 1 and 'fcode_check' rotine in program '/sapapo/saplmsdp_sdp'.
Firstly, I thought it could be dirty global variables in standard FM so I put it inside a program and called it by submit and return command. But now I think could not be this kind of error because it did not work. And inverted the results, and now only first line os TS get storted and change in CVC.
It's a crazy issue. Please friends. Guide me for a solution!
thanks.
Glauco

Hi friend. Issue still without a correct solution yet.
A friend changed the macro adding another step calling the same function. Now this macro has two calls in sequence to same FM. Now it's working, but we can't understand why it's working now.
It's seems like dirty memory in live cash.
Nobody knows how to solve this!
Glauco.

Similar Messages

  • Time series for cvc's

    hello
    In any case ( whether new cvc's added or the new period is to be included ) we create time series for the planning area. Not aware as to why Adjust time series option is given for Planning Object Structure at the time of creation of cvc's.
    Any thoughts please
    regards
    KK

    Hi
    Yes you are correct we have some background jobs for create time series for the planning area which might execute depending on our frequency. But if you create CVCs and try to check before our program has to be executed in background we might have inconsistency. To avoid this inconsistency it is always advisable to put Adjust Time Series Objects indicator which will immediately Updates the time series objects for new CVC in all planning areas based on this master planning object structure.
    SAP always recommends that you update all planning areas immediately due to which we should use this indicator .
    Alternatively you can leave these indicator unselected for all new characteristic value combinations. Afterwords to adjust the time series objects at a later date we can choose Adjust Time Series from the context menu for the planning object structure in via S&DP Adminsistration. This also has some of the advantage like that you can create a variant and schedule the job to run later,  when there is little system activity.
    I hope this helps to answer your question
    Thanks
    Amol

  • Issue with new Custom field value in Material UI (EHP5)

    Hi
    We added new Custom field (country) in material UI for Routing the WF based on country.
    we added this new field in material general data, When user press the "check" button in the header the value disappeared in the UI.
    This field value  required only in MDG CR level, this field value will not be updated in ECC active area.
    Request your inputs to solve this problem.

    resolved myself:
    PROCESS BEFORE OUTPUT.
    *                      Verarbeitung vor der Ausgabe
    *MS17092009 Non eliminare modules standard.
      MODULE set_propriety.
      MODULE INIT_SUB.
      MODULE GET_DATEN_SUB.
    PROCESS AFTER INPUT.
    *                      Verarbeitung nach der Eingabe
    MODULE GET_DATEN_SUB.
    CHAIN.
          FIELD MARA-ZBARCODE.
    ENDCHAIN.
    MODULE SET_DATEN_SUB.
    FIELD MARA-ZBARCODE MODULE BARCODE_0001 ON INPUT.

  • Issue with new laptop-worked for first time

    I just bought a new ASUS laptop and followed the instructions from online about transferring my itunes library to the new laptop. I have 10.1.6 version on both computers. When I went to authorize this computer on my new laptop and signed in, I did see my library name under "shared" and all the songs were there. I then went on the old computer under File/Library/Export Library (so I could add my playlists to the laptop) and on the laptop did File/Library/Import Playlists. When I did that, most of my songs disappeared under my libary (shared). Initially before I exported/imported the libary, I had all 2395 songs on both computers. After exporting the playlists, I only have 59 songs on my new laptop. I completely unistalled itunes on the laptop and rebooted. Then I downloaded itunes on the laptop again and did the home sharing and authorize this computer but now I do not see a shared library at all on my laptop. I do not know what to do. Can someone please help me? Thank you very much.

    Hi,
    As HP Probook 450 G2 is a business notebook you'll be able to get better solutions specific  your model if you contact the business forum.
    Here is the link. 
    HP Enterprise Business Community
    Hope it helps..
    Note:
    If you have HP Support Assistant installed on the computer(The Blue Question Mark) then open it ==> Complete all pending Updates & Tuneups==> Restart and Check. It may solve your problem
    Although I am an HP employee, I am speaking for myself and not for HP.
    **Click on “Kudos” Star if you think this reply helped** Or Mark it as "Solved" if issue got fixed.

  • How to paste calculated values from Numbers?

    When I copy calculated values from Numbers and paste into a table in Pages, I get an image like the one below.  Non calculated values paste fine.
    To get around this issue, I paste the calculated values into TextWrangler, then copy from there and paste into Pages.  Is there a way to go directly from Numbers to Pages with calculated values?

    Hi 4th Space,
    I you are pasting into a table in Pages, follow Jeffs instructions.
    I you are not pasting into a table, this works. Copy the cells in Numbers. Go to your Pages document and under the Edit Menu > Paste and Match Style. It works like Paste Values.
    Ian.

  • Better approach time series calculations

    Hi,
    I have a technical answer. In your opinion, to improve performances, is better calculate YTD, QTD, PY.... etc., values using Time Series functions available in OBIEE (YearToDatel, AGO, PERIODROLLING...) or put them in ETL Flow so OBIEE Server only must take results without any calculations?. Using OBIEE Functions the effort is less, but perhaps they create overhead for OBIEE Server so query time responses increase dramatically?
    Have you an example showing queries to perform to calculate Time Series Functions without OBIEE functions, so I can insert them in my ETL flows?
    Thanks
    Giancarlo

    OK,
    but it's better to have only one fact table containing columns for all measures I need (e.g. first column: YTD, second column: QTD, third column: MTD)... and so on (so i would have a LTS with only one Source table) or a distinct table for each measure (e.g. Table FACT_TABLE_A_YTD, FACT_TABLE_B_QTD and so on and combining them in a LTS having multiple Sources (FACT_TABLE (monthly), FACT_TABLE_A_YTD, FACT_TABLE_B_QTD)...
    Giancarlo

  • Time Series in Oracle 11g

    Oracle 8i hase Time series for defining calendars and other functions. How does Oracle 10g/11g support Time series features. I could not find any information about Time Series in the 10g/11g documentation.

    Thanks a lot for the responses.
    I looked at the 11g Pivot operator and is altogether a new feature compared to the Time series of 8i.
    I would like to explain with an example.
    1) The following query creates a table named stockdemo_calendars and defines a calendar
    named BusinessDays. The BusinessDays calendar includes Mondays through Fridays,
    but excludes 28-Nov-1996 and 25-Dec-1996. Explanatory notes follow the example.
    CREATE TABLE stockdemo_calendars of ORDSYS.ORDTCalendar (
    name CONSTRAINT calkey PRIMARY KEY);
    INSERT INTO stockdemo_calendars VALUES(
    ORDSYS.ORDTCalendar(
    0
    ’BusinessDays’,
    4,
    ORDSYS.ORDTPattern(
    ORDSYS.ORDTPatternBits(0,1,1,1,1,1,0),
    TO_DATE(’01-JAN-1995’,’DD-MON-YYYY’)),
    TO_DATE(’01-JAN-1990’,’DD-MON-YYYY’),
    TO_DATE(’01-JAN-2001’,’DD-MON-YYYY’),
    ORDSYS.ORDTExceptions(TO_DATE(’28-NOV-1996’,’DD-MON-YYYY’),
    TO_DATE(’25-DEC-1996’,’DD-MON-YYYY’)),
    ORDSYS.ORDTExceptions()
    -------------- How can I create such calendars in 11g?
    2) For example, the following statement returns the last closing prices for stock
    SAMCO for the months of October, November, and December of 1996:
    select * from the
    (select cast(ORDSYS.TimeSeries.ExtractTable(
    ORDSYS.TimeSeries.ScaleupLast(
    ts.close,
    sc.calendar,
    to_date(’01-OCT-1996’,’DD-MON-YYYY’),
    to_date(’01-JAN-1997’,’DD-MON-YYYY’)
    ) as ORDSYS.ORDTNumTab)
    from tsdev.stockdemo_ts ts, tsdev.scale sc
    where ts.ticker=’SAMCO’ and
    sc.name =’MONTHLY’);
    This example might produce the following output:
    TSTAMP VALUE
    01-OCT-96 42.375
    01-NOV-96 38.25
    01-DEC-96 39.75
    3 rows selected.
    --------------------- How can I get the above ouput without Time series functions and calendars in Oracle 11g?

  • Time Series in Discoverer.

    Hi, wondering if anybody knows how I can use time series functionality in Discoverer3.1 and 3i?

    Thanks a lot for the responses.
    I looked at the 11g Pivot operator and is altogether a new feature compared to the Time series of 8i.
    I would like to explain with an example.
    1) The following query creates a table named stockdemo_calendars and defines a calendar
    named BusinessDays. The BusinessDays calendar includes Mondays through Fridays,
    but excludes 28-Nov-1996 and 25-Dec-1996. Explanatory notes follow the example.
    CREATE TABLE stockdemo_calendars of ORDSYS.ORDTCalendar (
    name CONSTRAINT calkey PRIMARY KEY);
    INSERT INTO stockdemo_calendars VALUES(
    ORDSYS.ORDTCalendar(
    0
    ’BusinessDays’,
    4,
    ORDSYS.ORDTPattern(
    ORDSYS.ORDTPatternBits(0,1,1,1,1,1,0),
    TO_DATE(’01-JAN-1995’,’DD-MON-YYYY’)),
    TO_DATE(’01-JAN-1990’,’DD-MON-YYYY’),
    TO_DATE(’01-JAN-2001’,’DD-MON-YYYY’),
    ORDSYS.ORDTExceptions(TO_DATE(’28-NOV-1996’,’DD-MON-YYYY’),
    TO_DATE(’25-DEC-1996’,’DD-MON-YYYY’)),
    ORDSYS.ORDTExceptions()
    -------------- How can I create such calendars in 11g?
    2) For example, the following statement returns the last closing prices for stock
    SAMCO for the months of October, November, and December of 1996:
    select * from the
    (select cast(ORDSYS.TimeSeries.ExtractTable(
    ORDSYS.TimeSeries.ScaleupLast(
    ts.close,
    sc.calendar,
    to_date(’01-OCT-1996’,’DD-MON-YYYY’),
    to_date(’01-JAN-1997’,’DD-MON-YYYY’)
    ) as ORDSYS.ORDTNumTab)
    from tsdev.stockdemo_ts ts, tsdev.scale sc
    where ts.ticker=’SAMCO’ and
    sc.name =’MONTHLY’);
    This example might produce the following output:
    TSTAMP VALUE
    01-OCT-96 42.375
    01-NOV-96 38.25
    01-DEC-96 39.75
    3 rows selected.
    --------------------- How can I get the above ouput without Time series functions and calendars in Oracle 11g?

  • Semiweekly Time Series Creation for DP

    Hi,
    I want to create a semiweekly (twice a week) time series for DP.
    And this would be spread for 2 years (i.e. 1 year for the past and 1 year for the future).
    So a total of 208 entries need to be made for this time series.
    My understanding of the method is
    1)     Create a fiscal Year Variant.
    2)     Create a Storage Bucket profile based on fiscal Year Variant.
    3)     Create a Time Series Object based on Storage Bucket profile.
    4)     In the new Planning Area, provide the Time Series Object.
    Correct me if my understanding is wrong.
    Also can you provide the T-Code or Menu Path for the first three activities?
    Regards,
    Vikas

    The Menu Path for
    (1) Fiscal Year Variants
    SPRO>APO> Supply CHain PLanning> Demand Planning> Basic Settings>Maintain Fiscal Year Variants
    (2) Storage Bucket Profiles
    SPRO>APO> Supply CHain PLanning> Demand Planning> Basic Settings>Define STorage Bucket Profiles
    (3) I guess when you mean time series, you meant planning bucket profile
    SPRO>APO> Supply CHain PLanning> Demand Planning> Basic Settings>Define Planning Bucket Profiles
    (4) Define PLanning Area- /n/sapapo/msdp_admin
    You define a storage bucket profile
    (5) Define PLanning Book
    You define the planning bucket profile

  • Time Balance and Time series in ASO

    We are building an ASO application and we need Time balance and dynamic time series functionality.
    If I go and use the TB functionality in ASO, my Time dimension has to be stored and I cannot put mdx formulas on my members (YTD,QTD,MTD)
    I see various threads here and the recommendation is to have a new dimension to view the time series members (gary's blog...tnx for him)
    However we cannot afford to have a separate dimension. The time series should be under Time.
    How can we go with this?
    Please help me with your suggestions/ideas. Thanks for your time.
    TIA
    - Sai

    Any ideas guys?
    John, can you please shed some light on this.
    TIA

  • I have an Airport Extreme as my router and am using time capsule to extend the network in my new house. My ISP is only providing me 4-5 ip addresses and wants me to set up my router to issue out new ip addresses for all my devices.How do I fix this?Help

    I have an Airport Extreme as my router and am using time capsule to extend the network in my new house. My ISP is only providing me 4-5 ip addresses and wants me to set up my router to issue out new ip addresses for all my devices.How do I fix this?Help.
    They said I need to change my settings to NAT settings. I haven't been able to figure out or find anything. I have also spoken to Apple Support on the phone for hours without being able to figure out how to do this ( i don't think he knew much either lol.) Please help me because I've got about 15-20 devices in my house that require to be connected to the internet and this is just making things ridiculously slow and painful for me.
    Thanks!

    It is on DHCP & NAT under router mode yet my isp is still the one issuing ip addresses to my devices instead of the router issuing them

  • I am having sporadic issues after new hard drive install and recovery using Time Machine. The same sluggish response, start up screen pixelating...If I reinstall Lion will it wipe out other applications? My HD was formatted and partitioned correctly, I ha

    I am having sporadic issues after new hard drive install and recovery using Time Machine. The same sluggish response, start up screen pixelating...If I reinstall Lion will it wipe out other applications? My HD was formatted and partitioned correctly, I have a late 2009 iMac.

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • How do I create a 1d array that takes a single calculation and insert the result into the first row and then the next calculation the next time the loop passes that point and puts the results in thsecond row and so on until the loop is exited.

    The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
    The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
    pear to be working or at least I am not getting any indication on the inidcator.
    Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
    Attachments:
    regulation_tester_7_loops.vi ‏244 KB

    I didn't really have time to dig in and understand your program in depth,
    but I have a few tips for you that might things a bit easier:
    - You use local variables excessively which really complicates things. Try
    not to use them and it will make your life easier.
    - If you flowchart the design (very similar to a dataflow diagram, keep in
    mind!) you want to gather data, calculate a value from that data, store the
    calculation in an array, and loop while the time is in a certain range. So
    theres really not much need for a sequence as long as you get rid of the
    local variables (sequences also complicate things)
    - You loop again if timepassed+1 is still less than some constant. Rather
    than messing with locals it seems so much easier to use a shiftregister (if
    absolutely necessary) or in this case base it upon the number of iterations
    of the loop. In this case it looks like "time passed" is the same thing as
    the number of loop iterations, but I didn't check closely. There's an i
    terminal in your whileloop to read for the number of iterations.
    - After having simplified your design by eliminating unnecessary sequence
    and local variables, you should be able to draw out the labview diagram.
    Don't try to use the "insert into array" vis since theres no need. Each
    iteration of your loop calculates a number which goes into the next position
    of the array right? Pass your result outside the loop, and enable indexing
    on the terminal so Labview automatically generates the array for you. If
    your calculation is a function of previous data, then use a shift register
    to keep previous values around.
    I wish you luck. Post again if you have any questions. Without a more
    detailed understanding of your task at hand it's kind of hard to post actual
    code suggestions for you.
    -joey
    "nelsons" wrote in message
    news:[email protected]...
    > how do I create a 1d array that takes a single calculation and insert
    > the result into the first row and then the next calculation the next
    > time the loop passes that point and puts the results in thsecond row
    > and so on until the loop is exited.
    >
    > The attached file is work inprogress, with some dummy data sp that I
    > can test it out without having to connect to equipment.
    > The second tab is the one that I am having the problem with. the
    > output array from the replace element appears to be starting at the
    > index position of 1 rather than 0 but that is ok it is still show that
    > the new data is placed in incrementing element locations. However the
    > main array that I am trying to build that is suppose to take each new
    > calculation and place it in the next index(row) does not appear to be
    > working or at least I am not getting any indication on the inidcator.
    >
    > Basically what I am attempting to do is is gather some pulses from
    > adevice for a minute, place the results for a calculation, so that it
    > displays then do the same again the next minute, but put these result
    > in the next row and so on until the specifiied time has expired and
    > the loop exits. I need to have all results displayed and keep building
    > the array(display until, the end of the test)Eventually I will have to
    > include a min max section that displays the min and max values
    > calculated, but that should be easy with the min max function.Actually
    > I thought this should have been easy but, I gues I can not see the
    > forest through the trees. Can any one help to slear this up for me.

  • VK34, problem of warning  issued upon new condition:Reason codes  inconsist

    Hello,
    The Scenario is :
    for a given material/sales organisation
    1- I create a ZP00 condition  value =100$  valid from 01.09.2009  to  31.12.2009
    2- I create new ZP00 condition value= 160$  valid from 01.01.2010 to 31.12.2999
    To day, I decide to change the ZP00 condition value,
    3- I created a new ZP00 condition with value=160$  valid from 11.09.2009 to 31.12.2009
    The system doesn't issue any warning message to tel me that there is a gap in value between the new condition and the old condition valid for the same period
    In fact the system compare the new condition value with the last created condition, hence it doesn't find any difference, and as consequence no warning is issued.
    I expect that system compares the new condition value to the condition value valid for the same period and not the last condition
    ==> Shall I post an OSS for this problem ??
    For  more details, hereafter the sap code, include  MV13AF0K
    * Get the Original value (from database) of ZP00 or ZPI1 condition
      CLEAR: lv_old_zp00, lv_knumh.
      CLEAR: lv_new_zp00, lv_sum_z0xx.
      SELECT MAX( knumh ) INTO lv_knumh===> *system looks for the last condition created, it doesn't take care*   
        FROM konh                                                      *whether the condition is valide or not*
        WHERE kappl = 'V'
          AND kschl = xkonh-kschl
          AND vakey = xkonh-vakey.
      IF sy-subrc EQ 0.
    *   Item data
        SELECT kbetr INTO lv_old_zp00
               UP TO 1 ROWS
          FROM konp
          WHERE knumh = lv_knumh
            AND kschl = xkonh-kschl.
        ENDSELECT.
      ENDIF.
    * If no old value --> continue the processing without checking the gap
      IF NOT lv_old_zp00 IS INITIAL.
    *   Calculation of Z0xx conditions sum
        LOOP AT xkonp where knumh = xkonh-knumh AND loevm_ko = space.
          CASE xkonp-kschl.
            WHEN 'ZP00' OR 'ZPI1'.
              MOVE xkonp-kbetr TO lv_new_zp00.
            WHEN 'Z006' OR 'Z008'.
    *********Exclusion mode to be defined***********
            WHEN OTHERS.
              IF xkonp-kschl(2) = 'Z0'.
                ADD xkonp-kbetr TO lv_sum_z0xx.
              ENDIF.
          ENDCASE.
        ENDLOOP.
    *   Calculation of the gap between the old and the new price
        lv_gap = lv_new_zp00 - lv_old_zp00.
    *   If the gap do not correspond to the sum of condition z0xx
    *   -> warning popup
        IF lv_gap NE lv_sum_z0xx.
          lv_diff_flag = 'X'.  "Set Difference flag
          lv_diff = lv_gap - lv_sum_z0xx.
    For more deta

    very bad layout, I try to enhance it
    The Scenario is :
    for a given material/sales organisation
    1- I create a ZP00 condition value =100$ valid from 01.09.2009 to 31.12.2009
    2- I create new ZP00 condition value= 160$ valid from 01.01.2010 to 31.12.2999
    To day, I decide to change the ZP00 condition value,
    3- I created a new ZP00 condition with value=160$ valid from 11.09.2009 to 31.12.2009
    The system doesn't issue any warning message to tel me that there is a gap in value between the new condition and the old condition valid for the same period.
    In fact the system compare the new condition value with the last created condition, hence it doesn't find any difference, and as consequence no warning is issued. I expect that system compares the new condition value to the condition value valid for the same period and not the last condition
    ==> Shall I post an OSS for this problem ??
    For more details, hereafter the sap code, include MV13AF0K
    CLEAR: lv_old_zp00, lv_knumh.
      CLEAR: lv_new_zp00, lv_sum_z0xx.
      SELECT MAX( knumh ) INTO lv_knumh
        FROM konh
        WHERE kappl = 'V'
          AND kschl = xkonh-kschl
          AND vakey = xkonh-vakey
      lv_gap = lv_new_zp00 - lv_old_zp00.
      If the gap do not correspond to the sum of condition z0xx
      -> warning popup

  • Issue with nested aggregated in time series

    Hi Experts,
    I have a small requiremnt using time series.
    eg : (sum(current year4:Quarters bookingamt)-sum(previous year4:Quarters bookingamt))/sum(previous year4:Quarters bookingamt)
    Bookingamt is My measure Name.
    how do we implement above logic can please help regarding this.
    Thanks,
    C Mahesh

    Hi Mahesh,
    These functions help to obtain the data analyzed based on the time. There are two types of Time Series in OBIEE viz..
    1) Ago
    2) To Date
    Following are the prerequisites and procedure to create time series function in OBIEE RPD.
    a) Create a dimensional Hierarchy (ex: YearàQTRàMonth) and convert it to the time dimension. DC on hierarchy and check the box time dimension.
    b) Define the Chronological Key. A chronological key should always be the lowest level in the table and the data in it should be in the format of 20090102 or 200109 (year, month format). DC on level (preferred/last—detail) go to KEYS tab and check chronological key.
    c) Duplicate the existing column, rename and specify the formula for the column.
    1) Ago: This function when specified in any column displays data that is month ago, 2 months ago depending on the specified formula. DC on new column check use logical columns and click on exp. Builder. In the left column select functions and then time series and then AGO. Then in metric go to logical tables and select metric and in level go to time dimension and select month (1 month ago) and give the period as 1(since it is 1 month ago) then transfer two new columns to presentation layer
    Ex: sales: 100,200,300 à -, 100, 200 (1 month AGO).
    2) To Date: This functions allows us to display the aggregated measures based on the formula specified. DC on new column check use logical columns and click on exp. Builder. In the left column select functions and then time series then select TO DATE. Select metric from logical tables (revenue) and as level go to time dimension and select year(YTD) and OK.
    YTD- year to date – Displays aggregated values that is with respect to month since it is YTD. Similarly for QTD and MTD.
    Ex: sales: 100,200,300 à YTD Sales: 100,300,600
    http://www.rittmanmead.com/2007/04/obi-ee-time-dimensions-and-time-series-calculations/ -- How to implement step by step with screen shots.
    http://www.oraclebidwh.com/2009/12/time-series-wizard-in-obiee/ -- you can understand easily how to implement this with screen shot.
    Hope it help's
    Thanks,
    satya

Maybe you are looking for