2010 Nov 03 12:08 PM
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
Solved it by self.
2010 Nov 03 5:52 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |