‎2006 Oct 05 7:19 AM
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
‎2006 Oct 05 7:24 AM
‎2006 Oct 05 7:33 AM
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