Project definition related to WBS

Hi All,
I need to extract all the WBS elements (PSPNR) from PRPS related to the project definition (PSPID) in PROJ. Please help me with the query.
For Example:
For project definition: 6HU-000000120
There are 2 WBS elements: 6HU-000000120(top level) and 6HU-000000120-1(second level)
As per standard datasource, PSPNR field is not available in any of the datasources.Do i need to enchance this field along with the datasource.
Pls suggest us.
Thanks,
Ram.
Thanks,
Netrey.

Hi
Join the tables PROJ and PRPS using the field
<b>PROJ-PSPNR = PRPS-PSPHI.</b>
select af1 af2
         bf1 bf2
     into table itab
from proj as a join prps as b
<b>on apspnr = bpsphi</b>
where a~pspid in s_pspid.
Reward points if useful
Regards
Anji

Similar Messages

  • Error when create project definition and 2 wbs by bapi BAPI_PROJECT_MAINTAI

    Hello everyone,
    I have to create project definition and 2 wbs, I use function BAPI_PROJECT_MAINTAI but I have the error:
    "WBS element 0033.3332.01.R already exists" but that wbs it's created.
    This is my code.
    data:
             I_WBS_ELEMENT_TABLE type BAPI_WBS_ELEMENT occurs 0 with header line,
             I_WBS_ELEMENT_TABLE_UPDATE type BAPI_WBS_ELEMENT_UPDATE occurs 0 with header line,
             I_PROJECT_DEFINITION like BAPI_PROJECT_DEFINITION,
             I_PROJECT_DEFINITION_UPD like BAPI_PROJECT_DEFINITION_UP,
             I_METHOD_PROJECT type BAPI_METHOD_PROJECT occurs 0 with header line,
            E_MESSAGE_TABLE like BAPI_METH_MESSAGE occurs 0 with header line,
            RETURN type BAPIRETURN1,
            lv_index    LIKE bapi_method_project-refnumber.
    lv_index = 1.
    I_METHOD_PROJECT-OBJECTTYPE = 'ProjectDefinition'.
    I_METHOD_PROJECT-METHOD = 'Create'.
    I_METHOD_PROJECT-OBJECTKEY = '0033.3332'.
    I_METHOD_PROJECT-REFNUMBER = lv_index.
    append I_METHOD_PROJECT.
    lv_index = lv_index + 1.
    I_METHOD_PROJECT-OBJECTTYPE = 'WBS-Element'.
    I_METHOD_PROJECT-METHOD = 'Create'.
    I_METHOD_PROJECT-OBJECTKEY = '0033.3332.01'.
    I_METHOD_PROJECT-REFNUMBER = lv_index.
    append I_METHOD_PROJECT.
    lv_index = lv_index + 1.
    clear I_METHOD_PROJECT.
    I_METHOD_PROJECT-OBJECTTYPE = 'WBS-Element'.
    I_METHOD_PROJECT-METHOD = 'Create'.
    I_METHOD_PROJECT-OBJECTKEY = '0033.3332.01.R'.
    I_METHOD_PROJECT-REFNUMBER = lv_index.
    append I_METHOD_PROJECT.
    clear I_METHOD_PROJECT.
    I_METHOD_PROJECT-OBJECTTYPE = space.
    I_METHOD_PROJECT-METHOD = 'Save'.
    I_METHOD_PROJECT-OBJECTKEY = space.
    I_METHOD_PROJECT-REFNUMBER = space.
    append I_METHOD_PROJECT.
    I_PROJECT_DEFINITION-PROJECT_DEFINITION = '0033.3332'.
    I_PROJECT_DEFINITION-DESCRIPTION = 'Training project'.
    I_PROJECT_DEFINITION-PROJECT_PROFILE = 'ZAF0001'.
    I_PROJECT_DEFINITION-COMP_CODE = '0033'.
    I_PROJECT_DEFINITION-RESPONSIBLE_NO                  = 1.
    I_PROJECT_DEFINITION-APPLICANT_NO                    = 1.
    I_PROJECT_DEFINITION-PLANT  = '033A'.
    I_WBS_ELEMENT_TABLE-PROJECT_DEFINITION              = '0033.3332'.
    I_WBS_ELEMENT_TABLE-WBS_ELEMENT                     =  '0033.3332.01'.
    I_WBS_ELEMENT_TABLE-DESCRIPTION                     = 'WBS 1'.
    I_WBS_ELEMENT_TABLE-RESPONSIBLE_NO                  = 1.
    I_WBS_ELEMENT_TABLE-APPLICANT_NO                    = 1.
    I_WBS_ELEMENT_TABLE-COMP_CODE                       = '0033'.
    I_WBS_ELEMENT_TABLE-PROFIT_CTR                      = '0033A99999'.
    I_WBS_ELEMENT_TABLE-PLANT  = '033A'.
    append i_wbs_element_table.
    clear I_WBS_ELEMENT_TABLE.
    I_WBS_ELEMENT_TABLE-PROJECT_DEFINITION              = '0033.3332'.
    I_WBS_ELEMENT_TABLE-WBS_ELEMENT                     =  '0033.3332.01.R'.
    I_WBS_ELEMENT_TABLE-DESCRIPTION                     = 'WBS 2'.
    I_WBS_ELEMENT_TABLE-RESPONSIBLE_NO                  = 1.
    I_WBS_ELEMENT_TABLE-APPLICANT_NO                    = 1.
    I_WBS_ELEMENT_TABLE-COMP_CODE                       = '0033'.
    I_WBS_ELEMENT_TABLE-PROFIT_CTR                      = '0033A99999'.
    I_WBS_ELEMENT_TABLE-PLANT  = '033A'.
    append i_wbs_element_table.
    PERFORM fill_update_flags USING    'BAPI_PROJECT_DEFINITION_UP'
                              CHANGING I_PROJECT_DEFINITION_UPD.
    PERFORM fill_update_flags USING    'BAPI_WBS_ELEMENT_UPDATE'
                              CHANGING I_WBS_ELEMENT_TABLE_UPDATE.
    append I_WBS_ELEMENT_TABLE_UPDATE.
    append I_WBS_ELEMENT_TABLE_UPDATE.
    CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
      EXPORTING
        I_PROJECT_DEFINITION               = I_PROJECT_DEFINITION
        I_PROJECT_DEFINITION_UPD           = I_PROJECT_DEFINITION_UPD
      TABLES
        I_METHOD_PROJECT                   = I_METHOD_PROJECT
        I_WBS_ELEMENT_TABLE_UPDATE         = I_WBS_ELEMENT_TABLE_UPDATE[]
        I_WBS_ELEMENT_TABLE                = I_WBS_ELEMENT_TABLE[]
       E_MESSAGE_TABLE                    = E_MESSAGE_TABLE
    write: / 'Finish'.
    *&      Form  FILL_UPDATE_FLAGS
    FORM fill_update_flags USING    value(p_ddic_name)
                           CHANGING p_struc_upd.
      DATA: lt_dd03l LIKE dd03l OCCURS 0,
            ls_dd03l LIKE dd03l.
      DATA: s(40), c(40), sc(80) TYPE c.
      FIELD-SYMBOLS: <s>, <c>, <sc> TYPE ANY.
      TRANSLATE p_ddic_name TO UPPER CASE.
      SELECT * FROM dd03l INTO TABLE lt_dd03l WHERE tabname = p_ddic_name.
      s = 'P_STRUC_UPD'.
      ASSIGN (s) TO <s>.
      LOOP AT lt_dd03l INTO ls_dd03l.
        ASSIGN ls_dd03l-fieldname TO <c>.
        ASSIGN COMPONENT <c> OF STRUCTURE <s> TO <sc>.
        <sc> = 'X'.
      ENDLOOP.
    ENDFORM.                    " FILL_UPDATE_FLAGS
    Please help me!
    Thank you!
    Edited by: kishan P on Sep 10, 2010 9:37 AM

    Hi,
    Please try creating the project definition and then call the FM again to create the WBS.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/4c/226a7246e611d189470000e829fbbd/frameset.htm
    Hope it helps.
    Sujay

  • 1 project definition with several wbs elements or several project definitin

    Hello
    I need projects as account assignment elements in CO (when entering vendor invoices for costs). Should I have 1 project definition with all projects /wbs elements underneath, or should I have 1 project definition uniquely defined for each project/wbs element? Some projects are not settled to assets und construction, some projects are settled to assets und construction.
    kind regards
    Arjan

    Arjan
    I don't think you can have Projects as account assignment objects. You can have WBS element as account assignment object.
    One alternative I can suggest, if you want to see project costs at higher level instead of breaking down the project into many WBS elements. Create a project with one WBS element only and use that WBS element as account assignment object.
    It is only possible to have a project with one or more WBS elements. I don't think you can define projects within projects.
    letus put it this way assume WBS elements are projects within a project. But make sure all the WBS elements are related to one project
    Hope you are clear now.
    Thanks
    Prasad

  • (ABAP-FI)How to get project definition from agiven WBS element

    Hi,
    I have to update some columns of PRPS table relating to a WBS element.
    While using  BAPI_BUS2054_CHANGE_MULTI it wants project definition to be passed as an input parameter.
    Is there any means to know project definition for  a given WBS element of PRPS table.
    Thanks in advance.
    Regards,
    Sourya Prakash.

    Hi,
    why don't you display table PRPS in SE11 to see what fields you have there? It's not that hard to see that there is a field PRPS-PSPHI with description "Current number of the appropriate project". Yes, there is a link from WBS element to project definition.
    Cheers

  • Enhancement for project definition and WBS element.

    Hi Experts,
    I have a client requirement for creation of the custom specific fields for the project definition and the WBS element level called IT relevant and they need to use this fields for the purpose of structured reporting in PS.Can you please guide me as to how do in need to do this.
    When i go in to the transaction CMOD and SAP Program SAPMSMOD it says you are not authorised.Please let me know the process as to how it has to be done.
    Thanks for your cooperation.
    Shivkumar

    Refer the IMG documentation against the SPRO node 'Create Customer-Specific Fields in a Project Definition' and 'Create Customer-Specific Fields in a WBS'.
    Regards
    Sreenivas

  • BAPI/FM for setting the user status for the Project definition and WBS elem

    Hi,
    I have to set the User Status for the Project Definition and the WBS elements in that project.
    The User status to be set is the same for the project and wbs elements.
    Please let me know if there is any BAPI/FM to set the user status..
    Thanks in advance.
    Regards
    Shiva

    Hi Shkithija,
    There is a dump encoutered in the form "PS_FLAG_GET_GLOBAL_FLAGS" for 'chk_precommit_ok' in the "BAPI_PS_PRECOMMIT".
    But it is showing SY-SUBRC = 0 when used along with BAPI_TRANSACTION_COMMIT.
    May i know what are input parameters we need to pass it to "BAPI_PS_PRECOMMIT".
    Do you have any idea.
    Please let me know
    Regards
    vishnu

  • Grey field for project definition and WBS element

    Dear all,
    I have created a project and WBS element in CJ01. Now I go via CJ02 to the change mode and the project ID and WBS element ID is not greyed out. But I would like that the system shows these key fields as not changeable anymore, only fields like description should be changable. Can you please tell me, which customizing step I missed to get the grey field for project ID/WBS element ID?
    FYI  I do not use a project mask to create the project.
    Thanks for your answer.
    Heidi

    Hi Heidi ,
    I don't think you can grey out the Project Definition and the WBS Element fields after the creation .
    If you want to restrict the users to change the Proj definition and WBS , a better way is through
    Authorization objects and restricting only specified users to change the WBS
    Kish

  • System Status Change for Project Definition

    Hi,
    I am working on a requirement to notify the Project Manager when the Project Status changes to REL.
    I couldn't find any user exits where I can add the code to send an e-mail notification at the time of status change of the Project Definition or the WBS elements within the Project.
    I checked for events in Business Objects BUS2054(WBS) and BUS2001(ProjectDefinition) which might get triggered at the time of status change. I couldn't find any events relevant to Status Change.
    Any ideas how to handle this requirement ?
    Regards
    Bhooma

    I found a solution to this issue.
    Regards
    Bhoooma

  • WBS elements related to project definition

    Hi all,
    I need to extract all the WBS elements (PSPNR) from PRPS related to the project definition (PSPID) in PROJ. Please help me with the query.
    For Example:
    For project definition: 6HU-000000120
    There are 2 WBS elements: 6HU-000000120(top level) and 6HU-000000120-1(second level)
    Thanks,
    Netrey.

    Hi
    Join the tables PROJ and PRPS using the field
    <b>PROJ-PSPNR = PRPS-PSPHI.</b>
    select af1 af2
             bf1 bf2
         into table itab
    from proj as a join prps as b
    <b>on apspnr = bpsphi</b>
    where a~pspid in s_pspid.
    Reward points if useful
    Regards
    Anji

  • Transfer WBS elements to Project Definitions

    I have created many wbs elements under a single project definition and want to know if it is possible to transfer some of them to a new project defintion?

    i think you are talking about something not related to Business Objects, are you asking about SAP BW?
    kindly put your post to the right forum to get some usefull answer.
    good luck

  • How to block reusage of archived Project definition and WBS element numbers

    Dear All,
    We have archived our projects using the TC SARA and the Project definition and WBS elements numbers no more exist in tables PROJ and PRPS etc.. When I now try to create a new project, the system proposes the next open number or allows to enter a number which is the same as one of the archived projects. But in our organization we cannot reuse the Project definition and WBS element numbers (even if it is archived) as a rule.
    Can anybody guide me what are the possibilities to block or avoid the reusage of the numbers of archived project definition and WBS elements in a fool-proof way? 
    Thanks and regards

    One Workaround:
    Use T code OPSJ and lock the project coding mask. Doing this you can not use this mask any more.
    But you want to continue using the mask but with different numbers. Not sure how this can be acheived. lets wait for others view
    Regards
    Sreenivas

  • Creation of project definition and wbs element

    I want creation of project definition and wbs element upto 4 level using bapis.
    i am using transaction cj27,cj01,cj02
    which function module to use for this??

    Hi,
    to create project definition with customer fields the BAPI you should use is : BAPI_BUS2001_CREATE
    to create WBS elements with different levels and specific fields the BAPI you should use is BAPI_BUS2054_CREATE_MULTI
    these bapi must be used in the sequence of call :
    BAPI_PS_INITIALIZATION
    BAPI_BUS2001_CREATE / BAPI_BUS2054_CREATE_MULTI
    BAPI_PS_PRECOMMIT
    BAPI_TRANSACTION_COMMIT
    before using the bapi, you must apply OSS note :
    637345 - Syntax error with enhanced PS tables
    i sent you the oss note to your mail
    please reward points if helpfull.

  • How to populate WBS element and Project definition in Additional Tab

    Hi,
    I have a 2 requirements
    1) we need to populate WBS element and Project definition of an order in PM
    IW 32 trasnaction (Additional data tab).
    2)Also i need to program settlement rules in CJ02 for WBS elements .
    How do i approach ?  when i do manually it is taking the values in IW 32 when the status is released.
    So i think first we need to chnage the Status from Created to released and then start working on step 1 and Step 2
    Kindly suggest.
    Thanks,
    Pradeep.

    Problem one solved ......
    Basically we need to put the status of WBS elememnts and then write a BDC for additional data tab.
    Looking into issue 2......

  • How to Get project definition and description  by WBS element

    Hi All,
    Is there any way to get  project definition and description  by providing WBS element.
    Please help .
    Salman Zahir

    Hi,
    These r the tables
    PRHI Work Breakdown Structure, Edges (Hierarchy Pointer)
    PROJ Project definition
    PRPS WBS (Work Breakdown Structure) Element Master Data
    RPSCO Project info database: Costs, revenues, finances
    MSPR Project stock
    Thanks,
    Anitha

  • CADO Report - Missing Project Definition and WBS elements

    While running CADO (time sheet data) report for employee, data is not being pulled up for the WBS Element and Project Definition. What could be the reason? Here time is entered against a network activity but for some entries WBS element and project definition is dispalyed and for remaining it is not.

    Yes....these activities are assigned to the WBS element in the project. As I mentioned earlier for the same activity in some cases WBS element is populated.

Maybe you are looking for

  • The interface is so big, that I can only see a small section of the screen.

    I installed Photoshop CC 2014 on Windows 8.1 operating system. I inadvertently checked a preference in the 'experimental' I think, that has caused the interface on my 17'' Dell CRT to be so big that I can't navigate around to change the preferences a

  • Photo resolution question

    I have importing a movie made up of high resolution photos (slide show?) created in iMovie HD (5.0.2) onto iDVD (5.0.1). The end product photos on the iDVD look to be of poor resolution. They started as good size files. Could they be to large to star

  • Notifying techs of users with issues

    How does a tech get to know who to sort out when a ticket is assigned to him/her?I have tried to modify the ticket notification template but the tech still doesnt know who he is to sort out.Sometimes the techs are on the field and dont need to login

  • Lightroom won't display

    hello all, anyone know what seems to be my source of problem? previously i've used LR 3.6 and here the problem started. My LR didn't show any images/display althought it import the pictures succesfully. So, i've upgraded to LR 4 and the problem still

  • Why are wireless networks with unicode SSID names not showing?

    I live in Taiwan and many wireless networks here use Chinese characters in their name and they don't appear in the menubar's list of networks I am able to connect to. If I go to System Preferences > Network > Assist Me > Diagnostics > Airport it will