Lock change of  ztransaction while using in migo

hi all,
in general how do we stop change of a document while it is edited in other transaction .
Ex : if  PO number is in use while doing MIGO it will stop us editing in ME22n.
i have a similar requirement , we have a modulepool program ZMRN_CREATE, ZMRN_CHANGE jst like ME21n ME22n .
the number generated here  is used in MIGO , how can i stop editing or change of MRN number while it is in use in MIGO screen.
Thanks in advance...Pl help in this regard...
Deepak.

Hi Deepak ,
Use this report in your program to lock and unlock your tcode in the background.
use SUBMIT statement in your current module pool.
REPORT Z_LOCK_UNLOCK_TRANSACTIONS
LINE-SIZE 80
MESSAGE-ID 00.
* Program to lock and unlock transactions
* Suvendu Swain
TABLES: TSTC.
DATA: LOCK_TEXT(30).
*SELECTION-SCREEN begin.
SELECT-OPTIONS: S_TCODE FOR TSTC-TCODE OBLIGATORY NO INTERVALS.
PARAMETERS: P_LOCK RADIOBUTTON GROUP A,
P_UNLOCK RADIOBUTTON GROUP A DEFAULT 'X'.
AUTHORITY-CHECK OBJECT 'S_TCODE'
ID 'TCD' FIELD 'SM01'.
IF SY-SUBRC NE 0.
MESSAGE E172 WITH TEXT-010.
STOP.
ENDIF.
IF P_LOCK &H3D 'X'.
LOCK_TEXT &H3D TEXT-008.
ELSE.
LOCK_TEXT &H3D TEXT-009.
ENDIF.
LOOP AT S_TCODE.
CALL FUNCTION 'Z_LOCK_UNLOCK_TRANSACTIONS'
EXPORTING
TCODE &H3D S_TCODE-LOW
LOCK &H3D P_LOCK
UNLOCK &H3D P_UNLOCK
EXCEPTIONS
FAIL_TO_LOCK &H3D 1
FAIL_TO_UNLOCK &H3D 2
INVALID_TCODE &H3D 3
INVALID_OPTIONS &H3D 4
TRANSACTION_ALREADY_LOCKED &H3D 5
TRANSACTION_ALREADY_UNLOCKED &H3D 6
OTHERS &H3D 7.
CASE SY-SUBRC.
WHEN 0.
WRITE:/ TEXT-001, S_TCODE-LOW, LOCK_TEXT.
WHEN 1.
WRITE:/ TEXT-002, S_TCODE-LOW.
WHEN 2.
WRITE:/ TEXT-003, S_TCODE-LOW.
WHEN 3.
WRITE:/ TEXT-004, S_TCODE-LOW.
WHEN 4.
WRITE:/ TEXT-005, S_TCODE-LOW.
WHEN 5.
WRITE:/ TEXT-006, S_TCODE-LOW.
WHEN 6.
WRITE:/ TEXT-007, S_TCODE-LOW.
ENDCASE.
ENDLOOP.
hope this will solve your problem.
cheers,
Suvendu
Edited by: Suvendu Swain on May 10, 2009 10:27 AM

Similar Messages

  • Lightroom 2.2 is locking up or crashing while using localized  adjustment brush

    Ever since I started using the LAB, lightroom has locked up or just flat out crashed after 5-15 minutes of work with the brush on the same image. Why and how do I solve this?
    PRODUCT: Lightroom 2.2 , Photoshop CS3 10.0.1
    PLATFORM Dell PWS690, Intel Xeon CPU 5150 @ 2.66GHz, 4 GB of Ram
    Lightroom Library on internal one gig drive.
    Backed up to a Dell raid array with 6TB of storage via a gigabit Ethernet
    Nikon D3
    Thanks,
    Mark Gamba
    [email protected]

    i gotta say i'm getting pi**ed off as well with this version. i'm having the same issue with LR crashing about 5 minutes into the picture using the adjustment brush.
    i've got 4 gig of ram and no other programs running. i should be able to keep CS3 open but closing then re-opening is a pain.
    anyone from Adobe looking into this or are we just shouting into an empty cave?

  • Text color changes after render while using timecode generator/VF tool

    Hi,
    I'm having a problem with the timecode generator/viewfinder tool. When I have both a Gaussian Blur (set on something other than Alpha + RGB) and a VF or Timecode generator effect in the filters, it seems to create a bug where the color I want for the viewfinder (REC) text shows up correctly pre-render, but changes to an arbitrary color after the render. For example, when I set the color to red, it becomes cyan after rendering. Anyone else experienced this problem or have a solution? Thanks.

    Dear Pallavi,
    Very useful post!
    I am looking for similar accelerators for
    Software Inventory Accelerator
    Hardware Inventory Accelerator
    Interfaces Inventory
    Customization Assessment Accelerator
    Sizing Tool
    Which helps us to come up with the relevant Bill of Matetials for every area mentioned above, and the ones which I dont know...
    Request help on such accelerators... Any clues?
    Any reply, help is highly appreciated.
    Regards
    Manish Madhav

  • Can I change my website while using Mavericks?

    Created  website with iWeb 3.0.4.  Website hosted by Go Daddy.  Current OS is Mavericks.  Can I upload/publish changes from computer using Mavericks?  Am afraid I might wipe out published site if I try to upload changes. 

    Whether you publish the entire site or just the changes you won't wipe out your website.  The publish entire site will just replied all files on the server with new ones.  The publish changes will just upload those new or modified files. 
    Sometimes if you have problems upload newly added files a "publish entire site" is necessary.

  • Toolbars changing color hues while using Chrome?

    I've noticed recently that when using Chrome, the toolbar and display color elements will shift to a blue-ish hue depending on the website. I attempted to take a screenshot however it's not detectable as it's contained only to the App being open, so I have included some iPhone photos:
    Normal grey toolbar:
    Blue-hue while on Facebook (for example):

    Maybe this will help. If you monitor the "More Like This" box, other solved threads appear. Opening them usually displays other threads.
    https://discussions.apple.com/message/20515230#20515230

  • How can i change net mask while using dhcp??

    Hi guys! Newbie here. I am having a problem that i can't find an answer to. I am in a college network with dhcp. in this network we have many workgroups. I can see all of them. But i can only explore 2 of the 17 workgroups. I am guessing it is the subnet mask but i am not sure.
    here is the relevant part of rc.conf
    HOSTNAME="innerwisp"
    lo="lo 127.0.0.1"
    eth0="dhcp"
    INTERFACES=(lo eth0)
    ROUTES=(!gateway)
    #NET_PROFILES=(template)
    and here is smb.conf
    [global]
    workgroup=b2
    security = user
    dns proxy = no
    restrict anonymous = no
    domain master = no
    preferred master = no
    max protocol = NT
    acl compatibility = winnt
    ldap ssl = No
    server signing = Auto
    workgroup = b2
    and the weird thing is that b2 is not one of the workgroups that i can explore
    And one more question. I tried to set up the network from control centre-->Internet&Network-->network settings. there i get the message: your platform is not supported. plz chose one of the following distro's. which should i choose?
    I would really appreciate any help cause for the past 4 hours i have been trying and searching with no result.
    I am sorry if something like this has already been posted, but if it has i must have missed it
    Last edited by innerwisp (2008-03-17 23:01:36)

    Well I guess u can say problem solved. the problem must have been with the DNS cause smb://192.168.0.xxx works. I only need to explore the three main servers so I dont need to figure out what the problem with the dns is. Thank u for your help guys!

  • Change field Stock Type in transaction MIGO

    HI Gurus
    My user wants to change the field Stock Type in good receipt after that good receipt has been created .
    Is there a way to change this field ? Using transaction  MIGO  can only display the good receipt .
    Thanks in advance

    Once GR has been done you can not change the stock type in display.
    Using MIGO at the time of goods receipt you can change the stock Type. Once you have posted to a wrong stock type then you need to do the transfer posting from stock type to stock type.
    Explain your requirment?
    Check [Stock types|http://help.sap.com/saphelp_46c/helpdata/en/a5/63393f43a211d189410000e829fbbd/content.htm]

  • Keypad is locking while using

    I've an N73.I've installed Mr.Lock option and put 15 sec to lock.But the problem is except making or recieving any call keypad will be locked while using.For eg:- while playing music in open mode or any application is opened!
    what is the remedy?
    it will be a pleasure if anyone can answer!!
    Thank u.
    Solved!
    Go to Solution.

    Go to the settings and change the 'Lock keypad' to something different than 'In every program'
    Or get Autolock:
    http://s60addons.com/autolock/
    Ericsson T10i -> Nokia 7110 -> Siemens C45, C55, M55, M65 -> Nokia 6131, N73, N82 -> HTC Wildfire, Desire HD -> Nokia Lumia 800 -> HTC Desire X -> Lumia 820 -> Sony Xperia SP -> Lumia 925 + Sennheiser CX 500
    If I've helped, use the Kudos button to thank

  • Unable to change reference point location while using the Transform Functions in Photoshop Elements 6.0.

    Unable to change reference point location while using the Transform Functions in Photoshop Elements 6.0.

    Which operating system are you using?
    In photoshop elements 6, as far as i know, you can only change the Reference Point Location for transforms using the small grid in the left hand corner of the tool options bar with Transform enabled.

  • How to get locked records of a pernr while using PNP LDB

    is there any way to retrieve locked records of a pernr
    while using PNP LDB??currently the get pernr event is unable to load locked records of a pernr.

    Hi,
    PL use this piece of code in your Program..
    INITIALIZATION.
    PNP-SW-IGNORELOCKEDRECORDS = 'N'.
    Regards,
    Suresh Datti

  • I buy my iphone from KSA but now i live in jordan how i can change my region to use face time ??!  Because its locked in ksa but free in jordan

    I buy my iphone from KSA but now i live in jordan how i can change my region to use face time ??!  Because its locked in ksa but free in jordan

    No.
    You can never have facetime on that iphone.
    Sorry

  • Any change between 2003 & 2008 while using User Placeholder (%username%)

    Hi Experts,
    I just want to know if there is any change while using place holder (%username%) between 2003 & 2008R2.
    Vipin Tyagi

    I agree, and I still use it.
    Ace Fekay
    MVP, MCT, MCSE 2012, MCITP EA & MCTS Windows 2008/R2, Exchange 2013, 2010 EA & 2007, MCSE & MCSA 2003/2000, MCSA Messaging 2003
    Microsoft Certified Trainer
    Microsoft MVP - Directory Services
    Complete List of Technical Blogs: http://www.delawarecountycomputerconsulting.com/technicalblogs.php
    This posting is provided AS-IS with no warranties or guarantees and confers no rights.

  • My phone dials and hangs up on people while talking. i need the screen to lock while using it

    my phone dials numbers and trys to face time while using phone.i want screen to lock while on phone. it never used to do this until i had screen replaced.

    I have since discovered the "hold down home key and power button" together for a few seconds and this seems to have worked .... phew!

  • While using apple tv with homesharing my MBP gets out of sleep on every track change

    Since I upgraded to lion I experience the following:
    While using my apple tv with wired connection to my MBP via homesharing for listening to music on every change of track the MBP wakes up from screensaver/screensleep with the login screen. I think this is a bug... Anybody has the same experience?

    after the lion upgrade my mac mini is doing the same thing. it's not in true "sleep mode" but my display is set to sleep, and when using my apple tv it keeps waking the display. i, too, have my machine set to ask for password upon wake, so the log in box appears, then disappears after a few minutes, the monitor goes to sleep then seconds later re-wakes and the log in box re-appears. and it continues to repeat this cycle the entire time i am using my apple tv

  • While using Illustrator or Photoshop I seem to be hitting a shortcut to lock my key board. Other shortcuts work but can not type anything?

    While using Illustrator or Photoshop I seem to be hitting a shortcut to lock my key board. Other shortcuts work but can not type anything?

    You are planning to do a number of things, so let me first make a suggestion about the overall approach. Instead of: "Before I make a clone of my hard drive I would like to fix this problem so I only have one account with everything in it but I do not know what to move ... or how to safely move it", I would make that clone immediately. And leave it alone until you have completed the reconfiguring and rearrangements you plan to do. This way, if you accidentally do something that needs to be undone, your clone is there with all the originals. By the way, this is the approach I always adopt, whenever I have to do anything drastic with an existing installation.
    After all the rearranging etc. of the main drive you just make a new clone that erases the previous one.
    The "Deano" account doesn't show up when I go to System Preferences:Accounts. So I assume I must have done something wrong.
    This would suggest to me there is only one account, i.e. the principal, or Admin account. Why do you think there is a second account?
    Where should I keep all my work files?
    You can keep them where ever it is most convenient. As you know, you can create folders within folders, and there is nothing special about the Documents folder. Feel free to ignore it, if that's the way you want to work. You can direct your downloads, the default "save to" locations etc. to the appropriate places, as you work.
    Can I create a new place for all my work files and just move them? I know I will have to update linked files within the various software packages but this is not a problem.
    By all means.
    .. can it be directly on the HD like my Applications folder etc.?
    Indeed, yes. Or even on a different hard drive (or partition of the same drive).
    And best wishes for the new year, to you too.

Maybe you are looking for

  • Function modules for selection ID of Demand planning

    Hello All, I need a function module which can return product / location combinations associated with a selection ID. OR, a function module which can return me 1) Planning book 2) data view and 3) Version associated with a selection ID. For the second

  • Configuring PAT for VoIP got a Turn Up today!!!

    Good Morning all, I have a question, I've researched around the internet to find the CLI commands to open ports TCP 5060/5061 and UDP ports 1024 to 65535 to my SIP provider. I'm a voice guy so i'm VERY new to Security and I would like some assistance

  • Redeeming the one site hosting via Business Catalyst?

    I want to upload the one free site that is part of my Muse subscription but cannot find any steps to follow other than the normal ones which will mean being billed. Help!

  • OT: site hacked or what?

    My site is hosted over at HostMySite and since around the middle of Jan I have noticed that its not doing that well with google search. Checked Webmaster tools for top searches and noticed it listing some dodgy phrases When I do a search for that phr

  • Where is the paintbrush tool w/o the wheel?

    I am watching tutorials to learn how to use a watermark and other features, but they are all on elements 7 and using the paintbrush icon to the left. Elements 8 only has the paintbrush with the wheel next to it. What am I missing? Where is the icon?