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

BAPI_BUS2001_CHANGE -issue

former_member225134
Participant
0 Likes
1,984

Hi All,

        In Proj table i created two custom fields, now i want to update the two z-fields with value.

So i used the below code :

ls_proj_ext_in-structure = 'BAPI_TE_PROJECT_DEFINITION'.

     ls_proj_ext_in-valuepart1+0(24)     = gs_alcon_sp-zzy.

     ls_proj_ext_in-valuepart2+181(10)   = gs_alcon_sp-zzs.

     append ls_proj_ext_in to lt_proj_ext_in.

     call function 'BAPI_PS_INITIALIZATION'.

     ls_proj_def-project_definition          = gs_proj-pspid.

     call function 'BAPI_BUS2001_CHANGE'

          exporting

                 i_project_definition               = ls_proj_def

                 i_project_definition_upd        = ls_proj_def_upd

          tables

                 et_return                             = lt_return

                 extensionin                         = lt_proj_ext_in .

 

     call function 'BAPI_PS_PRECOMMIT'

        tables

           et_return = lt_return.

     refresh lt_return.



After that am getting value on lt_return as []

1)Final check of the project definition and the WBS elements: Error

2)Validation WBS Elements carried out

3).Fill in all required entry fields


so i dint get any updation on Proj table..

Kindly help me how to update the value on two z-filds bu using the bapi.




Thanks,

Nithya.

3 REPLIES 3
Read only

Szczerbowski
Contributor
0 Likes
1,263

But you have your error message in the table listed above, not all mandatory fields were filled in:

1)Final check of the project definition and the WBS elements: Error

2)Validation WBS Elements carried out

3).Fill in all required entry fields

Read only

Former Member
0 Likes
1,263

Hi,


You need to provide entry for all required field of BAPI BAPI_BUS2001_CHANGE.

To know more about the BAPI and required filed please refer function module documentation under se37 transaction toolbar.

   

Read only

Former Member
0 Likes
1,263

Hi Nithya

You may need to add BAPI_TRANSACTION_COMMIT as well at the end .

Also try to validate if using the same set of data are you able to update the Project ?

As these errors seems to be data errors to me

Regards

Vinita