How to disable perticluar cell of the table on the screen,at run time?

HI All,
I am using table control on the screen.
I have 5 field in the table control.
out of which one is posnr.
Now, if user doesnt enters the value of posnr then it should be created automatically.
I have written the code for that ,but this perticlar cell (for which posnr is generated automatically ) should be disabled now.
Can anybody tell me how can i do it?
Thnx in advance.

Hello Sanjay,
  Write a module inside the loop...endloop in the PBO of your screen. Inside the module, check the field and disable it by modifying the SCREEN table.
loop at itab with control tctrl.
  module modify screen.
endloop.
module modify_screen output.
  loop at screen.
   if screen-name cs 'POSNR'.
   if itab-posnr is not initial.
     screen-input = 0.
   else.
     screen-input = 1.
   endif.
   modify screen.
   endif.
  endloop.
endmodule.
Regards,
Manoj

Similar Messages

  • How to generate long text of the message during run time?

    Hi guys,
    I have a question like in the subject. Someone could help me with that? I need to put some kind of log after transaction execution into message's long text, so that the short text displays only some short information and long text contains detailed description of the problem, but returned by program. And the log can be long, so it is not enough to put there only some parameter.
    Thanks and kind regards,
    Marcin

    Hi,
    Do you want to change the label of the parameter??
    Check this example..
    PARAMETERS: p_check AS CHECKBOX USER-COMMAND usr.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(15) v_text FOR FIELD p_land1.
    PARAMETERS: p_land1 TYPE t005-land1.
    SELECTION-SCREEN END OF LINE.
    AT SELECTION-SCREEN OUTPUT.
    IF p_check = 'X'.
    v_text = 'From country'.
    ELSE.
    v_text = 'To country'.
    ENDIF.
    Regards,
    Ramesh.

  • How to disable single cell in table control.

    Hi my requirement is to disable single cell in the table control. Please let me know How to do this.
    If possible please provide good module pool examples.
    Harish

    Hi,
    I´m not quite sure if this is gonna work. You have to make a loop over the screen and then you can change some characteristics of it, which includes the Input option:
      LOOP AT SCREEN.
        IF screen-group1 = 'ABC'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    I´ve used this code for selection screens but could help you. Check in SE11 all options for SCREEN.

  • How to disable delete option in the receipt work bench thorugh formpersonal

    Hi Team,
    Please let me know, how to disable delete option in the receipt work bench through form personalization

    Hi.
    Condition
    Trigger Event: WHEN-NEW-ITEM-INSTANCE
    Trigger Object: RGW_FOLDER.M_PAYMENT_METHOD_DSP
    Actions
    Type: Property
    Object Type: Block
    Target Object: RGW_FOLDER
    Property Name: DELETE_ALLOWED
    Value: FALSE
    Note: The button will remain visible and if the user presses it, the system will ask if he/she want to delete the receipt. However, if the OK button is pressed the receipt will not be deleted and a message will be shown ("You cannot cannot delete this record")
    Hope this helps.
    Octavio

  • How to disable maximize button of the java.awt.Window ????

    How to disable maximize button of the java.awt.Window !!!!
    Help needed

    How to spam the forum with the same fuqin question. Please get lost.

  • I bought iMac 27 quad core i7 last June. Last month i have noticed lots of dark patches on the screen and now they are growing more. i bought this from US but now i have moved to Kuwait. How much it cost to replace the screen?

    I bought iMac 27 quad core i7 last June. Last month i have noticed lots of dark patches on the screen and now they are growing more. i bought this from US but now i have moved to Kuwait. How much it cost to replace the screen?

    Mac and Mac models are picky about the RAM the Mac needs to see and use.
    As you have found out, the 1067 speed RAM will not work in your year and model iMac.
    You need the 1333 speed RAM.
    If, you can return the RAM for a refund, do it!
    If not, try online Mac RAM source and seller Crucial memory. They have a table that matches your Mac to the correct and reliable RAM. You may need to contact them to see whether or not they ship to South Africa, though.
    If Crucial dpesn't work out, here's the specs for your year and model iMac that you need to seek out and purchase.
    Maximum Memory
    32 GB (Actual) 16 GB (Apple)
    Memory Slots
    4 - 204-pin PC3-10600 (1333 MHz) DDR3 SO-DIMM
    Good Luck!

  • How do i fix my itouch. the screen is black but it still responds to touch

    How do i fix my itouch. the screen is black but it still responds to touch

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • Is there a way to enter data into a numbers cell on the screen directly, no keypad?

    Is there a way to enter data into a numbers cell on the screen directly, no keypad?
    Using a stylus or finger?

    No. You have to use the built-in keyboard or a bluetooth connected external keyboard.
     Cheers, Tom

  • Hi how much is it to replace the screen on the 5c?

    hi how much is it to replace the screen on the 5c?
    Also what does my warranty look like if I bough the phone in October 2013?
    How long would it take to fix?

    Not apple store repair broken screens.
    no warranty for accidental damage, you would have to buy an out of warranty 5C, not sure on the price.

  • How do I get rid of the back-up on Time Machine?

    Got rid of a computer, how do I get rid of the back-up on Time Machine (housed on a Time Capsule)? Can I safely just delete the sparsebundle file?

    It is much easier, and much faster, to erase the Time Capsule drive if you do not have other backups on the drive.
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click the Time Capsule icon
    Click Edit
    Click the Disks tab
    Click Erase Disk
    The Quick Erase option will be fine and will only take a minute or two
    If you do not plan to hold onto the Time Capsule use the Zero Out option, which is more secure
    If you do have other Time Machine sparsebundle files on the Time Capsule and do not want to erase them, then you will need to manually delete the sparsebundle file that you no longer need.
    It will likely take about as long to delete the file as it took to make the first backup.

  • How to change the skin at run time

    I am using jDeveloper 11.1.1.3 for ADF.
    My UseCase: i want to give a dropdown for skins. User should be able to select the skin at run time and it should be loaded. Please let me know how can i achieve it.
    Zee

    As per usecase, looks like you have the LOV containing the different skins.
    You can ensure that the application is skinned according to the selected value in the LOV.
    Ensure that you have a session scope variable that is set, whenever you change the LOV.
    For more details, look into this link http://download.oracle.com/docs/cd/E14571_01/web.1111/e10140/skinning.htm
    Thanks for your reply, but then...... what will be the skin loaded by default before the user selects the skin - drop down. Do i have to set something default before hand .?Define the LOV such that there are no empty elements. i.e the first element in the LOV is selected.
    In the Managed bean, if the session scope is not set, return the skin family for the first element. This would be the scenario when the application loads.
    Thanks,
    Navaneeth

  • How to set default values on the screen painter parameters?

    Hello ABAP Gurus,
    I would just want to ask how to set default values on the screen painter parameters.
    Thank you for your replies.

    Hi,
    To set default values for screen painter parameters initialize the field names with default values in the PBO module....
    say u have the field name as f_field1....
    in the PBO of that screen initialize it....
    f_field1 = '100'  "here 100 is the default value.
    <b>reward points if useful.</b>
    regards,
    Vinod Samuel.

  • Please tell me how to go back to a long text I wrote and then i must have accidentally swiped the screen one way or another.  How do I go back to the screen so I don't have to re-write the whole text?

    Please tell me how to go back to a long text I wrote and then i must have accidentally swiped the screen one way or another.  How do I go back to the screen so I don't have to re-write the whole text?

    Cloud takes over https://forums.adobe.com/thread/1584746 may help

  • How much it costs to fix the screen of an ipad starry

    how much it costs to fix the screen of an ipad starry??????

    Apple's Limited Warranty http://www.apple.com/legal/warranty/ for iPad excludes coverage for damage resulting from accident, disassembly, unauthorized service and unauthorized modifications. 
    Out-of-Warranty Service
         If you own an iPad that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will replace (Apple doesn't repair) your iPad with an iPad that is new or equivalent to new in both performance and reliability for the Out-of-Warranty Service fee listed below. (The replacement will most likely be a refurbished iPad in a brown box, however, it has a new screen, back and battery.)   
    iPad model
    Out-of-Warranty Service Fee
    iPad mini
    $219
    iPad 3rd, 4th generation
    $299
    iPad 2, iPad
    $249
    A $6.95 shipping fee will be added if service is arranged through Apple and requires shipping. All fees are in US dollars and are subject to local tax.
    Certain damage is ineligible for out-of-warranty service, including catastrophic damage, such as the device separating into multiple pieces, and inoperability caused by unauthorized modifications. However, an iPad that has failed due to contact with liquid may be eligible for out-of-warranty service. See http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipad
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/
    You may can get the iPad repaired at 3rd party repair sources for less $, however, any remaining Apple warranty will be voided.
    iPad Repair & Screen Replacement Services
    http://www.ifixyouri.com/16-ipad-repairs
    RepairZoom iPad Repair
    http://www.repairzoom.com/ipad-repair.html
    Mission Repair
    http://www.missionrepair.com/Apple_iPad_Repair_Services_s/431.htm
    iGadgetResQ
    http://www.igadgetresq.com/ipad-repair/
     Cheers, Tom

Maybe you are looking for

  • Pages won't update to 5.1, refuses to open documents

    First of all, pardon me while I scream. AAAAARRRRRRRRGGGGHHHHH! iWork! I've stood by you all these years and this is what you do to me!!!!! OK. So - Keynote and Numbers recently updated in late January, but not Pages. Today (18 February), I tried to

  • Attachments not working for Outlook Web Access / SL Safari 4.0

    Web access to my corporate email via browser: "Microsoft Outlook WebAccess". Able to choose file(s) for attachment, selection appears to work (displays file name) but attachment is not made; it doesn't show up on the message either for the recipient

  • Problem using TreeSet sorting

    Hello to everyone. I am starting to learn java and I hope that you guys can help me with my problem. I am using a TreeSet right now and is adding to the set one by one by using the add method. My problem is that everytime I inserted to the Set, it do

  • More questions: Quicksilver G4 800 Hard Drive

    Hi, I have to admit, I'm totally confused about what to get to add on to my 867 G4 Quick Silver, which has an 60G IBM Ultra ATA/66, which also is impossible to find. Can I replace with another Ultra ATA/66, or an ATA/higher number? There are so many

  • Purchasing New Windows Laptop

    I have had lots of trouble running iTunes on my old Celeron based Presario. My dad is going to buy me a new, Centrino based Windows laptop (I know, I already asked him for a Mac and he said no). Can anyone recommend a make, model and minimum configur