Customizing program in abap

Hai All,
i'm new in abap programming.
Currectly i facing a problem in customizing program which is i need to debug it. can anyone guide me on it? if possible pls give me some useful link in abap.
Thank you so much...............

Hi Jee Jee,
Please reward points if helpful. Good luck and welcome to the world of abap!
Check out the following links for how to debug your program.
This link is a <b>demo</b> on how to debug your program :
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9cbb7716-0a01-0010-58b1-a2ddd8361ac0
<b>other links on debugging :</b>http://www.sap-img.com/abap/testing-and-debugging-abap-codes-functions.htm
http://www.sap-basis-abap.com/sapab002.htm

Similar Messages

  • ABAP CUSTOM PROGRAMS vs SOX - What is your best approach?

    SOX defines you must put in place controls to be sure your users can do only those activities wich are not able to create a risk for your company assets.
    You can use GRC AC to get clean and stay clean, but the problem is in your custom developments. Indirectly called transactions are not included in the transaction start check, so I think you must use "authority checks" to validate either stantdard authorization objetcs (sy-tcode, company code...) or custom authorization objects before to call a transacction/BAPI inside a custom program to be sure the user has the right permissions to complete this task.
    Should i validate any single authoritation object defined in SU24 for each single transaction called Indirectly?
    Any other quick win approach?
    thx.

    Manuel,
    There are various types of controls that could be put in place for accomplishing this. Below are some things you could consider to mitigate this risk as I have done in the past which has been sufficent to auditors.
    1) Have a solid review process for Functional Design Specs (FDS) reviews of RICEFW objects being developed into your SAP enviroment and be sure to have the process and review documented. This process will allow you to proactively seek out potential issues before they are coded to senstive areas where the potential risk to financial reporting could arise.
    2) Implement coding standards for Security such as use of Program Auth Groups, Table Auth Groups, and implement certian SAP notes to secure S_DEVELOP object properly. Refer to https://websmp110.sap-ag.de/securitynotes for security notes.
    3) Have a review/monitoring process in place to review access and authorizations to critical objects and transactions. GRC AC is one way to approach this.
    You can use abap program "RSABAPSC : Statistical program analysis to find ABAP language commands" to seek out Authority-Checks in custom development as part of a quality review.
    Thanks,
    Matt

  • Location of ABAP codes - customed programs

    Dear All,
    Would you assist to confirm my understanding that,
    any ABAP codings/developments, ABAP programs  (customed programs) all store in /usr/sap/trans
    and /usr/sap/trans only.
    We are a very small SAP shop with just 1 developer and little developement,
    so if I need on older version of an abap program,
    I can just restore /usr/sap/trans from backup tape.  This is DEV box only.
    Please help.
    Thank you.
    Edited by: elizabeth ly on Apr 13, 2011 7:08 PM

    Hi John,
    There was a problem with our SAP DEV hardware server (Win 2003),
    so we bring our SAP DEV system and put it on a VM temporary.  During this time, there was 1 brand new customized ABAP program created while on VM. 
    Now that we finished preparing with the new SAP DEV hardware, we take our DEV off from VM.
    But, what we are missing is the 1 brand new customized ABAP program.
    I figure if I restored from the /usr/sap/trans, the new codes would be there.
    Please confirm my understanding.
    Thank you.
    Elizabeth

  • Attach Documents to Custom Program Using Generic Object Services

    Hi There,
             I created Object type ZGOS and used in the custom program, when i try to attach documents it allows and then shows in attachment list.
            But When I use that program next time that document attached is not available.
    Is there any separate save Class or FM available for saving the document to the specified custom program.
    I am using following code in the program,
      CLEAR obj.
    SET OBJECT TYPE TO 'ZGOS'
      obj-objtype = objtype.
    SET OBJECT KEY = REPORT NAME
      SELECT SINGLE name
      FROM trdir
      INTO obj-objkey
      WHERE name = sy-repid.
    CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)
      CREATE OBJECT manager
        EXPORTING
          is_object = obj
        EXCEPTIONS
          OTHERS    = 1.
    Thanks in advance.

    Check the Naimesh Patel Blog he explain very well
    http://help-abap.blogspot.com/2009/02/generic-object-services-gos-toolbar.html

  • APP - Custom program created with smart forms

    Hi Experts,
    In the automatic payment program, the ABAPer has created a custom program for payment methods for check. The program is assigned in the payment method for country in the payment program. However went the APP is run we are unable to generate a printout for the check payment. Also when the program is run in SE38 we are able to generate the output. The forms have not been assigned in the payment method country as he is not using SAP script and is using a samrt forms. Any pointers as to where we have missed out would be really useful.
    Thanks,
    Sai

    HI,
    Goto table likp and pass the delivery note to LIFEX field and get the delivery number if the output type is abc then print this delivery number.
    else
      with above logic u have delivery number go to VBFA table pass the delivery number as Subsequent sales and distribution document and  Document category of preceding SD document as O (Order ) then you will get the sales order.. then goto VBSS table and pass the sales order number that you just got and get required field from VBSS.
    Thanks
    Mahesh

  • How to find which custom program uses authorization checks

    Hi all,
    I have been asked to find out which custom ABAP program in our organization is using Authorizations checks and which is not.
    Since there are thousands of custom programs I will need to automatize this process somehow.  But I am not an ABAP expert and I will need some help.
    Could any of you give me an idea of what would be the best strategy to find out if authorization objects/checks exist in a number of ABAP programs?  (would a simple text search do?).
    Many thanks,
    Aldo

    If you are looking out for Authorization related to Execution of any program, then look for entries in table TRDIR where field SECU (Authorization Group) is not blank.
    Below SAP documentation may help you:
    Authorization Group
    Authorization group to which the program is assigned.
    The assignment of a program to an authorization group plays a role when the system checks whether the user is authorized to:
    Execute a program
    --> Authorization object S_PROGRAM
    Edit a program (-Include) in the ABAP Workbench
    --> Authorization object S_DEVELOP
    Programs that are not assigned to an authorization group are not protected against display and execution.
    Security-related programs should, therefore, always be assigned to an authorization group.
    Report RSCSAUTH can also be used to assign programs to authorization groups. This report is documented in detail.

  • Triggering  a  custom program

    Hello,
    I have a  custom program for picking material from a  warehouse for issuing to production orders.
    I need to trigger this program after every external  goods receipt. is this possible?
    is there something in customizing for movement type - for example follow on  transactions, to achieve this
    or is there an ABAP solution for this?
    best regards,
    srini

    Hi Srinivas,
    You have to use the appropriate user exit. There will be a user exit for this purpose. I don't have access to system otherwise i could have given the right exit.
    Hope this clarifies.
    Regards,
    Viswanath

  • Triggering a custom program after session is processed

    Hi All,
           I have created a session say SES1 .
    Is it possible to trigger a custom program after the SES1 gets successfully processed?
           Can anyone help me on this issue.
    Thanks for your precious time.

    hi
    YES, YOU CAN DO THIS USING SUBMIT
    You can call executable programs from other ABAP programs using the following statement:
    SUBMIT <rep>|(<field>) [AND RETURN] [<options>].
    You can either specify the name of the program you want to call statically by entering the program name in the code of the calling program, or dynamically by specifying the name of a field (in parentheses) containing the name of the program.
    Message was edited by: Harikishore Sreenivasulu

  • Find all texts in custom programs

    my Client wants to tranlate all the Dutch text messages in English. He requested to find all the programs where the translation is required. Any suggestions on the approach.
    I tried going to SE91 and do where used list of all the custom message classes. any other suggestions than this.

    Hi,
    You may select all the custom messages from database table T100, specifitying the language, message classes starting with Y or Z. Get the translated text from the customer and update it for Dutch language in the same table.
    There can also be some messages using the Text-symbols of the custom programs. You can use the text-symbols from all the custom programs using the ABAP statement:
    READ TEXTPOOL prog ... INTO itab ... LANGUAGE lg.
    The best approach would be to start with the collection of all the custom programs and custom message classes. Then you can use the above steps to get all the texts in english language. Get the translations for all these texts from user in an excel or notepad file. Write an upload program to upload the excel from local pc. Then update the messages for message class in T100 and update the Program text symbols using ABAP statemtnt INSERT TEXT-POOLS......
    Regards,
    Jayesh
    Edited by: Jayesh Gupta on Apr 20, 2010 2:31 PM

  • Mass compile customer programs

    Dear Expert,
    Is there a standard SAP TCode to compile all customer programs (Z* & Y*) only ?
    Is it true that TCode SGEN can only compile all SAP Standards?
    If I could use this TCode to compile Z* & Y* only, please show the steps..
    Or should I create new abap program? please show me the sample..
    Many thanks and regards,
    RudiS

    hi
    good
    i dont think there is any standard tcode which ll help you to execute all the Zand Y programs.
    SGEN->
    SGEN is ued to "compile" ABAP programs. Results are put in database. 
    So, if you restart SAP, compiled results will still be in the database, so, no need to run SGEN again. 
    Make use of the transaction 'SGEN' to re-generate all the SAP programs after you change version of your SAP kernel, upgrade SAP system or apply support packages.
    Do take care of the table spaces and use SAPDBA to observe them.
    Do it during a weekend which is the best or a period of time with very very low users activity. 
    It will takes about 5 to 8 hours depending on the type of hardware configuration you are using.
    thanks
    mrutyun^

  • SPAU for Custom program.

    Hello,
    I am new to Upgrade project.
    Is it required to adjust a customer program (z or y programs) using SPAU. If yes, please let us know why we need to adjust a custom program...
    Any documentation on SPAU would be appreciated.
    Kind Regards,
    Abhishek.

    Question on SPAU and SPDD.
    You have to aware of all related program like BDC's , Screens related errors and all dictionary related problems.
    Some function modules may become obsolete, and some screens will change
    abnd some new fields will be added in the new versions etc.
    Also take care of SPAU and SPDD tcodes.
    You should be able to know about Unicode concept in sap.
    Upgrading within a new version of SAP R/3 :
    The upgrade process for the SAP R/3 application does not modify any of the adapter's ABAP development, but it may modify the SAP R/3 application so that some of the adapter's ABAP development does not work properly.
    This section describes how to upgrade the adapter's ABAP development in an upgraded SAP R/3 application. Before you can upgrade the adapter, you must have already upgraded your SAP R/3 application.
    To upgrade the adapter's ABAP development:
    Install the latest ABAP Extension Module transport files for the correct version of the SAP R/3 application.
    You must install the correct version-specific transport files. For details on installing these transport files, see Connector transport file installation.
    Compile all programs and resolve syntax errors associated with the ABAP development.
    The easiest way to find syntax errors is to generate each function group associated with each object and fix the errors one at time. Repeat this process until all function groups compile successfully. Be sure to generate any other programs such as triggering programs that are not associated with a function group. Be aware that minor updates may need to be made to your ABAP triggering programs after applying the required new transports to upgrade the adapter.
    If you are upgrading to SAP R/3 version 4.x, note that the 4.x ABAP handlers use the product namespace /CWLD/. For special considerations for upgrading to the connector supporting SAP R/3 version 4.x, see Connector for SAP R/3.
    Test the new environment and make modifications as needed.
    Only a full system test enables you to work out any problems with the upgrade. Test your event detection mechanisms by running the appropriate transaction or program and sending business objects to the SAP system. Use the connector's log within the SAP system to help identify other issues.
    chk this
    http://www.thespot4sap.com/upgrade_guide_v2.pdf#search=%22upGRADE%20STEPS%20-%20SAP%22
    also chk these 2 notes in service.sap.com
    Technical Upgrade is only a version upgrade without any functionality changes.
    The objects that are needed to be upgraded are:
    Includes
    Function Groups / Function Modules
    Programs / Reports
    OSS Notes
    SAP Repository Objects
    SAP Data Dictionary Objects
    Domains, Data Elements
    Tables, Structures and Views
    Module Pools, Sub Routine pools
    BDC Programs
    Print Programs
    SAP Scripts, Screens
    User Exits
    You can refer to the below links for more information on technical upgrade:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/07/upgradeFROMR3TOmySAPERP-PARTII&
    https://wiki.sdn.sap.com/wiki/display/profile/UPGRADEFROMR3TOmySAPERP-PARTIII
    http://help.sap.com/saphelp_nw2004s/helpdata/en/60/d6ba7bceda11d1953a0000e82de14a/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/6d66647d9011d396b60000e82de14a/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5ac31178-0701-0010-469a-b4d7fa2721ca
    Refer to these related threads
    Re: Role of ABAP Developer in Upgrade Projects
    ABAP developer part in an upgrade project
    wht abt the tcodes SPDD & SPAU
    please reward if useful
    Murali poli

  • Logical database sdf in custom program not triggering selection screen?

    I added logical Database SDF (screen 905) to a custom program - but the selection screen is not getting triggered.
    Do I have to associate these somewhere?
    Thanks,
    Ven

    HI,
    Declare this statement after the Report Statement in the program.
    TABLES : SKA1, SKB1.
    You will get the selection screen now.

  • Re: Payment order Reversal using custom program

    Hello Experts,
    The requirement is when we void any chek the corresponding documents (payment request ,payment order and accounting document) related to the check has to be reversed in Fi Tresury.
    Reversal of the payment reqest and the accounting document in my program is fine but payment order reversal is not happening in the program.
    I am able to reverse it by using standard transaction ihc02.
    In the program  i have used the same function module IHC_BCA_PAYM_ITEM_REVERSE as used in the standard program and passing the same values what we are passing in the standard transaction but reversal of  the payment order was not happening using that functiona module.
    Please suggest me what to do with this requirement and how to reverse the payment order using the custom program.
    Thanks and regards
    pavan

    Hello Experts,
    The requirement is when we void any chek the corresponding documents (payment request ,payment order and accounting document) related to the check has to be reversed in Fi Tresury.
    Reversal of the payment reqest and the accounting document in my program is fine but payment order reversal is not happening in the program.
    I am able to reverse it by using standard transaction ihc02.
    In the program  i have used the same function module IHC_BCA_PAYM_ITEM_REVERSE as used in the standard program and passing the same values what we are passing in the standard transaction but reversal of  the payment order was not happening using that functiona module.
    Please suggest me what to do with this requirement and how to reverse the payment order using the custom program.
    Thanks and regards
    pavan

  • POSTING G/L account documents through custom program

    While posting the documents through the tcode fb01,
    when I tick at PA segement button ASSIGNMENT TO
    PROFITABILITY SEGMENT screen opens, DERIVATION
    BUTTON is activated/enabled . But through a custom program when session is
    processed and when PA segement button is ticked on
    ASSIGNMENT TO PROFITABILITY SEGMENT screen, DERIVATION BUTTON is not visible. I can only see Continue, Next Page, Delete Assignment, and Cancel buttons. Where do I need to check this problem?

    Hi,
    Nope, in standard SAP you can not do that.
    You would need to develop your custom program for it.
    Regards,
    SDNer

  • Report to check authorization object used in customized programs

    Hi Guys,
    An auditor came and he raised a question to us, he asked whether all of our customized transactions and programs are maintained with authorization checks? The question is how can we check what authorization objects are used for our customized programs and transaction codes? The developer did not maintain the objects used for that program in SU24 table. Is there a program or a report to show us all the authorization object used for a customised program or transaction? Example : T-code MIGO we can check in SU24 table for all the authorization object used. How do we check for customized tcodes? Please advise. Thanks!
    Edited by: Jarod Tan on Nov 25, 2010 9:42 AM

    Note that some programs are built in such a way that no (visible) auth check is necessary, or even desired at all.
    To determine the necessity of an auth check, you should check that starting it has an entry point (tcode, rfc, service) which is appropriately restricted. The rest (whether and where and how a further check is evaluated) is entirely dependent to what the program actually does.
    Well designed applications generally have centralized functions and methods, and the checks are in there or a "base check" they use.
    Others again use the same in UI programming to determine the visibility of functions, to make the application more intuitive for the user. This on it's own is however not a sufficient auth check to rely on.
    Code review is an art form!
    Cheers,
    Julius

Maybe you are looking for

  • How to use the rescue and recovery, and the product recovery discs ?

    Hi everyone, I've just recently became a new owner of a T61, and really enjoying it. I haven't had a chance yet to test-drive the lenovo phone support, as I have not yet screwed anything up that bad that required their help. I did try a clean factory

  • WBS Elements for Project

    Hi Guys, I have requirement like, my selection input as PROJECT , i need to get all the WBS element for the particular Project. Do we have any function module or table to get the data? Thanks, Gourisankar.

  • Integration with Materials Management

    Hi, Can any one tell me how SRM is integrated with Materials management? Whether Eprocurement is the new functionality in latest release of SRM? What r the steps to be followed for configuring E-procurement? Plz through some answers for the above que

  • So- i need help

    Well I had iTunes installed in my computer && i had all music on there and whatnot andd theen my computer got like a virus :P and then , well once we got it to work again - everything was erased . and well i got iTunes again and now its telling me th

  • Disc repair possible?

    The drives from a mirrored RAID drive are no longer mounting. I had the enclosure replaced since it appeared to be failing, but with the new box the drives won't mount. Here's the error message that Disk Utility generated. Any hope for these discs? V