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: 

Creating WBS element with the Bapi BAPI_BUS2054_CREATE_MULTI

Former Member
0 Kudos

Hi

I need to create WBS elements programmatically. For this I am using the BAPI BAPI_BUS2054_CREATE_MULTI

The fiield tht I am passing are

wa_wbs_element-wbs_up = 'P-02-0002-9-011'.

wa_wbs_element-wbs_element = 'P-02-0002-9-012'.

wa_wbs_element-description = 'TI'.

wa_wbs_element-proj_type = 'Z1'.

wa_wbs_element-responsible_no = '12'.

wa_wbs_element-applicant_no = '13'

append wa_wbs_element to it_wb_element.

call function 'BAPI_PS_INITIALIZATION'.

call function 'BAPI_BUS2054_CREATE_MULTI'

exporting

i_project_definition = 'P-02-0002'

tables

it_wbs_element = it_wb_element

et_return = it_ret.

  • EXTENSIONIN =

  • EXTENSIONOUT =.

call function 'BAPI_PS_PRECOMMIT'

tables

et_return = it_ret.

call function 'BAPI_TRANSACTION_COMMIT'

exporting

wait = 'X'

importing

return = wa_ret.

Here Just before PS_Precommit I get a msg In the return Paramater of BAPI 'BAPI_BUS2054_CREATE_MULTI'

'Individual check for creating The WBS Element 'P-02-0002-9-012'. is required..Any Help.. wht is missing ..

thanks

6 REPLIES 6

Former Member
0 Kudos

solved

0 Kudos

Hi Puneeta,

Can you share how you solved this?

Thanks!

0 Kudos

Hi guys,

I had the same issue listed here. I had to place the BAPI's I was using in a certain way to make this work. For example, the purpose of my program was to create a project, and then add some WBS to it. So, the BAPI's had to be called in this order:

  • This one is required to be run first in the same LUW that you are running these BAPI's,

BAPI_PS_INITIALIZATION

  • This one creates the project that you want to deal with.

BAPI_PROJECTDEF_CREATE

  • This one does a commit to the previous BAPI so the project gets created and the next one can find it.

BAPI_PS_PRECOMMIT

  • This one adds the WBS you want to append to the project. Be sure to add the fields here in their internal format. See the error table for more help if this one fails. Also, be sure to check the type of the messages in the error table, 'Individual check for creating the object WBS Element XX.12345-01 required' is not an error, it's a success message. You can ignore it.

BAPI_BUS2054_CREATE_MULTI

  • These two saves the work done by the previous BAPI and give a final commit to the LUW.

BAPI_PS_PRECOMMIT

BAPI_TRANSACTION_COMMIT

If any of the COMMIT BAPI's gives you a short dump, be sure that no message in the error tables of the BAPI's is of type E; If there was an error message, then these BAPI's will give you a short dump.

Hope this help you guys, take care!

0 Kudos

Hello Puneeta,

even I am facing the same issue of "Individual check for creating The WBS Element required ".It is an humble request to you to please share how the problem can be resolved.Please share.

0 Kudos

Hi Alexander,

When I check the internal table given as a parameter to BAPI_PS_PRECOMMIT in debug mode I get

"No data has been changed, precommit will not be executed"

Can you tell what is the reason.

Thanks,

Kiran

0 Kudos

HI Bijoy

i am also getting the same error,if you have solution so plz let me know,

when i am working with  BAPI_BUS2054_CREATE_MULTI , i am getting error that,

E

CNIF_PI76Hierarchy reference element TO-00000008.01 for WBS element TO-00000008.01.01 does not existTO-00000008.01TO-00000008.01.01
ECNIF_PI74

Hierarchy structure for WBS element TO-00000008.01.01 not possible

TO-00000008.01.01

Plz help me out, its urgent,

Thanks in Advance

Vikash