Stock Locked in transaction LT10
Hi All,
I am having a problem confirming a pick TO. The error message I am getting is zero cases are available. Where as there is stock available in the pick (and also the TO creation went fine)
When I display the stock in pick using LT10 I see a lock on the stock. Can anyone say why could there be lock on the stock and not available for use?
Please advice
Thank you in advance
Thank you guys for the suggestions.
I did make sure that there was stock available in the bin, no movements tied to the stock and also there was no inventory document active for it
The part I forgot to mentioned in the question previously was my testing is on the picking side with handheld devices (a 3rd party system that we are interfacing with SAP for automatic data collection)
Would it be possible that the locks are happening from log on sessions from this 3rd party system
Please suggest
Thank you
Similar Messages
-
Add buttons to transaction LT10
Hi ))
I don't see and use 'sort' buttons on the screen in transaction LT10 ((
Can I add these buttons ?
Help me, please.....i don't think so because of these function:
"Stock transfer view"
- Quant
- Storage unit
- Storage bin
if you can sort the table - SAP will not mangage the flags. -
Locking of Transactions for MM - FI Integration
Every month, we do the closing of accounts. For this, we have to close all GRN related transactions, so that the accounting entries are not passed. We use trxn SM01, to lock, MIRO, MIGO, & ML81N, so that user does not book any entries for that month.
Is there any other better way to achive this ?? if yes, can it be done by the user department , instead of coming to IT, to lock the transactions
thanks
amitHello,
There is fixed solution on for what you are asking.But its little bit tricky.
If you are aware of Validation rule .you can go and customise your requirement or take ABAPERS help.
Please use tcode GBB0 & Ob28 to create validation
For e.g
Prerequisite.
If posting day is after last day of month & tcode is MIGO,MIRO,etc
CHECK: User ids(only these user will have option to use this trx else it will give error.you can keep this access to only few like urself)
Error: Posting not allowed in previous month.
likewise you can custoimise your requirement. -
How to lock a transaction code in a report ?
Dear Abapers ,
i had a requirement to lock a transaction code in my Module pool programming . the requirement goes in this way ..
" if a single user is editing a report then that particular report has to be accesseble to only that concerned user , it cant be accessed to any other user who gonna run the report unless the first user exits the report . <removed>.
Thanks & Regards,
Sravani . Y .
Edited by: Thomas Zloch on Apr 5, 2010 8:39 PMHi,
You have to verify the processes in execution. Here an exaple code:
DATA: BEGIN OF WP_TABL OCCURS 10.
INCLUDE STRUCTURE WPINFO.
DATA: END OF WP_TABL.
" This CALL verifyes the processes in execution:
CALL 'ThWpInfo' ID 'OPCODE' FIELD OPCODE ID 'TAB' FIELD
WP_TABL-SYS ID 'CPU' FIELD WITH_CPU.
" Now loop at table WP_TABL
LOOP AT WP_TABL.
" Inside this loop you have to check if the report field WP_TABL-WP_REPORT is been executed more than one time. The user field WP_BNAME tells you who is executing the program.
ENDLOOP.
I suggest you, ask for an ABAPER help with this code example.
Hope it helps you...
Alexis Sánchez N.
SAP ABAP Developer Consultant
<please no company names in the posts, folks can view your business card if interested>
Edited by: Thomas Zloch on Apr 12, 2010 4:50 PM -
How to Lock a Transaction for Editing AND VERY minor tab cont. help
Just two things I need to ask about
<b>1. How to Lock a Transaction for Editing</b>
I am currently using the fcode ENQUEUE_E_TABLE. The function works as once the transaction in opened, another cannot access it.
However, I have two modes in my transction (Display and Edit). <u> What I need to do is If another user has already opened the transaction, the other user can still access the transaction but cannot access the edit mode.</u>
<b> 2. VERY minor tab cont. help </b>
I noticed in a table control is being used in a transction you can resize a colunm. <u> How do you disable this </b>?
and <u> how do you resize the horizontal scroll bar </u> so that you can limit scrolling upto the point where there are field columns?
Thanks for you help ppl and take careHi chad,
This link will help u know abty different types of locks that are available:
http://help.sap.com/saphelp_erp2005/helpdata/en/7b/f9813712f7434be10000009b38f8cf/frameset.htm
For resizing all u can go to the table settings and u can do it.
Hope tis helps u,
Regards,
Nagarajan. -
How can I lock any transaction code
Regards
AmitavaHi
Go to T.Code SMO1.
enter the t.code that you need to lock in the below tab. and in the screen the t.code will come
select the lock option and tick over there.
so that t.code wil be locked . you cannot use the t.code henceforth -
Prodn Ord print prob (order locked under transaction CO02).
Hello,
The requirement is when I am releasing a producton order it should get printed. Now when I release and save production order, i get a message as "This order is locked under transaction CO02".
The release takes place (status is REL), but th print does not take place (no spool in work order case LV01). If I reprint this order, it is printed correctly.
If I double click on the message, I do not get any information.
In OPK8 Flow control for transaction, eveything is * and the radio button Online is selected. Does this have any relevance in this case?
I have not seen this message before during release of production order.
Thanks in advance fo your assistance.
Best Regards
SameerHi ,
1st please check with your basis is the printer setup correctly.
2nd assume everything setup correctly in Basis also hardware , please check your user profile.
3rd please check in your printer spool sp01 is there any spool.
4th please check the configuration been setup ? default after release should print.
T-codes associated with this are
OID1 - Shop Papers
OID2 - Shop Papers by Document Type
OID3 - User-Specific Print Control
OID4 - Activate Print Diversion
OID5 - Print Diversion Values
OID6 - Print Control Online/Update
Please rewad point if useful.
TQ -
Locking-Unlocking Transaction in APO
Experts.
Can anyone of you please help me with "user exits" that can be used for locking & unlocking of transactions in APO Demand planning .
We have a requirement where we want to lock & unlock transaction /SAPAPO/SDP94.
Please drop your valuable inputs.
Regards
Rahul ChitteHi ,
I don think locking //SDP94 is logical. Instead we have to lock the planning book that you are going to update. There is a standard FM available to lock the planning book. I don get the name of this FM. Please explore in this view.
Thanks
Seema -
Sorting buttons in transaction lt10
hi everybody,
I have an issue. In transactin LT10 there are no sorting buttons on the screen. Can we add these buttons? Is there any solution for that.Thank you guys for the suggestions.
I did make sure that there was stock available in the bin, no movements tied to the stock and also there was no inventory document active for it
The part I forgot to mentioned in the question previously was my testing is on the picking side with handheld devices (a 3rd party system that we are interfacing with SAP for automatic data collection)
Would it be possible that the locks are happening from log on sessions from this 3rd party system
Please suggest
Thank you -
How to lock all transactions documents?
hi experts,
for example, once I have done all reports in January, I don't want anybody to add, change or delete any marketing documents includ A/R, A/P, production order, inventory transfer....in January.
is there any fast way to lock a period of SAP usage?Open Administration -> System Initialization -> General Settings -> Posting Periods
Select the Posting period which you want to Lock.
Now this opens the 'Posting Period' Window.
Here you find fields like Active and locked
· Active u2013 The purpose of this field is to allow or to block working with sales documents. The default value for this field is Yes. When the value is Yes (and the period is not locked), you will be able to add all types of records: sales documents, purchasing documents, inventory transactions, manual journal entries, Master Data, reconciliations etc.
If you choose No (and the period is not locked), no sales documents can be created in SAP Business One during this period. This option can be used in order to block users from adding new sales documents after the posting period has ended. However, you will still be able to add purchasing documents, inventory transactions, manual journal entries, Master Data, reconciliations and so on.
· Locked u2013 The default value for this field is No. When the value is No (and the period is active), you will be able to add all types of records: sales documents, purchasing documents, inventory transactions, manual journal entries, Master Data, reconciliations etc.
If you choose Yes (after the posting period was created), no documents or transactions can be added in SAP Business One during this period (sales documents, purchasing documents, inventory transactions and manual journal entries). This option can be used in order to block users from adding any documents and transactions after a posting period has ended. -
How to post stock and what transaction codes
Hi gurus
If I created new material how can I post stock in to the material to process.
Ex:MMBE for stock checking.
But what is the t -code to enter some stock at materila.
also how what other transaction I can for stock posting at various scenarios.(I mean what other transaction codes for different things)
Thanks
KrisHi
Enter T.Code: MIGO
Select : Other
Movement Type : 561
In the item Details Entyer the material . enter the quantity. Plant and Storage Location.
Save it. CHekc the Stock In MMBE for that material.
Thanks & Regards
Ram -
Lock for transaction code.
i have created screen executed with Transaction code,having few Controls inside screen.
As soon as I enter action(click push button) inside the screen.(ie Transaction code), this transaction screen should be locked, and other users should not use the transaction simultaneously in the present System.
I have to do it inside the ABAP coding. could you please help me how to do it.
Regards
Chandrahai
I used below FM with parameter 'ZTRAN$' for TABNAME as u said.my transaction name is ZTRANS.
Now tell me onething, If same user opens the same transaction again(\n) , transaction opens for simultaneous access.
How to deal this case..will this FM cover this function also?
CALL FUNCTION 'ENQUEUE_E_TABLE'
EXPORTING
MODE_RSTABLE = 'E'
TABNAME = 'ZTRAN$'
VARKEY =
X_TABNAME = ' '
X_VARKEY = ' '
_SCOPE = '2'
_WAIT = ' '
_COLLECT = ' '
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Handling Locking for transaction in Middle Tier versus Database backend
Hi,
If we implement middle tier with C# as the programming language and backend as SQL Server database, if we now wanted to implement locking where we take the classic case of money withdrawal from a bank account, we could implement this as a single atomic transaction
using locks / monitor in the middle tier or we could do this in a stored procedure and handle it using a begin tran commit tran in SQL Server.
What would be the recommended way? middle tier or sql server database backend?
Thanks> the two different servers having the same middle tier executing the same code at the same time will be handled by the backend by putting one on hold while the other is being serviced.
Yes. A SQL Server database provides a single coherent state repository for the whole application. And you can use the database transactions to control which business transactions run concurrently, and which do not.
David
David http://blogs.msdn.com/b/dbrowne/ -
Lock between transaction branches of a global transaction
Hi,
I have an Oracle Database v.10.1.0.4, on which there are two schemas (A and B).
A table on schema A has a reference key on a table on schema B.
Now, i have a j2ee application that uses two distinct connection to performs inserts on both schemas within the same global transaction (using a JTATransactionManager), but i'm experiencing a lock in the following situation:
1 - On connection for schema B, a new ROW is inserted
2 - On connection for schema A, a new ROW is inserted referencing the new row in schema B, but the query is locked by the insert on schema B.
It is like the two transacions are loosely coupled and not tightly coupled as I would expect for distributed transaction on the same oracle instance (or at least they are not part of a global transaction and are treated as two distinct transaction).
Someone know if oracle jdbc drivers handle tightly coupled transactions for transaction branches on the same oracle instance that are part of the same global transaction?
Thanks,
Luca De Petrillohttp://www.myoracleguide.com/s/managelocks.htm
-
Serious lock problem - transaction has active cursors
Hi,
i use BDB C via the Java-API (4.6.21, developing with WindowsXP). Currently i am having serious problems with LOCK_NOT_GRANTED_EXCEPTIONS.
My application is a queue implementation. One push objects into the database, another one reads them and a third one deletes entries with an outdated TTL (time-to-live). All of these processes are done by multiple dedicated threads what leads to highly concurrent situations.
The TTL cleaning uses a tx-cursor which deletes entries that are too old. The inserter simply uses put(). The reader uses a cursor too, which starts with a pointer (via getSearchKey) or at the beginning of the database (if no start could be found, the pointer is then outdated as it was deleted by TTL cleaning run).
The isolation level is at READ_COMMITTED. Sometimes i use RMW locks for reading and updating status information.
So i implemented a lock detection which retries at least the inserts if a lock fails. The reads can fail and report their exceptions to the outside world. This seems to work fine. Sometimes i get some LOCK_NOT_GRANTED_EXCEPTIONS and the recovery should work. But it works only sometimes.
BDB-C complains with "transaction has active cursors" (see txn.c - line 1186). All subsequent calls to rollback or commit or any other method of BDB-C handles fails then with a RunRecoveryException. I am absolutely sure, i have no open cursors, as i close them implicitly before tx.commit() or tx.abort(). I wrote a reference counter to ensure that and it shows always a count of 0 open cursors as expected.
The whole process is of course quite heavy stress for the DB - i am actually read, write, delete and checkpoint the db at the same position at the same time.
I am tending to introduce MVCC to avoid those locking issues. As i understood concurrent updates of the same db page with multiversion transactions may also cause DeadLockExceptions. Can i use RMW locks to avoid concurrent updates on the same pages with MVCC?
Some hints?
TIA
DirkHi,
I have created a patch for Berkeley DB 4.6.21, which outputs information about all cursor open and close operations. This should help you see which cursor is not being closed.
If you apply the patch below to your Berkeley DB tree, and rebuild.
Then add setVerbose(VerboseConfig.CURSOR, true), to your EnvironmentConfig initialization.
It will send log messages to the output stream configured via EnvironmentConfig.setMessageStream(). The default is System.out.
There will likely be a lot of output.
Please let me know if this helps you resolve the problem. Otherwise, ask more questions ;)
Regards,
Alex Gorrod
diff -rc db-4.6.21.orig/build_windows/db.h db-4.6.21/build_windows/db.h
*** db-4.6.21.orig/build_windows/db.h Fri Sep 28 01:32:08 2007
--- db-4.6.21/build_windows/db.h Mon May 12 17:29:52 2008
*** 60,66 ****
#define DB_VERSION_MAJOR 4
#define DB_VERSION_MINOR 6
#define DB_VERSION_PATCH 21
! #define DB_VERSION_STRING "Berkeley DB 4.6.21: (September 27, 2007)"
--- 60,66 ----
#define DB_VERSION_MAJOR 4
#define DB_VERSION_MINOR 6
#define DB_VERSION_PATCH 21
! #define DB_VERSION_STRING "Berkeley DB 4.6.21: (May 12, 2008)"
*** 2133,2138 ****
--- 2133,2139 ----
#define DB_VERB_REGISTER 0x0010 /* Dump waits-for table. */
#define DB_VERB_REPLICATION 0x0020 /* Replication information. */
#define DB_VERB_WAITSFOR 0x0040 /* Dump waits-for table. */
+ #define DB_VERB_CURSOR 0x0080 /* Cursor open/close information. */
u_int32_t verbose; /* Verbose output. */
void app_private; / Application-private handle. */
diff -rc db-4.6.21.orig/db/db_am.c db-4.6.21/db/db_am.c
*** db-4.6.21.orig/db/db_am.c Thu Jun 14 04:21:30 2007
--- db-4.6.21/db/db_am.c Mon May 12 17:32:08 2008
*** 283,288 ****
--- 283,291 ----
TAILQ_INSERT_TAIL(&dbp->active_queue, dbc, links);
F_SET(dbc, DBC_ACTIVE);
MUTEX_UNLOCK(dbenv, dbp->mutex);
+ if (FLD_ISSET(dbenv->verbose, DB_VERB_CURSOR))
+ __db_msg(dbenv,
+ "Cursor (%p) opened, associated txn: %p", dbc, dbc->txn);
*dbcp = dbc;
return (0);
diff -rc db-4.6.21.orig/db/db_cam.c db-4.6.21/db/db_cam.c
*** db-4.6.21.orig/db/db_cam.c Tue Jun 5 21:46:24 2007
--- db-4.6.21/db/db_cam.c Mon May 12 17:32:25 2008
*** 71,76 ****
--- 71,79 ----
opd = cp->opd;
ret = 0;
+ if (FLD_ISSET(dbenv->verbose, DB_VERB_CURSOR))
+ __db_msg(dbenv,
+ "Cursor (%p) closed, associated txn: %p", dbc, dbc->txn);
* Remove the cursor(s) from the active queue. We may be closing two
* cursors at once here, a top-level one and a lower-level, off-page
diff -rc db-4.6.21.orig/dbinc/db.in db-4.6.21/dbinc/db.in
*** db-4.6.21.orig/dbinc/db.in Fri Jun 29 00:23:35 2007
--- db-4.6.21/dbinc/db.in Mon May 12 17:23:20 2008
*** 2106,2111 ****
--- 2106,2112 ----
#define DB_VERB_REGISTER 0x0010 /* Dump waits-for table. */
#define DB_VERB_REPLICATION 0x0020 /* Replication information. */
#define DB_VERB_WAITSFOR 0x0040 /* Dump waits-for table. */
+ #define DB_VERB_CURSOR 0x0080 /* Cursor open/close information. */
u_int32_t verbose; /* Verbose output. */
void app_private; / Application-private handle. */
diff -rc db-4.6.21.orig/dist/pubdef.in db-4.6.21/dist/pubdef.in
*** db-4.6.21.orig/dist/pubdef.in Fri Jul 6 10:22:52 2007
--- db-4.6.21/dist/pubdef.in Mon May 12 17:21:48 2008
*** 432,437 ****
--- 432,438 ----
DB_USERCOPY_SETDATA * I N
DB_USE_ENVIRON D I J
DB_USE_ENVIRON_ROOT D I J
+ DB_VERB_CURSOR D I J
DB_VERB_DEADLOCK D I J
DB_VERB_FILEOPS D I J
DB_VERB_FILEOPS_ALL D I J
diff -rc db-4.6.21.orig/env/env_method.c db-4.6.21/env/env_method.c
*** db-4.6.21.orig/env/env_method.c Fri May 18 01:15:11 2007
--- db-4.6.21/env/env_method.c Mon May 12 17:28:57 2008
*** 1070,1075 ****
--- 1070,1076 ----
int *onoffp;
switch (which) {
+ case DB_VERB_CURSOR:
case DB_VERB_DEADLOCK:
case DB_VERB_FILEOPS:
case DB_VERB_FILEOPS_ALL:
*** 1098,1103 ****
--- 1099,1105 ----
int on;
switch (which) {
+ case DB_VERB_CURSOR:
case DB_VERB_DEADLOCK:
case DB_VERB_FILEOPS:
case DB_VERB_FILEOPS_ALL:
diff -rc db-4.6.21.orig/java/src/com/sleepycat/db/EnvironmentConfig.java db-4.6.21/java/src/com/sleepycat/db/EnvironmentConfig.java
*** db-4.6.21.orig/java/src/com/sleepycat/db/EnvironmentConfig.java Fri Jul 6 10:22:54 2007
--- db-4.6.21/java/src/com/sleepycat/db/EnvironmentConfig.java Mon May 12 17:25:22 2008
*** 114,119 ****
--- 114,120 ----
private boolean yieldCPU = false;
/* Verbose Flags */
+ private boolean verboseCursor = false;
private boolean verboseDeadlock = false;
private boolean verboseFileops = false;
private boolean verboseFileopsAll = false;
*** 846,851 ****
--- 847,855 ----
public void setVerbose(final VerboseConfig flag, boolean enable) {
int iflag = flag.getInternalFlag();
switch (iflag) {
+ case DbConstants.DB_VERB_CURSOR:
+ verboseCursor = enable;
+ break;
case DbConstants.DB_VERB_DEADLOCK:
verboseDeadlock = enable;
break;
*** 876,881 ****
--- 880,887 ----
public boolean getVerbose(final VerboseConfig flag) {
int iflag = flag.getInternalFlag();
switch (iflag) {
+ case DbConstants.DB_VERB_CURSOR:
+ return verboseCursor;
case DbConstants.DB_VERB_DEADLOCK:
return verboseDeadlock;
case DbConstants.DB_VERB_FILEOPS:
*** 1151,1156 ****
--- 1157,1167 ----
dbenv.set_flags(offFlags, false);
/* Verbose flags */
+ if (verboseCursor && !oldConfig.verboseCursor)
+ dbenv.set_verbose(DbConstants.DB_VERB_CURSOR, true);
+ if (!verboseCursor && oldConfig.verboseCursor)
+ dbenv.set_verbose(DbConstants.DB_VERB_CURSOR, false);
+
if (verboseDeadlock && !oldConfig.verboseDeadlock)
dbenv.set_verbose(DbConstants.DB_VERB_DEADLOCK, true);
if (!verboseDeadlock && oldConfig.verboseDeadlock)
*** 1342,1347 ****
--- 1353,1359 ----
yieldCPU = ((envFlags & DbConstants.DB_YIELDCPU) != 0);
/* Verbose flags */
+ verboseCursor = dbenv.get_verbose(DbConstants.DB_VERB_CURSOR);
verboseDeadlock = dbenv.get_verbose(DbConstants.DB_VERB_DEADLOCK);
verboseFileops = dbenv.get_verbose(DbConstants.DB_VERB_FILEOPS);
verboseFileopsAll = dbenv.get_verbose(DbConstants.DB_VERB_FILEOPS_ALL);
diff -rc db-4.6.21.orig/java/src/com/sleepycat/db/VerboseConfig.java db-4.6.21/java/src/com/sleepycat/db/VerboseConfig.java
*** db-4.6.21.orig/java/src/com/sleepycat/db/VerboseConfig.java Fri Jul 6 10:22:54 2007
--- db-4.6.21/java/src/com/sleepycat/db/VerboseConfig.java Mon May 12 17:28:07 2008
*** 12,17 ****
--- 12,19 ----
import com.sleepycat.db.internal.DbEnv;
public final class VerboseConfig {
+ public static final VerboseConfig CURSOR =
+ new VerboseConfig("CURSOR", DbConstants.DB_VERB_CURSOR);
public static final VerboseConfig DEADLOCK =
new VerboseConfig("DEADLOCK", DbConstants.DB_VERB_DEADLOCK);
public static final VerboseConfig FILEOPS =
diff -rc db-4.6.21.orig/java/src/com/sleepycat/db/internal/DbConstants.java db-4.6.21/java/src/com/sleepycat/db/internal/DbConstants.java
*** db-4.6.21.orig/java/src/com/sleepycat/db/internal/DbConstants.java Fri Sep 28 01:32:07 2007
--- db-4.6.21/java/src/com/sleepycat/db/internal/DbConstants.java Mon May 12 17:29:17 2008
*** 194,199 ****
--- 194,200 ----
int DB_UPGRADE = 0x0000001;
int DB_USE_ENVIRON = 0x0004000;
int DB_USE_ENVIRON_ROOT = 0x0008000;
+ int DB_VERB_CURSOR = 0x0080;
int DB_VERB_DEADLOCK = 0x0001;
int DB_VERB_FILEOPS = 0x0002;
int DB_VERB_FILEOPS_ALL = 0x0004;
Maybe you are looking for
-
Iphone 4s IOS 7.0.4 update battery drain issues
I hope this gets to apple in regards to the issue of the battery drain. I have been following several discussions for the past couple of weeks and everyone seems to have some type of idea on what the problem is. I'm not a service tech or gadget know
-
Problem with processor fan.
Hi, since a few days ago the processor fan is not starting when I turn on the laptop, it just starts when I open any windows user session, it used to work fine, suddenly changed and I don't know how to fix it, also when Is not in "High performance" m
-
Printer Share Migrations when SCCM DP is replaced with new name
we are inprocess of replacing the remaining office servers which are SCCM 2012 SP1 DPs with replacement servers that are Svr 2012. in the past when we did this for the 2003 server we were able to use printmig to create a script that the user only ha
-
Hi, I'm new to this forum and to this field. I have a bug i need to fix ..and need some help on ideas. I'm using Eclipse for J2EE. the bug is: when navigating the screen with the tab Key ...it does not stop on a field it should, rather it skips and g
-
Is it possible to create controls dynamically.
Hai, Is it possible to create control or arrays dynamically in LabVIEW.That means i want to create controls at run time depending on the dynamic data. Please help me in this regard.