Application Development 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: 

Bapi FM upload program

Former Member
0 Kudos
149

Hi All,

I am doing bapi fm upload program, when i run the program it shows the short dump error,

i debug this program, the cursor is not move after tansaction_commit,

it shows the FM: ps_commit. it s not run successfully,

any one help for this error,

( CALL FUNCTION 'BAPI_PS_PRECOMMIT' " CALL FUNCTION MODULE

TABLES

ET_RETURN = lt_ret2.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' " CALL FUNCTION MODULE

EXPORTING

WAIT = 'X'.)

Thanks for advance help.

Amudha

2 REPLIES 2

Former Member
0 Kudos
72

Hi,

You can delete a project definition using the BAPI "BAPI_BUS2001_DELETE". You must enter the name of the project definition that is to be deleted in "I_PROJECT_DEFINITION". Before the project definition is deleted, the following is checked:

the project definition is deleted in the document tables. If the project has WBS elements, these are also deleted. If the project has other objects such as networks, activities and so on, the BAPI terminates and an error message is displayed. These must be deleted beforehand. The BAPI does not delete these automatically. The project definition is deleted as soon as a LUW (Logical Unit of Work) has been completed with the BAPI BAPI_PS_PRECOMMIT and COMMIT WORK. Only one project or one WBS element from a project can be processed at a time in one LUW. You cannot delete temporary objects. This means that if you create a project in an LUW, you cannot delete it immediately after creating it. You can delete it using this BAPI only after you physically create the project using the BAPIs "BAPI_PS_PRECOMMIT" and "COMMIT WORK".

REgards,

Nandha

0 Kudos
72

Hi Nandha,

I hv tried for that FM(delete) before using create of proj def, but it shows the same error(runtime error).

i used like this.

CALL FUNCTION 'BAPI_BUS2001_DELETE'

CALL FUNCTION 'BAPI_PS_INITIALIZATION'.

CALL FUNCTION 'BAPI_BUS2001_CREATE'

CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'

CALL FUNCTION 'BAPI_BUS2001_SET_STATUS'

CALL FUNCTION 'BAPI_PS_PRECOMMIT'

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

upload file FM.

Can you tel me why i got the same error?

Thanks,

Amudha.