Update of Planning Start Date does not update macros

I have written a program to update the planning start date in a planning book using function /SAPAPO/MSDP_PB_SAVE_DVIEW_TAB. I have included this in a process chain. The update is immediately followed by a /SAPAPO/TS_BATCH_RUN variant that runs a macro in the updated book. The macro uses planning start date. The issue is that the macro does not appear to have been updated with the new planning start date. I experimented with using transaction Define Planning Book (/SAPAPO/SDP8B) whilst also in Macro Workbench on another session. If I change the planning start date this is also not reflected in the macro unless I come out of the Macro Workbench completely and fo back in. This appears to be a buffereing issue.
Does anyone know if there is a way to force the macros to be updated? Otherwise I may have to resort to just putting a delay in the chain and hoping the maco will be updated before it is run.
Thanks
Edited by: Peter Phillips on Mar 19, 2010 11:32 AM

Hello Mani,
We have planning books used to calculate demand for newspapers at weekends. At weekends the papers contain printed colour magazines. These have  to be ordered in advance. The macros that we run use planning start date to claculate the quntity of magazines required for the next weekend. The business also needs to do advanced calculation for the next two weekends. This requires an update to the planning start date to change the basis for the macros. We do not wish to write separate macros for each weekend as there are quite a few of them. We are trying to keep it as simple as possible.
Regards
Peter

Similar Messages

  • Dynamic update of Planning Start Date in Planning Book

    Hello.
    Has anyone ever created a program to update the Planning Start Date of a Planning Book dynamically to the next Friday of the month for example?
    The help information available for this field mentions a PDATE userexit, but I can not find it. Has anyone ever used it and has some examples to share?
    Many thanks.
    Aline Passos

    Hi there,
    I have never done this earlier. However i know that planning start date is stored in table /SAPAPO/PBDVWHDR-TBID_START. I tried changing this entry in the table and it correctly updated the dataview plannig start date.
    So you may write a small program to update this field and it shall update the dataview.
    Please let me know if this helps you.

  • GA749 start date does not include any senders in FAGLGA35

    Hello Guru:
    I do FAGLGA31  for sender  =  account 1-99999 profit center 1  and receiver = profit center 2
    version = 1 .
    when run cycle execute message "GA749 start date does not include any senders"
    I check in table FAGLFLEXT , there is data in  Sender cost center and Profit center  according to my criteria.
    Please advise where to check up and thanks in advance

    HI,
    please check the following:
    The problem could be caused by the cycle header definition. Instead of
    '0' you have to enter '1' as a version. All actual data gets posted
    under version 001 in NewGL by system default, so if you specify the
    version other than '1', the sender value is not found when executing the
    cycle.
    Regards
    Madhu M

  • Idoc Receiver - Header Data does not update

    Hi there
    I have an Idoc receiver in a scenario where I send a Idoc from a file to the R/3 system. My config is all fine but the Idoc status in we19 shows red. My Header data for the idoc is incorrect. The idoc is WALREQ01. In my Message Mapping Im setting the SDNPOR, SDNPRT, SDNPRN, RCVPOR, RCVPRN to the correct values and the I activate the scenario but in we19 it still shows the incorrect idoc header. It does however change the idoc segment data, just not the header. Is there maybe some other place I have to set the Idoc header data?
    Thanx,
    Jan

    Hi Jan,
    From help.sap:
    Apply Control Record Values from Payload
    If you set the indicator, the conversion of communication parties to the IDoc partner is only possible for systems that are not logical systems.
    If you do not set the indicator, all combinations of communication parties and services are handled as services without party.
    If the IDoc XML structure contains a control record during outbound processing on the Integration Server, it is rejected and created again by the IDoc adapter. If you want to include additional values in the control record, set the indicator and provide an appropriate mapping for the values. See also: Fields of the IDoc Control Record
    http://help.sap.com/saphelp_nw04/helpdata/en/13/95244269625633e10000000a155106/content.htm
    Carlos

  • BUG: 16.0.1 Updating linked export image size does not update other dimension

    Hi
    Either this is a bug or I'm missing something.
    1. In AI CS6 16.0.1 (32-bit), click "Save for Web and Devices"
    2. Make sure W & H are linked
    3. Make a change to Image width
    4. Tab through to Image height - this should update? But it doesn't.
    5. Tab through to Percentage - height remains unchanged, but width is reset to original value.
    I thought height should update when I did this.
    Now try this:
    1. Cancel out of Save for W&D and come back in, then repeat Step 1 above
    2. Unlink and immediately relink width and height using the chain button
    3. Update width
    4. Tab through to height and hey presto, it updates now.
    So Save for W&D is not picking up the fact that "Retains original image proportions is checked" when the dialog is launched.
    Can anyone confirm this?
    Cheers
    Richard

    OK, this is a known bug. We'll take care of it!  Thanks
    See forum post:  
    http://forums.adobe.com/message/4314172#4314172
    Pattie

  • HT2513 The date on my dock does not update automatically ? - Ps anybody.

    I use MACCBOOK PRO with OS X ver 10.6.8.
    I  Cal Version 4.0.4 (1395.7)
    Sometimes the current date does not update on my ical icon in the dock. After clicking on it the date becomes OK.
    I would appreciate if someone has a solution.

    I solved the problem by uninstalling Glims.

  • Update Model from database does not update Nullable Property -- Possible bug?

    Hi,
    I don't know if this is the correct forum.
    When updating Model from database seems does not update the entity nullable property.
    and it will not update the Default Value from the Backend (MSSQL) also.
    I am using VS2008 SP1 3.5EF, XP64Bit Machine.
    Thanks
    vb.net GUI

    maybe related..
    today.. i changed the PK size.. from char(10) to char(36)
    got many problems.. easy to fix...
    but some query stop working:
    Table1Record.Table2Reference.Load(); //i'm trying to load table2 from table1..
    throw this error: A relationship multiplicity constraint violation occurred: An EntityReference expected at least one related object, but the query returned no related objects from the data store.
    i get this error only when PK is greater than char(10)...
    with SQL profiler.. i saw that PK was truncated to char(10) :
    exec sp_executesql N'SELECT [... some fields...]
    FROM  [dbo].[Table1] AS [Extent1]
    INNER JOIN [dbo].[Table2] AS [Extent2] ON [Extent1].[NoTable2] = [Extent2].[NoTable2]
    WHERE [Extent1].[NoTable1] = @EntityKeyValue1',N'@EntityKeyValue1 char(10)',@EntityKeyValue1='a2164b14-e'
    (NoTable1 is the PK changed from char(10) to char(36))
    i'm working with VS.NET 2008
    so, i looked at Model1.Edmx... in notepad
    CSDL was not changed when i did the "Update Model from Database" !!!
    here is SSDL part:
            <EntityType Name="Table1">
              <Key>
                <PropertyRef Name="NoTable1" />
              </Key>
              <Property Name="NoTable1" Type="char" Nullable="false" MaxLength="36" />
    here is CSDL part:
            <EntityType Name="Table1">
              <Key>
                <PropertyRef Name="NoTable1" />
              </Key>
              <Property Name="NoTable1" Type="String" Nullable="false" MaxLength="10" Unicode="false" FixedLength="true" />
    Cool.. i found the prob.... but why ? and how to correct this ? manually change Model1.Edmx in notepad ??
    why the maxlength property is readonly in Model Browser pane ??
    what about VS.NET 2010 ?! same prob ??
    is it a bug or by design ?
    I hope this can help someone.. I spent a few hours on this prob
    Patrick

  • Time/date will not update

    After updating software, the time/date will not update.  My network is fine and I can get to the internet fine.  Also will not accept my apple ID

    Try restarting the Apple TV by removing ALL the cables for 30 seconds.

  • When i try to update my ipod it does not update? help please!

    When i try to update my ipod video it does not update for some reason i dont know why it just doesnt can someone help me here?
    [email protected]
    [email protected]

    Not with that amount of info, no.
    Update what? The iPod software? New songs? What have you tried to fix the issue so far?

  • Reschedule does not update the schedule line

    Dear All expert,
    After upgrade to ECC6.0, the reschedule does update the schedule lines eventhough it list all the required to be update in the list.
    As I checked , it update the ekpo successfully but does not update the eket.
    Is there any suggestion ?

    Hi,
    On the initial screen of V_V2
    Remove tickmark of SIMULATION, Then it will update schedule lines in sales document
    Kapil

  • Approval Workflow does not update the Content Approval status if started automatically

    Hi,
    I’m using a simple Approval Workflow associated with
    Content Approval on site pages. It works fine when I set it to be started manually (by using
    Allow this workflow to be manually started by an authenticated user with Edit Item permissions
     option) and on the completion of the workflow the
    Content Approval status is updated accordingly. But when I set it to be started automatically (by using
    Start this workflow when a new item is created
     / Start this workflow when an item is changed
    options), it does not updates the Content Approval status. Note that I’ve set the
    Update the approval status after the workflow is completed (use this workflow to control content approval)
    option to true.
    Regards

    Hello,
    It is recommended to select "Start this workflow to approve publishing a major version of an item" when you want to use the workflow to manage content approval for
    a library.
    According to the Notes for “Enable Content Approval” option in
    this reference:
    If you are using this Approval workflow to manage content approval (moderation) for a library, and you selected the Start this workflow to approve publishing a major version
    of an item check box on the Add a Workflow page..
    If you did not select the Start this workflow to approve publishing a major version of an item check box on the Add a Workflow page because you do not want this workflow to
    be the default content approval workflow for a library, you can select the Update the approval status (use this workflow to control content approval) check box to make this workflow a secondary content approval workflow that specific users can
    start manually.
    That means having an approval workflow start automatically when a document is changed or created is not a good practice when you want to use the workflow to manage
    content approval for a library. You should either select "Start this workflow to approve publishing a major version of an item" or give users the option to start the workflow manually at the time they want to submit for an approval.
    Thanks & Regards.
    Lily Wu

  • E52 Date Display does not update and reflect the c...

    Right from day 1 the display date of my E52 does not update and reflect correct the correct date. Got the phone replaced once still the same issue. Called the customer service and they say there is no such problem with E52. They asked me to go to the repair center...(isnt that ridiculous to ask a customer of a new phone to do so?). I went to the repair center with a hope that they will replace it for me but all in vain. They also gave me a ridiculous answer that Nokia does not have a replacement policy...and I was like so is it Nokia's policy to sell broken and faulty mobiles? I was utterly dejected. The electronic store where I bought also refuse to replace because they think there is a problem and no matter I get it changed it will recur. I still do not have a solution as all my ways of getting this problem resolved are exhausted. Anyone has a solution or came across this issue which can be solved without repairing?

    Ok let me state my problem. There is a date display and at midnight the date should automatically change to the next date. However that does not happen. The dealer makes the following changes Control Panel>Settings>General>Date and time> Automatic time update> On and this does not solve the problem. Then I get the mobile replaced and that too has the same problem. after going through all permutations and combinations the problem persists. To quote the email from the Contact center for Nokia in HK this was what was suggested
    Menu→Ctrl. panel→Settings→General→Date and time→Time zone→please select Hong Kong→Automatic time update→please select Off
    However, if the situation still occurred by following the above settings, please be advised to bring your Nokia E52 along with the valid sales invoice to one of our Hong Kong Nokia Care Centres for the handset checking since we do not have such arrangement of replacing a new phone to you.
    Please help!!!

  • HT5824 my contact list does not update to its current state. After I sync to Itunes or after I back up to I cloud  Also I did a doccuments and data restore and it still didnt change. How do I fix this?

    My contact list does not update to its current state after I sync it to itunes or back it up to icloud  I did a documents and data reset and the contact list still didnt change.. How do I fix this?

    Welcome to the Apple Community.
    First check that all your settings are correct, that contact syncing is checked on all devices (system preferences > iCloud on a mac and settings > iCloud on a iPhone, iPad or iPod).
    Make sure the contacts you are adding are added to your 'iCloud' group and not an 'On My Mac', 'On My Phone' or other non iCloud group (you can do this by checking in groups), non iCloud contacts will not sync.
    If you are sure that everything is set up correctly and your contacts are in the iCloud group, you might try unchecking contact syncing in the iCloud settings, restarting your device and then re-enabling contact syncing.

  • Bug: date inserted in cell does not update automatically

    Can't find where to report a bug in Numbers. When I insert a date in a cell and set it to update automatically, it does not update. Have to update it manually daily. Seems there used to be a way to report bugs...
    Anyone know how to do that now?

    Feature already reported.
    +The Numbers User Guide states:+
    +To add and format the date and time, place the insertion point where you want the value to appear, and then choose Insert > Date & Time.+
    +To change the date and time format, Control-click the date and time value, choose Edit Date & Time, and then choose a date and time format from the pop-up menu. If you want the spreadsheet to always show the current date and time, select “Automatically update on open.”+
    +Alas, under 10.4.11 *(and now under 10.6.1)* this feature doesn't apply.+
    +The date remains as it was when we entered it.+
    +Happily we have a simple workaround:+
    +we may use the formula =TODAY()+
    +But a feature wihch doesn't behave as described may be called a buggy one. Isn't it ?+
    As long as the feature doesn't behave as described, use the given workaround.
    Yvan KOENIG (VALLAURIS, France) samedi 12 septembre 2009 16:50:38

  • My mail program does not update when I delete emails in my other email programs (i.e. it still shows messages in my mail inbox when I've deleted them).  I think this started with Maverick?  Any solutions?

    My mail program does not update when I delete emails in my other email programs (i.e. it still shows messages in my mail inbox when I've deleted them).  I think this started with Maverick?  Any solutions?

    one is gmail, one is a university email and they are both IMAP accounts (not that I know what that means)....

Maybe you are looking for