‎2006 Jul 06 10:24 PM
Hi Every One
It very Urgent. in the 'BAPI_BUS2054_SET_STATUS'
in the project I was able to set system status REL to Teco
but when i tried to set TECO to REL BAPI return success ful that system status was
changed successfully.But when I go and look into the CJ02 transaction for that
wbs element the system status remain same.
can any one help me in this regards.
Thanks
Ramki
‎2006 Jul 06 10:38 PM
Hello Ramki,
Use BAPI_TRANSACTION_COMMIT bafi after Your successful message.
‎2006 Jul 06 10:46 PM
One more thing don't forget to initialize your process unit first. use BAPI BAPI_PS_INITIALIZATION to initialize before your bapi and then after your bapi use commit bapi in the program.
‎2006 Jul 07 12:03 AM
Look at OSS note # 852182 and 931630
<b>931630 FYI</b>
Symptom
You are using BAPI_BUS2054_SET_STATUS to change the status of a WBS Element. The BAPI call is successful.
However after the BAPI call, some dialog transactions don't function normally i.e. user dialogs like popups and messages are not displayed or 'Services for object' button is not displayed.
Other terms
BAPI_BUS2001_SET_STATUS, FLAG_DIALOG_STATUS, DIALOG_SET_NO_DIALOG, DIALOG_SET_WITH_DIALOG, V45CU_CONFIGURATION, DIALOG_GET_STATUS, MD81, characteristic value assignment, 'Services for object'.
Reason and Prerequisites
Program error.
Solution
Source code correction.
FYI 852182
<b></b>
Symptom
when the user tries to reverse the system status 'Deletion Flag', the user can do it successfully through the transaction CJ02, but is unable to reverse the 'Deletion flag' status through the BAPI, BAPI_BUS2054_SET_STATUS.
Other terms
BAPI_BUS2054_SET_STATUS, CJ02, 'Deletion Flag', DLFL, I0076, Message 652(CI), CI652, CI 652.
Reason and Prerequisites
This is a program error.
Solution
Please implement the code changes mentioned in this note.
Hope thisll give you idea!!
<b>Pl... award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise"
‎2006 Jul 07 1:54 AM
ALL ARE APPLIED AS SET OSSS NOTE
BUT IAM PROBLEM IS IN THE BAPI STATUS CHANGE OCCURED
SUCCESFULLY
BUT I GO AND SEE TRANSACTION CHANGES ARE NOT UPDATED.
tHANKS
RAMKI
‎2006 Jul 14 2:28 PM
HI,
why don't try it with call transaction. with use sth. similar. to change the status of project definition and all wbs elements from TECO to REL do it like this.
CODING****BEGIN
*****************
Status rücksetzen (reset status)
IF i_type = 'R'.
PERFORM fill_bdc USING:
'X' 'SAPLCJWB' '0100',
' ' '*PROJ-PSPID' i_project,
' ' 'BDC_OKCODE' '=LETB'.
PERFORM fill_bdc USING:
'X' 'SAPLCJWB' '0901',
' ' 'BDC_OKCODE' '=MRKA'.
CASE i_status.
WHEN 'REL'.
raise reset_nicht_ok.
WHEN 'TECO'.
MOVE '=STTR' TO v_stat.
WHEN 'CLSD'.
MOVE '=STAR' TO v_stat.
WHEN OTHERS.
RAISE status_nicht_ok.
ENDCASE.
PERFORM fill_bdc USING:
'X' 'SAPLCJWB' '0901',
' ' 'BDC_OKCODE' v_stat.
PERFORM fill_bdc USING:
'X' 'SAPLCJWB' '0901',
' ' 'BDC_OKCODE' '=BU'.
CALL TRANSACTION 'CJ02' USING gt_bdctab
MODE l_mode UPDATE 'S'
MESSAGES INTO gt_message.
ENDIF.
*****************
CODING******END
Regards,
Christian