Skip to Content
author's profile photo Former Member
Former Member

ecc 6.0 performs wise how to following codeing standards...

Hi Floks,

ECC 6.0 how to maintain the codeing stanard....

like select * from

select...... endselect

internal table declaration....

like wise

in depth i want perform wise codeing standerds...

usefull ans i will give rewardpoints.

Regards.

Krishna.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Dec 03, 2007 at 10:40 AM

    hi,

    Refr this report performance wise

    ----


    • TABLES *

    ----


    TABLES : vbrk.

    ----


    • TYPES *

    ----


    TYPES : BEGIN OF t_vbrk,

    vbeln TYPE vbeln_vf,

    rplnr TYPE rplnr,

    bukrs TYPE bukrs,

    END OF t_vbrk,

    BEGIN OF t_fpltc,

    fplnr TYPE fplnr,

    fpltr TYPE fpltr,

    ccnum TYPE ccnum,

    END OF t_fpltc,

    BEGIN OF t_final,

    bukrs TYPE bukrs,

    vbeln TYPE vbeln_vf,

    rfzei TYPE rfzei_cc,

    ccnum TYPE ccnum,

    END OF t_final.

    ----


    • WORK AREAS *

    ----


    DATA : wa_vbrk TYPE t_vbrk,

    wa_fpltc TYPE t_fpltc,

    wa_final TYPE t_final,

    wa_bseg TYPE bseg.

    ----


    • INTERNAL TABLES *

    ----


    DATA : it_vbrk TYPE STANDARD TABLE OF t_vbrk,

    it_fpltc TYPE STANDARD TABLE OF t_fpltc,

    it_final TYPE STANDARD TABLE OF t_final.

    ----


    • PARAMETERS & SELECT-OPTIONS *

    ----


    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.

    SELECT-OPTIONS : s_vbeln FOR vbrk-vbeln OBLIGATORY.

    SELECTION-SCREEN END OF BLOCK blk1.

    ----


    • START-OF-SELECTION *

    ----


    START-OF-SELECTION.

    PERFORM sub_read_vbrk.

    PERFORM sub_read_fpltc.

    PERFORM sub_collect_data.

    PERFORM sub_read_update_bseg.

    &----


    *& Form SUB_READ_VBRK

    &----


    • text

    ----


    FORM sub_read_vbrk.

    SELECT vbeln

    rplnr

    bukrs

    FROM vbrk

    INTO TABLE it_vbrk

    WHERE vbeln IN s_vbeln

    AND rplnr NE ' '.

    IF sy-subrc EQ 0.

    SORT it_vbrk BY rplnr.

    ENDIF.

    ENDFORM. " SUB_READ_VBRK

    &----


    *& Form SUB_READ_FPLTC

    &----


    • text

    ----


    FORM sub_read_fpltc.

    IF NOT it_vbrk[] IS INITIAL.

    SELECT fplnr

    fpltr

    ccnum

    FROM fpltc

    INTO TABLE it_fpltc

    FOR ALL ENTRIES IN it_vbrk

    WHERE fplnr EQ it_vbrk-rplnr

    AND ccins EQ 'GIFC'.

    IF sy-subrc EQ 0.

    SORT it_fpltc BY fplnr.

    ENDIF.

    ENDIF.

    ENDFORM. " SUB_READ_FPLTC

    Regards,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 10:40 AM

    hi

    if you are working in ECC6.0 version of SAP, while coding if you press F1 on each command you will get the repestive syntax for that command

    So it is better to go through the help in ECC6.0 to understand all the programming stds

    Regards

    Anji

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 10:50 AM

    Hi,

    firstly there is nothing different than sap 4.7ecc rather abap editor has been somewht changed such tht its look and feel is something like java editor . here some more function modules have been introduced and we can do webdynpro applications.

    unlike these coding standards remain same any how for ur satisfaction. i will be describing u abt tht.

    1. do not use select * and do not use select and endselect.

    2. try avoiding innerjoin and use at max of for all entries only.

    3. when usng read stmt use binary search i.e with key addition.

    4.do not use nested selects.

    so there is some wrong notion tht coding standards hav been changed some enhancements has come but not entirly changed......mostly the major cange is webdnpro usage ....

    i thnk it might be useful to you.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 04:29 PM

    Hi,

    Go to transaction SE30, hit the button tips'n'tricks.

    Here you can get an idea of wise coding.

    regards

    Sven

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.