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_BUS2054_SET_STATUS returns 'Error in processing. Function was not exec

Former Member
0 Likes
5,213

All,

A custom program is developed to change WBS system and user status. In this prg, this BAPI BAPI_BUS2054_SET_STATUS is used.

Now, this BAPI returns following error message:

"Error in processing. Function was not executed.

Processing not possible because there is no initialization".

Whenn i debug the BAPI there is a FM PS_FLAG_GET_GLOBAL_FLAGS which returns lv_initialized as blank and hence the error.

Does anyone has any idea how to handle this? Pls suggest.

Santosh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,667

Hi,

Check FM documentation....I believe you have to call the FM BAPI_PS_INITIALIZATION before using this BAPI..

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.

Thanks,

Naren

7 REPLIES 7
Read only

Former Member
0 Likes
2,667

What is the message number and class? Is there a long text for it?

Rob

Read only

0 Likes
2,667

TYPE C 1 E

ID C 20 CNIF_STATUS

NUMBER N 3 005

MESSAGE C 220 Error in processing. Function was not executed.

Is this what you are expecting Rob?

Read only

0 Likes
2,667

Check SAP note 680489.

Rob

Read only

0 Likes
2,667

I referred this note. I could see the correction already implemented. How to proceed next?

Santosh

Read only

Former Member
0 Likes
2,668

Hi,

Check FM documentation....I believe you have to call the FM BAPI_PS_INITIALIZATION before using this BAPI..

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.

Thanks,

Naren

Read only

0 Likes
2,667

Thanks Naren,

I am calling BAPI_PS_INITIALIZATION before calling BAPI_BUS2054_SET_STATUS . Once this BAPI is executed successfully, i call BAPI_PS_PRECOMMIT with a subsequent COMMIT WORK.

This resolves my issue so far and the user status is changed accordingly as checked in CJ20N.

Points rewarded.

Read only

0 Likes
2,667

Hi ,

While using the BAPI_BUS2054_SET_STATUS bapi , do we need to pass the object key data in to the E_RESULT table.Please suggest me .

Also ,Please confirm me where this badi will updated the System / User Status , I mean a part from CJ20N t-code ,Which table can we see.

Please let me Know as soon as possible.

Thank U.

Edited by: Sanjeev S J on May 22, 2008 5:24 PM