How can I lock the NumAtCard field in the marketing document screen

Dear Experts,
Is there any way I can lock the marketing documents' (say Goods Receipt PO) BP Ref Number field? meaning if there are already values in the field, I do not want any users to change it.
Please help!
Warmest Regards,
Chinho

Hi Chin,
There are two options to resolve your problem i.e. using DI SDK code and SP_TN.
if you want to to use SDK code, it requires big effort except you have a good programmer.
if you using SP_TN, you could use this following sample:
if @transaction_Type in ('A','U') and @object_type in ('20')
begin
        if exists (
                select a.DocEntry
                from OPDN a inner join OPDN b on a.numatcard=b.numatcard and
                                        a.DocEntry<>b.DocEntry
                where @object_type = '20' and (coalesce(a.numatcard,'')<>'' and (year(a.docdate) =
year(getdate()) and year(b.docdate) =year(getdate())))
                        and a.DocEntry = @list_of_cols_val_tab_del
        begin
                set @error = -1
                set @error_message = 'BP ref no. has been used'
        end
End
The above query SP is to block the use of last year BP ref no. I also have modified so that not only last year but even yesterday.
You can modify it by your own way.
Rgds,
JimM

Similar Messages

  • How can I lock the file in use

    Dear All, I transfer the large text file to Solaris 10 server and copy the this file with transfer not success to another path. but I can open the file with end of file. How can I lock the file with transfer not successfully.

    Locking on UNIX is cooperative, not manditory. That means that all applications need to check for the lock explicitly and then not use the file if the lock exists.
    But if something is accessing the file beyond your control, locking isn't going to prevent it.
    If you do control all the access points, then take a look at lockf or flock functions.
    Darren

  • How can I lock the object in my dock?

    Members in my family continue to accidently drag objects off the dock on my powerbook by accident.
    How can I "lock the dock"?
    Thanks.

    You can't. This is a real problem when you accidentally drag 300+ files onto an application icon but miss...
    Matt

  • I use 2 monitors how can I lock the dock to keep it from sliding over to next monitor?

    I use 2 monitors how can I lock the dock to keep it from sliding over to next monitor?

    I found the answer in the "more like this" area.  Thanks for helping.

  • Got macbook stolen, got creative cloud on the stolen mac. Got myself a new mac and installed creative cloud on that computer. How can i lock the creative cloud membership on the stolen mac. I do not have iCloud.

    got macbook stolen, got creative cloud on the stolen mac. Got myself a new mac and installed creative cloud on that computer. How can i lock the creative cloud membership on the stolen mac. I do not have iCloud on the stolen mac.
    And will the thievs be able to purchase things from itunes or adobe with my cardinfo? I have a password who comes up overtime i download anything, but i never used itunes on buying things. I just registred there.

    What is iCloud, and did you ask Apple about their "I" product? (The Cloud is not iCloud, whatever that may be)
    Remove license on a computer http://forums.adobe.com/thread/1442423?tstart=0 may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/error-maxium-acitvation-exceeded.html
    If that doesn't work, you'll need to contact Adobe (this is an open forum, not Adobe support)
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    For anything else, contact your credit card company and have a new card issued if you had any information on your stolen computer... and go to ALL of your online accounts and change your passwords

  • How can we lock the table?? how can we lock the record

    Hi
    how can we lock the complete table?? how can we lock the record ?/
    Thanks
    Rama

    Lock objects are used to lock the database table while making the modifications on the database table.
    you can create your own lock objects using SE11.
    if you create lock objects on any table system will create two function modules.
    1.ENQUEUE....
    2.DEQUEUE.....
    first one is used to lock the table
    second one used to removing lock on the table.
    lock Table
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
    tabname = table_name
    EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
    Unlock Table
    CALL FUNCTION 'DEQUEUE_E_TABLE'
    EXPORTING
    tabname = table_name
    check this link :
    http://help.sap.com/saphelp_40b/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
    _SCOPE = 1: The lock is not sent to the update program. The lock is removed when the transaction is ended.
    _SCOPE = 2: The lock is sent to the update program. The update program is responsible for removing the lock. The dialog program which requested the lock no longer has an influence on the lock behavior. This is the standard setting for the ENQUEUE function module.
    _SCOPE = 3: The lock
    Re: lock objects
    Reward if this helps.

  • How can I lock the screen on ipod nano 7th gen?

    How can I lock the ipod nano 7th gen? Just pressing the top button doesnt cut it as it still starts to play music or pauses or change volume with the slightest knock im in 2 minds to take it back if you cant lock it as ive only had it 4 days and already found this a huge problem!

    Hi! I really couldn't find no way to lock the screen, except pressing the top button (what only cancel any touch you do in the screen).
    That's an old discussion about (failure vs feature), but I wonder about if you are running, you can let the screen locked and still change or pause the song by pressing the buttons on the side of the iPod)
    hope I could help you

  • HT201304 How can i lock the General or setting to prevent other people open it?

    How can i lock the General or setting to prevent other people open it?

    Leliforever, cheek you list of installed add-ons, the Ask toolbar can be installed without the users knowledge.
    For checking other extensions that may cause this, follow the procedure in this link - https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • When I turn on messages, I can't see my messages.  All I can see is a screen with horizontal lines and a text list of addresses.  How can I get the regular message screen back?

    When I turn on Messages, I can't see my messages.  All I can see is a screen with horizontal lines.  How can I get the regular Messages screen back?

    The same is happening for me. Today I decided to reboot my PC because it was acting up a bit, go figure, and then for some reason at the same time the PC was restarting my macbook froze. I had to do a reboot with the restart button but then all that came up was a gray background and in the middle of the screen was a darker gray folder with a white question mark in the middle of it, blinking. I can't imagine why the restart would've affected my macbook. After finding information on how to fix this, I tried all of the steps that were given about using the mac OS X disk to use the first aid utility to fix it. When using the Disk Utility option whenever I select my hardrive and am in the First Aid tab, the only button I can use is the Verify Disk Permissions. The other three buttons, and namely the most important Repair Disk button, is/are not selectable (grayed out). I then tried resetting the PRAM the way they also said with the command + option + P + R and waited for the second startup sound. After that I gave the Disk Utility a second try, but still nothing. And now if I try to just reinstall the OS completely I can't even select a destination volume on the third step (Select Destination). Apparently this means i'm SOL.

  • How can I enlarge the "all-day" screen on the iPhone calendar?  I use the all-day screen for all my tasks, and it only shows 2 items at a time!!  Help!!!

    How can I enlarge the "all-day" screen on the iPhone calendar?  I use the all-day screen for all my tasks, and it only shows 2 items at a time!!  Help!!!

    The iPhoto App can select all of the photos in the All Imported folder and delete them.

  • Using wireless 4G Sierra dongle. how can I stop the pop up screen trying to modify configuration when I connect

    I am using wireless 4G Wireless Sierra dongle. I have a Mac Air. How can I stop the pop up screen trying to modify configuration when I connect. I can connect with no problems but I have to click 'cancel' (on pop up screen that says network needs to modify my configuration) sometimes as many as 50 times!!! very annoying as the pop up is in middle of screen & won't go away unless i click it. Thank you foray help!

    Contact the providers  technical support staff.
    Ciao.

  • How can I get the help documents of Siebel CRM On Demand Answers?

    How can I get the help documents of Siebel CRM On Demand Answers?

    Click any help link within CRM On Demand to access the Online Help. There is a link in the top right to open the Help as a PDF file. You can even print this 777 page PDF file in part or whole if you really want to.
    Mike

  • How can I clear the recent document list on the welcome page?

    Have some confidential docs that I don't want to appear when the program is launched. How can I clear the recent document list on the welcome page and the "open recent" list?  thx

    It's not an option in the prefs. It's a hidden file that makes up part of the preference set (as far as I know, most, or all of the seetings you can adjust inside ID's prefences dialog are actually saved in the other half of the set, InDesign Defaults). For more information, see Replace Your Preferences

  • Hi ! this is my first time lost my iPad in the heathrow airport , i did ask for the information of the airport ,from 6th nov until now still can't find it , so i knew my iPad is definitely is gone . i just want to know how can i lock the iPad ?

    how can i lock my lost ipad ?
    <Edited by Host>

    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
     Cheers, Tom

  • Screen Share - How does one lock the remote computer screen?

    Using Screen Share in Lion I am unable to lock the remote users screen.

    I use JollysFastVNC as my local client, and remote screen lock used to work with Snow Leopard.  They have a note on their website that it doesn't work with Lion, when I try it kicks me out of the session.
    I wonder if Apple removed this feature and reserved it for Apple Remote Desktop? 

Maybe you are looking for

  • Validation problem with dependent selectOneChoice

    Hi, I have two af:selectOneChoice box. Both have valueChangeListener. 1st box will load the value in 2nd box and the 2nd box listener has some logic for rendering other component. Required and immediate attribute are true for both the box. Now if I c

  • How to detect a deadlock for a particular row?

    Please give us the solution of subject problem. Thanks & regards,

  • What does it really do...

    While replacing the DC inboard on one of the iBooks, I lost one of the springs in the battery compartment. It was last night, and my memory is going so I can't quite remember what I was doing when it shot off. But it bizarrely shot off, across the ro

  • No CD burn button

    I have created a playlist with the songs i have purchased however when I insert a cd it does not bring up the cd burn button. I am using windows vista and have two computer authorized under my account, does either of these matter?

  • Dynamic parameter against table TVTWT

    I currently have the table TVTWT linked in order to get the name description for the distribution channel. For example, distribution channel 00 has two rows, one german and one english. In my dynamic parameter for distribution channel, when I try to