Skip to Content
avatar image
Former Member

BAPI for creating Networks in Project System

Hi,

Can you guys provide me BAPIs I can use in creating networks in Project Systems? I tried using BAPI_BUS2002_CREATE but encountered errors when checking the PS Global Flags. I tried setting the said flags by running the FM PS_FLAG_SET_GLOBAL_FLAGS but the changes are not reflected in the system.

Thanks in advance!

Cheers,

Ian

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 16, 2008 at 06:28 PM

    First

    CALL FUNCTION 'BAPI_PS_INITIALIZATION'

    Second

    CALL FUNCTION 'BAPI_BUS2002_CREATE'

    fill values in I_NETWORK

    Third

    CALL FUNCTION 'BAPI_PS_PRECOMMIT'

    Last

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

    If you have a project, you will need to create it with

    CALL FUNCTION 'BAPI_BUS2001_CREATE', but you need to do all the steps above, starting with INITIALIZATION.

    Use CALL FUNCTION 'BAPI_BUS2054_CREATE' to create WBS elements.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 03, 2008 at 04:05 AM

    after setting the flags also you are still getting the error.

    And Use BAPI_TRANSACTION_COMMIT when there is no error.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      The BAPI mentioned by you will create Network header only. I think you would also like to create activity, elements etc in that network, so suggest use BAPI_NETWORK_MAINTAIN. Refer to documentation in SE37.

      Regards

  • avatar image
    Former Member
    Sep 12, 2008 at 09:13 AM

    HI,

    To reflect changes in the system you should use the bapi with the sequence :

     BAPI_PS_INITIALIZATION

     BAPI_BUS2002_CREATE

     BAPI_PS_PRECOMMIT

     BAPI_TRANSACTION_COMMIT

    please see :

    http://abap.wikiprog.com/wiki/BAPI_BUS2002_CREATE

    Regards,

    Ihsen ABROUG

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 08:45 AM

    Hi Ian,

    Do you have custom fields in your standard PS tables ?

    If yes you have to implement OSS note 637345 u201CSyntax error with enhanced PS tablesu201D

    it will work fine.

    Add comment
    10|10000 characters needed characters exceeded