How to Use CMOD and SMOD in SAP using ABAP Code

Hello anyone,
  Please help me How to use CMOD and SMOD in SAP using ABAP code.
Give Me Some Sample Example.
Mail ID: [email protected]
Thanks,
Regards,
S.Muthu,
SAP Developer.

Hi,
User Exits.
http://www.erpgenie.com/sap/abap/code/abap26.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
customer exits
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
Menu Exit.
http://www.sappoint.com/abap/spmp.pdf
http://www.sappoint.com/abap/userexit.pdf
http://www.sapdevelopment.co.uk/enhance/mod_sapmenu.htm
http://www.sapdevelopment.co.uk/enhance/enhancehome.htm
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html

Similar Messages

  • How to Use IDOC and ALE in SAP?

    Hi anybody,
                     I want Use Idoc and ALE in sap ABAP. What is inbound and outbout process of IDOC?
    Please give me sample code for Idoc . and Sample code for ALE.
    anybody Please tell me.
    Thanks
    Regards,
    S.Muthu.
    IT Dept.

    hi,
    Follow the link for step by step ALE/IDOC tutorials.
    http://www.sapmaterial.com/idoc_sample.html
    http://www.****************/Tutorials/ALE/ALEMainPage.htm
    An IDoc is not a process.
    The term IDoc stands for intermediate document. It is simply a data container used to exchange information between any two processes that can understand the syntax and semantics of the data. An IDoc is created as a result of executing an outbound ALE or EDI process. In an inbound ALE or EDI process, an IDoc serves as input to create an application document.
    IDocs are stored in the database.
    In the SAP system, they are stored in database tables. Several utilities are available to display the information contained in an IDoc and present it in different ways. For details, refer to Chapter 11, "Monitoring the Interface."
    Every IDoc has a unique number.
    When an IDoc is generated in the system, a unique number is assigned to it. This number is unique within a client.
    IDocs are independent of the sending and receiving systems. They can be used for SAP-to-SAP and SAP to non-SAP process communication as long as the participating processes can understand the syntax and semantics of the data.
    IDocs are based on EDI standards, ANSI ASC X12 and EDIFACT, but are closer to the EDIFACT standards. The size and format of data elements in an IDoc type are derived from these standards wherever applicable. For example, if a material number is represented by 20 characters in an EDIFACT message, the corresponding data element in the IDoc is also 20 characters. If there is a conflict in data size between standards, the one with greater length is adopted. This approach ensures compatibility with most standards.
    IDocs are independent of the direction of data exchange. An inbound and an outbound process can use an IDoc. For example, the ORDERS01 IDoc is used by the Purchasing module to send a purchase order, and is also used by the Sales and Distribution module to accept a sales order. Using this technique avoids creating redundant IDoc types for the same information.
    IDocs can be viewed in a text editor and do not contain any binary data. Data is stored in character format. When transferred to the operating system, an IDoc is stored in a file in text format and can be viewed using a regular text editor. However, the contents make sense only if you understand the structure and format of the data in that IDoc. In the Appendix, "FAQs, User Exits, and Miscellaneous Resources," you will find an example of an IDoc file.
    Hope this helps, Do reward.
    Edited by: Runal Singh on Mar 5, 2008 6:09 PM

  • What is CMOD and SMOD in BI 7.0

    Hi Experts,
      What is CMOD and SMOD.What is the difference between 2.
      My requirment is to include Virtual Char and Virtual Key figure to calculacte age based on DOB.
      Where do i need to implement the exit...is it in CMOD or SMOD...
    As i some reference docs i found it is SMOD  and in some it is CMOD....
    Please confirm me where do i need to implement code CMOD or SMOD...for Virtual Char
    Version i am using is BI 7.0
    Thanks

    Hello,
    SMOD is for SAP delivered Enhancement
    CMOD is for Customized Enhancement
    You can use SMOD -> Enhancement RSR00002 -> EXIT_SAPMRSRU_001 for Virtual Char and Keyfigures.
    You can also use the BAdI RSR_OLAP_BADI for Virtual Char and keyfigures.
    See this document for [BW Enhancements|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5]
    [Difference of CMOD and SMOD|http://www.sap-img.com/abap/what-is-the-difference-between-smod-and-cmod.htm]
    [How to implement Virtual Characteristics or Virtual key figures |How to implement Virtual Characteristics or Virtual key figures;
    See this document as well
    [Virtual Char and Keyfigures|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20use%20variable%20time%20references%20in%20currency%20conversion]
    [HOWTOIDENTIFYCOMPRESULTS|https://websmp106.sap-ag.de/~sapdownload/011000358700009299362001E/HOWTOIDENTIFYCOMPRESULTS.DOC ]
    Thanks
    Chandran
    Edited by: Chandran Ganesan on Mar 4, 2008 12:26 PM

  • What is the d/w cmod and smod?

    Hi experts,
                         what is the d/w cmod and smod?
    Regards,
    Ramesh.D

    Hi ramesh dondapati  ,
    CMOD is the Project Management of SAP Enhancements (i.e., SMOD Enhancements). SMOD contains the actual enhancements and CMOD is the grouping of those SMOD enhancements. 
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a function module. The code for the function module is written by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module. 
    The naming standard of function modules for function module exits is: 
    EXIT_<program name><3 digit suffix> 
    The call to a functionmodule exit is implemented as: 
    CALL CUSTOMER.-FUNCTION <3 digit suffix> 
    For Example: 
    The program for transaction VA01 Create salesorder is SAPMV45A
    1. If you search for CALL CUSTOMER-FUNCTION program SAPMV45A you will find ( Among other user exits): 
    CALL CUSTOMER-FUNCTION '003'
      exporting
        xvbak   = vbak
        xvbuk   = vbuk
        xkomk   = tkomk
      importing
        lvf_subrc = lvf_subrc
      tables
        xvbfa = xvbfa
        xvbap = xvbap
        xvbup = xvbup. 
    The exit calls function module EXIT_SAPMV45A_003 
    2. How to find user exits 
    Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT 
    If you know the Exit name, go to transaction CMOD. Choose menu Utillities->SAP Enhancements. 
    Enter the exit name and press enter. 
    You will now come to a screen that shows the function module exits for the exit. 
    or use this ABAP program to search for user exits :-
    Finding the user-exits of a SAP transaction code
    3. Using Project management of SAP Enhancements 
    You want to create a project to enhance transaction VA01
    - Go to transaction CMOD
    - Create a project called ZVA01
    - Choose the Enhancement assign radio button and press the Change button
    In the first column enter V45A0002 Predefine sold-to party in sales document . Note that an enhancement can only be used for 1 project. If the enhancement is allready in use, and error message will be displayed
    - Press Save
    - Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. 
    - Double Click on the exit.
    Now the function module is displayed. Double click on include ZXVVAU04 in the function module
    Insert the following code into the include: E_KUNNR = '2155'. 
    Activate the include program. Go back to CMOD and activate the project. 
    Goto transaction VA01 and create a salesorder. Note that Sold-to-party now automatically is "2155" 
    In CMOD you create a project, and then you can activate an enhancement (ie: an EXIT).
    For SMOD, i use it to search enhancements, that after I apply in CMOD.
    SMOD is the TC to help you get the information about the SAP enhancement,
    CMOD is the TC to let you create your project using the SAP enhancement.
    CMOD is the Project Management of SAP Enhancements (i.e., SMOD Enhancements).
    SMOD contains the actual enhancements and CMOD is the grouping of those SMOD enhancements.
    Check this blog for further differences :
    SMOD and CMOD
    Re: difference between SMOD and CMOD ?
    cheers!
    gyanaraj
    ****Pls reward points if u find this helpful

  • How to Hide Menus and Icons in SAP Login Screen.

    Hi
    Can Any one Guide me on How to Hide Menus and Icons in SAP Screen.
    Example: System Drop Down Menu, Help Drop Down menu Etc and
    ICONS: Trash Button, Truck Button , Print Button
    Using OS Level Regedit or SAP Level using any Parameter.
    Thanks & Regards
    Daniel . K

    AFAIK the system menu can´t be hidden - because people won´t be able to log off (but by using the X in the right upper corner). Additionally it contains additional transactions (own data etc.) that users should be able to change.
    Markus

  • How 2 create coloumns and rows in smartforms using template????

    How to create coloumns and rows in smartforms using template????...
    Kindly explain in details.......
    Regards,
    Faiz
    Moderator message: please search for available information.
    Edited by: Thomas Zloch on Mar 5, 2012

    Hi JV,
    Yes you can create rows dynamically in a table in IF. You can follow the instruction in [this link|Re: Dynamic Table -  same data repeating in all rows] to create the dynamic table.
    Also refer to these links:
    [Data in dynamic table not pass to webdynpro java|https://forums.sdn.sap.com/click.jspa?searchID=16436680&messageID=5638776]
    [DYNAMIC TABLE IN WEBDYNPRO INTERACTIVE FORM|https://forums.sdn.sap.com/click.jspa?searchID=16436680&messageID=5775811]
    Hope this helps!!
    Regards,
    Arafat

  • Difference between transaction CMOD and SMOD in detail

    What is the difference difference between transaction CMOD and SMOD in detail
    in R3 system.

    Hi Vinod,
    Transaction CMOD n SMOD are 2 parts of the enhancement.  Using SMOD you can search for enhancement and there component. Components includes Function Exit, Function Codes, Program,Calling Screen...so basically all exits.
    Using SMOD, if you know the enhancement you can check the available User Exits. For eg. you can find out user exits and corresponding zincludes.
    If you know the Exit Name for Eg. Function module exit name you can search the correponding Enhacement name here..which is important for activating exits.
    CMOD allows you to create Project for your enhacement. In order to activate every exit code you need to create a project for same and activate it...Eventhough if you write a code and do not create a project for same your exit code will not reflect.
    It is mandatory to create and project for exit and activate it. 
    Hope this will give you good idea about CMOD and SMOD.
    Nilesh

  • How to display Lines and Boxes in SAP Script

    hi,
    Can any one help me how to display Lines and Boxes in SAP Script.
    Regards
    kiran

    The SAP printer drivers based on page-oriented printers use these commands when creating output whereas the line printers and non-supported page-oriented printers ignore these commands.
    Syntax:/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    This command draws a box of the specified size at the specified position.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    WIDTH determines the width of the box.
    Default: WIDTH value of the SIZE command.
    HEIGHT determines height of the box.
    Default: HEIGHT value of the SIZE command.
    FRAME determines the thickness of frame.
    Default: 0 (no frame).
    INTENSITY determines the box contents as a grayscale percentage.
    Default: 100 (full black)
    The other details I guess is provided by friends who have posted before me.
    Regards,
    K.Sibi

  • How can I open and close private browsing using an IPAD mini in IOS 7?

    How can I open and close private browsing using an iPad mini in ios7?

    Tap the '+' to the right of the URL field to open a new tab, and at the bottom left of the screen there should be a 'Private' button - tap that and you can then go to the site that you want to go to

  • How do you create and save icc profiles using photoshop?

    How do you create and save icc profiles using photoshop?

    You don't. Color profiles require specific measurement hardware and software.
    Mylenium

  • Hi, anyone knows how to using airdrop between mac and iPhone 5? My mac was using mavericks and my iPhone was using OS 7. There is airdrop icon in my mac. And already on. But it is searching constantly. Even my airdrop in iPhone already on for everyone.

    Hi, anyone knows how to using airdrop between mac and iPhone 5? My mac was using mavericks and my iPhone was using OS 7. There is airdrop icon in my mac. And already on. But it is searching constantly. Even my airdrop in iPhone already on for everyone.

    Yes, you can use it for Mac computer > Mac computer or iDevice > iDevice. It's because they have different operating systems.

  • I had greyed out wifi, looked on the net how to fix it and it said to use a hairdryer which worked it greyed out again 5 mins after, so i did it again this happened 3 times then the 4th time the screen went white any ideas whats happned an how to fix it?

    i had greyed out wifi on my iphone 4s, looked on the net how to fix it and it said to use a hairdryer which worked it greyed out again 5 mins after, so i did it again this happened 3 times then the 4th time the screen went white any ideas whats happned an how to fix it?

    No, sounds like when you dropped it an cracked the screen it may have also damaged the logic board or the repair person damaged a cable.

  • Has anyone had success using SharePoint and FrameMaker 10 together using CMS?

    Has anyone had success using SharePoint and FrameMaker 10 together using CMS?

    Thanks for reminding to at least update the results thus far.
    Update 4:
    I did get quite a bit of support initially although slowly over a period of a month or so. After Adobe FM support and my SharePoint systems engineer reviewed how FM10 was setup on my computer (which I am the admin for our department’s SP site) and how it interfaces with our SharePoint 2010 Enterprise Edition, there was two conclusions:
    Basically Adobe FM Support said that FM10 did not support claims-based authentication and they can no longer help me. They said it will work with FM11 when it comes out.
    My SP Systems Engineer, said that FM10 is connecting to SP 2010 just fine but that the FM10 has a software glitch that causes FM10 lose control when executing checkout procedure within FM10. I can checkout and edit that same file in SP with no problems.
    About a month later, I upgraded to FM11 and ran into the same problem. I attempted to get Adobe FM Support to help and they said they will look into and get back to me. That was in July and I have not heard anything more from them, and to be honest, my schedule has been extremely busy the last 5 months that I have not had time to pursue it any further.
    Needless to say, I was very disappointed with the SP interface and, overall, the lackluster support I received from Adobe. Having a working SP interface was one of the criteria for purchasing TCS3.5 (and subsequent upgrade) in the first place.
    One thing of note, we migrated from SP 2007 to SP 2010 in February 2011 and, at the time of Adobe support, I still had access to my SP 2007 site. FM10 and FM11 had to no issues working with SP2007. Unfortunately, SP 2007 is not an option for me anymore.
    Also, another observation of FM10/11 not working with SP 2010, it seems that FM10/11 is automatically configured to work with SharePoint Drafts folder locally when connecting to the SharePoint library. This worked just fine with SP 2007 but SP 2010 does not use SharePoint Drafts folder locally the same way (the programming changed, don’t recall where I saw it, probably when searching this issue online)  and I suspect that is one of the main issues why it does not work correctly.
    So at this time, I have not found a working solution to this problem.

  • Get GPS info using Autonomous and CellSite Mode parallelly using MultiThreading

    I tried to get the GPS latitude and longitude values using Autonomous and CellSite Mode parallelly using two threads, but while execution only one thread is being active and I get values from only that, the other thread doesn't return any values at all.
    Is it possible to retrieve the GPS information using multiple threads running parallelly and also can I display the latitude and longitude values from the threads on the screen with less accuracy rate among the values.
    Thanks in advance...

    Your thread may not get noticed as it is in General Support threads. You may post your thread in Java Development to get faster response.
    Ron
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up Blackberry Battery Saving Tips | Follow me on Twitter

  • WHEN TO USE SYS_REFCURSOR AND WHEN NOT TO USE REFCURSOR

    SYS_REFCURSOR is a Weakly Defined Cursor
    DECLARE emp_refcur SYS_REFCURSOR;
    when this is so simple
    why this
    DECLARE TYPE emp_cur_type IS REF CURSOR RETURN emp%ROWTYPE; my_rec emp_cur_type; ?
    Can anyone explain in what situations we should prefer among these ..when both can give same result set .

    > WHEN TO USE SYS_REFCURSOR AND WHEN NOT TO USE REFCURSOR
    When the requirements define that one is better suited than the other.
    There are no hard and fast rules about when to use a specific tool. There are however basic concepts of what the purpose of the tool is, and what typical problems the tool can address.
    Ref cursors in PL/SQL.. usually not the best of ideas. Ref cursors are designed for client-server processing.
    1) The client makes a request for data/information.
    2) PL applies the back-end server logic and construct a SQL statement for the client.
    3) PL passes the SQL to the SQL engine where it is parsed and a SQL cursor created.
    4) PL passes a reference handle to SQL cursor back to the client
    5) The client can now fetch the rows output from the cursor.
    Advantages.
    - The client does not need to know SQL, db structures, business logic, etc
    - The PL code can be improved, modified, new business logic added, without even touching a single byte of client code
    So what are the advantages where the "client" in the above is another PL/SQL program? None really.
    A "real" client (an external one like Java, C#, Delphi, etc) can receive the ref cursor handle and dynamically at run-time determine the projection (output) of the cursor.
    PL code cannot (unless using the latest 11g features). In PL code, a ref cursor is actually implemented as a DBMS_SQL cursor. A DBMS_SQL cursor is to PL code what ref cursor is to Java/C#/etc.
    So whether you define a strongly typed or weakly typed ref cursor in PL/SQL code... typical response is "so what?" as ref cursors are not really intended for PL code. Not that there are exceptions - they do come in handy at times.. but as exceptions to the rule.
    So my response is "so what?" - it is more important to *correctly" chose what type of client cursor data type you want to use to interact with the back-end SQL cursor. Once that decision has been made (based on technical sound logic), then one can look at  (minor) issues such as weak vs. strong ref cursors.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • How can I return some values from an applet invoked by jsp:plugin tag

    My JSP is something like that: <html>      <head>              <title> . . . </title>      </head>      <script>           function getValueFromApplet()                var src = document.pinApplet.checkPin();                document.myForm.j_username

  • IPod Nano Won't Switch On

    A few days after Christmas I bought myself a pink, 4GB iPod nano. It has been working fine up until today. I was listening to it last night, and I turned it off and put it on hold. When I got up this morning and tried to turn it on, it wouldn't (yes,

  • Problem with Family Protection blocking

    I have an ongoing problem with Family Protection blocking allowed websites from my daughter.  I checked her account settings which are the same as her brother's and he has no problems.  I then removed her account and created a new one and copied the

  • RECREATE DATABASE Using CONTROL File After SUSPEND Database

    Hello All, Does someone can tell me if he does achieve recreating a database using "Backup Control File" after putting database in "suspend" mode? The procedure looks like this : 1 - Alter DATABASE Suspend 2 - A Snapshot of the filesystem where the o

  • Dual monitor problem (without using two monitors)

    Ok the problem is not with a second monitor not working. The problem is I don't have a second monitor hooked up anymore and the computer still thinks there is still one there. I hooked a second monitor up to my work computer to help with some work I