Standard coding practise in ABAP

Could anyone provide me the parameters for standard coding practise in abap before implementing any process ???

Hi,
you can use a IFRAME and run a Portal transaction Iview for IB52 inside the WD-IFRAME.
For that you first have to create an iview for the Transaktion IB52 inside your Portal.Then call the preview of the Iview. This Preview-URL(or the PCD) you can call as source inside the WD-IFRAME. For me this works fine.
Regards
Frank

Similar Messages

  • How to establish code standards to make the abap code more readability

    Every programmer have their habit to code, but this lead a problem , it is difficult to read other people's code, especially the complex logic.
    So how to establish code standards to make the abap code more readability?
    I came up with this:
    1.Unify the naming rule.
    2.Reduce the nest of 'if' statement. (better in less than 4 if statement in one block )
    3.Use more Perform to replace the big code block.
    Is there any other standards to make our abap code more readability ?  (if we establish the standards, in sap is there any tool to help us to follow the rule we set ?)

    There are a number of things you could do. Some of which are:
    I would recommend creating your own in-house document on Coding standards, some of which you can control with the code inspector.
    It is also possible to set up the transport request in such a way that objects that do not pass the SCI test are not allowed to be released.
    I would also assign a senior developer to act as quality control for all developments. You can have a rotation scenario where this work can be divided by the number of senior developers you have.

  • Standard MRP report ( or ABAP BAPI)

    Pl. Guide for a standard MRP report ( or ABAP BAPI) which can provide details Like Stock, Material MRP Element Receipt/Reqmt , QM Stock , CusOrd , PrdOrd , PldOrd , Ord.DS
    I am aware of MD04 But I Need a Report for Bulk materials.

    Hi,
    Check MD07 report. If it does not suit then go for a Z report using MD_STOCK_REQUIREMENTS_LIST_API or BAPI_MATERIAL_STOCK_REQ_LIST
    Regards,
    Vivek

  • Note 1572302 - Hard-coded credentials in ABAP DDIC

    Hello,
    Have you read [Note 1572302 - Hard-coded credentials in ABAP DDIC|https://service.sap.com/sap/support/notes/1572302] ?
    I had a good laugh when I read it. Before implementing the note or the corresponding SP, you'd better check the usernames in your production system !
    I know 14 SAP employees that must have get some good congratulations !
    I am also a little afraid by the lack of source code reviewing before distribution to customers....
    Regards,
    Olivier

    Julius Bussche wrote:
    From my experiences SAP are also very responsive to reporting such issues, though 1st level support on SMP might initially tell you that the solution is not to use it...
    Well, if you have found a security issue and face difficulties to address it properly, kindly do not hesitate to [report it via mail (PGP encrypted) to SAP|/docs/DOC-8218#section36 [original link is broken]].

  • Coding standards for Web dynpro ABAP

    Hello all,
    Can anybody please help me by providing the code review checklist for Web dynpro ABAP?
    Thanks and Regards,
    Rohini Shankar

    Hello friend,
    WebDynpro     *
    1     Do not implement Data intensive operations in UI layer     
    2     Avoid database selects in the WebDynpro code.Use the corresponding BAPIs ,Methods     
    3     Are ABAP OO Classes like Assistance class are being used for application coding ?     
    4     Are Windows/Views only used for the sole purpose of hosting views and context?     
    5     Are a reasonable number of views put in a single WD Component instead of creating multiple WD Components ?     
    6     Unneccessary usage of dynamic programming and dynamic component avoided      
    7     Are singleton nodes used in case of nesting in the context ?     
    8     Is deep nesting of containers, Groups and Tabstrips avoided ?     
    9     Is the UI element TreeByKey or TreeByTableNestingColumn used instead of the Tree UI element ?     
    10     Is the checkbox "Accessibility Checks Active" ticked in the WD Component properties     
    11     Are the WD Component Instances deleted when no longer needed (IF_WD_COMPONENT_USAGE=>DELETE_COMPONENT)     
    12     Are the OTR texts defined  for all the labels, texts(where ever appropriate) in properties of all the UI elements      
    13     Has the Generation limit been checked for all the components developed     
    14     Sufficients commets are written at the beginning of every major block to explain the processing logic.     
    *Error Handling     *
    1     Is SY-SUBRC checked after CALL function modules      
    2     Use Assertions if you face unexpected errors which usually never ever occur!     
    Extended Check and Clean Up
    1     Have following been removed :     
         ·      Unused variables                       
         ·      Unused text elements                   
         ·      Unused tables from TABLES statement     
         ·      Commented out parts of the code     
         ·      Code segments which do nothing     
    2     Is extended program check completed  and all errors/warnings removed      
    These are the things which i used for my project.
    Thanks,
    Sri Hari

  • Finding Hard coded Text in ABAP program

    Gurus,
    Is there any method to find out Hard coded TEXT in an abap Program? For Example
    write:/ TEXT-T01,
    'Hello World',TEXT-T02.
    In which i need to find out Hello world which is inside ''. I am not able to find with Search command.
    Can you Please guide me,
    Regards,
    Lijo Joseph
    Message was edited by: Lijo Joseph vazhappilly

    try this.
    data: report_pg type SY-REPID ,
          rpt_source type standard table of D022S .
    REFRESH rpt_source .
    move: <rpt name> to report_pg .
    READ REPORT report_pg INTO rpt_source .
    now do a search/find in rpt_source.
    Regards
    Raja

  • Standard Transaction Vs Webdynpro ABAP development in Portal ?

    Hi All ,
    I just need to know that if we do some kind of enhancement/modification in sap standard screen using the classical tools like screen painter etc. when we deploy these transaction on portal we will have those changes on the web based GUI or we need to developed the whole new development for that transaction to show on the portal ?. I know webdynpro for ABAP can be used for new developments but what if we just need a simple change on screen and we can achieve the goal using simple screen enhancement ? do we need to develop the screen again in webdynpro ?  Kindly can anybody explain this ?
    Thanks a lot in advance.
    Laeeq.

    SAP ABAP screens are used by SAPGUI for Windows and SAPGUI for HTML and are presented exactly as the screen designer lays them out.  The portal can start either SAPGUI variant.
    WebDynpro has nothing to do with existing SAP ABAP screens. You build new screens and then call BAPIs etc to populate the fields.
    The portal can start a Web Dynpro application.
    To change the look of an existing SAP ABAP screen you need to change the screen. If you want to completely change the screen, start building Web Dynpro programs.
    Cheers

  • To do coding in 00 abap

    Hi,
    i am a BI developer working with oo abap, i need to code  a class with private helper methods, can you tell me the best way to do this and if possible how to debug them. Should i code in abap editor and transform it into a class and methods. Please help.
    Thanks.
    Cherrt

    Hi,
    I'm not sure if I understand your question.. modularization is (of course) achieved by implementing methods in your helper class.
    For unit-testing purposes it doesn't really matter if the methods are private or public. That setting just controls who can call the methods.
    Anyway, implementing helper (or utility) classes is really not that different from old-school abap coding! Give it a go & have fun.
    cheers
    Paul B

  • Perform some changes on standard SAP webdynpro for ABAP application

    Hi,
    We do need to perform some changes (new buttons, new tabs, adding new code etc) on a standard SAP product developed on Webdynpro for ABAP.
    Which is the best approach to do so? I have reading about enhancement framework and it seems to be right solution to do so. Am I correct?
    Any best practice to acomplish our target is very welcome.
    Looking forward to hearing from you.
    Kind regards,
      Imanol

    You are on right track thinking about enhancement framework.
    My approach is would be in the following order.
    Personalization/customization
    Enhancement
    Modification

  • Creating dropdown by coding in Webdynpro ABAP

    Hi experts,
    I have a requirement to display a dropdown in the portal. But I cannot add it directly in the webdynpro layout as I am using standard WD component. So only through enhancement, it can be achieved. I am not sure how to create a dropdown by coding in the WD component.
    Kindly throw your valuable inputs here.
    Thanks in advance!!!
    Regards
    Raaam's

    Hi.,
    You have to enhance your standard WDA component.
    Check this wiki: [Create UI Elements Dynamically in WDA|http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=141263105]
    also check : [Dynamic Binding , Dynamic Mapping|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/201ddd3b-b4ce-2b10-8883-880ae8147f89]
    and DEMODYNAMIC WDA Standard Component
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • NAMING STANDARDS FOR WEB DYNPRO ABAP

    Hi All,
    Do we need to follow any naming standards in WebDynpro ABAP, could you please send some documents or any links for Naming Standards .
    Thanks,
    Raju.

    Hi Raju,
    This is a very good question which we cant answer as we are not working in your company.
    Well, the naming conventions standards vary based on different company Standards. So the best I could say is, check out your company Standards documents to get to understand the Naming Convention standards.
    Regards
    Raja Sekhar

  • ESS/MSS custom services or modify standard service with WebDynpro Abap

    Hi all,
    what's the procedure to modify standard ESS/MSS or create new service with WebDynpro Abap.
    Thanks.
    Miki

    Hi
    First, The ISR Scenarios are not for iviews. They are just a part of a view. We can use webdynpro ABAP with the ISR Scenarios. We need to embed these forms into our webdynpro ABAP views and code accorsdigly to get the data. There are some standard components that are provided by SAP to handle ISR Forms with Webdynpro. Check these.
    Regards,
    Srikanth.

  • Standard Transformation XML to ABAP

    Is there a sense to read bigger xml with standard transformations into an internal table?
    Or is it at least to restrictive?
    I can't find a real good documentation of it. Also I can't find out which way is the best to get my xml into a table.
    Can somebody give me a hint?
    Edited by: Rob Burbank on Feb 2, 2010 3:04 PM

    Does somebody know:
    I have 3 Elements in my XML.
    In Standard Transformation I know only the first element.
    The problem is, that the standard transformation does not ignore the other 2.
    <X>
    </A>
    </B>
    </C>
    </X>
    I get an Exception that a closing Tag for X is expected after processing A.
    Is there a way to make the standard transformation less sensitive?

  • PI 7.10 Problem applying NetWeaver_ORA (Standard) License Key in ABAP

    We are attempting to license our PI 7.10 (Windows 2003 /64 on Oracle
    10.2.0.4) installation, but are having problems. This is a dual stack
    installation (of course) and I have downloaded the requested license from
    service.sap.com. This is license type Standard (NetWearver_Ora). The
    license installs correctly and shows as valid in slicense, but in the
    area above the Installed Licenses in the Database, it shows RED for
    NetWeaver_Ora and says, "A valid license key for this software product is
    required to operate this system."
    When attempting to logon as a user other than sap*, we get a license
    failure and no logon.
    saplicense -get -- returns HARDWARE KEY = 01480339654
    Old licenses tab screen is blank (no licenses installed) as I have
    deleted the temporary license, thinking that the digital license had
    installed correctly.
    Digitally-Signed Licenses screen:
    (Red traffic signal) NetWeaver_ORA A valid license key for this software
    product is required to operate this system
    Installed Licenses in the Database
    (Green traffic signal) PID 01480339654 NetWeaver_ORA 30.09.2008
    31.12.9999 Perm 0020412052 000000000311063393 Valid
    No further entries on this screen.

    Hi All - This issue was resolved. Basically, I made copies of all the current profiles used by SAP and deleted the old ones. Then, I just simply renamed them to the old profiles names of the ones I just deleted and it seemed to have worked. It was probably one of those quirky things with Windows. Thanks! - Will S.

  • Regarding Capturing of Standard colors in Webdynpro ABAP

    Dear All,
    how to capture standard colors of WDUI_TABLE_CELL_DESIGN into internal table and binding tht internal table to a drop down list index...........?
    Regards,
    Adi..

    create context node Designs attributes Design with type WDUI_TABLE_CELL_DESIGN
    use GET_DOMAIN_VALUES method to get the domain values for the type and fill the node with the result.
    Place Drop Down by Index on the layout and bind with the Attribute.
    Instead you use Drop Down By Key, it will automatically read the Domain Values
    Abhi

Maybe you are looking for