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

How to use [BAPI_BUS2054_CREATE_MULTI]?

Former Member
0 Likes
6,061

Dear experts:

can anyone tell me how to use [BAPI_BUS2054_CREATE_MULTI] this function..when i used , the wbs is still not created, although the message tells me create sucessfully.

below is my step:

first: CALL FUNCTION 'BAPI_PS_INITIALIZATION'.

second: CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'

when there is sucess message, i use [ CALL FUNCTION 'BAPI_PS_PRECOMMIT'

] instead of commit work else CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'..

can anyone help me to workout this issue.

monson

6 REPLIES 6
Read only

Former Member
0 Likes
2,890

Reward points..

Read only

Former Member
2,890

Hi,

When you use BAPI BAPI_BUS2054_CREATE_MULTI , it should be called with these BAPIs and this order only.

1. BAPI_PS_INITIALIZATION "Initilize

2. BAPI_BUS2054_CREATE_MULTI ( to create WBS )

3. BAPI_BUS2054_SET_STATUS "Release WBS ( only if you want to REL )

4. BAPI_PS_PRECOMMIT "Precommit

5. BAPI_TRANSACTION_COMMIT "Commit

Please let me know if you are using these bapis in these order

Regards,

Jagadish

Read only

0 Likes
2,890

thanks, it worked for me.

Read only

Former Member
0 Likes
2,890

Reward points..

Read only

Former Member
0 Likes
2,890

Hi,

You can use BAPI_BUS2054_SET_STATUS in a list of WBS elements to revoke a system status and a user status respectively, as well as to set a system status and a user status respectively.

When you use BAPI BAPI_BUS2054_CREATE_MULTI , it should be called with these BAPIs and this order only.

1. BAPI_PS_INITIALIZATION "Initilize

2. BAPI_BUS2054_CREATE_MULTI ( to create WBS )

3. BAPI_BUS2054_SET_STATUS "Release WBS ( only if you want to REL )

4. BAPI_PS_PRECOMMIT "Precommit

5. BAPI_TRANSACTION_COMMIT "Commit

Reward If Helpfull,

Naresh

Read only

0 Likes
2,890

Dear:

I just try to use this in your order, but when it process[BAPI_TRANSACTION_COMMIT ], the system occurs short dump..

but if i don't use [BAPI_TRANSACTION_COMMIT ], the database is not updated.

thanks in advance.

Monson