Find the package of a tcd / program, and then find enhancements

how to find package for a tcode
like for me21n is ME
i want find the package for the program of any tcode and so that i can find the enhancement with the help of the package in smod
Edited by: Julius Bussche on Feb 10, 2009 4:26 PM
Please use meaningfull subject titles

Hi Rahul,
This code might be helpfull:
report zedgar_user_exits line-size 254.                     "100.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir,tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
data: l_prog like rs38l-include.
parameters: p_tcode like tstc-tcode. " OBLIGATORY.
parameters: p_actv as checkbox default 'X',
            p_sum as checkbox.
start-of-selection.
  select single * from tstc where tcode eq p_tcode.
  if sy-subrc eq 0 or p_tcode is initial.
    if not p_tcode is initial.
      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 eq enlfdir-area.
          move : tadir-devclass to v_devclass.
        endif.
      endif.
      select * from tadir into table jtab
                        where pgmid = 'R3TR'
                        and object = 'SMOD'
                        and devclass = v_devclass.
    else.
*      SELECT * FROM TADIR INTO TABLE JTAB
**                      WHERE pgmid = 'R3TR'
*                       WHERE OBJECT = 'SMOD'.
**                      AND devclass = v_devclass.
      select * from modsapt
              where sprsl = sy-langu.
        jtab-obj_name = modsapt-name.
        append jtab.
      endselect.
    endif.
    select single * from tstct where sprsl eq sy-langu and
                               tcode eq p_tcode.
    format color col_positive intensified off.
    if p_sum is initial.
      write:  /(19) 'Transaction Code - ', 20(20) p_tcode,
             45(50) tstct-ttext.
      skip.
    endif.
    if not jtab[] is initial.
      if p_sum 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.
      endif.
      loop at jtab.
        select single * from modsapt
                where sprsl = sy-langu and
                name = jtab-obj_name.
        format color col_normal intensified off.
        if p_actv is initial.
          write:/1 sy-vline, 2 jtab-obj_name hotspot on,
                      21 sy-vline , 22 modsapt-modtext, 95 sy-vline.
        endif.
        tables: modsap.
        data: l_1.
        clear l_1.
        select * from modsap where name = jtab-obj_name
                               and typ = 'E'.
          if p_actv is initial.
            select single * from tfdir where funcname = modsap-member.
          else.
            select single * from tfdir where funcname = modsap-member
                                         and mand = 'C'.
          endif.
          if sy-subrc eq 0.
            if l_1 is initial.
              l_1 = 'X'.
              if p_sum is initial.
                if not p_actv is initial.
                  write: /1 sy-vline, 2 jtab-obj_name hotspot on,
                         21 sy-vline , 22 modsapt-modtext, 95 sy-vline.
                  clear l_prog.
                  hide l_prog.
                endif.
              endif.
            endif.
            data: l_foi like modsap-member.
            l_prog = tfdir-pname+4.
            concatenate 'L' l_prog 'U' tfdir-include into l_prog.
            data: tab_prog type table of d022s with header line.
            clear tab_prog[].
            data: tab_prog2 type table of d022s with header line.
            clear tab_prog2[].
            call function 'RFC_READ_REPORT'
                 exporting
                      program = l_prog
                 tables
                      qtab    = tab_prog
                 exceptions
                      others  = 1.
            clear l_prog.
            loop at tab_prog.
              if tab_prog-line cp '*INCLUDE*'.
                replace 'INCLUDE' with '' into tab_prog-line.
                replace '.' with '' into tab_prog-line.
                shift tab_prog-line left deleting leading space.
                write tab_prog-line to l_prog.
                call function 'RFC_READ_REPORT'
                     exporting
                          program = l_prog
                     tables
                          qtab    = tab_prog2
                     exceptions
                          others  = 1.
                loop at tab_prog2.
                  if tab_prog2-line eq space
                     or tab_prog2-line cp '#**'.
                    delete tab_prog2.
                  endif.
                endloop.
                if not tab_prog2[] is initial.
                  write: /  sy-vline,
                         21 sy-vline,
                            modsap-member,
                         50 l_prog hotspot on intensified,
                         95 sy-vline.
                  hide l_prog.
                  tables: tftit.
                  clear tftit.
                  select single * from tftit where spras = sy-langu
                                        and funcname = modsap-member.
                  if sy-subrc ne 0.
                    select single * from tftit where spras = 'EN'
                                         and funcname = modsap-member.
                    if sy-subrc ne 0.
                      select single * from tftit where spras = 'DE'
                                       and funcname = modsap-member.
                    endif.
                  endif.
                  write: tftit-stext.
                  l_foi = modsap-member.
                endif.
                exit.
              endif.
            endloop.
            if l_foi ne modsap-member and p_actv is initial.
              l_foi = modsap-member.
              write: /  sy-vline,
                     21 sy-vline,
                        modsap-member color col_negative,
                     50 l_prog hotspot on intensified,
                     95 sy-vline.
              hide l_prog.
              clear tftit.
              select single * from tftit where spras = sy-langu
                                    and funcname = modsap-member.
              if sy-subrc ne 0.
                select single * from tftit where spras = 'EN'
                                     and funcname = modsap-member.
                if sy-subrc ne 0.
                  select single * from tftit where spras = 'DE'
                                   and funcname = modsap-member.
                endif.
              endif.
              write: tftit-stext color col_negative.
            endif.
          endif.
        endselect.
      endloop.
      if p_sum is initial.
        write:/(95) sy-uline.
        describe table jtab.
        skip.
*        FORMAT COLOR COL_TOTAL INTENSIFIED ON.
*        WRITE:/ 'No of Exits:' , SY-TFILL.
      endif.
    else.
*      IF P_SUM IS INITIAL.
*        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
*        WRITE:/(95) 'No User Exit exists'.
*      ENDIF.
    endif.
*  ELSE.
*  ENDSELECT.
*    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
*    WRITE:/(95) 'Transaction Code Does Not Exist'.
  endif.
at line-selection.
  get cursor field field1.
  if field1(4) eq 'JTAB' and p_sum is initial.
    set parameter id 'MON' field sy-lisel+1(10).
    call transaction 'SMOD' and skip first screen.
  else.
    if not l_prog is initial.
      set parameter id 'RID' field l_prog.
      data begin of bdcdata occurs 100.
              include structure bdcdata.
      data end of bdcdata.
      data begin of itab occurs 10.
              include structure bdcmsgcoll.
      data end of itab.
      clear: bdcdata[], bdcdata.
      clear: bdcdata.
      bdcdata-program  = 'SAPMS38E'.
      bdcdata-dynpro   = '0100'.
      bdcdata-dynbegin = 'X'.
      append bdcdata.
      clear: bdcdata.
      bdcdata-fnam     = 'RS38M-PROGRAMM'.
      bdcdata-fval     = l_prog.
      append bdcdata.
      clear: bdcdata.
      bdcdata-fnam     = 'BDC_OKCODE'.
      bdcdata-fval     = '=SHOP'.
      append bdcdata.
      call transaction 'SE38'  using bdcdata  mode 'E'
                               messages into itab.
    endif.
  endif.
regards,
Edgar

Similar Messages

  • Hi, I am from Mauritius and I can't find my country for the MacBook Bottom Case Replacement Program and hence, can't order the kit. What can I do?

    Hi, I am from Mauritius and I my country is not in the list for the MacBook Bottom Case Replacement Program and hence, can't order the kit.
    What can I do?
    Thank you beforehand.

    There may be an authorized Apple service provider who can handle the matter
    of obtaining a replacement bottom part to the computer in question and also do
    the necessary labor, if your unit qualifies for the program...
    Did you see this section (Apple - Find Locations) and choose your country
    then enter City and Product information to find authorized service provider
    for your Mac portable, as supported by an independent local business?
    There are three categories, not all may be available across your country;
    Sales, Service, and Consulting.
    •Apple - Find Locations - Argentina:
    https://locate.apple.com/ar/es/
    Another selector to try for service & support options appears through this link:
    https://getsupport.apple.com/SASOLocaleAction.action
    The first one above tends to list any authorized retail repair & sales business
    that provides product, service, sales, and repair in the area. With contact info.
    In any event...
    Good luck & happy computing!

  • What are the steps to make it seamless for a customer to use the install program and then use the installed program?

    I wrote an install program (.exe) that is downloaded from a website.  When run, it 1) leads a customer to browse to a directory, and 2) copies files (.exe, .dll, etc.) from a website to that directory.  When I run, the installed program works.
    What are the steps to make it seamless for a customer to use the install program and then use the installed program? 
    bhs67

    This site https://msdn.microsoft.com/en-us/library/vstudio/2kt85ked%28v=vs.110%29.aspx provides a basic description of the Visual Studio Windows Installer. 
    Near the bottom of the page is "You can unlock all the features of InstallShield by paying to upgrade to the full version of InstallShield."  Where do I find info that describes the differences between the "free" and the "full"
    versions?
    bhs67
    Hello,
    The default feature does support the task for your requirement, so there is no need to pay for the other features unless you want to use some feature which is not free.
    In addition, as this thread
    InstallShield LE not available with VS 2012 RTM? shared, even through there is a link to InstallShield LE in the New Project dialog under Deployment solutions, but it belongs to third-party that I would recommend you consider posting this issue
    at the following forum to get supports about InstallShield.
    http://community.flexerasoftware.com/forumdisplay.php?133-InstallShield
    Regards.
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I was using my iphone 4s and then the app started to not work and then my phone blocked and then when i go on home most of my apps disappeared including my settings so i cant restore with out disabling find my iphone on settings

    I was using my iphone 4s and then the app started to not work and then my phone blocked and then when i go on home most of my apps disappeared including my settings so i cant restore with out disabling find my iphone on settings please help me asap thankyou so much

    Log in to icloud.com on a web browser with your Apple ID and disable FMiP there.

  • I've just updated to Lion and aperture 3.4.1. I'm finding the slideshow is coming on automatically and then it crashes. Anyone know how to solve this?

    I've just updated to Lion and aperture 3.4.1. I'm finding the slideshow is coming on automatically and then it crashes. Anyone know how to solve this?

    Try resetting PRAM.
    Reset PRAM.  http://support.apple.com/kb/PH4405
    Best.

  • I want to create an app.  Can you tell me the difference between iOS developer program and the mac developer program?

    I want to create an app.  Can you tell me the difference between iOS developer program and the mac developer program?
    Is the difference the device you're creating your app on, or for?

    iOS Developer Program is only for those who wish to develop iDevice apps. Mac program is for those only developing Mac applications. If you wish to do both, then you need to enroll in both programs.

  • I have Elements 10 and every time I go to open a file in the editor it shows its thinking and then it just shuts down the entire program. I have a big wedding I am working on and lots of other sessions. Please PLEASE help!!!!

    I have Elements 10 and every time I go to open a file in the editor it shows its thinking and then it just shuts down the entire program. I have a big wedding I am working on and lots of other sessions. Please PLEASE help!!!!

    And you are quite persistent, Menu Boy, in offering pernickety and pointless prattle, in response to a "support page" on iPad's buggy Pages App.
    Let's summarise, for those reviewing this threadless thread for app support..
    Mobile pages works reliably for simple docs, especially creating letters and Menus for Microsoft's Kindy canteen (even on special days with nice big pictures).
    When importing more complex docs and/or working with larger creations, it is prone to randomly corrupting files upon re-opening, along similar lines as Word (running on a PC).
    So, Menu Boy, do they let you sneak into classes every now and then? What is the secret to their training? "Say after me, if any I.T. product works just some of the time, that's a job well done, and if something randomly stops working, we call that the user's fault... And if they complain, we call them names."

  • Reboot the iphone to install a program and has been left all the time with the apple on the screen

    reboot the iphone to install a program and has been left all the time with the apple on the screen.
    takes so hours without turning away. I can do?

    Reset your phone , you wont lose anything. Hold the home and off button down until the apple symbol comes up.

  • I saved a file on my mac on Word, but today when I went to review it, it said the "document could not be found" and then asked if i wished to locate the file myself, but when I went to do so it said the same thing again. How do I find this file?

    I saved a file on my mac on Word, but today when I went to review it, it said the "document could not be found" and then asked if i wished to locate the file myself, but when I went to do so it said the same thing again. How do I find this file?

    Let's go out and come in again!
    What version of Word on what Mac running what version of OS X?
    Did you give the file a name? In what location did Word last save a file - because that is where it is likely to be.

  • I used the trial run before but i purchased all the apps for 20.00 a month now. when i download it onto my computer it continues to tell me my trial has expired. i uninstalled the programs and then reinstalled them but it still says "trial expired" any id

    i used the trial run before but i purchased all the apps for 20.00 a month now. when i download it onto my computer it continues to tell me my trial has expired. i uninstalled the programs and then reinstalled them but it still says "trial expired" any ideas on what i can do? i payed already

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • Need library that lets me kill Windows programs and then reopen them.

    I have issues with a certain program crashing in remote locations..cough* VzAcess. I want to create a program that tries to ping a website and if that fails then it will kill the program and then re open the program. Everywhere I look line these three libraries come up:
    import org.javagroup.process.ProcessManager;
    import org.javagroup.process.ProcessManagerHolder;
    import org.javagroup.process.JProcess;
    I cannot find anywhere where to get these. Maybe my google skills have diminished. I don't know. If anybody knows of any good and reliable libraries that let me do these things that would be great. Thanks!

    dothedru22 wrote:
    ... Everywhere I look line these three libraries come up:
    import org.javagroup.process.ProcessManager;
    import org.javagroup.process.ProcessManagerHolder;
    import org.javagroup.process.JProcess;
    I cannot find anywhere where to get these. Not sure they do what you expect.
    jsh seems to be an abandoned project; no activity since 2001/2002.

  • I set up my new computer using the apple ID i always use, and then later migrated all my files from my old mac book to the same new one, but under a different user (same ID). how do i consolidate the two users on my new mac book?

    i set up my new computer using the apple ID i always use, and then later migrated all my files from my old mac book to the same new one, but under a different user (same apple ID). how do i consolidate the two users on my new mac book?

    Well if you use the Finder Go menu to Computer, a window opens up double click on your boot drive and then on Users folder, open the other user folder and open Public and drop your files into DropBox
    When you do this it will copy them and change the permissions and user assigned to it, so log into the other user and place them into your respective normal folders.
    Once you have all your files over and don't need the old user, use System Preferences > Accounts to delete it if you wish, however it's good two Admin accounts on the machine in case something bad happens in the other. Some people for security reasons on use a Standard account for most uses and a emergency Admin account.
    One can still do most Admin things in Standard user.

  • When I try to make a new video, a window comes up that says,"The operation could not be completed," and then under it, it says,"No other information is available about the problem," what is happening and how do I fix it?

    when I try to make a new video, a window comes up that says,"The operation could not be completed," and then under it, it says,"No other information is available about the problem," what is happening and how do I fix it?

    Hi
    And without info - it's near to impossibly to help. Try my general troubleshooting note:
    Troubleshooting note
    When iMovie doesn't work as intended this can be due to a lot of reasons
    iMovie Pref files got corrupted - trash it/they and iMovie makes new and error free one's
    problem in iMovie Cache folder - trash Cache.mov and Cache.plist
    Creating a new User-Account and log into this
    This forces iMovie to create all pref. and cache files new and error free
    Event or Project got corrupted - try to make a copy and repair
    a Codec is used that doesn't work (even though iMovie and/or iDVD tries to / they fail in the end)
    version miss match of QuickTime Player / iMovie / iDVD
    preferences are wrong - Repair Preferences
    other hard disk problem - Repair Hard Disk (Disk Util tool - but start Mac from ext HD or DVD)
    External hard disks - MUST BE - Mac OS Extended (hfs) formatted to work with Video
    ( UNIX/DOS/FAT32/Mac OS Exchange - works for most other things - but not for Video )
    USB-flash-memories - usually do not work
    Net-work connected hard disks - usually do not work (most often not fast enough and WRONGLY FORMATTES as DOS etc)
    iPhoto Library got problems - let iPhoto select another one or repair it. Re-build this first then try to re-start iMovie. When iMovie starts-up it first look trough this iPhoto library and if faulty it all Halt’s.
    This You do by
    First -  close iPhoto
    Secondly - on start up of iPhoto - Keep {cmd and alt-keys down}
    Thirdly - now select all five options presented
    THEN - WAIT a long long time (>20 hours are not strange)
    free space on Start-Up (Mac OS) hard disk to low (<1Gb) - I never go under 25Gb free space for SD-Video (4-5 times more for HD)
    external devices interferes - turn off Mac - disconnect all of them and - Start up again and re-try
    GarageBand fix - start GB - play a few notes - Close it again and now try iMovie
    Screen must be set to million-colors
    Third-party plug-ins doesn't work OK
    Run "Cache Out X", clear out all caches and restarts the Mac
    Let Your Mac be turned on during one night. At about midnight there is a set of maintenance programs that runs and tidying up. This might help
    Turn off Your Mac - and disconnect Mains - for about 20-30 minutes - at least this resets the FireWire port.
    In QuickTime - DivX, 3ivx codec, Flip4Mac, Perian etc - might be problematic - temporarily move them out and re-try
    (I deleted the file "3ivxVideoCodec.component" located in Mac HD/Library/Quicktime and this resolved my issue.)
    buenrodri wrote
    I solved the problem by removing the file: 3ivxVideoCodec.component. after that, up-dated iMovie runs ok.
    Last resort: Trash all of iMovie and re-install it
    Yours Bengt W

  • In the Firefox browser, when i click button in ADF page, then popup  the OAF page in iframe tag,and then when i  click the PPR bean in  OAF page, then Firefox  browser reload to ADF page. This is not the right response,browser should not reload the ADF pa

    In the Firefox browser, when i click button in ADF page, then popup  the OAF page in iframe tag,and then when i  click the PPR bean in  OAF page, then Firefox  browser reload to ADF page. This is not the right response,browser should not reload the ADF page.It should stays in OAF page or goto another OAF page. and in other browser such ad IE,We get the right response.

    hello, normally such issues are caused by a firewall/security software which doesn't recognize & therefore blocks new firefox versions. please remove all program rules for firefox from your firewall and let it detect the new version of the browser again.
    [[Fix problems connecting to websites after updating Firefox]]

  • How to catch the error occurred in Integration Process, and then save it?

    1. how to catch the error occurred in Integration Process, and then save the detailed error message to the file?
    2. there are fault message type for inbound message interface, how to use the fault message type in IR?
    Thanks,
    Michael
    Message was edited by: Spring Tang
    inital
    Message was edited by: Spring Tang
    detailed message output
    Message was edited by: Spring Tang
    fault message type

    Hi Spring,
    If u give an exception step along with your Transformation Step, whenever some error occurs in your message mapping, this exception block wil be triggered.
    You can configure your exception block to do all exception processing that you want. This exception handling is like any other java Exceptio n Handler. You can do anything that you want in your exception handler block on the basis of your requirements.
    <i>If an exception is triggered at runtime, the system first searches for the relevant exception handler in surrounding blocks. If it does not find the correct exception handler, it continues the search in the next block in the block hierarchy.
    When the system finds the correct system handler, it stops all active steps in the block in which the exception handler is defined and then continues processing in the exception handler branch. Once the exception handler has finished processing, the process is continued after the block.
    If the system fails to find an exception handler, it terminates the integration process with an error.</i>
    Regards,
    Bhavesh

Maybe you are looking for