Regarding screen modification and messages

hi experts,
1. I have devloped one screen 0100 and diaplayed 4 fields from ztable in input/output format. i hv also created 2 buttons for inserting and deletion.
so when i give input for the fields and when i click insert the data is inserting into ztable properly. but when the same data again given as input it is modifying the data. so wht i want is when we give aleady existing data as input is shoud give message as 'DATA ALREADY EXITS IN ZTABLE ' and also it should dispaly  options want to change data if i click YES it should CONTINUE modify existing data if no it should not modify the existing record.
2. Also the fields which i hv displayed are in input / output form  so i want to make them as active and deactive according to the requiment.  i want to keep one button on application tool bar when i click change the fields will be in input mode or else when i again click that it will show me in display mode. i hv seen some demo programes in abap docu but unable to understand it please any body can give me clear idea about this code.
report:demo_dynpro_tabcont_loop_at
when 'TOGGLE'.
      loop at flights-cols into cols where index gt 2.
        if  cols-screen-input = '0'.
          cols-screen-input = '1'.
        elseif  cols-screen-input = '1'.
          cols-screen-input = '0'.
        endif.
how can i use this one when i am using ztable fields displayed on screen.?
<b>points will be rewared</b>
regards,
priyanka reddy.

Hi Priyanka,
I worked on a project with similar requirement.
To check if the data entered is already present in the Z Table or not check this code:
Here, CREATE is the function code of my push button in the screen.This is similar to the INSERT button in your case.ZTM09_EKKO is the name of the Z table and the purchase order number EBELN is beoing checked.If the value is alreadypresent in the table,then sy-subrc value will be equal to 0 as the select querry has successfully retrieved EBELN from ZTM09_EKKO.
In the screen,I have given the name of the input/output field name same as the ztable field name i.e., ZTM09_EKKO-EBELN.
Hence if duplicate entry is enterd in the input/output field,then the error message is displayed.
And to change the data.You can use this code.
Th function modeul will display a pop-up window. In my case if i click on Yes,the data has to be saved in Ztable.If I click on No,The program should exit.If I click on Cancel,The popup window has to close and the data would remain in th fields of the screen.
You can code according to ypur requirement for YEs,No and Cancel buttons in the Pop-up.
  DATA answer TYPE c.
case sy-ucomm.
when 'CREATE'.
SELECT SINGLE EBELN FROM ZTM09_EKKO INTO ITAB_P WHERE EBELN =
ZTM09_EKKO-EBELN.
IF SY-SUBRC EQ 0.
MESSAGE  'PURCHASE ORDER NUMBER ALREADY EXISTS'  type 'I'.
        CALL TRANSACTION 'ZCREATE09'.
***Call funtion to display popup asking for modify or mot*****
        CALL FUNCTION 'C14A_POPUP_SAVE_WITH_CANCEL'
          IMPORTING
            e_answer = answer.
      IF answer = 'N'.
***Leaving the program****
        LEAVE PROGRAM.
      ELSEIF answer = 'J'.
****Holding the data on the screen when YES is selected****
            set hold data on.
      ENDIF.
ENDIF.
For making the input/output fields active or deactive,
check this piece of code:
Here on clicking on the TOGGLE button,the screen will be looped and it will check the screen names.
IF any of the screen names i.e.s the input/output fields are in active modde(i.e., 1)then they are made inactive.If they are in inactive modee(i.e., 0)then they are made active.
case SY_UCOMM.
when 'TOGGLE'.
loop at screen.
if screen-input = '0'.
screen-input = '1'.
elseif screen-input = '1'.
screen-input = '0'.
endif.
endloop.
AS far as the code that you have put in the querry,
it also works the same way.
The only difference is that in the code that you provided,the fields are made active or inactive in the table control.
So the looping is at the table control.
cols is the name of the table control.
Revert if you have any other querries.
Reward if helpfull.
Regards,
Kashyap Ivaturi

Similar Messages

  • SAP Standard screen modification and logic

    Hi  All,
    I have  four tab strips in my standard selection screen. in the second , third and fourth tabs i need to add  same fileds
    for exampls
    surgery tab
    optable                    procudere code          procudure category  (standard functionality)
    opttable2                 procudure code2        procudure category2(custom to be added)
    opttable 3                procudure code3       procudure category3(custom to be added)
    medical dat tab
    diagnosis code(standard)
    diagnosis code2(custom to be added)
    diagnosis code3(custom to be added)
    The standard program uses one structure (RNEBILL)  in the structure i have added  APPEND STRUCTURE(ZPPAND1)
    in the structure i  created all the fields.
    could you tell us how to proceed futher development logic.
    Regards
    subbara

    Hi Subba,
    Still it appears hazy to me. But if i have understood it correctly, this is how it looks like:
    Your mentioning of a Standard SAP Form with four Tabs gives me a hint that it could be any Marketing Document Form (For eg. Sales Documents or Purchase Documents). Then you mention that you are not adding any User Fields to the first Tab (The first tab in any Marketing Document is the Contents tab). Again, you mentioned that you have added 3 user defined fields in your second tab which is the Logistics tab and then your requirement, you want this to manged by the SAP Form just like any other standard field on the Form.
    If this is what i have understood then the solution is simple. You just need to databind your custom field  to the user defined field that you have created in the database. SAP Business One will process these custom fields just like any standard field.
    Thanks and HTH,
    BR,
    Siju Dasan

  • Module Pool MP000200_CE in Screen Modifications

    Hello,
    My query is regarding screen modifications table T588M. When the module pool MP000200_CE is used? I know it is used when the Concurrent Employment is active and we have activated Concurrent Employement in our system but when I go to the system - status in IT0002 and check the screen number, it shows MP000200 and not MP000200_CE.
    How to activate the screen MP000200_CE for IT0002?
    Thanks.

    For the infotype 0002 for the modulepool MP000200_CE, only screens
    2007 and 2010 are needed. concerning the infotype 0002: the corresponding modulepool (MP000200 or MP000200_CE) will be read according to the country and the table T582ITD. If no entry exists for this country then the modulepool MP000200 will be used for the infotype 0002.

  • Future buyer of W530 with questions on screen type and GPU.

    Hey guys,
    I'm contemplating buying a W530 laptop to replace my aged Acer Aspire 5517. Anyway, I have some questions regarding screen type and graphics cards. One, my current Acer has a 16x9 HD screen that works perfectly fine for me, unless I go outside, so is it really worth the extra 200 bucks to upgrade to the 1920x1080 screen, or is that just overkill? same question regarding making a choice between the NVIDIA Quadro K1000M or K2000M, again, is it worth the money and what"s the biggest difference? Now I'm not a hardcore gamer, I mostly surf the web, do my work, and play a few games that are not really too demanding on the GPU.
    Thanks!

    henrodstone wrote:
    Hey guys,
    I'm contemplating buying a W530 laptop to replace my aged Acer Aspire 5517. Anyway, I have some questions regarding screen type and graphics cards. One, my current Acer has a 16x9 HD screen that works perfectly fine for me, unless I go outside, so is it really worth the extra 200 bucks to upgrade to the 1920x1080 screen, or is that just overkill? same question regarding making a choice between the NVIDIA Quadro K1000M or K2000M, again, is it worth the money and what"s the biggest difference? Now I'm not a hardcore gamer, I mostly surf the web, do my work, and play a few games that are not really too demanding on the GPU.
    Thanks!
    The 1920 x 1080 screen offered on the W530 is one of the best TN panels on the market so it's a worthwhile upgrade. Upgrading from a K1000M to a K2000M isn't a good idea unless you either spend a good amount of time playing games (or want higher settings playable) or need the extra power for CAD.
    On my W530 , I upgraded the screen to the 1080P one and kept the K1000M GPU.

  • Screen Modifications in VA31 - Scheduling Agreement

    Dear Experts,
    This is regarding screen modification.where our requirement is to add two  fields in VA31.
    In VA31 , as soon as we creates Scheduling Agreement,we add material in item level in overview screen .after double clicking on line item ,system moves to the next screen where in schedule tab we enters scheduling details .after double clicking on that line item, system displays one more screen which contains schedule line data where now three tabs are there :Sales/Shipping/Procurement .
    Our requirement is to add two more fields in any of this tab or add one more tab .
    as i tried for screen exits ,but i am not able to find any screen exit.
    Can anybody suggest me the way in order acheive above target.
    with Regards,
    Rajesh Chaskar

    Hi Rajesh,
    In SD module enhancements are generally done using User Exits.
    In Program SAPMV45A the screen number 0312 can be used to add custom fields.
    Then you can use the following Inlcudes in Program SAPMV45A to write your requisite code.
    INCLUDE MV45AOZZ.             " User-modules PBO
    INCLUDE MV45AIZZ.              " User-modules PAI
    INCLUDE MV45AFZB.             " User-forms
    INCLUDE MV45AFZZ.             " User-forms
    You would need to get access key from SAP before going ahead with User Exits.
    Hope the above information will help you in meeting your requirement..
    Regards,
    Abhisek.

  • I am trying to take a picture of a web page and paste on a one drive powerpoint. I tryed pressing the print screen button, and pasting. But it is giving me message saying that my browser can not fine the clipboard, and I need to use the keyboard shortcuts

    I need to take a picture of a web page, insert it onto a powerpoint online, and crop the picture. I am pressing the print screen button, and right cliking paste. But I am getting the warning message saying that my browser can not use the clipboard, and I am unsure of how to take a picture, then paste it, and crop it all on to a power point.

    http://portableapps.com/apps/internet/firefox_portable/localization#legacy36

  • When I put a lost lock on my iPad will it still show notifications and message previews on the Home Screen?

    When I put a lost lock on my iPad will it still show notifications and message previews on the Home Screen?

    What format are these movies in?
    From this article: http://support.apple.com/kb/HT2729
    What video content works with iTunes and mobile devices?
    iTunes:
    Video content purchased from the iTunes Store.
    QuickTime and MPEG-4 movie files that end in ".mov", ".m4v", or ".mp4" and are playable in QuickTime Player.
    Video podcasts.
    iTunes Digital Copies.
    iTunes Store Movie Rentals (Requires iTunes 9 or later).
    B-rock

  • When playing music from Ipod in my car, music suddenly stops and message appears to restore in iTunes.  After a few minutes, it starts to play again.  I hear a click and the apple logo shows on the screen.  Any ideas??

    When playing music from Ipod in my car, music suddenly stops and message appears to restore in iTunes.  After a few minutes, it starts to play again.  I hear a click and the apple logo shows on the screen.  Any ideas??

    You may need to do a Restore in iTunes.
    Clicking sounds from an iPod that has a hard drive is probably not a good thing.  It is possible that your iPod's hard drive is becoming unreliable.

  • When I open the settings and messages of the iPhone 4s I get stuck in a white screen, what should I do? the keyboard to open there is minute, I can not open the settings in any way.

    when I open the settings and messages of the iPhone 4s I get stuck in a white screen, what should I do? the keyboard to open there is minute, I can not open the settings in any way.

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray BEFORE doing the reset.

  • Screen freezes and popup message says I need to do a shutdown and then restart.  It does it sometimes 2 times a day. Im new to apple and need help.

    My screen freezes and popup message says I need to do a shutdown and then restart.  It does it sometimes 2 times a day. Im new to apple and need help.

    Bad or incompatible RAM is, more often then not, the cause of most Kernel Panics. It could also just need to be reset.
    Here's the most used site for Resolving Kernel Panics. Please do all the steps in order, even if you don't think you need to do a certain step.
    Here is a great MacFixIt article.
     Good Luck!
    DALE

  • Not used my G5 Powermac (late 2004) for ages. Only boots in with Installation disk, but colour dots on white screen and message comes up to reboot machine. Nothing happens.

    Not used my G5 Powermac (late 2004) for  about 2 years. Was going to set it up for the lads to do school work.
    However it only boots in with Installation disk, but colour dots on white screen and message comes up to reboot machine. However nothing happens apart from me keep trying. Also the numerous fans get louder and louder and louder.....
    Any ideas folks

    Can you please provide details on the exact model?
    For a start, the PRAM battery is likely dead.  PRAM tells the computer which drive to start with, other basic information.  Still, you can usually get the computer to start, though bad PRAM is unpredictable and could be stopping that.
    Some computer models use software to control cooling fans.  If there's no software commands they automatically go into high speed to prevent overheating.  Your software obviously isn't loading, so runaway fans.

  • Screen dims and multi-language "restart" message appears

    Currently, every time Safari is used, the entire screen dims and a multi-language (German, Chinese, etc.) message comes on the screen saying that I must physically power down my machine and restart. No error message is given, nor are any other options allowed, as the keyboard and mouse are rendered useless.
    I have rebooted the machine several times, including powering down the cable modem, but the problem persists.
    This problem has occurred in the past, but seemed to clear itself, only to reoccur starting yesterday (23 Sep 05). I can't shake the feeling that this problem is more in the OS X arena than in Safari's, but testing does not seem to bear out my feelings - all other installed applications appear to run properly and this phenomenon of screen dimming with forced power down and restart does not occur with other applications.
    Any thoughts? Thanks! Bob Meyer.

    I suggest the following:
    Repair the Hard Drive and Permissions - Mavericks, Lion/Mountain Lion
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu. Select Restart from the Apple menu.
    If you continue to have the problem, then reinstall the OS X Mavericks 10.9.2 Update (Combo) updater.

  • How to number and message screening in nokia 5630?

    hi
    can anyone tell me, how to use the number and message screening in nokia 5630. it is a mobile with s60 platform and has number and message screening mentioned as its built in specification. i cant figure it out how? 

    Hi Len,
    actually I thought about highlighting a word, phrase, or passage, holding it with the mouse, and then shifting it around within the text to the desired place, just as I used to do when I owned a PC. Does this work with Mac as well?
    Frank

  • HT203254 Without any indication of a problem my MBP-15" screen diplayed a message saying closing down and began flashing colored screens and screens with gray vertical bars.

    Without any indication of a problem my MBP-15" screen diplayed a message saying closing down and began flashing colored screens and screens with gray vertical bars.  I had to power foo to stop it.  It has happened twice

    Welcome to the Apple Support Communities
    The graphic card is damaged. Take your computer to an Apple Store

  • Was skiing with a lifeproof on and my phone did not get wet. On the ride back my phone was struggling to send/receive messages and had trouble opening apps. The screen froze and I hit the sleep button; since then, it has not turned on. A

    Was skiing with a lifeproof on and my phone did not get wet. On the ride back my phone was struggling to send/receive messages and had trouble opening apps. The screen froze and I hit the sleep button; since then, it has not turned on. Any suggestions on what to do?

    It probably got too cold and shut down. Warm it to room temperature, then hold the HOME and SLEEP buttons at the same time until an Apple logo appears.

Maybe you are looking for