Skip to Content
0
Jun 25, 2009 at 05:26 AM

Regarding 'BAPI_PS_PRECOMMIT'

177 Views

Hello Experts,

Using below peace of code,I am trying to create the Project Definitions.

CALL FUNCTION 'BAPI_PS_INITIALIZATION'.

CALL FUNCTION 'BAPI_BUS2001_CREATE'

EXPORTING

i_project_definition = wg_pdmasterdata

TABLES

et_return = i_return.

  • IF BAPI IS SUCCESS,COMMIT THE BAPI

CALL FUNCTION 'BAPI_PS_PRECOMMIT'

TABLES

et_return = i_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = c_wait.

Here for wg_pdmasterdata,I am getting the data from the file.

Using the above peace of code,I am successfully creating the Project Definitions.

But my problem is after the successful execution,if suppose I have change the file contents and run the report,it's giving me short dump.

Can anyone please guide me what's wrong woth my code.

As I am new to this Project Systems module,your suggestions are very much appreciated.

Regards,

Sreeram