Skip to Content
author's profile photo Former Member
Former Member

*********FM to update partner details of Project WBS**********

Hi have a FM 'BAPI_BUS2001_PARTNER_CREATE_M' to update the partner details of Project WBS.But its throwing an error as

T ID:E CNIF_PI

NUM : 018

MESSAGE: Object Project Definition DOO/00004 could not be changed

T ID:E CNIF_PI

NUM:078

MESSAGE:Processing not possible because there is no initialization

I have passed the required values of project definition (PSPID)]

and partner details(PARVW and PARNR).

Prior to calling this FM, I have create the project and WBS elements using business object BUS2054, which has a customized function module which creates and releases the projects and WBS elements.

I am able to do all the changes to partners of Projects WBS in the transaction CJ20n, but given the same data in the FM its not working.

Does any one any other idea to do this?

Quick response will be appreciated.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 28, 2007 at 04:15 PM

    Hi Prasad,

    Call FM BAPI_PS_INITIALIZATION before using FM

    BAPI_BUS2001_PARTNER_CREATE_M

    Also refer to the FM Documentation for further details.. It should resolve all your issues:

    FM Documentation

    1. Definition "Processing Unit"

    In the following, the term "processing unit" refers to a series of

    related processing steps.

    The first step in a processing unit is initialization, which is done by

    calling the BAPI BAPI_PS_INITIALIZATION.

    Afterwards, the individual BAPIs listed below can be used several times,

    if required.

    The processing unit ends when the final precommit (call BAPI

    BAPI_PS_PRECOMMIT) is executed with a subsequent COMMIT WORK (for

    example, the statement COMMIT WORK, the BAPI "BAPI_TRANSACTION_COMMIT" or

    the BapiService.TransactionCommit method).

    After the final COMMIT WORK, the next initialization opens a new

    processing unit via the BAPI "BAPI_PS_INITIALIZATION".

    In principal, the following applies to each individual processing unit.

    2. Creation of a Processing Unit

    Each processing unit must be initialized by calling the BAPI

    "BAPI_PS_INITIALIZATION" once.

    Afterwards, the following individual BAPIs can be used within a

    processing unit - they can also be used more than once, taking into

    account the "One-Project-Principle" explained below. This also means that

    an object created in the current processing unit by a CREATE-BAPI can be

    changed by a CHANGE-BAPI or STATUS-BAPI.

    Except for the BAPIs explicitly named below, you can only call up BAPIs

    that execute GET methods or READ methods only. In particular, the BAPIs

    for confirming a network may not be used with the individual BAPIs named

    below!

    Contd... FM Documentation

    Cheers!!

    Lokesh

    Edited by: Lokesh Aggarwal on Dec 28, 2007 4:15 PM

    Edited by: Lokesh Aggarwal on Dec 28, 2007 4:19 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 29, 2007 at 02:49 AM

    Hi Lokesh

    I understood ur point.But how to execute that??First I have to test the FM.Even if I open two sessions and execute both FMs BAPI_PS_INITIALIZATION then BAPI_BUS2001_PARTNER_CREATE_M.Its still throwing the same error as i explained.

    Can you let me know how to test them.

    Thanks for the reply..

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Lokesh I have tested it using the FM sequence.Its working absolutely fine.

      I have one more query.

      In the documentation they have mentioned abt the extensionin and extensionout segments of the BAPI's of BUS2001. Can you please explain this for me.I have understood wat ever is written in the FM documentation.If you can initiate me the proceess of custonizing, It would be great.

      Thanks uuu

      and a very HAPPY NEW YEAR

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.