Quantcast
Channel: SCN : Discussion List - SAP Project Systems (SAP PS)
Viewing all articles
Browse latest Browse all 2586

Getting the error while using bapi 'BAPI_PROJECTDEF_UPDATE'.

$
0
0

Hi,

All

To fulfill a requirement of project definition update in PS module, I have been trying with bapi 'BAPI_PROJECTDEF_UPDATE' , but I am getting the error like 'The external key is not compatible with the internal key'.

 

Following are the details of my source code:

 



CALL FUNCTION 'BAPI_PS_INITIALIZATION'

           .

 

   data: ls_def_strucure LIKE BAPI_PROJECT_DEFINITION,

       ls_def_update LIKE BAPI_PROJECT_DEFINITION_UP,

       ls_error like bapireturn1.

 

ls_def_strucure-PROJECT_DEFINITION = '11011'.

ls_def_strucure-DESCRIPTION = 'Indian Metro Updated by BAPI'.

 

ls_def_update-DESCRIPTION = 'X'.

 

CALL FUNCTION 'BAPI_PROJECTDEF_UPDATE'

   EXPORTING

     currentexternalproje          = '11011'       " Project Definition

     currentinternalproje          = '11011'

     project_definition_stru       = ls_def_strucure

     project_definition_up         = ls_def_update

  IMPORTING

    RETURN                        = ls_error

* TABLES

*   E_MESSAGE_TABLE               =

           .

 

CALL FUNCTION 'BAPI_PS_PRECOMMIT'.


CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

           .

 


I have tried with 'BAPI_PROJECT_MAINTAIN' ,but there I am not getting any idea to usage of this bapi.

 

please help me if you have any solution for this problem.

 

Thanks in advanced.


Viewing all articles
Browse latest Browse all 2586

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>