BAPI for changing activity status in CIC0

Hi
We are developing a custom application on Netweaver platform which interacts with CRM system.
As one of the requirements we need to <b>change the activity status from open to closed</b> in the transaction <b>"CIC0"</b>. 
I am looking for some BAPI which can do this task for me. Can anyone help me on this issue?
Thanks
Yashodhan

Hi Amit,
Thanks for the reply. I was trying to change the status flag from open to close using the said function module.I had gone through the documentation of this module and trying to use this with parameter "Status". The approach I am following is as follows:
1. Assiging the sequence as
          a. BAPI_ACTIVITYCRM_CHANGEMULTI
          b. BAPI_ACTIVITYCRM_SAVE
          c. BAPI_TRANSACTION_COMMIT
As an input to Parameter in case of BAPI_ACTIVITYCRM_CHANGEMULTI  I am sending following:
REF_GUID-> GUID of the transaction Activity.
STATUS-> Status Key like E0003 for closed status
USER_STAT_PROC-> Status Profile for my Business Transaction type ( Which is defined in transaction "BS02")
As an input to "Obejcts_To_Save" in BAPI_ACTIVITYCRM_SAVE I am again sending the GUID of transaction activity.
Now when I am executing all the above in sequence I am gettin error by BAPI_ACTIVITYCRM_SAVE  saying "Doucment could not be saved"
I am not able to figure out what is the problem?
Please help!!
Thanks
Yashodhan

Similar Messages

  • BAPI for  ""Change Cost Element / Activity Input Planning ""

    Hi
    Is there any BAPI for  ""Change Cost Element / Activity Input Planning "" ( TC KP06) as there is BDC for that but is goes through lot of steps . ( TC OKKS, KP04, KP06 )
    So if any one know the BAPI for the same please let me know,  and if possible send me your code also it will be really help full.
    Regards

    o   OBJECT_INDEX - Index uniquely identifying the row and thus the           
        object. The index must be greater than zero and may only appear once     
        in the table. If the index does not exist in INDEXSTRUCTURE, the row     
        is ignored.                                                                               
    o   COSTCENTER    - Cost center that includes the activity.                                                                               
    o   ACTTYPE       - Activity type that includes the activity. You must       
        fill this together with COSTCENTER. You only need it for an activity     
        input that is activity-dependent.                                                                               
    o   CO_BUSPROC - Business process that includes the activity.                                                                               
    o   ORDERID       - Order that includes the activity.                                                                               
    o   WBS_ELEMENT  - WBS element that includes the activity                                                                               
    You may fill one object only,for example COSTCENTER, CO_BUSPROC,             
    ORDERID, or WBS_ELEMENT.                                                     

  • BAPI   for  Changing  Status of  Internal Order Tcode : KO02

    Hello Everybody ,
    I want to change   System status  of  Internal Order   Tcode  :  KO02 .
    I.e  if  status  are  REL  (  Released  )     then  I  want to make it as  CLSD ( Closed )    and  Vice  Versa .
    In     AUFK   ,
    AUFK-PHAS2    =    REL  (RELEASED )
    AUFK-PHAS3   =    CLSD  ( Closed )  
    this field we need  to set    as    'X'   as per our requriment .
    I used    FM    "  ALE_INTERNALORDER_DB_CHANGE  "  to   changing this  field  .
    but after excution  this   FM   ,  value of this field  is changed  but  when i see the  same order in  KO03    this is not  reflecting   but value  in AUFK  is changed   .  
    this  should not be happend  if the value is chage in Table AUFK  then   must be reflect  in  KO03  .
    I also used    BAPI_INTERNALORDER_SAVEREPLICA    for  Change Internal Order  but it's  no use  ....
    Please  suggest me  any  BAPI  as per  requriment   .
    ASAP
    Regards,
    Sandeep

    Hi  ,
    You are right   .... I   want to chage the status of internal  order  if  CLSD  then  it should  be  REL    and   vice-versa   .
    and things   I am  talkinG about is   that  'X  is maintained  in  table  AUFK-PHAS1  =  'X      for  REL   and  AUFK-PHAS3 =  'X' for  CLSD   .
    So my point is that  is there any  BAPI   of  FM    available    for changing  the  status   of  Internal Order  .
    from CLSD   to  REL  and from REL  to  CLSD   ?
    i used    this   FM   :    ALE_INTERNALORDER_DB_CHANGE  and 
    BAPI                    :    BAPI_INTERNALORDER_SAVEREPLICA                        But not getting output   .
    Regards,
    Sandeep

  • Suggest BAPI for change notification IW52

    Hi,
    Kindly suggest BAPI for change notification IW52.
    Regards,
    Tanaya

    How to find function module or Bapi for particular transaction in sap?
    If you mean that you need to know what BAPI's a particular tranx uses, which I can only assume that's what you mean, then you should access the code behind the transaction and search for 'CALL'. That normally is the standard method that think that most people use. 
    Suppose you want to find the bapi for creating a sales order, you usually use transaction VA01 for this. 
    1. Find out the package of the transaction. 
    Start Va01 go to system --> status. 
    Double click on transaction 
    Package is VA 
    Open this package in SE80 
    Open business engineering-->Business object types 
    Find the BO which sounds the most appropriate 
    I would suggest BUS2032 Sales Order 
    Double click. 
    Open methods. 
    Find the released method with from data or something similar in the name 
    , Createfromdat2 
    Position the cursor in it and click the program button 
    Scroll down to find the bapi used in this method 
    With this way you can also find out programs and FM's 
    2. Start va01 go to system-->status 
    Double click transaction VA01 
    Double click on package 
    Read the application component. (this is SD-SLS Sales) 
    Then open the transaction BAPI 
    Sales and distribution>Sales>sales order 
    createfromdat2 
    Answer: This is  the BAPI for your mentioned   transaction code BAPI_GOODSMVT_CREATE.
    thanks,
    Sankar M

  • BAPI for modifying project status

    Hello all,
    I have found a function :STATUS_TEXT_EDIT to get the status of a project, but now I want to modify the status of the project. Does anybody know if there is a BAPI to do this?
    Thank you very much.
    Reyes

    Hi Reyes!
    I think that there's no any BAPI to change the Status of the Project or WBS element.
    But you can do the next steps for any <b>OBJNR</b> (Project/WBS):
    1. Set a breakpoint in program LBSVAF12 in the form STATUS_UPDATE. Then go to change the status user/system of the project/WBS using transaction CJ02. Make you updations and save. You should reach your breakpoint.
    2. The function module <b>'STATUS_UPDATE'</b> is triggered using internal table "<u>jest_updt</u>". Copy the records of this table carefully. It is updating the standard table JEST (select the corresponding fields in your program).
    3. Using the function module 'STATUS_OBJECT_READ' with the OBJNR you can obtaing the fields <u>OBTYP</u> and <u>STSMA</u>.
    4. Then you're ready to built your ABAP program to automatize the status updation. Append the corresponding records in  the internal table " jest_update" and just function <b>'STATUS_UPDATE' IN UPDATE TASK</b> with your internal table. Then COMMIT WORK AND WAIT. The status is now changed like manually in step 1.
    5. To make it perfect you should maintain the correct change numbers (<u>CHGNR</u>) in the <b>JEST</b> table.
    Best regards and see you in Madrid next time!
    Roger

  • 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

  • Can u tell me any predefined BAPI for change and creation of Material

    Hi,
        Can anybody tell me  predefined BAPI for change and creation of Materialmasterand Pricing?
    Thanks & regards,
    Gopianne.

    you can use the BAPI to BAPI_MATERIAL_SAVEDATA create as well as to change material master.
    When changing material master data, you need enter only the material
    number.
    In the header data, you must select at least one view for which data is
    to be created. Depending on the view selected, you must maintain other
    required parameters. If you do not enter values for all of the required
    parameters, the method is ended with an error message.
    The corresponding fields in the tables (such as CLIENTDATA) must first
    be supplied with data by the calling program. An indicator must also be
    set for each of these fields so that the data is written to the database
    by the method. This requires the calling program to supply the
    corresponding field with the indicator in a checkbox table (for example,
    CLIENTDATAX). Checkbox tables exist for tables that do not contain any
    language-dependent texts (MAKT, MLTX), International Article Numbers
    (MEAN), or tax classifications (MLAN). Several data records for a
    material can be created in these tables.
    regards
    vivek
    reward points if it helps

  • FM for changing system status in Service Notification

    Hi all,
    I have a tough situation here.
    To change the system status in service notification, the system use "IQS4_CHANGE_STAT_NOTIFICATION".
    CALL FUNCTION 'IQS4_CHANGE_STAT_NOTIFICATION'
      EXPORTING
        i_qmnum                  =
        i_vrgng                  =
        I_CHECK_ONLY             = ' '
        I_SPRAS                  = SY-LANGU
        I_BEZDT                  = SY-DATUM
        I_BEZUR                  = SY-UZEIT
        I_POST                   = 'X'
        I_COMMIT                 = ' '
        I_WAIT                   = ' '
        I_REFRESH_COMPLETE       = 'X'
      IMPORTING
        E_VIQMEL                 =
        E_STTXT                  =
        E_ASTXT                  =
      TABLES
        RETURN                   =
    2 main fields are required; i_qmnum and i_vrgng.
    I am able to provide i_qmnum (as this is the service notification number that i need to change).
    However, i_vrgng is a field in table (TC33-VRGNG). The values in the table does not make sense to me.
    Example. To change the status to NOPR (Put in progress), the FM uses PPM2 or PPM6 for i_vrgng. If we take a look at the table TC33, it doesn't indicate in anyway how NOPR is related to PMM2 or PMM6.
    Is there a guideline (ie, to change status to OSTS, i use a certain value in TC33-VRGNG to run the FM)?
    Please see BAPI_SERVNOT_POSTPONE & BAPI_SERVNOT_PUTINPROGRESS for a clearer picture of what I'm saying.
    Thanks,
    Earl

    Please try using FM STATUS_CHANGE_INTERN for changing System Status as i was not able to find any link between status and the field provided in FM in ur post.
    This FM directly changes system status of any object.But this FM requires System Status Value not Text.
    NOPR, NOCO etc are system texts.The main table for system status  is TJ02T which will give u the status value for the status text.
    For eg NOPR status text will have status value as 'I0070'.
    Reward Points if useful
    Edited by: Pratyasha Shishodia on Mar 14, 2008 11:07 AM

  • LSMW for changing user status on work order(IW32)

    Hi All,
    I have created a LSMW for changing user status on work order using transaction IW32. It does not change the status when i run the LSMW. In the recording for the LSMW, i select the radio button on the user status i want to select.
    When i run the LSMW in the foreground, it does everything except select the correct status.
    Is there a way to fix this or is it a problem with LSMW. I'm using ECC6
    Kind Regards
    Emanuel

    Hi ,
    I am not sure whether it would work with LSMW but if your on ECC 6.00 ,Enhacement Pack 3 then you have BADIs which allow you to make collective status changes in IW38 .The below are those BADIs :-
    BADI_EAM_RIAUFK20_FCODE_CUS1 :Implement Customer Function Code in Order List
    BADI_EAM_RIAUFK20_FCODE_SAP1 :Implement SAP Function Code in Order List
    Else if your on lower version then write up a batch programme which checks the PM Order types with specific status and sets user status using FM STATUS_CHANGE_EXTERN[This is used to set or delete User Status] in SE37 ..
    regrds
    pushpa

  • BAPI for Change Customer

    Hi Experts,
    We have a requirement to change the details of a customer. We are using BAPI, "BAPI_CUSTOMER_CHANGEFROMDATA". Change is happening when we try to change details like name, But when we try to change 'country' field, we are getting error saying  "Personal address diffrent from comapany address; change not allowed"..... Can anybody help me with this,,, or can somebody suggest any other BAPI for change customer....
    Thanks and regards,
    Mahendra R

    Hi Mahendra,
    CHek the link below[using BAPI_CUSTOMER_CHANGEFROMDATA1;

  • BAPI for change documents like FB09

    Hi
    I need to change the Assignment Number (ZUONR) Field for several document positions just like FB09 ,
    Does somebody knows a BAPI for change document positions (BSEG) ?
    Regards
    Frank

    Hi,
    Please see this link, It may help you.
    Add documents to materials via BAPI
    Regards,
    Shamma

  • BAPI for "Change Base Planning Object"

    Hi
    Is there any BAPI for "Change Base Planning Object" ( TC KKE2).
    I need to change the Price of a Resource in the Cost Items for a Base Planning Object.
    So if any one know the BAPI for this topic please let me know, and if possible send me your code also it will be really help full.
    Regards

    I didn't find a BAPI to do this. I had to do it by a Batch Input.

  • BAPI for Network Activity

    Hi,
    Can any pne tell me the BAPI for Network Activity.
    I have to pass the below listed fields.
    PROFID
    AUART
    DISPO
    WERKS
    AUFNR
    KTEXT
    GLTRP
    GLTRP
    PRONR
    PROJN
    PRCTR
    VORNR
    LTXA1
    STEUS
    PROJN
    ARBID
    ARBEI
    ARBEH
    LARNT
    DAUNO
    SAKTO
    PRKST
    WAERS
    EKORG
    EKGRP
    MATKL
    LOSME
    KTEXT1
    SRVPOS
    MENGE
    MEINS
    KSTAR
    LTXT
    APLZL_VOR
    APLZL_NCH
    AOBAR
    I also need to pass few Z fields.
    Asset Class
    Investment Type
    Payment profile
    Asset Category
    Part Number
    Part Description
    Contract Number
    1st Investment Check
    First off tool part qty
    Final investment check
    Mass production
    Tool Register
    Shared
    Shared Part number
    Trouble Code
    Can anyone please tell me the BAPI which suits my requirement.
    Thanks,
    Vignesh
    Moderator message: please stop posting duplicates, whether same user ID or not, do some research of your own.
    Is there any BAPI for T-Code : CN21 with custom fields ?
    Edited by: Thomas Zloch on Mar 5, 2012

    Dear deepthi dandibh,
    Do you know how to solve it? I got the problem similar as you.
    When I debug via BAPI_PO_CREATE1 function, I found the KNT has the G/L Account inside, But when I call BAPI_PO_CREATE1 by Zxxx program and debuging it. It doesn't has the G/L Account inside KNT table.
    Could you please help to advise me how to do ?
    Best Regard,
    NNP

  • BAPI for changing Appropriation request - IMA12

    Hi,
    What is the BAPI for changing the Appropriation request(IMA12).i found the BAPI    BAPI_APPREQUEST_CHANGE.But i want to change the plan values . In this BAPI there is no parameters for these fields.Is there any BAPI 's for this?
    Regards,
    Charumathi.B

    Hi,
    Try this BAPI BAPI_APPREQUEST_CHANGE_MPO.

  • QM Orders - Funktions/BAPI for Changing

    Dear all,
    I have to mass change the Profit Center and the Cost Center in the QM Orders.
    I can not find a function or BAPI to change the data. Can anybody give me a tip - please.
    Thanks for help.
    Best regards
    Roman

    Dear Roman
    Please check this link. I couldnt find anything to change
    Link: [Bapi for changing internal order master data]
    My recommendation will
    1) Write a program to change the costcenter and profit center  in the table
    2) You can replace the existing order by creating new QM order using the BAPI BAPI_INTERNALORDER_CREATE
    Regards
    Gajesh

Maybe you are looking for

  • Odd Mighty Mouse behavior?

    Hi, I have a brand new 24" imac with nvidia 8800 but my Wireless mighty mouse has started acting strange, jumping over the screen and making it impossible to use. I tried a wired mighty mouse and that's the same. I first noticed it after 10.3.5 upgra

  • F.Spec

    Dear Friends I am preparing a FSpec for a customized report ( sales tax register) developed long time back, for 4-5 issues/mistakes in the report. I've never done this before. Any tips/suggestions? Rgds Sumanth.G

  • Make service request read-only

    Hi experts, Can anyone help with the following questions: when service request status= closed, and cancellaed. The service request becomes "read-only" to the rest of the users except the managers. How can i set up the system to achive this requiremen

  • Reports problem helppp...

    hi to all out there.. I'm newbie in oracle.. i'm using oracle form6i and report6i run in client server. the problem is when i try to call only the name that type in the text_item it wont appear but all names appears . here is my code.. in datablock i

  • SAP Material Management Certification

    Hi All, I will take the Material Management Certification, does anybody have question for my reference. Regards, Luke