Show Tcode User exit

Source: Internet
Author: User

Selection-screen SKIP.Selection-screen END  of BLOCKA01.*&---------------------------------------------------------------------**& Start of main program*&---------------------------------------------------------------------*start-of-selection.*Validate Transaction Code  SELECT  Single* fromTSTCWHERETcodeEQP_tcode.*Find Repository Objects for transaction code  IFSy-subrcEQ 0. SELECT  Single* fromTadirWHEREPgmid ='r3tr'          and Object='PROG'          andObj_name = tstc-Pgmna. MOVE: Tadir-devclass toV_devclass. IFSy-subrcNE 0. SELECT  Single* fromTrdirWHEREName = tstc-Pgmna. IFTrdir-subcEQ 'F'. SELECT  Single* fromTfdirWHEREPName = tstc-Pgmna. SELECT  Single* fromEnlfdirWHEREFuncName = tfdir-funcname. SELECT  Single* fromTadirWHEREPgmid ='r3tr'             and Object='Fugr'             andObj_name = enlfdir-Area . MOVE: Tadir-devclass toV_devclass. ENDIF. ENDIF.*Find SAP modifactions    SELECT* fromTadir into TABLEJtabWHEREPgmid ='r3tr'         and Object='Smod'         andDevclass =V_devclass. SELECT  Single* fromTSTCTWHERESprslEQsy-Langu andTcodeEQP_tcode. FORMAT COLORCol_positiveintensified OFF. WRITE:/( +)'Transaction Code-',     -( -) P_tcode, $( -) tstct-Ttext. SKIP. IF  notJtab[] is INITIAL. WRITE:/( the) sy-Uline. FORMAT COLORCol_headingintensified  on. WRITE:/1sy-VLine,2 'Exit Name',       +sy-VLine, A 'Description',       thesy-VLine. WRITE:/( the) sy-Uline. LOOP  atJtab. SELECT  Single* frommodsaptWHERESPRSL = Sy-langu andname= jtab-Obj_name. FORMAT COLORCol_normalintensified OFF. WRITE:/1sy-VLine,2Jtab-obj_name HOTSPOT on,         +sy-VLine, Amodsapt-Modtext, thesy-VLine. Endloop. WRITE:/( the) sy-Uline. DESCRIBE TABLEJtab. SKIP. FORMAT COLORCol_totalintensified  on. WRITE:/'No of Exits:', sy-Tfill. ELSE. FORMAT COLORCol_negativeintensified  on. WRITE:/( the)'No User Exit exists'. ENDIF. ELSE. FORMAT COLORCol_negativeintensified  on. WRITE:/( the)'Transaction Code Does not Exist'. ENDIF.*Take the user to Smod for the Exit, which was selected. at  Line-SELECTION. GET CURSOR FIELDfield1. CHECKField1 (4)EQ 'Jtab'. SET PARAMETER ID 'MON' FIELDsy-lisel+1(Ten). Pager TRANSACTION 'Smod'  and SKIP  First  Screen.

Show Tcode User exit

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.