Updating wbs element relevant data.

HI abapers,
Am new to BAPI concept.I searched in sdn and came to know that  BAPI_BUS2054_CHANGE_MULTI can update WBS elements.
can anybody provide a piece of sample code to update wbs header and details like actual start date,controlling area using this bapi.
Thank You.

How did you solve this problem? I am following the given below approach, and I am receiving the same error.
Error : 1.) Object WBS Element DS-11-1000-0058.01 could not be changed
2.) No update flags or extensions were set for WBS Element DS-11-1000-0058.01
  gwa_bapi_bus2054_upd-wbs_element = 'X'.
  gwa_bapi_bus2054_upd-description  = 'X'.
  gwa_bapi_bus2054_upd-responsible_no = 'X'.
  gwa_bapi_bus2054_upd-applicant_no = 'X'.
  gwa_bapi_bus2054_upd-company_code = 'X'.
  gwa_bapi_bus2054_upd-business_area  = 'X'.
  gwa_bapi_bus2054_upd-profit_ctr  = 'X'.
  gwa_bapi_bus2054_upd-proj_type = 'X'.
  gwa_bapi_bus2054_upd-wbs_planning_element = 'X'.
  gwa_bapi_bus2054_upd-wbs_account_assignment_element = 'X'.
(I have marked all fields with 'X')
  APPEND gwa_bapi_bus2054_upd TO git_bapi_bus2054_upd.
  CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
  CALL FUNCTION 'BAPI_BUS2054_CHANGE_MULTI'
    EXPORTING
      i_project_definition  = p_prj
    TABLES
      it_wbs_element        = git_wbs_element_chg (manually populated)
      it_update_wbs_element = git_bapi_bus2054_upd
      et_return             = et_return.
  READ TABLE et_return INTO ev_ret WITH KEY type = 'E'.
  IF sy-subrc NE '0'.
    CALL FUNCTION 'BAPI_PS_PRECOMMIT'
      TABLES
        et_return = et_return2.
    WAIT UP TO 3 SECONDS.
    CLEAR ev_ret.
    READ TABLE et_return2 INTO ev_ret WITH KEY type = 'E'.
    IF sy-subrc NE '0'.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      WAIT UP TO 3 SECONDS.
    ENDIF.
  ENDIF.
I don't know what I am doing wrong. Please help!

Similar Messages

  • Need to update WBS element in Additional data tab of an order

    Hi all,
    I have a custom program -> which creates service order against notification. My program uses BAPI_ALM_ORDER_MAINTAIN to create orders.
    When these order are created - i need to update WBS element in Additioal data(CAUFVD-PSPEL) tab of on order. In which paramenter and how should we pass to acheive this.
    Even i could not go for BDC as the order number at this point is not created.
    Please let me know.
    Thanks
    Senthil

    Dear Senthil,
    See the link, How to use the BAPI BAPI_ALM_ORDER_MAINTAIN.
    Maybe your requirement matching.
    Regards,
    Abbas.

  • Derivation of Cost Center from WBS element MAster data at the time of invc.

    dear all,
    during invoice postings with wbs element account assignment system do not derive assigned cost center from wbs element master data.
    how can the system derive the cost center automatically??
    Is there any BADI available to this issue.
    regards
    saqib

    Dear,
    WBS is Real and cost center in the master data is for statistical postings i.e. responsible cost center in WBS.
    How to make substitution (OKC9) deriving the cost center in document line items / invoice posting etc.
    Kindly give detail process for its configuration steps and is there any BADI available which can be useful in this regards?
    Regards,
    Saqib Usman

  • Updating WBS element in a sales order

    There is application in Project System (PS) module where I am creating the Project using bapi BAPI_PROJECT_MANTAIN and then uploading the budget for the same using bapi KBPP_EXTERN_UPDATE_CO. After this when I am trying to update the sales order to update its WBS element using bapi BAPI_SALESORDER_CHANGE it’s going into short dump. Dump description as follows :
    Category               ABAP Programming Error
    Runtime Errors         MESSAGE_TYPE_X
    ABAP Program           SAPLBPFC
    Application Component  FI-FM
    Date and Time          17.07.2014 15:11:07
    Short text of error message:
    System error in : LBPFCFE2 Table:   Report:   Routine: DETERMINE_OBJ_ENQ
    _MODE
    Long text of error message:
    Diagnosis
         An internal error has occurred.
    System Response
         Processing will be discontinued.
    Procedure
         Contact your system manager.
    Technical information about the message:
    Message class....... "BP"
    Number.............. 005
    Variable 1.......... "LBPFCFE2"
    Variable 2.......... " "
    Variable 3.......... " "
    Variable 4.......... "DETERMINE_OBJ_ENQ_MODE"
    Whereas when I am running the bapi BAPI_SALESORDER_CHANGE standalone using se37 with same test data its updating sales order properly.
    After debugging the standard bapi I have found out that there is a subroutine determine_obj_enq_mode which is setting the variable u_enq_mode.In our case this variable is blank that’s y its going into dump.I tried hardcoding this variable to 2 then it updates the bapi properly.So will you suggest for the enhancement where we can hardcode this variable or is there any other solution you will suggest.
    Thank you

    There is application in Project System (PS) module where I am creating the Project using bapi BAPI_PROJECT_MANTAIN and then uploading the budget for the same using bapi KBPP_EXTERN_UPDATE_CO. After this when I am trying to update the sales order to update its WBS element using bapi BAPI_SALESORDER_CHANGE it’s going into short dump. Dump description as follows :
    Category               ABAP Programming Error
    Runtime Errors         MESSAGE_TYPE_X
    ABAP Program           SAPLBPFC
    Application Component  FI-FM
    Date and Time          17.07.2014 15:11:07
    Short text of error message:
    System error in : LBPFCFE2 Table:   Report:   Routine: DETERMINE_OBJ_ENQ
    _MODE
    Long text of error message:
    Diagnosis
         An internal error has occurred.
    System Response
         Processing will be discontinued.
    Procedure
         Contact your system manager.
    Technical information about the message:
    Message class....... "BP"
    Number.............. 005
    Variable 1.......... "LBPFCFE2"
    Variable 2.......... " "
    Variable 3.......... " "
    Variable 4.......... "DETERMINE_OBJ_ENQ_MODE"
    Whereas when I am running the bapi BAPI_SALESORDER_CHANGE standalone using se37 with same test data its updating sales order properly.
    After debugging the standard bapi I have found out that there is a subroutine determine_obj_enq_mode which is setting the variable u_enq_mode.In our case this variable is blank that’s y its going into dump.I tried hardcoding this variable to 2 then it updates the bapi properly.So will you suggest for the enhancement where we can hardcode this variable or is there any other solution you will suggest.
    Thank you

  • Query Regarding transfer of WBS element change data

    Hi All,
    We have a requirement in which we need to transfer the change/create/delete information for WBS element in SAP to a third party system for certain set of specified fields.
    The problem we are facing is that the change and create information dosen't get updated in the CDHDR and CDPOS tables, but the master table for WBS element (PRPS).
    One way of fetching the change information is to compare the old and new field values for the specified fields, which seems to be a tedious job.
    Just wanted to know if there is any other possible solution to the above requirement????
    Thanks in advance,
    Manish Gupta

    You should also include Oracle Warehouse Builder in your evaluation. It uses Oracle gateways to pull data from 3rd party databases and supports loading from flat files as well. If these data sources support ODBC, then you might be able to load via the ODBC (Generic Connectivity Gateway), wouldn't be super fast, but it you could manage the dowtime...
    http://www.oracle.com/technology/products/warehouse/index.html
    Donal

  • How to update WBS Element in already posted FI documents

    Hi All,
    I would like the procedure to update the WBS element in already posted Finance documents. We have Fund center is also activated in our system.
    Kindly suggest the procedure for the same please.
    Thanks and Regards,
    Sarvendra Negi

    Hello,
    All PS_PSP_PNR fields, as COBL-PS_POSID are dependent on the
    project settlement. By posting a document you can enter the fields
    independent of the fact, whether the project settlement is active or
    not. Only the field status is crucial. As soon as such a document is
    changed, the activity of the project settlement is relevant.
    If it's active, these fields must not be changed in general.
    Otherwise you would get a inconsistency between FI and CO, because
    there is no interface updating the project settlement tables
    In this case TBAER (transaction OB32) does not play a role anyway.
    But if the project settlement is not active, the fields can be filled
    informatively by posting the document. And thus there must be a
    chance in FB02 to change them again. Therefore the settings of TBAER
    are crucial and TCOBX must not be changed like in note 966428.
    Furthermore the entries of TCOBX are used in the coding for different
    queries. So it would be very critical to change these entries.
    The only solution can be, that you adapt TBAER accordingly. In the
    standard it is not possible.
    BR,
    Raquel

  • User Exit / BADI to change Project WBS Element/Task data

    Hi,
    We are using BAPI BAPI_PROJECT_MAINTAIN to create Project in R/3. We are passing Company Code to Project Definition Structure ( BAPI_PROJECT_DEFINITION ). BAPI updates Header company code at line item ( WBS element / Task ) level also. We do not want company code at line item level.
    Is any User Exit or BADI available in the above BAPI to change WBS/Task data. Also I would like to know whether we can control data flow ( from header to Line item ) through customisation.
    Thanks in advance.
    Naren

    Hi,
    Thanks. BADI WORKBREAKDOWN_UPDATE has import parameters. It does not have export parameters. I can not change import parameter data.
    I am looking for user exit or BADI to change WBS/Task data.
    Regards,
    Narendra

  • WBS element updation through MASS transaction

    Hi,
    I am trying to update WBS element in Sales order - Item data (Account Assigmanent Tab) using MASS transactiomn, After executing MASS transaction it is updating the same.
    Can any one help in this??
    Regards,
    Srikanth

    Hi Mr.Srikky,
    I am not sure but try to do the following things
    1) Change the WBS manually and save the order, see whether the system allow you to save the order or not.
    2) If 1st point is ok then might be you are not executing the MASS correctly, Try MASS for any other feild like payment term.
    Please dont mind, I am just looking for possibilities.
    Please also cross check the MRP details of your materials.
    Regards,
    MT

  • WBS element in Sales order

    Dear Friends,
    We have an issue as explained below.
    An end user has created a Sales order and added a line Item. He forgot to add WBS Element and continued with delivery. Delivery document has been created without WBS element(Table LIPS is updated without WBS). Before Creating an Invoice end user added WBS element in the sales order and performed Invoicing. When we do Revenue recognition w.r.t a delivery document WBS element is empty because it was not updated.
    We are using F2 billing type and process is Delivery related billing. Issue is how system updated WBS element from the Sales order to Invoice when we are performing Delivery related billing.Is there any setting we can control this action.
    Please suggest.
    with regards,
    Dayanand

    Hi Dayananda
    Check in transaction VTFL for given item category what copying routine are set. Check those copy routine and see if there is any data is being copied from table VBAP
    Similar to above also check transaction VTFA for copying routine (if any)
    As a standard SAP even we create an invoice with reference to the delivery document, still there are some data which is being copied from a sales order i.e. all pricing relevant information is copied from your sales order and not from delivery.

  • Position id is blank-t.code CN43N-WBS element

    Hi All,
    The position id has been updated in the WBS element master data however the Position ID not displaying in T-code CN43N.
    Please let us know, is there SAP note have to implement for the same.
    Best Regards,
    Chinna

    Hi,
    In CN43N output, press 'Change Layout' button and include Position ID in you layout. Its available in standard report, no development or notes reqd.
    Regards
    Shrikant

  • Copying WBS element (a/c assignment ) from sales order  to Service order

    HI Controllers,
    I got one requirement it is , we need to copy the account assignment (WBS element ) from sales order line item to service order line item . Morever same  wbs element shud be used to create automatic settlement rule in service order.
    This should also work even if user changes the WBS element later. i.e, updated WBS element should again update service order and settlement rule automatically.
    << Moderator message - Everyone's problem is important. Please do not ask for help quickly. >>
    Thanks in advance
    Sneha
    Edited by: Rob Burbank on Apr 25, 2011 1:39 PM

    Hi Sneha
    You can use Exit MV45AFZB in order to copy the account assignment objects... Use the Form  USEREXIT_MOVE_FIELD_TO_COBL with in MV45AFZB
    You can use the same exit to update your settlement rule as well
    br, Ajay M

  • Relation between business area and WBS element in sales orders

    Hi,
    I need to find the business area for WBS element for line items in sales orders.
    Which database table can I use for that.
    Thanks,
    Abhishek

    Check these tables  PRPS WBS (Work Breakdown Structure) Element Master Data
    PRPSS Standard WBS Element (WBS element) - Master Data
    Field PGSBR   ( Business area for WBS element )
    PSPNR  (WBS Element)

  • WBS Elements in download files

    I have a program which downloads WBS Elements and data into a file that is interfaced into another system.  When the file is created, the WBS Element is replaced with the Object Number of the WBS Element.  I need to get around this conversion and output the WBS Element to the file. Any suggestions?
    Edited by: Robert Theibault on May 28, 2008 3:37 PM

    Hi Robert,
    Check out the conversion routine attached to the WBS element, and you need to add code in your program to convert it before downloading.
    If no conversion exit is available, you need to write code to select its mapping from database table.
    cheers
    swastik

  • New Tab in WBS Elements & need to pull fields from Std SAP Tab to the New

    Hi All,
    I would like to create a new TAB in WBS Element & I need to pull fields from Basic data tab,Origanization Tab,Control Tab & user Fields Tab  to the New Tab.
    Basically my clients wants to see all the fields (based on the requirement) in one TAB.So user will directly  go to the Custom Tab & enter the input data & save.
    So Kindly guide me how to proced.I tried WBS Layouts ,but am confused.
    Any ABAP work is required?or can we do it in PS Configuration itself?
    Thanks
    Suresh

    Configuration:
    Project System>Structures>Operative Structures>Work Breakdown Structure (WBS)>User Interface Settings>Layout of WBS Element Detail Screens>Define Layout of WBS Element
    Detail Screens
    Do do something as below:
    Project Profile:000CAP1
    Act Cat:*     
    Tab Page ID: TAB01     
    Tab page Title:Basic Data
    ICON_HEADER
    Details Screen 1: 2 (WBS Element Basic Data)
    Details Screen 1: 5 (WBS elements, organization)
    Details Screen 1: 8 (WBS Element: User Fields)
    Regards
    Sreenivas

  • Reg :-  For Updating WBS in MIRO (any User Exits or Enhancements)

    Hi,
    I have a requirment while doing MIRO,
    I am selecting 'Calculate Tax' Checkbox to update G/L accounts specified for a particular TAX code in the MIRO Screen simultaneously I want to update WBS element for that G/L accounts specified in the TAX code in MIRO level.
    Can anyone suggest any Enhancements or User Exits available for this else provide solution for this.
    With Thanks,
    Dina

    Hi,
    have a look at badi INVOICE_UPDATE.
    Best regards.

Maybe you are looking for

  • Error in LSMW during MM Uploading

    Hi Guys, Material Master upload by using LSMW with Batch Input Recording. After completion of Last Step at the time of uploading system will not select any view but its showing error like  'Select least one view' But at the time of recording am selec

  • My iTunes won't open. I recently added RAM to my computer. Other than that, nothing is different. Help!

    My iTunes won't open. I recently added RAM to my computer. Other than that, nothing is different. Help!

  • Content server on Windows 2003

    HI, What are pro/cons of  installing content server 6.4 with maxdb over windows server 2003 standard edition  and windows server 2003 Enterprise edition. We are also planing to install TREX over the same content server.  Thanks. BR, Anirudh,

  • Slideshows on iPad 2 connected to TV

    The iPad is directly connected to the TV by a component cable. Slideshows autoplay movies in the photo collection on the iPad.  When I connected it to the TV with the cable slideshows stop every time they reach a movie, forcing me to manually press p

  • Log format of Cisco Voice Manager

    Hi, that's an example of log which Cisco 2801 call manager generates after conversation using VoIP phones: "Jul 13 11:39:27 172.16.9.21 351: *Jul 13 10:39:45.544: %VOIPAAA-5-VOIP_CALL_HISTORY: CallLegType 1, ConnectionId B9D0B6D2119211DB80BDA7713A418