2013 Sep 17 9:21 AM
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.
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
2013 Sep 18 5:38 AM
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.
2013 Sep 17 9:29 AM
2013 Sep 17 9:46 AM
Hi Venkat,
The solution is not explained in the above link mentioned. I checked that post too.
Thanks and Regards,
Indira
2013 Sep 18 5:38 AM
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.