‎2006 Dec 15 9:35 PM
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
‎2006 Dec 15 11:04 PM
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
‎2006 Dec 15 9:37 PM
What is the message number and class? Is there a long text for it?
Rob
‎2006 Dec 15 10:05 PM
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?
‎2006 Dec 15 10:12 PM
‎2006 Dec 15 11:00 PM
I referred this note. I could see the correction already implemented. How to proceed next?
Santosh
‎2006 Dec 15 11:04 PM
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
‎2006 Dec 16 12:08 AM
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.
‎2008 May 22 12:49 PM
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