Screens and Userexits

Hello all,
I am having a standard transaction with a header details and Item details screen. Now I want to add some fields to the header and item details screens.
How to figure out which screen and userexit to use for this purpose. Is there any standard way of figuring them out.
Please suggest and let me know if anyone needs more info.
Thanks,

Checkout
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.sap-basis-abap.com/abap/how-to-find-a-screen-exit-in-a-given-sap-standard-t-code.htm
<u><b>FIND USER EXIT</b></u>
REPORT Y_USER_EXITS NO STANDARD PAGE HEADING.
*&  Enter the transaction code that you want to search through in order
*&  to find which Standard SAP User Exits exists.
*& Tables
TABLES : tstc,     "SAP Transaction Codes
         tadir,    "Directory of Repository Objects
         modsapt,  "SAP Enhancements - Short Texts
         modact,   "Modifications
         trdir,    "System table TRDIR
         tfdir,    "Function Module
         enlfdir,  "Additional Attributes for Function Modules
         tstct.    "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
Validate Transaction Code
  SELECT SINGLE * FROM tstc
    WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
  IF sy-subrc EQ 0.
    SELECT SINGLE * FROM tadir
       WHERE pgmid    = 'R3TR'
         AND object   = 'PROG'
         AND obj_name = tstc-pgmna.
    MOVE : tadir-devclass TO v_devclass.
    IF sy-subrc NE 0.
      SELECT SINGLE * FROM trdir
         WHERE name = tstc-pgmna.
      IF trdir-subc EQ 'F'.
        SELECT SINGLE * FROM tfdir
          WHERE pname = tstc-pgmna.
        SELECT SINGLE * FROM enlfdir
          WHERE funcname = tfdir-funcname.
        SELECT SINGLE * FROM tadir
          WHERE pgmid    = 'R3TR'
            AND object   = 'FUGR'
            AND obj_name = enlfdir-area.
        MOVE : tadir-devclass TO v_devclass.
      ENDIF.
    ENDIF.
Find SAP Modifactions
    SELECT * FROM tadir
      INTO TABLE jtab
      WHERE pgmid    = 'R3TR'
        AND object   = 'SMOD'
        AND devclass = v_devclass.
    SELECT SINGLE * FROM tstct
      WHERE sprsl EQ sy-langu
        AND tcode EQ p_tcode.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    SKIP.
    IF NOT jtab[] IS INITIAL.
      WRITE:/(95) sy-uline.
      FORMAT COLOR COL_HEADING INTENSIFIED ON.
      WRITE:/1 sy-vline,
      2 'Exit Name',
      21 sy-vline ,
      22 'Description',
      95 sy-vline.
      WRITE:/(95) sy-uline.
      LOOP AT jtab.
        SELECT SINGLE * FROM modsapt
        WHERE sprsl = sy-langu AND
        name = jtab-obj_name.
        FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
        WRITE:/1 sy-vline,
        2 jtab-obj_name HOTSPOT ON,
        21 sy-vline ,
        22 modsapt-modtext,
        95 sy-vline.
      ENDLOOP.
      WRITE:/(95) sy-uline.
      DESCRIBE TABLE jtab.
      SKIP.
      FORMAT COLOR COL_TOTAL INTENSIFIED ON.
      WRITE:/ 'No of Exits:' , sy-tfill.
    ELSE.
      FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
      WRITE:/(95) 'No User Exit exists'.
    ENDIF.
  ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(95) 'Transaction Code Does Not Exist'.
  ENDIF.
Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
  GET CURSOR FIELD field1.
  CHECK field1(4) EQ 'JTAB'.
  SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
  CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
Thanks
Saquib
Message was edited by: Saquib Khan

Similar Messages

  • Help! When I select "Phone" it tries to open and gives me a white screen and closes. I cannot view my missed calls or voicemails.

    If anyone knows anything about this...
    When I select "Phone" on my home screen the iPhone attempts to open it, brings up a white screen and then will shut back down. I have 8 missed calls or voicemails yesterday and I couldn't check any of them. Does this happen to anyone else?
    Also, when I receive a call and I answer it does not give me the ability to end call or any of my options (sources, keypad,etc.) during the call.
    Basically, I can't do anything with my contacts, favorites, missed calls or voicemails.
    Can someone please help?

    I have tried that multiple times. I have also made sure that I have the latest updates. Would haveing 27,000+ contacts have anything to do with it?
    Sometimes it works and sometimes it doesn't

  • My safari is not working. Every time i click on it says to reopen or dont reopen. i press reopen i gives me this long screen and it says reopen or press okay. when i press ok it closes the box and doesnt open. when i press reopen the long screen stay

    . Every time i click on it says to reopen or dont reopen. i press reopen i gives me this long screen and it says reopen or press okay. when i press ok it closes the box and doesnt open. when i press reopen the long screen and stays like that.

    If Safari crashes on launch and you don't have another web browser, you should be able to launch Safari by starting up in safe mode.
    You may have installed the "Genieo" or "InstallMac" ad-injection malware. Follow the instructions on this Apple Support page to remove it.
    Back up all data before making any changes.
    Besides the files listed in the linked support article, you may also need to remove this file in the same way:
    ~/Library/LaunchAgents/com.genieo.completer.ltvbit.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those you find, remove them as well.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those.
    After removing the malware, remember to reset your home page in all the web browsers affected, if it was changed.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, then you may have one of the other kinds of adware covered by the support article. Follow the rest of the instructions in the article.
    Make sure you don't repeat the mistake that led you to install the malware. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • My iPhone would just randomly give me a blue screen and then restart--did that a bunch of times between Tuesday and last night. As of last night, it WILL NOT come back on. iTunes says it's in recovery mode....what does all of this mean???

    Tuesday night I was texting a friend and when I went to open her message, my screen went blue and restarted. I just wrote it off as weird and went on about my business. Later that night, I tried to turn on my phone and it would not turn on. I plugged it up, held down the power button, and pressed the home button all numerous times. I looked online and it said to do a "hard reset" by holding down the power and home button at the same time--my phone then came on. Throughout Wednesday, it would give me a blue screen and restart--nothing major just really annoying. I took it to the local Verizon store where I bought the phone from and he said that it was some type of hardware defect and I was still under my year warranty so I could get a new one for free--the free phone won't be here until tomorrow, Saturday. I took it home and it didn't give me any trouble for a couple of hours. The next day it was cooperating and then I left town for a little while and it acted up (blue screen and then restarting) a few times. When I got home, it acted up again and so I restarted the phone and it was working fine. A few minutes later, I tried to check my messages and the phone was off again. No matter what I do, my phone will not come back to life. It had at least 45% battery last time I looked at it. I decided to plug the phone up to my computer and see what it did--my computer recognizes that there is a phone hooked to it and it says that it's in "recovery mode". It also said that if I'm having issues with my phone, that I need to reset the phone via iTunes. I guess the questions that arise are
    1. Why is my phone doing this?
    2. If I reset my phone, will it go back to working again? I ask that because I don't want Verizon to charge me $300 when they send me the replacement phone and I won't need it (assuming that the phone decides to work once it's been reset).
    3. What type of hardware defect is this that is causing this issue, not only with my iPhone 5S but others as well?
    4. Shouldn't people be notifying Apple and letting them know that they need to fix this issue?
    5. Should I report this issue to Apple even though I didn't buy the phone directly from them, but through Verizon?
    Any help that anyone could give me would be greatly appreciated! This whole situation has me stressed out and seriously confused.

    Hi, beth.lau.gr.
    Thank you for visiting Apple Support Communities.  
    I understand you have been experiencing issues with your iPhone restarting and showing you a blue screen.  I wont be able to give you an exact answer as to why this is happening.  However, this is the most relevant troubleshooting article for this issue.  This article also provides options to reach out to us via phone for additional assistance.  
    If your iOS device restarts, displays the Apple logo, or powers off while you're using it
    http://support.apple.com/en-us/HT203899
    Cheers, 
    Jason H.  

  • My ipod touch is stuch on connect to itunes screen and once in itunes wont restore or let me back into my ipod. What do i do?

    My ipod touch 4th gen was given to me by a friend. It worked fine until it got the recent update ios6. when i went to install it gave me a black screen that had the connect to itunes symbol.I plugged it in and it instantly told me to restore my ipod. All i want to do is be able to use my ipod again so i said yes. Half way through each time it tells me there  is an error something is not connected or timed out and it stops.I have tried holding down home/sleep button and rebooting but each time it brings me strait back to plug into itunes screen and does not give me slide to shut off option. I have tried plugging it into a different computer (my home and my lap top) i have plugged it into the wall. i have done everything i have seen imaginable.I tried calling apple one guy said he'd help even though it wasnt under warrenty but had to call me back and (surprise) he never did and the second before he would connect me to help said i needed to pay 20 bucks. I dont have the money to do phone service and the genius bar is an hour drive away. Is there anything i can try that i havent yet? Or a way to completely shut it down and turn it on like brand new out of the box? Im really stressing out over this because ive never had to deal with this before. Please help!!

    Temporarily disable your firewall and antivirus software and try again...
    See here for Connection Issues
    http://support.apple.com/kb/TS1379
    From Here
    http://www.apple.com/support/itunes/troubleshooting/

  • A movie I bought a while ago will no longer play, instead it just shows a black screen and no audio. All of the other movies in my library play fine. Any ideas as to whats going on or how to fix it? Thanks for any help.

    A movie I bought a while ago will no longer play, instead it just shows a black screen and no audio. All of the other movies in my library play fine. Any ideas as to whats going on or how to fix it? Thanks for any help.

    Hi 22chill,
    I recommend that we delete and re-download the movie from your purchase history:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Thanks,
    Matt M.

  • Recently loaded Lion on my laptop and now my computer crashes often. Black screen and keyboard lights up. Any ideas on what's wrong and how to fix this?

    Recently loaded Lion on my laptop and now my computer crashes often. Black screen and keyboard lights up. Any ideas on what's wrong and how to fix this?

    Everytime this happens Ihave to power down and restart! Any ideas would be appreciated!

  • Apps on iPhone 4s will not show up on my screen and when viewed in the app store the option to open is there but, nothing happens?

    I've bought several apps before that work fine. All of a sudden I try to download yelp and it says it is works then it's not on the screen and I can't open it in the downloads section. Any ideas on what to do???

    Hi there anaqeed,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    -Griff W.

  • Frozen on lock screen and reboots

    my iphone 3gs is frozen on the lock screen and then reboots over and over again. Any suggestions? I have tried to restore it and it fails

    Try Recovery Mode... http://support.apple.com/kb/HT1808

  • Screen problems - black screen and lock-up (plus HDMI issues)

    Hi, I'm not sure if these are related to the same fundamental issue, but they are both serious problems that need resolution.
    I have a new mid-2012 MBPretina.  I am on all the latest updates (10.8.2).
    The first problem is the most recent, and the most serious problem.  Since I updated the Java a couple of days ago I've been experiencing random black screens and lock-ups.  Essentially, what happens is that sometimes when I perform an action (opening an app, clicking a link on a webpage, performing other kinds of in-app actions, etc.) the computer screen will go black.  About half the time I can, through my own memory, try keyboard combinations to quit or force quit the most recently used app (the one where the action was just performed), and I will get some glimpse of the underlying apps, while the menubar and other areas will remain black until I move a window on top of the black space.  Sometimes no key combinations work and I am forced to perform a hard restart with the power button.  This is a serious issue, obviously, since I will lose current work/progress in my apps.  I'm not sure if this is because of the new Java update, or has to do with something else, but it started happening shortly thereafter, over the last 2 days.  I work most of my waking day on my laptop, and this "black screen of death" has happened about 5 or 6 times a day.
    The second problem I have been experiencing since I starting using my MBPr with external HDMI displays in August/September.  The problem is that I will plug the MBPr into an HDMI display, the screen will temporaliy go black, and then bring me to the login screen (as if it's crashing, albeit softly).  This happens about 1 out of 4 times nowadays.
    How can I fix these problems, especially the first?

    UPDATE:
    Clearly there's a problem because a third of the way through a clean reinstallation from scratch it black screened again. Hmmmm.
    Now this is not good. Problem is I can't rule out potential updates from Apple that might have caused this either.
    The search for solutions continues.

  • What is the diffrence between an OEM screen and a Non-Oem screen?

    i wanted to buy a new screen for my ipod because my brother cracked it. so i was wondering wat was the difrence between an OEM and a non-OEM screen? like is there a diffrence on the pixels?

    babowa wrote:
    Really.
    I believe the OP was concerned about some fly-by-night outfit who makes a ten cent piece of replacement screen and markets it as "compatible with xxxx". The lack of quality and reduction in resolution/pixels could be expected there vs. an OEM screen where one expects the same quality as the original equipment had.
    Yeah, that's a given.  The point is, OEM can be used two different ways.  One way is to say the parts are Apple branded.  Toshiba might make the part following specifications supplied by Apple, and then the part gets a label that says Apple.  In this case Apple is the OEM.
    The other way is to say that the OEM is the company that makes the part for Apple.  In this second case, the factory could make a run of parts for the 'aftermarket' and use the term "OEM" in their add copy and not be guilty of fraud.
    However, just because a Chinese vendor says their parts are "OEM," does not make it so.  In fact, I would think that only Foxconn and its suppliers could make that claim, and I seriously doubt Foxconn is dumping parts on eBay....
    HINT:  China is notorious for producing counterfeit goods. 

  • Some times when I press the home button to read my finger the screen becomes black and it shows the Apple logo, this take a few seconds to get back the screen and this has been happening even 3 or 4 times in a row!   What should I do?

    Some times when I press the home button to read my finger the screen becomes black and it shows the Apple logo, this take a few seconds to get back the screen and this has been happening even 3 or 4 times in a row!
    What should I do?

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • FIX: IPad turns on and off in a loop during charging, boots to home screen and reboots

    Ok, after having my ipad 2 3rd Generation for about a year, its bombed out on me,playing on it until battery drained. Didn’t think anything of it, plugged into charge thinking it would be charged by the morning. This didn’t happen.
    It was stuck on the apple sign, booted to home screen and switched off again due to low battery. Continued on this loop for the whole day……
    I searched the internet and it seemed all doom and gloom that I would need to by another one. Then I stumbled upon a forum where the advice so far has worked for me.
    The reason why it gets stuck in a loop is because the IPad was not shut down manually, so therefore keeps trying to boot up soon as it has some battery power. Problem is, its gone beyond a point and now and there isn’t enough battery life to boot to main or home screen after apple logo.
    The remedy is quiet simple, follow these steps to get the ipad to home screen to power it down so it has sufficient time to charge up and boot normally and get off the endless loop.
    Plug into wall socket to get it charging.
    Wait until the apple logo appears and wants to boot up.
    QUICKLY hold down home button and reset/ sleep button at the same time until it reboots.
    Release buttons now. should now power down and reboot
    Repeat step 3 at least 30 to 40 times which is about 10 minutes in duration everytime you see the logo appear on the screen.
    Now Let IPad boot up fully, should see home screen with about 2% battery life
    QUICKLY hit the rest/ sleep button down for about 2 to 5 seconds.
    Swipe the screen to when slider appears to switch off the ipad.
    This will now power down the IPad which now will not reboot by itself so it can now charge without any interruption’s.
    Allow battery to charge for a least an hour or two without trying to put it on.
    Switch the IPad on
    You should now have about 10 to 20% battery Life
    Power it down again by holding the reset/ Sleep button down again and swipe the screen to power down, let it charge fully to 100% now which will take few hours
    Enjoy your IPad again
    Lesson learnt. When your battery power is low, dont wait for it drain completely, rather power the pad down manually and let it charge when there is only about 2 to 4% battery life left.
    Hope this guide helps people with the same problem as I had. Took me about 2 days of research and searching until I found a solution that worked. Hopefully this will assist anyone going through the same pain, and possibly not have to buy another one which seems to be the case when people take the pad to an istore with the same issue.
    Cheers,

    I tried to restore using recovery mode it give error 4013, also tried the same with iMac with my friend again error.
    Let me give little more details:
    1. After iOS 8.2 upgrade, 2-3 days often 3-4 times a day it used to restart again and again then will get Home screen.
    2. Also at times it happened, it boots again and again left the device as it is then it comes to Home screen.
    3. Lastly it did the same behavior but it did not boot up, but keep booting again and again apple logo is shown then restart
    4. Tried to get into recovery mode, windows PC error 4013, now in the recovery mode.
    My Battery was in good condition, when it happened it was ~80% now may be very less did not charge until now.
    I read somewhere in the forum keep re-starting manually again and again, someone said since it did not shutdown properly there is a problem, please help.
    The device is 1.2 yrs old ONLY.
    Best regards
    Prabu

  • IPhone black screen does not show anything, but I can hear that the device works. I hear the lock open the screen and hear the iPod but the screen remains black

    IPhone black screen does not show anything, but I can hear that the device works. I hear the lock open the screen and hear the iPod but the screen remains black!!

    It's happened to me before as well. Try holding both lock(top right) and home buttons simultaneously until u see a slight flash of wight then just reboot it normally. If that doesn't work try restoring your device from itunes

  • Adobe reader xi i am running 2 display screens and when i have a file open and go to print the print page opens on my second screen.  How can I get adobe reader to just display on one screen?

    adobe reader xi i am running 2 display screens and when i have a file open and go to print the print page opens on my second screen.  How can I get adobe reader to just display on one screen?
    I want the capability of adobe reader to just run on one screen.

    I had the same problem.
    Try this.
    https://igppwiki.ucsd.edu/groups/publichelpwiki/wiki/a1538/Howto_Disable_Acrobat _as_the_Safari_PDF_Viewer.html

Maybe you are looking for

  • IMac i7 how can i calibrate my monitor/colors before taking to photo printer

    is there anything in my applications that calibrates the colors on my monitor so what i see is what i get at the photo printer.  have Final cut/DVDstudio pkg, aperture, photoshop.  i sounds like i need a 3rd party software application?  any brand sug

  • Iphone 4 will not connect to hotmail

    Please help. I recently got an iphone, set up hotmail on it and was receiving all ok. For the past week no more mail able to be sent or received, I just seem to permanatly have the checking for mail timer going. Then eventually a message box appears

  • Getting Different Colours with RAW, in Photoshop

    Hi I have a Nikon D80 and naturally i shoot in RAW. I spend alot of my time out on location, using filters and custom settings, ensuring i get the colours and light levels that i want because i like to keep post production to a minimum. When i transf

  • Can i use my iPhone 4 in Canada? I bought it in Germany .

    Can i use my iPhone 4 in Canada? I bought it in Germany .

  • Erase disk

    I have an intel Xserve running 10.5.4 server and an EonStor raid array connected to the Xserve via SCSI. I have configured the EonStor as a 2.3TB raid array using the Infortrend Raidwatch software and mapped the LUNs accordingly. The array shows up i