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

Data Updating through BAPI

Former Member
0 Likes
745

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

6 REPLIES 6
Read only

Former Member
0 Likes
712

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

Read only

0 Likes
712

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

Read only

Former Member
0 Likes
712

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.

Read only

Former Member
0 Likes
712

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

Read only

Former Member
0 Likes
712

After 'Commiting' the your transaction

use command.

WAIT UP TO 3 SECONDS.

Read only

tarangini_katta
Active Contributor
0 Likes
712

Hi,

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'.

Thanks,