Skip to Content
avatar image
Former Member

BAPI for CJ20N transaction

Hi all!

Please, does anybody know a BAPI for create Project in CJ20N transaction?

I've already done some tests with BAPI_PROJECTDEF_CREATE but it didn't work.

Thanks a lot,

Daniela Machado

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Apr 05, 2006 at 03:14 PM

    I Think BAPI_BUS2001_CREATE will work.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 05, 2006 at 03:20 PM

    Hi,

    Whatz the error you encountered when you used FM BAPI_PROJECTDEF_CREATE?

    Regards,

    Raj

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 05, 2006 at 03:34 PM

    Hi,

    try with BAPI <b>BAPI_BUS2001_CREATE</b>, check the FM documentation also.

    Regards

    vijay

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 06, 2006 at 12:52 AM

    Hi,

    Use following BAPIs in given order.

    <u><b>1.</b></u>BAPI_PS_INITIALIZATION

    <u><b>2.</b></u>BAPI_BUS2001_CREATE

    <u><b>3.</b></u>BAPI_BUS2054_CREATE_MULTI

    <u>4.</u>BAPI_BUS2001_SET_STATUS (To set the status at project level)

    OR

    BAPI_BUS2054_SET_STATUS (To set the status at WBS element level)

    <u><b>5.</b></u>BAPI_PS_PRECOMMIT

    You don't have to code again for this. Whatever structures and internal tables you had used in BAPI_PROJECT_MAINTAIN can be used to populate the above BAPIs.

    We are working in 4.6C and we have successfully implemented this solution.

    If you only want to create project just use BAPI's in given order.

    Also, if you have custom field at WBS element level, these BAPI will create a project but wan't update custom field. There is an OSS note which you need to apply for this.

    Let me know if you need further information.

    Thanks,

    Pal

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi All,

      I am also having the same Functionaity to upload Projects using an Excel File and also upload the WBS elements for it.

      I know that I need to use BAPI_PROJECTDEF_CREATE to create the Proj Defination & BAPI_PROJECT_MAINTAIN to create

      the WBS Elements.

      Can someone send me the Sample Code for the above said BAPI's.

      Thanks in advance.

      Regards,

      Asish Dash

  • avatar image
    Former Member
    Jun 02, 2006 at 07:17 PM

    Hi,

    The BAPI BAPI_PROJECT_MAINTAIN can be used to create/update Projects/WBS Elements/Networks and activities as well.

    Let me know,if you need more info.

    Venkat

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 02, 2006 at 09:03 PM

    Hi,

    You should use the following 4 BAPI's in the same sequence to create a project:

    1. BAPI_PS_INITIALIZATION

    2. BAPI_BUS2001_CREATE

    3. BAPI_PS_PRECOMMIT

    4. BAPI_TRANSACTION_COMMIT/BAPI_TRANSACTION_ROLLBACK

    This is the seuqence SAP recommends in the documentation. And make sure the return value of PRECOMIT is good before doing the actual COMMIT/ROLLBACK. Otherwise it will end with a short-dump.

    Regards,

    Sumant.

    Add comment
    10|10000 characters needed characters exceeded