FM SLIN.

hi guys,
I am trying to use FM EXTENDED_PROGRAM_CHECK in my program to list error types,Errors,warnings.
I dont know how to fetch the error text  using above FM from RESULT_HEAD  parameters
Suggestion please.
Thanks.
Ambi

Maybe this code can help you:
*       FORM EXTENDED_PROGRAM_CHECK_GEN                               *
FORM extended_program_check_gen USING p_filter  TYPE slin_errcodes
                                      p_program TYPE program
                                      p_flags   LIKE rslin.
  DATA: l_i             TYPE i,
        l_category      TYPE c,
        l_repid         type syrepid,
        l_program       type program,
        l_line          TYPE string,
        l_head          type slin_head,
        l_result        TYPE slin_result.
  l_program = p_program.
  translate l_program to upper case. "#EC TRANSLANG
  CALL FUNCTION 'EXTENDED_PROGRAM_CHECK'
       EXPORTING
            program    = l_program
            test_all   = p_flags-x_all
            test_bre   = p_flags-x_bre
            test_cal   = p_flags-x_cal
            test_dat   = p_flags-x_dat
            test_dyc   = p_flags-x_dyc
            test_ges   = p_flags-x_ges
            test_mes   = p_flags-x_mes
            test_aut   = p_flags-x_aut
            test_opf   = p_flags-x_opf
            test_per   = p_flags-x_per
            test_pfs   = p_flags-x_pfs
            test_unr   = p_flags-x_unr
            test_wrn   = p_flags-x_wrn
            test_txt   = p_flags-x_txt
            test_por   = p_flags-x_por
            test_sub   = p_flags-x_sub
            test_ste   = p_flags-x_ste
       IMPORTING
             result    = l_result
*           RESULT_STAT    = L_STATISTICS[]
       EXCEPTIONS
            OTHERS.
  IF sy-subrc <> 0.
    PERFORM samt_coded_hint(saprsamt)
                  USING c_category_error slin_error p_program 0.
    PERFORM samt_message(saprsamt) USING 'EXCEPTION aufgetreten'(302).
    EXIT.
  ENDIF.
  LOOP AT l_result into l_head
            WHERE kind = 'A' OR kind = 'B' OR kind = 'C'.
    READ TABLE p_filter FROM l_head-code TRANSPORTING NO FIELDS.
    CHECK sy-subrc <> 0.
    CASE l_head-kind.
      WHEN 'A'. l_category = c_category_error.
      WHEN 'B'. l_category = c_category_warning.
      WHEN 'C'. l_category = c_category_info.
    ENDCASE.
    IF l_head-editor <> slin_editor-program AND
       l_head-editor <> slin_editor-function.
      l_i = 1.
    ELSE.
      l_i = l_head-src_line.
    ENDIF.
    l_repid = l_head-err_incl.
    PERFORM samt_coded_hint(saprsamt) USING l_category
                                            l_head-code
                                            l_repid
                                            l_i.
    IF l_head-editor <> slin_editor-program AND
       l_head-editor <> slin_editor-function.
      PERFORM: msg_header(rslinsho) USING l_head CHANGING l_line,
               samt_out USING l_line.
    ENDIF.
    PERFORM list_out USING l_head.
  ENDLOOP.
ENDFORM.
Kind Regards
Eswar

Similar Messages

  • Warning Message In SLIN

    Hi Folks,
                 I Have Encountered A Strange Warning Message In SLIN With The Field
    AUSP-ATWRT.
    " The field "ATWRT" used in the WHERE condition may contain NULL values.
    Internal Message Code: MESSAGE GYT
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
    EXTENDED CHECK OFF/ON) "
    This Field IS NOT Null Since In the where clause I have Written Where ATWRT IN S_PCODE & S_PCODE HAS DEFAULT Values Of NLZ 14 09 TO NLZ 14 11 .
    ATWRT IS NOT NULL IN AUSP .
    CAN YOU GUYS RESOLVE THIS PROBLEM .
    Regards,
    RAJIV KAUSHAL

    Hello Rajiv,
    do not use in where clause ,if you use then you will get warning message ..
    tables : ausp.
    select-options : s_atwrt for ausp-atwrt.
    data i_ausp like ausp occurs 0 with header line.
    start-of-selection.
    select * from ausp into table i_ausp.
                      where atwrt in s_atwrt.
    loop at i_ausp.
    <b>if i_ausp-atwrt = 'NA'.
    endif.</b>
    endloop.

  • In ECC 6.0 I am getting Slin Error -ABAP command is obsolete

    Hi All,
    In Hr ABAP we will start basic coding with
    TABLES pernr . 
    infotypes:0002.  
    By using this I am getting the following SLIN Error :
    Program:  ZHCP0026  Row:     32
    he current ABAP command is obsolete
    Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary
    types, not "LIKE" or "STRUCTURE".
    nternal Message Code: MESSAGE G/B
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
    EXTENDED CHECK OFF/ON)
    INFOTYPES : 0380,
    The current ABAP command is obsolete
    Tables with headers are no longer supported in the OO context.
    Internal Message Code: MESSAGE G1D
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
    EXTENDED CHECK OFF/ON)
    Can some one help me , how to rectify this slin error ?
    Thanks,
    Suresh.
    Edited by: suresh kumar on Feb 25, 2009 2:22 PM

    Hi Suresh,
    Am too facing the same problem. if you could find a solution, pls let me know.

  • SmartForms: Purchase order Print prog and SLIN

    Hi all,
    I am on 4.7 and Purchase Order Print Prog name is /SMB10/FM06P. When i am doing SLINE Check on this Prog. I am getting the following Message.
          Program:  /SMB10/FM06P  Row:      1
    The namespace of program /SMB10/FM06P has the setting "C" and cannot be tested.
    A possible cause for this is that an SAP program is being checked in a customer
    system.
    Note, the following rule applies after a change in the source code:
    For testing the namespace setting is ignored for one week
    (The message cannot be hidden using pseudo-comment "#EC .., or by using SET
    EXTENDED CHECK OFF/ON)
    Is any one have idea about this?
    Thanks in advnace.

    Thanks for your Reply,
    When i am doing Syntax check in SE38, I am getting the below error message.
    <b>"The Program "/SMB10/FM06P" is not Unicode-compatible, according to its program attributes."</b>
    I have found the OSS Note No: 751007
    Solution
    Copy the program into your own namespace (e.g "ZZsmbfm06p"), maintain the program attribute to make sure the flag "Unicode checks active" is selected. Then maintain the customizing for output control again.
    <b><u>
    GOD BLESS SAP, SAP asking to Create Custom Object.</u></b>
    Thanks
    Message was edited by: Vipin Nagpal
    Message was edited by: Vipin Nagpal

  • Absolete Statements SLIN Error

    Dear Experts,
                         I am using the following statement .it is giving the SLIN Error.
        IMPORT it_node FROM MEMORY ID 'QWERT'.
                         Could you please tell met how to avoid the SLIN Error ?
    Thanks in Advance.
    Regards,
    Sivakumar.A

    Hi,
    Use as below:
    IMPORT name_1 TO var_1 ... name_n TO var_n FROM MEMORY ...<ID>
    IMPORT it_node TO ITAB FROM MEMORY ID 'QWERT'
    ITAB can be of the same type as IT_NODE...
    Regards
    Shiva

  • Differences between SLIN and Code Inspector

    Hi,
    Can anyone tell me the differences between SLIN and Code Inspector(SCI)..?
    and in which cases we use SLIN and  SCI..?
    and as an ABAPer, which one should we prefer..?
    Thanks,
    Pradeep.

    Hi
    Extended syntax check or SLIN is used to check the program in all aspects for the different syntaxes like
    When you use select single whether you have passed all the key fields or not>
    whether you have maintained the text elements texts or not,
    Have you used UNIT...CURRENCY along with the QTY and AMOUNT fields when displayed using the WRITE statement
    and check for all the varities of statements used in the code, and if there is some problem with that statement/command, it will display as error or warning.
    Check following links -
    slin
    can any one tell me abt SLIN T-CODE
    Reward points if useful
    Regards
    Anji

  • HOW TO HIDE THE SLIN ERRORS

    how to hide the slin errors

    Hi Shilpa.
    I would like to suggest my opinion,
    Refered from,
    [SAP HELP Library - Standard Reference for Errors and Warnings|http://help.sap.com/saphelp_nw04s/helpdata/en/43/00c5b7daf15166e10000000a1553f6/content.htm]
    SLIN Infos point to possible (semantic) program errors. According to the situation, the program should be changed or the messages should be switched off.+
    +Only the SLIN messages of this category can be switched off by means of special comments
    Reference,
    Use u201C#EC * to hide warnings from places that cannot be removed by proper typing.
    [SDN Library - Standard Reference - PDF - Make ABAP code unicode enabled - Hide SLIN Error Messages|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c031aa90-0201-0010-b69d-88a278e158c8]
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • SLIN For 'Z' Program

    Hi,
    I have created a custom Z program by copying the standard program RIMPOS00. When I executed the SLIN (Extended Program Check) for this new Z program, I find many errors, warnings and messages being displayed even though these DO NOT display when I run the SLIN for the standard program RIMPOS00.
    Any inputs on why these actually show up and how could these be resolved / avoided would be of immense help.
    Regards,
    Ravi Krishna

    All,
    I did follow the steps (as suggested by you) before like choosing all the includes, documentation etc. for copying but I am still faced with the same issue. It certainly has come as a surprise to me that at times the code in the include gets copied but at times, it doesn't. I am working on an ECC 6.0 system.
    Any thoughts on if I am missing out on any of the steps or if something additional needs to be done.
    Regards,
    Ravi Krishna

  • Regarding SLIN scope

    hi guys,
    Do SLIN/SCI programs check for below errors too?
    1-BAPI related errors
    2-ABAP Query related errors
    3-SAPSCRIPT/SMARTFORMS errors
    4-IDOC related errors.
    Please suggest if any alternatives to find the upgrade error exist in programs using above.
    Thanks.
    Ambichan.

    Hi,
    You use this function to perform static checks, which are too time consuming for the normal syntax check. The extended program check returns both errors and warnings and it is possible to run either individual specialized tests or one whole standard check.
    It check only for Reports, Module Pools, Class & Interfce.
    Regards,
    Amit
    Reward all helpful replies.

  • SLIN warning message need to rectify

    Hi All,
          TRY.
              CREATE OBJECT LR_0014
                EXPORTING
                  TCLAS = 'A'
                  INFTY = '0014'.
            CATCH CX_HRPA_VIOLATED_ASSERTION .
          ENDTRY.
    for this code in SLIN it is showing warning message as
    No Exception Handling After the CATCH Statement
    Please suggest the Solution.

    Hi Kumar,
    check this link:
    Re: Extended program check error for cl_salv_table=>factory
    Regards,
    Swarna Munukoti.

  • Strange warning in SLIN for OO context

    I've defined a type in a class as:  types:     t_select_ty type table of z_select.  When I SLIN it, I get the message:
    "TYPE TABLE" type specifications are not allowed in the OO context. Use the
    specification "TYPE STANDARD TABLE" instead.
    Which seems pretty odd, considering that I'm doing this in an OO context! 
    ( Of course, I've changed it to STANDARD TABLE now ).
    matt

    >
    Thomas Zloch wrote:
    > Couldn't find any reference in ABAP online help. Maybe OO wants you to be precise about your table types? Too bad Horst Keller isn't checking these forums...
    > Cheers
    > Thomas
    It's fine - I prefer to be precise, so I fixed it - bit of sloppiness on my part.  Just odd that it's actually permitted, but slin doesn't like it.
    >
    Thomas Zloch wrote:
    >
    > P.S. vague subject
    Really? :-D
    Another bit of sloppiness on my part.  But I had a friendly moderator fix it for me...

  • Regarding Warning in SLIN

    Hi
    Thankx for your response. i found one more probelm in slin.
    SELECT SINGLE KBETR KWERT FROM KONV INTO (GV_KBETR, GV_KWERT)
    WHERE KSCHL = C_DTYPE AND KNUMV = LV_KNUMV.
    i'm using above select but in slin i'm getting warning message saying that
    in "select single......." the where condition for the key filed "nation" does not test for equality. there fore the sigle record in question may not be unique.
    internal message code : MESSAGE GSB
    Regards
    Munna

    syed
    nation is probably a part of the composite primary key.
    So the warning comes up. If u want it to go away put it in the
    select query in the order the fields  appear in the table

  • REG: Obsolete statements in SLIN ecc 5.0

    Hi all,
    When i am executing the ABAP EPC for obsolete statements.(with Also display Hidden Messages)
    I get the 2 Obsolete statements and as following :
          Program:  ZXXXXX     Row:    652                                                                               
    The current ABAP command is obsolete and problematic, especially so in ABAP                                                        
    Objects                                                                               
    An explicit work area is necessary in the OO context. Use "APPEND wa TO S_WERKS                                                    
    [SORTED BY]".                                                                               
    (The message can be hidden with "#EC *)                                                                               
    Program:  ZXXXXX     Row:   2558                                                                               
    The current ABAP command is obsolete and problematic, especially so in ABAP                                                        
    Objects                                                                               
    At "LOOP AT itab", one of the additions "INTO", "ASSIGNING", or "TRANSPORTING NO                                                   
    FIELDS" is required. in the OO context.                                                                               
    (The message can be hidden with "#EC *)                                                                               
    Though i put the  "#EC after above variable still i can see it in the SLIN overview.
    Pls help me to hide these Obsolete statements.
    Thanks and Regards
    Srikanth.P

    Lest you find yourself labelled as "out of date" or "obsolete", perhaps you could spend a little time to bring your coding practices up to the state of the product.  A LOT of things used in ABAP within my 12 years are now obsolete.  For instance, the "Official ABAP Programming Guidelines" by SAP Press, written by Drs. Thummel and Keller, describes FORM....ENDFORM and REFRESH as obsolete.
    In current versions, we loop at ...assgining <Field-symbol> or into structure.... 
    We do read table into structure or assigning <field-symbol> or (where possible) transporting no fields.
    We don't have tables with header rows, since those can't be used in OO.
    We don't use REFRESH, we use CLEAR tabname[].
    In OO, we use the SoC, software layering concepts, with GUI, Application and Persistence level Class definitions and implementations.
    We used class-based exception handling where possible to avoid abends which are, of course, detrimental to our users' experiences.
    etc.

  • On change-of giving error in SLIN

    hi all,
    i have used on chane of statement in my code.
    Im getting the following <b>error</b> in the SLIN check.
    Can anyone help me??
    The current ABAP command is obsolete
    "ON CHANGE OF ... ENDON" is not supported in the OO context.
    Internal Message Code: ENDON 001
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
    EXTENDED CHECK OFF/ON)
    Any help appreciated.

    Hello
           I think we discussed about this problem and solved yesterday.Dont worry about SLIN check. If you are going for a version upgradation not only this On Change Of but so many things you need to Change..According to the code that you send yesterday there is no other way other than On Change Of.So if you are getting output in a correct way you can go ahead.If there is some error in your current output just send the code..
    Hope this will help you..
    Reward Alll Helpfulll Answers..............

  • SLIN - Syntax check warning error

    Hi, guys. I got SLIN syntax check warning error:
          Program:  ZBT_RT_POS  Include:  ZBT_RT_POSTOP  Row:    172  [Prio 1]
    Syntax check warning
    The Unicode flag is not set for class "ZBRT_POS". This is not possible with
    globally activated Unicode checks. .
    Internal Message Code: MESSAGE G{4
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
    EXTENDED CHECK OFF/ON)
    Can u help me resolve this?
    Thanks,
    Nihad

    Hi,
    Goto to your program...'  ZBT_RT_POS ' not the class...  its attributes ..  and check the unicode Checks active ....
    Some more knowledge on unicodes:
    Unicode Checks Active.
    1)          Unicode is intended to imply "unique", "universal", and "uniform".
    2)         To Support multilingual property of the program.
    3)         From Release 6.10 ABAP support multibyte coding in unicode before that ABAP use only character that was based on single byte or double byte.
    Check your version also... Maybe that is the reason you are not able you check it..

  • Working of SLIN in abap

    Hi,
    Can anyone please tell me how does the SLIN work in ABAP.
    I am using a code which involves the use of SLIN in ecc 6.0 system. When I use the same code in 4.7 system, it is giving errors.
    Can I copy-paste the code of the SLIN Type Pool from 6.0 system to 4.7 system ? What will be the effects of it ?

    Hi Nikhil,
          SLIN is nothing but the extended program check. This not only involves the SLIN type pool but there are many classes and objects involved in checking the programs. If you have written a program in ECC 6.0 nod and if you are just trying to copy paste the code in ECC4.7 there will be few errors. This cannot be avoided unless you change the code. Copying SLIN type pool is not a solution for this.
    Please let me know for more details.
    Regards,
    Praveenkumar T.

Maybe you are looking for

  • ITunes 8.1 won't work plus apple TV issue

    ok so my iTunes has stopped working since I updated to 8.1 this is a bit annoying, could it be that it isn't working because i updated it in canada? either way it doesn't work and when i try and play a song it gives an error 'a required component is

  • Not using the I/O drive

    Hello, Is it possible to use the X-Fi Fatality card, when the I/O dri've bay?panel?is not connected? I/m not using the I/O dri've bay?panel anymore, so i like to remove this . Pteradon

  • Using Apple Pro Speakers with MacBookPro - Adapter Help???

    I just got a brand new MBP which is awesome! I am having a lot of fun with it. However a real bummer I noticed is my old Apple Pro Speakers would not connect into my MBP jack. I have done some initial research on this and it seems like the only way t

  • How to create SET in gs01 ?

    Hi friends... I  created one FI report, in which i have hard coded some G/Ls. But users saying that i have to create a SET to maintain  that G/Ls. How to Create a set in GS01 & How to refer it in my coding ? Plz help me. It is very Urgent.

  • What  are the Technical  differences Between XI3.0/PI7.0/PI7.1

    hi experts can any one give me brief idea about all the versions. Both technically and performance point of view.