FM / BAPI - CJ20N - updating person assignments on network activity

Hi,
I am looking for a FM / BAPI to update person assignments on network activity (which is already created), can some one suggest me is there any FM / BAPI / any other method to update those.
Regards,
Prasad Sreerama.

Hi Sanjeev,
I have to update person's through inbound program, it would be great if i get any FM / BAPI for this.
Regards,
Prasad Sreerama.

Similar Messages

  • Need a bapi to update person data in IR02 tcode.

    Hi experrts,
    I need to update person data in IR02 tcode through plant and workcenter. But I am looking for BAPI to update this person data.
    Please help me on this as I caught up badly.
    Thanks in Advance.
    J.P

    I have closed this myself by creating a custom program.

  • Splits (Person Assignment) in Network Activity

    Hello Experts,
    I have planned 10 hrs work in a network activity. After that , In the person assignment tab of Network Activity, I have assigned a person and gave work as 15 hrs.
    When I press enter, I got an information message " The work of all the splits is greater than the work in the operation"
    How can I make this information message as error message? I could not find in the configuration.
    Any thoughts would be appreciated.
    Regards
    Srinivasan Desingh

    Hi Srini,
    Any message if you want to change that from warning or error and vice versa......you have to change  the message category in the customozation of " Define system  message attributes".
    SAP provides these kind of customization for puchasing, process order, inventory and some other function modules.... Unfortunately PS module doesnot have this option.
    But it is possible to do so....with the help of ABAP consultant.
    Here are some of the inputs....
    Goto SE80...ABAP workbench
    Call for Repository browser
    and then enter package and CY and drill down box which is appear in the left side of your screen.
    You can see your message 411 at the right hand part...
    With the help of ABAPer...it is possible to do so...
    Hope it will helpful for some extent.
    Regards
    Vetri

  • Network activity - settlement rule change FM or BAPI

    I wonder if there is any FM or BAPI to change settlement rule for network activity?

    Hi everybody,
    I found in a Rusian foruma way to create a settlement rule using the functions of the FM KOBS.  I changed a bit the code because my requirement was just to update the field URZUO of the settlement rule. The original post (in Russian) can be found here.
    My implementation is more simple because the requirement was different:
    types: begin of ty_objnr,
      objnr    like prps-objnr,
    end of ty_objnr.
    *.COBRA-Buffer (see FM KOBS)
    types: begin of ty_cobra_buf.
            include structure cobra.
    types:   uflag like dkobr-upd_flag,
           end of ty_cobra_buf.
    types: ty_t_cobra_buf type ty_cobra_buf occurs 10.
    *.COBRB-Puffer mit Änderungsflag (see FM KOBS)
    types: begin of ty_cobrb_buf.
            include structure cobrb.
    types:   uflag like dkobr-upd_flag,
           end of ty_cobrb_buf.
    types: ty_t_cobrb_buf type ty_cobrb_buf occurs 10.
    * Internal tables                                                    *
    data: it_abrechnug      type standard table of ty_abrechnung,
          it_objnr          type standard table of ty_objnr,
          it_cobra          like table of cobra with header line,
          it_cobrb          like table of cobrb with header line.
    * Data                                                                *
    data: wa_cobra_buf      type ty_t_cobra_buf,
          wa_cobrb_buf        type ty_t_cobrb_buf,
          wa_objnr            like line of it_objnr,
          wa_urzuo            like cobrb-urzuo,
          l_mem_cobrb         like wa_cobrb_buf[],
          l_mem_cobra         like wa_cobra_buf[],
          l_mem_cobrb_zeile   like line of l_mem_cobrb,
          l_mem_cobra_zeile   like line of l_mem_cobra.
    form urzuo_aendern  using    p_objnr p_pspnr p_urzuo.
      data: c_objnr like prps-objnr,
            c_pspnr like prps-pspnr,
            c_urzuo like cobrb-urzuo.
      c_objnr = p_objnr.
      c_pspnr = p_pspnr.
      c_urzuo = p_urzuo.
      refresh: it_objnr,
               it_cobra,
               it_cobrb,
               l_mem_cobra,
               l_mem_cobrb.
      wa_objnr = c_objnr.
      append wa_objnr to it_objnr.
    * Reas settlement rule from the DM
      call function 'K_SRULE_PRE_READ'
      exporting
        i_pflege               = ' '
      tables
        t_sender_objnr         = it_objnr
    *         T_COBRA                =
      exceptions
        wrong_parameters       = 1
        others                 = 2.
      if sy-subrc <> 0.
        perform error using c_pspnr sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        exit.
      endif.
    * Fill internal buffer with settlement rules
      call function 'K_SETTLEMENT_RULE_GET'
        exporting
          objnr     = c_objnr
          x_all     = ' '
        tables
          e_cobra   = it_cobra
          e_cobrb   = it_cobrb
        exceptions
          not_found = 1
          others    = 2.
      if sy-subrc <> 0.
        perform error using c_pspnr sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        exit.
      endif.
    * Save settlement rule in ABAP-Memory
      call function 'K_SRULE_EXPORT_IMPORT'
        exporting
          i_mode     = 'EX'
        exceptions
          wrong_mode = 1
          others     = 2.
      if sy-subrc <> 0.
        perform error using c_pspnr sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        exit.
      endif.
    * Read ABAP-Memory
      import l_mem_cobra l_mem_cobrb from memory id 'K_SRULE'.
    * Change field URZUO and set Update-Flag
      loop at l_mem_cobrb into l_mem_cobrb_zeile where urzuo is initial.
        l_mem_cobrb_zeile-urzuo = p_urzuo.
        l_mem_cobrb_zeile-uflag = 'U'. "Update Kennzeichen
        modify l_mem_cobrb from l_mem_cobrb_zeile transporting urzuo uflag.
      endloop.
    * Clear internal buffer
      call function 'K_SETTLEMENT_RULE_REFRESH'
        exporting
          objnr = c_objnr.
    * Fill ABAP-Memory with new rules
      export l_mem_cobra l_mem_cobrb to memory id 'K_SRULE'.
    * Fill internal buffer with new rules
      call function 'K_SRULE_EXPORT_IMPORT'
        exporting
          i_mode     = 'IM'
        exceptions
          wrong_mode = 1
          others     = 2.
      if sy-subrc <> 0.
        perform error using c_pspnr sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        exit.
      endif.
    * SAve new rules
      call function 'K_SETTLEMENT_RULE_SAVE'
        exporting
          dialog            = 'X'
          objnr             = c_objnr
          i_status_update   = ' '
        exceptions
          no_rule_for_objnr = 1
          others            = 2.
      if sy-subrc <> 0.
        perform error using c_pspnr sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        exit.
      endif.
      commit work.
      perform erfolg using c_pspnr.
    endform.                    " URZUO_AENDERN
    Hope it helps,
    Jaime

  • BAPI to update value of Progress Tab under Network Activity in CJ20n

    Hi  all,
    can anybody tell me about a BAPI that insert or update value of Progress Tab under Network Activity in Project System(CJ20n)?
    Thanks in advance.
    Regards.
    Sarbajit.

    Hey Sarbajit Majumdar , you'r try this BAPI .
            CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
              EXPORTING
                I_PROJECT_DEFINITION       = LT_PROJ_DEF
                I_PROJECT_DEFINITION_UPD   = LT_PROJ_DEF_UP
              IMPORTING
                RETURN                     = LT_RETURN_MAINTAIN
              TABLES
                I_METHOD_PROJECT           = LT_METHOD
                I_WBS_ELEMENT_TABLE_UPDATE = LT_WBS_UP
                I_WBS_ELEMENT_TABLE        = LT_WBS
                I_NETWORK                  = LT_NETWORK
                I_NETWORK_UPDATE           = LT_NETWORK_UP
                I_ACTIVITY                 = LT_ACTIVITY
                I_ACTIVITY_UPDATE          = LT_ACTIVITY_UP
                E_MESSAGE_TABLE            = LT_METH_MESSAGE.
    I hope this help you .
    Akkadech.T

  • BAPI to upload Person Assignment data under network activity

    Hello All!
    Can anybody tell me the appropriate BAPI that can upload the data of Person Assignment tab under network activity of Project System(TCode:cj20n)? I.E. data like Split Person Date Time Work Un and others data.
    Thanks in advance.
    Regards.
    Sarbajit

    Hi Majumdar,
    you can find it by running transaction ST05 against CJ20N.
    try bapi-
    BAPI_PROJECT_MAINTAIN
    Regards,
    NaPPy

  • BAPI to update a single characteristic in IE02

    Hi,
          I am trying to update a single characteristic in IE02.I am able to do that with the BAPI "BAPI_OBJCL_CHANGE",but this BAPI is updating only 1 characteristic and is initializing all the remaining characteristcs.
          Any pointers on this is highly appreciable.
    Navin

    Hi,
    the documentation of the bapi says:
    Caution
    This BAPI only changes the parameters of an existing assignment (or creates a whole new assignment), but it does not delete the assignment to a class and replace it with an assignment to another class. If you want to reassign an object, the old assignments must be read with BAPI_OBJCL_GETCLASSES and deleted with BAPI_OBJCL_DELETE, then the new assignments must be created with BAPI_OBJCL_CREATE.
    The information transferred by this BAPI replaces all old information. An empty field means "delete entry!", not "no change".
    This BAPI does not change the database. To change the database, call BAPI BapiService.TransactionCommit afterwards.
    You can only use this BAPI for objects that are not classes!
    This BAPI only processes assigned values for classification - not for configuration
    so i guess you have to pass all information you do not want to lose.
    i´ve  found this as well:
    http://www.sapfans.com/forums/viewtopic.php?t=125320
    Best regards.
    Edited by: Pablo Casamayor on Jan 2, 2009 7:08 PM

  • Function module to Update Network Activity Milestone functions tab

    Hi all,
      I am facing a problem to update the milestone details for Network Activity..
    I am using the BAPI_NETWORK_MAINTAIN function module to maintain all the details which i require...But this BAPI Structure for Milestones doesn't contain all fields of milestone ( MLSTD OR MLST ). So i am facing problem to update those fields which are not in BAPI....But i couldn't find any other function module to upate the milestone Function data.....
      Can anybody let me know how i can update milestone function data....any function module for use ?
    Thanks in Advance,
    Pavan.

    Hi,
    Please chek this FM
    CN2M_MLST_CHANGE
    CN_DI_MST_UPDATE
    Regards,
    Ferry Lianto

  • Hi i need help on BAPI to Update the ADRT & ADR6 tables

    hi,
    i need help on BAPI to Update the ADRT & ADR6 tables
    these are the fields to be updated
    ADRT-Remark Table
    ADR6-SMTP_ADDR
    ADR6-DFT_RECEIV
    Please guide me what parameters to be passed to update
    ADR6 & ADRT tables

    Look at this function Group
    <b>BUBA_3                         SAP BP: External BAPI Function Modules     </b>                        
    BAPI_BUPA_ADDRESS_ADD          SAP BP, BAPI: Add Address                                          
    BAPI_BUPA_ADDRESS_CHANGE       SAP BP, BAPI: Change Address                                       
    BAPI_BUPA_ADDRESS_GET_NUMBERS  SAP BP, BAPI: Read Address Numbers                                 
    BAPI_BUPA_ADDRESS_GETDETAIL    SAP BP, BAPI: Read Address                                         
    BAPI_BUPA_ADDRESS_REMOVE       SAP BP, BAPI: Delete Address                                       
    BAPI_BUPA_ADDRESSES_GET        SAP BP, BAPI: Determine All Addresses                              
    BAPI_BUPR_CONTP_ADDR_ADD       SAP BP, BAPI: Add Contact Person Relationship Address              
    BAPI_BUPR_CONTP_ADDR_CHANGE    SAP BP, BAPI: Change Contact Person Relationship Address           
    BAPI_BUPR_CONTP_ADDR_GETDETAIL SAP BP, BAPI: Read Contact Person Relationship Addresses           
    BAPI_BUPR_CONTP_ADDR_REMOVE    SAP BP, BAPI: Delete Contact Person Relationship Address           
    BAPI_BUPR_CONTP_ADDRESSES_GET  SAP BP, BAPI: Read Contact Person Relationship Addresses           
    BAPI_BUPR_EMPLO_ADDR_ADD       SAP BP, BAPI: Add Employee Relationship Address                    
    BAPI_BUPR_EMPLO_ADDR_CHANGE    SAP BP, BAPI: Change Employee Relationship Address                 
    BAPI_BUPR_EMPLO_ADDR_GETDETAIL SAP BP, BAPI: Read Employee Relationship Address                   
    BAPI_BUPR_EMPLO_ADDR_REMOVE    SAP BP, BAPI: Delete Employee Relationship Address                 
    BAPI_BUPR_EMPLO_ADDRESSES_GET  SAP BP, BAPI: Read Contact Person Relationship Addresses           
    Look also at OSS <a href="https://service.sap.com/sap/support/notes/306275">Note 306275 - Transferring address data</a>
    Regards

  • Reg:BAPI for updation of Progress parameter and status profile

    Hi,
    Can anybody suggest name of BAPI used for updating "progress parameter" & "Status Profile" in actvity.
    With Regards
    Rohit Prakash

    Hi Ammar,
    I have checked both BAPI but BAPI are not working as per our requirement.
    Firstly we wanted to update progress parameter like measurement method(progress version,method plan,method actual) & POC weight into activity but as per BAPI given by you there is no any field available related to measurement method(progress version,method plan,method actual).
    And secondly we wanted to update status profile residing in Activity tab not in network header or WBS.
    Waiting for some more input related to  query.
    With Regards
    Rohit Prakash

  • FM or BAPI to update the database table /TDAG/CPT_DEC_IN

    Hi All,
      I need to update a few entries in the database table /TDAG/CPT_DEC_IN (CP: Declarable Substances, Independent attributes). This table contains data for the EHS ( Environment, Health and Safety) Module in SAP.
      Instead of doing a direct database update, I needed a FM or a BAPI to update the same.
    Any pointers towards this will be really useful.
    Thanks and Regards,
    Arti Dohare

    Hi Raymond,
    Thanks for the reply. it seems I was using the wrong BAPI then.
    I actually created the network using the BAPI "BAPI_BUS2002_CREATE".
    This BAPI does not have the field call "Resp. cost cntr" in its input parameters and so I could not pass it there. Now I am trying to find if there is any standard FM or BAPI to maintain this field in the networks.
    I request you to please suggest some FM or BAPI if you know.
    Thanks and Regards.
    Piyush R Sakharkar.

  • Unable To Relaese a Network Activity Through BAPI

    Hi all,
           I am in the process of creating an interface between SAP PS and primavera. I use bapis to create the wbs,network , activities etc.
    In that process i need to release some activities after it gets created. If i do the same process in CJ20n and release an activity , automatically the parent wbs and the network of that activity goes into a partially released status.
    But if i try to do it through bapi i get an error that the wbs element under which the activity is present is not in a partially released status. The bapi i am using to release the activities is BAPI_BUS2002_SET_STATUS.
    Regards,
    Prasannakumar

    Why don't you use BDC for the same.
    I have used BDC for the similar parent- child relationship in one of  my assignment. As in BDC is the copy of standard txn it will not give this type of error.
    I am not sure the technically how BAPI works. As per me BAPI only changes the status field of activity and try to save than in case of  parent -child  relationship error  is natural & Usage of BAPI  is not slove your perpose.
    Regards
    Nitin

  • BAPI to update KNVP Table---- removed_by_moderator .

    Hi all,
    i want to know the BAPI  to update PERNR(Personal number) field in KNVP Table.
    Thanks
    swaroop
    Edited by: Julius Bussche on Jul 11, 2008 12:53 PM

    Hi
    Go through the link given below :
    function module to update a database table
    Regards
    Nikunj Shah

  • Assignment between network , activity , person , planned number of hours

    Hi
    In CJ20N , we are doing person assignment against activity
    Against activity , in internal tab , we are entering the planned no of hours in the field Work
    Similarly , against each person , we enter the splitted time
    I need to know , in which Table , we can find the relationship between network , activity , person , planned number of hours (at that person level)
    rgds
    sandeep

    Hi Sandeep ,
    AFVC, table for activity
    KBED, table for main capacity.
    KBEZ, for Split
    KPER, person assignment of each period.
    There is a correction report ZKBED_DEL of note 542941, You get more details of the relationships of the tables above, if you view (or debug) the codes.
    Kind regards,
    Zhenbo

  • Function, BAPI to get the children form a Network Activity in a Project (PS)

    Hi everyone,
    I have a Project in TCode CJ20N with PEPs, Networks and all the components that It has.
    I'm doing a program which input "Network Activity" and the result have to be all the children for this Network Activity (Material Components) including the information for each Material Component because What I'm looking for is to check if at list one of the children for a Network Aciviti have a Purchase Requisition linked to it as I show in the Attached File.
    To do this, I need to execute a function, BAPI, BADI or any code to get the children to look for a PR.
    Thanks a Lot.
    Regards
    Felipe Uribe

    Hi Arun...
    thanks a lot, I think it could work fine!!!.
    I'll try using this BAPI.
    Regards
    Felipe Uribe

Maybe you are looking for