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

Regarding 'BAPI_PS_PRECOMMIT'

sreeramkumar_madisetty
Active Contributor
0 Likes
1,283

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
890

hai,

what r u changing in the flat file

r u getting dump in bapi_ps_precommit ,

u get this dump bcos the earlier bapi has field i mean it is in error

u have to check wether the bapi for project definition was successful if it is success then only u have to commit else u get dump ,

so clear on what changes u have done

regards

m.a

2 REPLIES 2
Read only

Former Member
0 Likes
891

hai,

what r u changing in the flat file

r u getting dump in bapi_ps_precommit ,

u get this dump bcos the earlier bapi has field i mean it is in error

u have to check wether the bapi for project definition was successful if it is success then only u have to commit else u get dump ,

so clear on what changes u have done

regards

m.a

Read only

Former Member
0 Likes
890

Might be a good idea to also give the error message from the short dump so we can get a clearer idea of your issue.