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: 

Issue with BAPI 'BAPI_PROJECT_MAINTAIN'

former_member188724
Contributor
0 Kudos

Hi All,

I am changing some dates of wbs elements in CJ20N.

I am using the BAPI 'BAPI_PROJECT_MAINTAIN'

when I use the BAPi

it gives an error:

The method table is not consistent with the data tables

I am using the code

data posid like prhi-posnr.

CALL FUNCTION 'CONVERSION_EXIT_ABPSP_INPUT'

EXPORTING

input = i_prps-posid

IMPORTING

OUTPUT = posid .

select * from prhi INTO table i_wbs WHERE

posnr = posid.

move : 'E42527' to i_prjdef-project_definition.

clear : i_prjupd.

move : 'X' to i_prjupd-project_definition.

clear : i_prjmtd.

move : 'WBS-ELEMENT' to i_prjmtd-objecttype,

'UPDATE' to i_prjmtd-method,

'000001' to i_prjmtd-refnumber,

'E425270111801' to i_prjmtd-objectkey.

append i_prjmtd.

clear : i_prjmtd.

CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'

EXPORTING

i_project_definition = i_prjdef

i_project_definition_upd = i_prjupd

IMPORTING

RETURN = i_return

tables

i_method_project = i_prjmtd

I_WBS_HIERARCHIE_TABLE = i_wbs

I am not sure why the eror happens.I suppose the issue is with the i_prjmtd table update method.Please let me know if anything need to be changed for me to update date values.

Thank You in advance.

Regards,

KS

1 REPLY 1

former_member188724
Contributor
0 Kudos

Solved it by self.