Validating department in WBS element code with dept in Investment program

Hello Guru's,
While assigning Investment program, in WBS  in CJ20N or CJ11, in our current business process we need to to validate the Department code in both WBS code and Investment program code.
At present we have planned to used same department code in WBS Code and Investment program code.
Need to to do this enhancement for our current project.
Please suggest the way to do it.
Regards,
Amlan

Hi,
I assume this "Department Code" is one of your customer specific field that is made available both in WBS as well as the iM program. If that is the case then either you can use any of the user exits for the WBS Elements to write your code or create a validation for the WBS and put your code in one of those exits invalidation.
Regards
Sreekanth

Similar Messages

  • Skipping errors in WBS elements closure with a SAP / Excel script.

    Hai there!
    I have a Excel / SAP macro for closing WBS elements in transaction CJ20N. This macro works fine until error messages occur (or warnings) in SAP because something was not completed on the WBS element.
    So then I thought the macro may be able to skip the WBS element that has errors on it and continue trying to close the next one instead? And then make a little mark in my list of WBS elements to close. That would save loads of time.
    Is this possible? This is what I have in the code right now.
    WBSToClose = ActiveCell.Offset(0, 1).Value
    session.findById("wnd[0]").maximize
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell").topNode = "         23"
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[0]/shell/shellcont[0]/shell").pressButton "OPEN"
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").Text = WBSToClose
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").SetFocus
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").caretPosition = 0
    session.findById("wnd[1]").sendVKey 0
    session.findById("wnd[0]/mbar/menu[1]/menu[1]/menu[6]/menu[0]").Select '<--- This is the close button, after this errors sometimes occur.
    session.findById("wnd[0]/tbar[0]/btn[11]").press '<--- save button.
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell").topNode = "         23"
    Below is an example of an error message popping up while trying to close.
    session.findById("wnd[0]").maximize
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell").topNode = "         23"
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[0]/shell/shellcont[0]/shell").pressButton "OPEN"
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").text = WBSToClose
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").setFocus
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").caretPosition = 18
    session.findById("wnd[1]").sendVKey 0
    session.findById("wnd[0]/mbar/menu[1]/menu[1]/menu[6]/menu[0]").select '<--- Selecting close
    session.findById("wnd[1]/usr/btnOPTION2").press '<--- Here I click "Continue" on the error message
    session.findById("wnd[0]/tbar[0]/btn[3]").press '<--- Back button
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell").topNode = "         23"
    I would also like the script to put a little mark in my excel file showing which WBS elements that had errors on them. Just a number or so. But thats a bonus.
    Is this possible?
    Thanks, Mattias

    Hello again!
    Thanks alot! I got it to work perfectly with some modifications to the code.
    Posting the solution in case someone can find it useful.
    If (ActiveCell.Value = 0) Then
    Row = 2
    Column = 1
    WBSToClose = ActiveCell.Offset(0, 1).Value
    session.findById("wnd[0]").maximize
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell").topNode = "         23"
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[0]/shell/shellcont[0]/shell").pressButton "OPEN"
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").Text = WBSToClose
    session.findById("wnd[1]/usr/ctxtCNPB_W_ADD_OBJ_DYN-PRPS_EXT").SetFocus
    session.findById("wnd[1]").sendVKey 0
    session.findById("wnd[0]/mbar/menu[1]/menu[1]/menu[6]/menu[0]").Select '<-- Selecting close
    session.findById("wnd[0]/tbar[0]/btn[11]").press '<-- Save button.
    On Error Resume Next
    session.findById("wnd[1]").Close '<-- Close window button on any error message or warning
    If Err.Number = 0 Then
    ActiveCell.Value = 2
    session.findById("wnd[0]/tbar[0]/btn[3]").press '<--- Back button if error message
    End If
    On Error GoTo 0
    session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell").topNode = "         23"
    Row = Row + 1
    End If
    If ActiveCell.Value = 2 Then GoTo Fortsaett '<-- Skipping writing "1" in "processed"
    ActiveCell.Value = 1
    Fortsaett:
    n = n + 1
    ActiveCell.Offset(1, 0).Select
    'Some looping hereafter
    Points awarded.
    Thanks, Mattias

  • PS report: wbs element relation with PO, Pur Req. and vendor

    Hello,
    I need to build a report on WBS element which also shows PO number, Pur. Requisition, vendor details along with budget, actual, committements.
    I found datasources that can provide informations except PO, Pur Req.
    Can anyone help in providing a soln to build a relation between wbs and vendor to bring the correct PO and pur req related to wbs.
    Thanks
    Anima

    Hi Sushil,
    Which version of BW are you using?
    If its BW 7, then look at the datasource 2LIS_02_ACC
    http://help.sap.com/saphelp_nw04s/helpdata/en/ed/62073c44564d59e10000000a114084/frameset.htm
    Hope this help you
    Anima

  • WBS Elements upload with settlement rule& classification

    I have created project profile & WBS elements with a BAPI bapi_project_maintain.
    Now i need to apply characterstic values and settlement rules to those WBS elements.
    I have been searching for a FM since long time.
    I tried with LSMW also,it did not work.
    Only way left to me is to write a BDC programs to full fill this.
    If anybody has got some solution for this let me know.
    regards
    KTSS

    Sreenivas,
    I´m afraid that none of the 3 options is available via standard tools
    I´m so sorry.
    Rgds
    Martina

  • WBS element integration with Trade Claims Management Module

    Hi All,
    anybody knows if Trade Clams Management module of CRM is integrated with management of WBS elements?
    We actually want to post the amounts paid to customers through Trade Claims Management into CO-PA; we're trying to understand if using WBS element is a viable solution. Moreover if this is the case i'd be curious also to understand how COPA posting of accruals would work.
    Regards
    C

    m

  • Wbs element show with '/'

    i have zprojn type projn(i tried ps_pnr too)
    and after i made conversion func i see my number is==004800
    but i need to see it like this 4/008 or 4.800  how i can do it???

    Dear Szymon,
    this the setting of allocation structure
    Assignment 10
    Source
    Settle Cost Element
    Assignment 30
    Source
    Settle Cost Element
    need your advice.
    Thank you,
    Iwan S

  • WBS Element wise settlement report

    I require a report having the all WBS element code with settlement rule details the input shall be Project Deffinition. The report can be a standard report or from database table. Please suggest.
    I have already tried in the Table COBRB & COBRA. But it is not giving the suitable report.
    With regards,
    Uttam Maity
    Edited by: Uttam Maity on Aug 9, 2011 2:36 PM

    There is a standard report available in ECC 6.0 EHP4, KOSRLIST_PR. menu path Logistics - Project System - Financials -
    Period End Closing - Single functions - Settlement Rule - KOSRLIST_PR - List. You can create your own variant with inputs like project definition no, network number you can also choose a variant from list and then execute the report.

  • Reassigning WBS element to a new IM program in the new FY

    We have a scenario, wherein a WBS element is assigned to an Investment Program (IM) in a Financial Year, but the same WBS element needs to be reassigned to another Investment Program in the next Financial Year. But, in reporting the cost booked for the WBS element for the previous Financial year should be reflecting along with the old IM program and in the next Financial year, the cost for the WBS element should be reflected along with the new IM program. How to accomodate this?

    Do I understand correctly. If I change the data ID of your account on the Apple ID program purchased through this account does not join a new account?
    Change data on the device ID can be 90 days, I have passed more.

  • WBS Element vs investment order

    Good Day,
    Please can someone explain the following..................
    I have CO objects a WBS element and an investment order and I have posted budgeted values to these CO Objects.  I have posted actual values to these Co object via the MM and FI-AA module. 
    When I display the budgeted values for the WBS Element and the invesment order for the fields BPJA-WTJHR the vaules are positive.  Once the actual values are posted to the WBS Element and investment order the values are displayed differently on the table COSP-(WTG001-WTG016).
    For the WBS Element the values are dispalyed as negative on table COSP -(WTG001-WTG016) and for the investment order the values are displayed as postive but both values for the different CO objects are expenditure which has occured via the MM and FI-AA modules  Therefore can someone please explain to me why these values are displayed differently yet the budgeted values are displayed the same.
    Your soonest response would be appreciated.
    Kind Regards
    Ropetra

    Hi
    please gop through this notes it may be help full for you...............
    Planning and Budgeting Measures
    Use
    Using this function, you can plan and budget investment measures, even if they are not already assigned to an investment program.
    Integration
    All of the planning and budgeting functions of orders or projects are at your disposal for the corresponding measures. For more information, see the documentation for the R/3 components,  Internal Orders (CO-OM-OPA) and  Project System (PS) .
    Orders or WBS elements that are assigned to investment programs cannot receive their overall budget by means of the budgeting functions in CO and PS, when the Budget distribution indicator is set in the program position to which they are assigned. Instead, they are limited to receiving their overall budget only by means of the budgeting functions in Investment Management.
    Prerequisites
    Certain restrictions apply when an investment program type is entered in the budget profile of an order or WBS element. When this is the case, the order or WBS element cannot receive overall budget unless you assign it (or a higher-level WBS element ) to an investment program position. Until you make this assignment to a program position, the fields for the overall budget and/or annual budget for orders or WBS elements are not ready for input and cannot be changed.
    Activities
    To plan or budget orders, choose Internal orders ® Planning ® Overall values ® Change or Budget ® Original budget ® Change.
    To plan or budget WBS elements, choose Investment projects ® Planning ® Total costs ® Change or Budgeting ® Original budget ® Change.

  • Trasaction code for invoices detail which has hit the WBS element

    Hi All
    Usually my users receive a list of assets which were capitalized from AUC account through Project system.
    Generally charges are posted to WBS element and then users capitalize assets using that WBS element through settlement.
    Users have been asked to give all the invoices detail which has hit the WBS element from which that particular assets have been capitalized. is there any transaction code to get the all invoices detail which has hit the WBS element from that particular assets.
    thank you

    If that is what you want then why are you using WBS element?
    You can directly create the asset on goods receipt via MM module and then the invoice will automatically go against that asset.
    If you still want to use the WBS element for capitalisation then you can use the WBS element statistically with a type 90 cost element posting and the sset will still be crteated when goods receipted/ invopice receipted

  • Issue in BAPI_PS_PRECOMMIT in mass creation of WBS Elements

    Hi,
    I am facing a issue with BAPI_PS_PRECOMMIT.
    we have the following WBS Hierarchy:
    S - Proj, (level1)
    S-XXX WBS Element (level2)
    S-XXX-001 WBS Element (level3)
    I have created a program for mass creation of WBS elements creation
    which uses the following BAPI's
    BAPI_PS_INITIALIZATION
    BAPI_BUS2054_CREATE_MULTI
    BAPI_PS_PRECOMMIT
    BAPI_TRANSACTION_COMMIT
    The proj: 'S' and the level2 WBS element: 'S-XXX' already exist in the system.
    When I run the program for delta load, so as to create the following level3 WBS elements:
    S-XXX-001
    S-XXX-002
    S-XXX-003
    The system is throwing the following errors at the BAPI_PS_PRECOMMIT:
    1. Final Check of the project definition and WBS elements: Error
    2. Validation unsuccessful
    Pls help me on this.
    Thanks,
    Deepak

    Check the WBS elements doesn't exist already in your system.
    Here is what I coded some days back for deletion of Network Activities, most of the things are same.
    You are doing for WBS element.
    * Call to initialization BAPI Before Delete
          CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
    * Call to Network Activity Deletion BAPI
          CALL FUNCTION 'BAPI_BUS2002_ACT_DELETE_MULTI'
            EXPORTING
              i_number           = t_bapi_activity-network
            TABLES
              it_delete_activity = l_t_del_vornr
              et_return = l_t_bapiret2.
          DELETE l_t_bapiret2 WHERE type <> 'E'.
          READ TABLE l_t_bapiret2 INDEX 1.
          IF sy-subrc EQ 0.                                      "If error in Deletion
            MOVE: f_idoc_contrl-docnum TO t_idoc_status-docnum,
                  l_t_bapiret2-type TO t_idoc_status-msgty,
                  'CNIF_PI' TO t_idoc_status-msgid,
                  l_t_bapiret2-number TO t_idoc_status-msgno,
                  l_t_bapiret2-message TO t_idoc_status-msgv1.
                  MOVE c_idoc_status_error TO t_idoc_status-status.
                  APPEND t_idoc_status.
                  ROLLBACK WORK.
                  EXIT.
          ELSE.                                                  "If Delete is successful COMMIT
    * Call to PreCOMMIT BAPI
            CALL FUNCTION 'BAPI_PS_PRECOMMIT'
             TABLES
               ET_RETURN       = l_t_bapiret3.
    * Call COMMIT BAPI
    *        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
          ENDIF.
    The other solution is use BAPI_PROJECT_MAINTAIN.

  • WBS elements deletion

    I deleted some of the WBS elements a week ago.
    Now I still see them under the search list,
    Is it because they are marked for deletion and not deleted actually,
    If yes what should I do to remove them.
    Please reply.

    Hi Ramesh,
    The scene is like this.
    End users created WBS elements starting with H.****
    Then after I assigned project code H for tht co.code.
    after applying project coding mask [OPSJ] those WBS elements automatically got deleted, I m not sure if they are deleted or not but when i go to CJ02 and enter that WBS it says it does not exists. but it still shows those WBS elements under ths search criteria.
    I reffered to OSS notes as per it they have corrected this problem in version I am using.
    Please guide if you have any idea.
    MIlind

  • Validation on child WBS

    Dear All,
    I am using free coding mask and want to validation for child WBS element on account assignment tick.
    Like for child WBS element ,Account assignment should be tick otherwise system sould throw an error .kindly note that we are using free coding mask so that in project hierarchy is not defined .it can be 4,5,9,10 anything .
    How can I create the validation for this condition .
    Regards
    RSS

    If you are planning to have the check at specific child level WBS, then you can set using level as already suggested by Nitin. So you can say that if level > or = 2 always chk the account assignment.
    If you want to set it at specific level then define it for that levels i.e. if level =3 or level =4 or level = 7 or level = 9 then chk account assignment.
    You need to have some logic, for setting validation.
    Sarang

  • 64 bits code with Pro*C

    I need to generate 64 bits code with my Pro*C programs.
    Some documents reference a makefile called demo_proc64.mk,
    where can i found it?
    How can i use de lib64 library's if i dont have that makefile?
    Thanks.

    I stumbled upon the solution. In my makefile, I had the final compile look something like this (greatly abbreviated):
    cc $(PROLDLIBS) program1.o -o program1Well, it turns out that if you list PROLDLIBS after the object, it compiles without complaining about multiple main() functions. So it's all happy if I do this:
    cc program1.o $(PROLDLIBS) -o program1I guess I should assume that the sslb9 library detects if there is already a main() function and disregards its own if so. Whatever... I still don't know what that library does, but at least I don't have to jump through hoops to strip it out anymore.

  • Result Analysis with transaction code KKAJ for Top level WBS element

    Hi Experts,
    we have four level WBS structure with level 1 and level 4 with all operative indicators active
    when we are doing Result analysis by using KKAJ for level 1 WBS element, System is taking all level 4 wbs elements also into consideration.
    Is there a way to run results analysis using KKAJ only for level 1 wbs elements for multiple projects, avoiding the level 4 WBS elements.
    SAP version 4.6C
    Please suggest.
    Thanks in advance
    Chakravarthy

    Hi
    refer this thread posted a few days back
    Ajay M

Maybe you are looking for

  • Can you switch to alternate phone on line with edge payment?

    I have a need to temporarily from time to time switch to an alternate phone on a line I currently have Edge payments on.  I will continue to keep and use the phone I'm making edge payments on, but if I take the SIM out and put it in another phone for

  • How to use Derby database in embedded mode in WebLogic 12c?

    I have a JavaEE-6 application that uses Derby database in embedded mode. It uses JPA for persistence. Everything works fine in Glassfish but now I am trying to port it to WebLogic 12c and having issues setting up Derby database in WLS in embedded mod

  • Mac Pro 5,1 processor compatibility?

    I have a 2010 8 core 2.4GHz Mac Pro and for curiosity's sake I wanted to know what my options were in terms of upgrade? I just got the unit, so no changes are immediate. But it's my understanding that I could eventually swap the 2.4 chips for faster

  • Please suggest DB monitoring tool

    Our DB have some performance issues, I need your suggestions to buy a DB monitoring tool to help us to resolve these problems. If you can share your experiences on the tool, it will be the best.

  • Reader 9.0/9.1 problem

    I have install in a window vista OS Adobe Reader 9.0, which will not initiate, error message enternal error.  Downloaded version 9.1 and attempted to install got error message 1606 could not access %APPDATA%\.  Attempted to uninstall 9.0 and got same