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

Creating WBS element with the Bapi BAPI_BUS2054_CREATE_MULTI

Former Member
0 Likes
1,399

Hi All,

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

Could anyone help me out with this.

Thanks and Regards,

Indira

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,022

Hi Indira,

   Please make sure that you are filling  all the parameters with proper data type.

Check if there is any mismatch.

This problem also occur when you dont fille the Valuepart1 field of extensionin properly.

Regards,

Gowtham.

3 REPLIES 3
Read only

venkateswaran_k
Active Contributor
0 Likes
1,022

Hi Indira,

Please refer to following link.

https://scn.sap.com/thread/1638369

Regards,

Venkat

Read only

0 Likes
1,022

Hi Venkat,

The solution is not explained in the above link mentioned. I checked that post too.

Thanks and Regards,

Indira

Read only

Former Member
0 Likes
1,023

Hi Indira,

   Please make sure that you are filling  all the parameters with proper data type.

Check if there is any mismatch.

This problem also occur when you dont fille the Valuepart1 field of extensionin properly.

Regards,

Gowtham.