‎2009 Jun 25 6:26 AM
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
‎2009 Jun 25 7:10 AM
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
‎2009 Jun 25 7:10 AM
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
‎2009 Jun 25 7:37 AM
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.