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

Change Status Proyect

Former Member
0 Likes
901

Hi experts,

I'm trying use the BAPIs from SE37:

CALL FUNCTION 'BAPI_BUS2001_SET_STATUS'

EXPORTING

project_definition = PROJECT_DEFINITION

  • UNDO_SYSTEM_STATUS =

  • UNDO_USER_STATUS =

  • SET_SYSTEM_STATUS =

  • SET_USER_STATUS =

  • IMPORTING

  • RETURN =

  • TABLES

  • E_RESULT =

.

But I get the following error::

OBJECTKEY ESSAGE_ID MES M MESSAGE_TEXT

P/A41/09/000393 CNIF_PI 078 E Processing not possible because there is no initialization

And in the BAPI 'BAPI_BUS2002_SET_STATUS, I get the same error.

Thanks.

Hi experts,

I'm trying use the BAPIs from SE37:

CALL FUNCTION 'BAPI_BUS2001_SET_STATUS'

EXPORTING

project_definition = PROJECT_DEFINITION

  • UNDO_SYSTEM_STATUS =

  • UNDO_USER_STATUS =

  • SET_SYSTEM_STATUS =

  • SET_USER_STATUS =

  • IMPORTING

  • RETURN =

  • TABLES

  • E_RESULT =

.

But I get the following error::

OBJECTKEY ESSAGE_ID MES M MESSAGE_TEXT

P/A41/09/000393 CNIF_PI 078 E Processing not possible because there is no initialization

And in the BAPI 'BAPI_BUS2002_SET_STATUS, I get the same error.

Thanks.

1 REPLY 1
Read only

Former Member
0 Likes
553

Hi

Please follow the certain steps for the setting the status. These stpes are all mentioned inthe BAPI function module documentation.

Steps.

Notes

1. Definition "Processing Unit"

In the following, the term "Processing unit" refers to a series of

related processing steps.

The first step in a processing unit is initialization, which is done by

calling the BAPI BAPI_PS_INITIALIZATION.

Afterwards, the individual BAPIs listed below can be used several times,

if required.

The processing unit ends when the final precommit (call BAPI

BAPI_PS_PRECOMMIT) is executed with a subsequent COMMIT WORK (for

example, the statement COMMIT WORK, the BAPI "BAPI_TRANSACTION_COMMIT"

or the BapiService.TransactionCommit method).

After the final COMMIT WORK, the next initialization opens a new

processing unit via the BAPI "BAPI_PS_INITIALIZATION".

In principal, the following applies to each individual processing unit.

2. Creation of a Processing Unit

Each processing unit must be initialized by calling the BAPI

"BAPI_PS_INITIALIZATION" once.

Afterwards, the following individual BAPIs can be used within a

processing unit - they can also be used more than once, taking into

account the "One-Project Principle" explained below. This also means

that an object created in the current processing unit by a CREATE-BAPI

can be changed by a CHANGE-BAPI or STATUS-BAPI.

Except for the BAPIs explicitly named below, you can only call up BAPIs

that execute GET methods or READ methods only. In particular, the BAPIs

for confirming a network may not be used with the individual BAPIs named

below.