Function for changing planned dates of activity

How can I change planned dates of activity in code ?
Is anyone familar with a bapi/function for this ?
Thanks,
Nitzan

Hi Nitzan,
Actually When you want to change planned date of the activity?
If it is during the processing of the activity, you can do it by  two methods
1)Either by using a call back function module configured in CRMV_EVENT transaction. In this function module read the date using CRM_order_READ FM to read ET_APPOINTMENT table.
Then use CRM_ORDER_MAINTAIN to change to change the date.
2) use the BADI order_save and implement the method  CHANGE_BEFORE_UPDATE and put the same logic.
OR
if you want to do it externally, use the BAPI BAPI_ACTIVITYCRM_CHANGEMULTI to change the activity dates.
Regards,
Annu Cyriac

Similar Messages

  • Function module / BAPI for changing planning date (FDTAG)

    Hi everyone,
    Let's go for a problem.
    Many FI documents have been created in our system, with a wrong planning date, these documents have to be changed and I have been trying to develop a report.
    I am having a big trouble finding a function module or a BAPI which allows me to change the planning date (FDTAG field). I have been trying these function modules:
    FI_ITEMS_CHANGE
    FI_DOCUMENT_CHANGE
    The first one works for changind data in the FI documents but it seems like it can't change the planning date, it returns an error message that informs that the FDTAG field can not be changed.
    The second one is confusing, I have been unable to feed the function module with the data it needs to determine a single document.
    I am trying to use BAPI_ACC_DOCUMENT_POST right now, it doesn't seems promising but you never know.
    Has anyone had the same problem? I have been looking for an answer in both google and here but I can't find one, just some people with the same problem.
    I will keep trying to find the solution, if I find it I will post it here.
    Thanks in advance,

    Hi again Max,
    This worked perfectly, even better because we where already using the FDTAG field for mass changes (don't remember right now which note we implemented) so I have just used FI_ITEMS_MASS_CHANGE with no changes at all.
    Thank you very much for the help.

  • Fox formula for actual/plan data  - Planning function

    Hello,
    I am working on the following scenarios for developing a  planning functions for a monthly forecast.
    It is rolling montly forcast where user starts the planning in Jan and he has to show the actaul value for the month of Jan and blank values for the remaining 11 months of the year and then the user post his new forecast values for the remain 11 of the year(to replace initial balnk values) so that the data will be saved to real time cube with version v108
    In Feb, Jan & Feb months has to show the act values and remaining 10 months has to show last month forecast data. The the user may revise the forecast for the 10 months and then we have to write the data to the real time cube with version v208
    In Mar, Jan, Feb and Mar has to show the actual values and the reamining 9 months has to show the last month forecast and then users may revise the forecast data and then i have to write back to the cube with version v308.
    I want to automate this process for all the months and all years without manual intervention. So, i decideed to write a fox formula for this scenario with following draft code.
    I will get the fy period & year as a variable values and then take the system date into the variable
    for each fy period
    if the fy perio <= sys date.
      {version, infoprovider,value type,amount} = {0,act cube, 10, 0amount)
    else
    {version, infoprovider,value type,amount} = {result,plan cube, 20, 0amount)
    endif.
    result will be calculated on the separe routine and populated here
    case (fy per)
    when 01.
    concatenate v1 with fy+2(2) into y
    result = v1+y
    when 02.
    concatenate v2 with fy+2(2) into y
    result = v2+y
    when 03.
    concatenate v3 with fy+2(2) into y
    result = v3+y
    when 04.
    concatenate v4 with fy+2(2) into y
    result = v4+y
    when 05.
    concatenate v5 with fy+2(2) into y
    result = v5+y
    when 06.
    concatenate v6 with fy+2(2) into y
    result = v6+y
    when 07.
    concatenate v7 with fy+2(2) into y
    result = v7+y
    etc...for all months
    So, can you please let me know the best way to implement this (either by fox formuls or exits)...your inputs are really appreciated
    Thanks,
    Srini
    Edited by: srini on Mar 28, 2008 12:05 PM

    Hi Srini,
    If I 've understood u r problem clearly ,You have to write two Fox Functions and you can call exit variable in both to check the system date.
    I think first you should create exit varriable which would return the system date,use the same variable in data slice to lock the data till current period.
    After that create one fox restricted with any one version where you can copy the data for planning .for example:-
    1)First Fox:-
    DATA TIM_FISCPER TYPE 0FISCPER.
    TIM_REF_FISCPER = VARV(ZEXIT_FPER).
    Get the last month
    version using modlue or any another logic .(v108)
    FOREACH TIM_FISCPER.
        IF TIM_FISCPER <= TIM_REF_FISCPER.
      {0amount,version(001) ,tim_fiscper} = {0amount,version(000) ,tim_fiscper}.
    else.
      {0amount,version(001) ,tim_fiscper} = {0amount,version(v108) ,tim_fiscper}.
         endfor.
    Its just n example use the granularity according to the requirement.
    2)Second fox would save the changed plan data:-
    DATA TIM_FISCPER TYPE 0FISCPER.
    TIM_REF_FISCPER = VARV(ZEXIT_FPER).
    Get the last month
    version using modlue or any another logic .(v208)
    FOREACH TIM_FISCPER.
        IF TIM_FISCPER > TIM_REF_FISCPER.
      {0amount,version(v208) ,tim_fiscper} = {0amount,version(001) ,tim_fiscper}.
         endfor.
    Here ZEXIT_FPER is an exit variable created using cmod and populated with system date.
    Hope it will helpful for u.
    Rgds,
    Indu

  • What are the setting for Save button for saving plan data in WAD template

    Hi,
    i created SAVE button in Webtemplate for saving plan data.But this button is not
    active.is there any setting for this?
    thanks in advance
    chandu

    Hi Chandu,
    The settings to Configure the  Save function.
    Right click the Button Group Item ® Properties ®  * Button    ® 
    Type Caption  ‘Save’ ® Command    ® Select ‘All Commands’ Tab ® 
    De-select ‘Execute Planning Function’ and then select checkbox ‘Save
    Changed Data’ ® Double click on ‘Save Changed Data’ ® OK ® OK ® Save your template.
    *pls assign points,if info is useful*
    Regards
    CSM Reddy

  • BADI ME_PROCESS_PO_CUST for changing header data

    Hello Experts,
    I'm using Method PROCESS_HEADER in Badi ME_PROCESS_PO_CUST in order to change some header data.
    I want to change header data depending on the partner data which are on header level.
    It works fine as long as there are data changed in the header or item level and not only on the partner screen.
    The method in this Badi isn't processed if only partner data are changed. But for me it is necessary to set a special field on the header depending on the partner data.
    Regards,
    Sven

    Hi,
    Firstly, for changing Header data without any INSERT/UPDATE?MODIFY statement, badi - ME_PROCESS_PO_CUST  will not be useful.
    As method you mentioned has no header parameters under CHANGING / EXPORTING clause.
    You can use the badi which has the parametrs you want in either change/ Export mode. It can be defined under table also.
    Below is the list of important badis gettign called, however none of them contains header values in change/export clause.
    ME_CCP_ACTIVE_CHECK
    MD_STOCK_TRANSFER
    ME_DEFINE_CALCTYPE
    ME_PO_PRICING
    ME_FIELDSTATUS_STOCK
    ME_COMMITMENT_STO_CH
    ME_COMMITMNT_PARKING
    ME_INFOREC_SEND
    ME_CHECK_SOURCES
    ME_PURCHDOC_POSTED
    Instead you can use enhacement MM06E005  Customer fields in purchasing document.
    Create a project under Transaction CMOD.
    Assign enhancement as Project component.
    You'll find Exit 012. At time of save you can change header im_ekko based on you parterner data tab.
    Regards,
    Amee.

  • Need a BADI for Change Own Data Application to implement customer needs

    Hi All,
      I wanted to know the specific BADI which could be used for doing customer specific coding for 'Change Own Data" application.
    Here the need is to do some business specific checks to suit the the customer needs
    Best Regards,
    Sowmya

    Hi Sowmya,
    We are also having same kind of requirement so I was wondering if you can help me with the kind of solution that you implemented. BADI name or Implementation code etc.,
    Appreciate any inputs on this...
    Thanks,
    Rgds,
    Lakshmi

  • USER EXIT FOR CHANGING POSTING DATE IN THE MATERIAL DOCUMENT

    Hi,
    Pls advise any USER EXIT FOR CHANGING POSTING DATE IN THE MATERIAL DOCUMENT.
    Regards,

    Hi,
    There is another user exit for updating material document data Upon posting  is MB_CF001
    I hope this will fullfill you.
    Prem

  • BAPI for changing delivery date and delivery time fields in LIKP table

    Hi All,
         Is there any BAPI or function module to change the delivery date and delivery time in LIKP table ?
    Please tell me experts if exists.
    Thank you,
    Raghu.

    try these:
    BAPI/FM to update LIKP and VTTK tables
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-for-changing-sales-headertable-likp-662800

  • CANNOT CHANGE PLANNING DATE

    HI GURUS,
    We posted a SD document 180000XXXX Base line date 16.12.2008 and Payt terms C003 (30 days) thE planning date must be 15.01.2009 but the Planning date is 12.01.2008. We intented change the base line date, the Payment terms and the Planning date doesn´t change. Can someone knows how can we fix the date line??

    We have  the OBB8 terms OK. but in this document in particular when we use FB03 the planning date is not correct, the Net Due Date is correct(15.01.2009), but for Treassury the Planning date is not correct
    Payment Terms: C003 (30 days)
    Bline Date:    16.12.2008
    The planning date (claculated by SAP): 12.01.2008  (This day is not correct, SAP is not taken 16.12.2008 + 30 days)
    I tried changing the bline date and the Payment Terms but it doesn´t work for this particular document? Anybody knows WHY?

  • User exit / substiution /  badi for changing baseline date

    Dear Experts ,
                           I have a requirement to change the base line date of residual document created in F-28 / F-32 to the base line date of original document getting partially cleared .
    I have explored the option of substitution but it doesnt work as field ZBLDT is not available for substitution there .
    Please let me know any BADI / Exit which can perform this change of baseline date .
    thanks in advance

    Hi Milind,
    Following are the user-exits for F-32 :
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    I hope this will help you.
    Regards,
    Nitin.

  • Variable screen in Planning Function for Integrated Planning

    Hi all.
    I have created a planning application with the WAD, based on an Input_ready Query. Manual planning works fine and even planning functions go well, using the command wizard.
    However, if I try to use a variable in a planning function and I set the parameter to pop-up the variable screen within the command wizard for a planning function, I get an 'uncaught exception'. An almost blank IE-window pops up which is supposed to display the variables, but it fails.
    Does anybody know how to solve this?
    Gr.,
    Marc.

    Hello Marc,
    do you still have this error? I encountered the same problem with SPS 9. Maybe you should install at least SPS 10. The variable popup works correct there.
    Best regards
    Martin

  • BAPI_ADMGMTSO_CHANGE for change billing data set of mam order

    Dear,
    i  change Start of Copy/Publication Date Period of mam order using  BAPI_ADMGMTSO_CHANGE this bapi but the billing dataset can't change it's date(i.e serv.date,edservdate).
    Give the solution for above problem.

    Hi,
    in this BAPI 'BAPI_ADMGMTSO_CHANGE' you have to pass update parameter.
    for example you are going to change item data, then you have to update
    item table and itemx table.
    and check the documentation of the BAPI.
    Test program is also avilable for this BAPI. in SE37 give the BAPI name and click the 'Where used list' button, it will show the test program.
    Regards,
    Boobalan S

  • @Hsp functions for Hyperion Planning

    Hi Gurus,
    Did any one find the documentation on @Hsp functions (like @HspAddPageCombination (),@HspConcat (),@HspCreateCDFSession ,@HspCreateEssbaseServerFile (),@HspDateToString (),@HspGetFileName ()) available in EAS for planning applications?

    I put port 11333 on server where is my workspace for planning install and I finally succeeded reverse engineering model for Hyperion planning.

  • Approval for change Due date in AR invoice through Paymnet Term

    Hi all!
    I try to query for approval with AR invoice change Due date in AR invoice through Payment Term.
    SELECT Distinct 'True' FROM OCTG T0  INNER JOIN OINV T1 ON T0.GroupNum = T1.GroupNum
    WHERE dateadd(day, T0.[ExtraDays],T1.[TaxDate])<>   T1.[DocDueDate] and  T1.[CardCode] =$[$4.0.0] and T1.[Docnum]=$[T1.[Docnum]
    I think we can not combine 2 variable for this form (
    T1.[CardCode] =$[$4.0.0] and T1.[Docnum]=$[T1.Docnum]
    Could you help me!
    Thanks!

    Hi Tien again.......
    In order to prevent the misunderstanding again please ket me know
    whether I'm correct or not.
    You want such kund of approval where if in the base document Payment Terms Net30 is there
    and in the target document if its changed to Net 60 then it should ask the approval while adding.
    M I right?
    Regards,
    Rahul

  • Incorrect product in the transactional cube for opportunity planning data.

    Hi,
    We're loading our Opportunity planning data of  CRM  in a transactional cube in BW side. Later this transactional cube data is then uploaded into a standard cube.
    For an opportunity, user enter some planning data for a given product (A). which was duly stored in transactional and then later in the standard cube.  Then  user deleted the product (A) and entered a new product (B) on CRM side.  However in the transactional cube, records for the previous product (A) also exist and the same flows to the standard cube as well.
    Fyi, delta load mechanism is in place for loading of both types of cubes.
    Could someone throw some light why the old item (product A) is still there in the cubes. coz this gives a wrong picture in the report, though the key figures for product A  are 0.
    Regards,
    Nagendra.

    A daily compression would remove the loading details of the cube that are visible to us for any back-tracking, Normally we do the compression for load requests older than 2 weeks.
    But the suggestion is good, incase i do not come up with any other soln, will think of implementing this.
    Maybe my delta load knowledge is not good enough.
    Please answer the following.
    What happens, when we're using standard data sources (with delta load) for loading data from (say) CRM to BW and for a given header guid, a item guid record is later deleted in CRM. On BW side, whether this item_guid record will still be present in the cube or be deleted.
    Regards,
    Nagendra.

Maybe you are looking for

  • Arabic language input system error curve 9300

    i have a blackberry curve 9300 running ios 6. every time i try to write in Arabic, whenever i hit teh space bar, i get a message "imput system error. system is being restarted" is there a solution to this?

  • Backed up with Time Machine, reinstalled OS X, how do I import contacts?

    Hi all, I backed up my MacBook with Time Machine, and reinstalled OS X 10.5.5 on it, then upgraded to 10.5.8. How can I re-import all of my contacts back from the Time Machine backup?

  • Purchase requistion automaticaly creation

    HI I want to create purchase requisition with 100 line items with different plants,different materials,quantity,price.account assignment,assets,user need not want to all 100 line items enter manually in me51n t.code.is this possible to upload automat

  • Can the ipad screen get damaged with cleaning products?

    Can the ipad mini screen be damaged if i use a cleaning product? (Lysol,wet wipes,....) And if so,how can the damage be noticed and repaired?

  • Erase render files

    Hi to all of you. The thing is this, i was working in a project with some video ripped out of a dvd(i own the rights). The ripped footage was almost an hour and the render used like 20 gigs of hard disk space. I send the project to an exernal hard di