Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PS MODULE BAPIS

Former Member
0 Likes
925

Hi,

Any body is having idea about PS Module BAPIs

BAPI_PS_INITIALIZATION.

BAPI_BUS2001_CREATE.

bAPI_BUS2054_CREATE.

this is the procedure to create. ok. But I want exact information about these and what is the BAPI_PS_INITIALIZATION. in this bapi what we have to do can u give details and example for all bapis

it is very urgent

Thanks

2 REPLIES 2
Read only

andreas_mann3
Active Contributor
0 Likes
772

Hi,

all bapis are well documented in se37

A.

Read only

Former Member
0 Likes
772

Hi

Welcome to SDN!

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.

BAPI_BUS2001_CREATE.

BAPI_BUS2054_CREATE.

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".

For more information goto Tcode - SE37, give the BAPI name & look for <b>"Function Module Documentation"</b>

<b>Sample codes</b>

* first init for use with these kind of bapi's
    CALL FUNCTION 'BAPI_PS_INITIALIZATION'.

    CALL FUNCTION 'BAPI_BUS2001_CREATE'
      EXPORTING
        i_project_definition = i_project_definition
      TABLES
        et_return            = et_return.

    CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'
      EXPORTING
        i_project_definition       =
    i_project_definition-project_definition
      TABLES
        it_wbs_element             = it_wbs_element
        et_return                  = et_return

    CALL FUNCTION 'BAPI_PS_PRECOMMIT'
      TABLES
        et_return = et_return.

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait   = 'X'
      IMPORTING
        return = return2.

Hope this helps!

best regards,

Thangesh