‎2008 Dec 11 5:19 AM
Hi GURUS,
I am updating the CO11N Transaction through BAPI when i am posting the good movement, they are not getting posting because of some error saying that
" The plant data of the material GAS is locked
the user XXXX '
( XXXX is the User through which we are posting the goods ).
How can i handle this issue i am pocessing one order after the other .. but i am not getting how to solve this ....
Can u help me ...
Waiting for ur reply.....
Regards
Srinath
‎2008 Dec 11 5:28 AM
Hi,
can u please provide the name of the BAPI. Also just check if a Transaction Commit is required after the BAPI call. You can use the FM BAPI_TRANSACTION_COMMIT for this.
Regards
Barada
‎2008 Dec 11 5:35 AM
Hi ,
the BAPI is BAPI_PRODORDCONF_CREATE_TT and yes this requires COMMIT even i am using that also . i have used that as :
CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
EXPORTING
POST_WRONG_ENTRIES = ''
TESTRUN =
IMPORTING
RETURN =
TABLES
TIMETICKETS = IT_TT[]
GOODSMOVEMENTS = IT_GM[]
LINK_CONF_GOODSMOV = IT_LCG[]
DETAIL_RETURN = IT_DR[]
.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ''
IMPORTING
RETURN =
.
do i need to pass any thing more here?
-
Regards
Srinath
‎2008 Dec 11 6:05 AM
HI,
assuming that you are processing the same plant , and i suppose the first record is updated sucessfully but the subsequent record for the same plant you get this error, try using Wait = 'X' in Bapi_transaction_commit and check if your problem is solved. If you still have error , then use WAIT for 1 sec command . This will solve your problem.
Hope this helps you
Raj.
‎2008 Dec 11 6:32 AM
Hi,
After 'Commiting' the transaction, call
CALL FUNCTION 'ENQUE_SLEEP'
EXPORTING
SECONDS = 10.
No of second you may need to change, depending on the requirement.
Regards
Raju Chitale
‎2008 Dec 11 8:35 AM
After 'Commiting' the your transaction
use command.
WAIT UP TO 3 SECONDS.
‎2008 Dec 11 11:51 AM
Hi,
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
Thanks,