Checking wether a program(s) follows stds/naming convenions in new program

Hi,
We are developing a new program what it does is it need to check all the naming standards/conventions which we follow in our project are in new program (or) not.
In New program we are taking Program Name/Transport request as input.
Once we run this program by giving Existing Program Name (or) transport request we have check wether all the includes/program as per input follows naming standards (or) not.
We need to give message(s) in the output for each Naming convention/standard wether it is successfully implemented that convention/standard one after other.
Now my issue is how can we implement the same.
Is there any standard transaction in SAP where we can add our own naming convention/standard so that once we run that transaction it will take care of all the standards.
If not as per our development first we are takng all the lines in program into one internal table there we are removing all the commented & blank lines and processing other lines.
Now using those remaining lines we need to process to see wether they all following naming conventions and standards.
Ex standards and conventions that need to be followed:
<b>1. The names of components in classes, that is attributes, methods and events, must consist of the characters "A-Z", "0-9" and "_". They should not begin with a number.</b>
<b>Error message in ABAP Objects if the following syntax is used:</b>
DATA: field-name TYPE ...,
      1name TYPE ...
<b>Correct syntax:</b>
DATA: field_name TYPE ...,
      name1 TYPE ...
<b>2. No LIKE reference to Dictionary types</b>
<b>Error message in ABAP Objects if the following syntax is used:</b>
DATA f LIKE dbtab.
<b>Correct syntax:</b>
DATA f TYPE dbtab.
<b>3. No implicit specification of type, length and decimal places</b>
In the statement TYPES, the type must be specified explicitly with type C, the length with types C, N, P, and X, and the number of decimal places with type P in ABAP Objects.
<b>Error message in ABAP Objects if the following syntax is used:</b>
TYPES: t1,
       t2 TYPE p.
<b>Correct syntax:</b>
TYPES: t1(1) TYPE c,
       t2(8) TYPE p DECIMALS 0.
<b>4. Incorrect logical operators</b>
The logical operators >< , =< and => are not allowed in ABAP Objects.
<b>Error message in ABAP Objects if the following syntax is used:</b>
... >< ... =< ... => ...
<b>Correct syntax:</b>
... <> ... <= ... >= ...
There are lots of checks as mentioned above we need to implement all of those.
Likewise we need to check wether the program is implementing all the standards & naming conventions.
How can we add all such things[Checks] in my program.
Can anybody help me in this regard.
If anybody who has done such programs please pass on those ideas.
Thanks in advance.
Thanks and Regards,
Deep.

Hi,
These things i am aware of.
But here we will not be able to add our own standards/conventions.
Is there any provision in SAP to include/provide our own checks along with SAP's own checks!
Because it is not possible to add our own checks we are developing new program to implement our own checks.
Thanks for your reply.
Thanks,
Deep.

Similar Messages

  • How to check  wether local system has blocked by firewall  from program.

    i am a user in my LAN area. i don't have admin rights. in our LAN few system has blocked by firewall others not blocked .
    how can i check wether local host is blocked or not by firewall from java network program ?.

    You can execute some kind of firewall util (if any) and parse output to receive configuration and check is address blocked or no. But if you have no admin rights - it will not help you.
    Actually there is no clear way to detect was packet blocked by FW or just lost somethere.

  • Checking existing of program in sap libraray

    I have a field where the user can enter a program name
    I have to check their existence in the sap library and accordingly inform the user.Is there any function module which would check existence of program in sap library?

    hi Priya
    Go through the following link
    http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db98ef35c111d1829f0000e829fbfe/frameset.htm
    Hope it will help you.
    Regards
    Sachin

  • UTL MAIL a positional parameter association may not follow a named associat

    I am trying to sale 2 emails, I got the code like this
    {code|
    utl_mail.send(sender => '[email protected]',
    recipients => '[email protected]','[email protected]',
    subject => 'Banner Duplicate Report '||trunc(sysdate)||' Process for Managing Known Duplicate Reports',
    message => 'You are about to receive a report with possible duplicates in the Database, THIS IS A TEST' ||chr(10)||chr(13)||
    I am getting this error...
    PLS-00312 a positional parameter association may not follow a named association....
    I try to separate the email by ; does not work either...
    Thank you 
    Ps I changed the real emails by xxxx                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    842471 wrote:
    I am getting this error...
    PLS-00312 a positional parameter association may not follow a named association.... The reason for the error. You are writing this:
    utl_mail.send(
      sender     =>  '[email protected]', 
      recipients => '[email protected]',
      '[email protected]',
       subject    => 'Banner Duplicate Report '||trunc(sysdate)||' Process for Managing Known Duplicate Reports',
      ..etc..
    );The compiler/parser sees that you are specifying the parameter name followed by the value. So:
    This is fine:
    sender     =>  '[email protected]',
    So is this:
    recipients => '[email protected]',
    But what is this? Parameters are separated with commas. Where is the parameter name?
    +'[email protected]',+
    PL/SQL can either support the call where you do not specify the parameter name. For example: (using positional parameters)
    DBMS_OUTPUT.put_line( 'hello world' );
    Or support where you do specify the parameter names. For example: (using named parameters)
    DBMS_OUTPUT.put_line( a => 'hello world' );
    But you cannot mix these two methods as you have done. Thus the error message stating exactly this.
    The recipients parameter is scalar value. It expects a single string value. Not multiples values.
    The string itself can contain a comma delimited list of recipients. E.g.
    recipients => '[email protected],[email protected],[email protected]',

  • How to check wether we are using Compressed backup option or not in 11gR1?

    Actually I'm trying save some space in FRA? Any Ideas will be really welcome.
    One option I can think of is Compressed backup sets
    I don't see anyhting like 'Compress' in my scripts below....Also in 'Backup Settings' under 'Availability' Tab in Grid
    I see 'Backup Set' selected and not 'Compressed Backup set'.
    Is there anywhere else I can check wether I'm taking compressed backups or not?
    Thanks in Advance
    run {
    RECOVER COPY OF DATABASE WITH TAG "ngprod_incr_backup";
    allocate channel 'dev_0' type 'sbt_tape' parms 'SBT_LIBRARY=/ora00/app/oracle/product/11/db1/lib/libobk.so';
    send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
    allocate channel 'dev_1' type 'sbt_tape' parms 'SBT_LIBRARY=/ora00/app/oracle/product/11/db1/lib/libobk.so';
    send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
    backup recovery area;
    release channel dev_0;
    release channel dev_1;
    BACKUP INCREMENTAL LEVEL 0 DATABASE TAG "ngprod_incr_backup" ;
    run {
    RECOVER COPY OF DATABASE WITH TAG "ngprod_incr_backup";
    BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG "ngprod_incr_backup" DATABASE;
    run {
    allocate channel 'dev_0' type 'sbt_tape'
    send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
    allocate channel 'dev_1' type 'sbt_tape'
    send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
    allocate channel 'dev_2' type 'sbt_tape'
    send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
    allocate channel 'dev_3' type 'sbt_tape'
    send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
    backup filesperset 1 tag='NGPROD' format 'ARCH<NGPROD_%s:%t:%p>' archivelog all not backed up 2 times;
    delete noprompt archivelog all backed up 2 times to device type sbt;
    release channel dev_0;
    release channel dev_1;
    release channel dev_2;
    release channel dev_3;
    }

    hi,
    also you may define default behaviour of backing up:
    RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO COMPRESSED BACKUPSET;
    Turn on this great feature:
    SQL> alter database enable block change tracking using file '/u01/oradata/ora1/change_tracking.f';
    and use incremental backups.

  • How can check payment advice program

    How can check payment advice program, pls tell me the steps

    Hi,
    You have to do the configuration for chaque payment advise...
    1. IMG > Financial Accounting > Accounts Receivable and Accounts Payable > Business transactions > Outgoing Payments > Automatic Outgoing Payments > Payment Media > Make settings for Classic Payment medium programs > Assign payment forms for Payment Method in Company Code >>>>>>>> Here assign the payment advise (form) against your company code. AND
    2. IMG > Financial Accounting > Accounts Receivable and Accounts Payable > Business transactions > Outgoing Payments > Automatic Outgoing Payments > Payment Media > Make settings for Classic Payment medium programs > Assign Payment medium program for Payment Method in Country >>>>>>>> here assign the payment program against your payment method... normally payment program is RFFOUS_C.
    Now, run the authomatic payment program (F110) if it is configured earlier or run Manual Outgoing Payment F-58.  It will create the payment advaise...
    Hope it helps
    Saravanan.A
    Assign Points if it is useful.

  • Bypass check for this program only

    Hi FI Masters,
    i have a zprint prog ex : ZRFFOZA_H2H. i copied this prog and given a transaction(ZRFFOZA_H2H_FI   tcode : ZFI_H2H ) and run to see the results where it works fine.
    but....
    payment method can be linked to only one print program and in this test case payment method M is linked to ZRFFOZA_H2H, so now the problem is that the new transaction code ZFI_H2H is built on program ZRFFOZA_H2H_FI and the system refuses to run. 
    when i see the message it shows like this...
    The list of payment methods (M) may only be processed by other payment medium programs.
    now how can i bypass this check for this program only?
    can i have some info please....
    Thanks,
    pasala.

    hi FI masters,
    to be more clear to the above quetion,
    i have 2 zprog for the Payment run
    for the Payment method 'M' i have z prog ZRFFOZA_H2H which is configued
    again i have made a copy of above prog to ZRFFOZA_H2H_FI  and run the payment run for the Payemnt method 'M'.
    Now it gives me a message : Payment method(s) are not allowed for this program.
    since below copy prog not configed we get this message.
    NOW : What can i do to bypass this check for this program only
    can i have some info pls?
    thanks again,
    pasala.

  • Extended Program check for multipl programes in single run

    Hello All,
    I wan to do the syntax check for multiple programs at single execution run.
    SAP has provided SLIN transaction for single program, Is there any SAP standard transaction similar as SLIN for multiple program check at single execution run?
    Thanks,
    Feroz.

    >
    s feroz wrote:
    > I need it in R/34.6b version.
    I don't think you have much option there

  • How to check in the program that whether it is running in background?

    Hi,
    Can i check in the program itself that whether it is executing in the foreground mode or background mode?

    Check the value of system variable sy-batch. if value of it is 'X' that means program is running in background and if value is ' '(blank) that means prog. is executing in foreground mode.
    Regards,
    Joy.

  • How to add authorisation check to a program?

    Hi all :
          Could you please tell me how to add authorisation check to a program?  
          Thanks a lot.

    Hi,
    Check SAP help for authority-check. You can search on SDN on that.
    AUTHORITY-CHECK
    Basic form
    AUTHORITY-CHECK OBJECT object
    ID name1 FIELD f1
    ID name2 FIELD f2
    ID name10 FIELD f10.
    Thanks
    Nidhi

  • Syntax check for inactive programs(object)

    I am having some program in internal table now i have to do syntax check for the programs, actually I can use SLIN but SLIN will not do Syntax check if the object is not active, is there  any way that I can check for many programs one after the other.

    Hi Vikram,
    USe the transaction SAMT.
    Please flooow the link below it will solve u r pblm.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40c62223-639e-2a10-dd9a-b1dd9af73aeb
    Thanks

  • Find check print script program in nace

    Hi experts,
    check printing script program ( TCODE  IS  FCH7 ).
    how to find in the NACE  this check print script program.
    please help me in this

    Hi,
    Hi,
    FI documents are not maintained in NACE. In Nace if you can see there are several applications but nothing is for FI or CO.
    Print program RFFOUS* to print cheque.
    Thanks,
    Abhijit

  • Check wether a view is visible ????

    I have created an event for navigation purpose...
    I have created a handle method within a view to navigate...
    But it can happens that the event is raised and the view is not visible ...
    Therefor navigation error...
    How can i check wether my view is visible or not ?
    Regards

    Ok
    kisS METHOD...
    One window popup
       + One cancel button
       + One event raised
    2 VIEWS A&B
       + ONE HANDLE FOR THE EVENT IN VIEW B...
    2 times call of the popup window.... each times from a different view, 2 times event raised handled only in view B BUT...
    When the popup is called from view A, and user presses the cancel button, the event is raised and the handle of view B is raised!
    In the handler, i user navigation...
    Problem is then : Navigation probleme because view B is not visible!

  • Hai I want to check wether my iphone 5s is genuine or not

    hai I want to check wether my iphone 5s is genuine or not

    Go to selfsolve.apple.com and enter the serial number.

  • How to check wether a string is a number

    hi,
    I have a string variable like this.
    I want to check wether that variable contains a number or not.Pls tell wether there is a java command to check it.
    Thanks,
    chamal.

    try
    int x = Integer.parseInt(mystring);
    catch(NumberFormatExcpetion nfe)
    // not a valid integer
    }You need to declare x outside the try block, otherwise you won't be able to access it outside.

Maybe you are looking for