Syntax check warning message related to exception

Hello When I do extended  check to a  Z include inside  another Include SAPMV45A...
     Messages for Syntax check warnings(Error)
      Program:  SAPMV45A  Include:  ZV841INC  Row:    122  [Prio 1]
Syntax check warning
The exception CX_AI_SYSTEM_FAULT is neither caught nor is it declared in the
RAISING clause of "USEREXIT_SAVE_DOCUMENT_PREPARE".
Internal Message Code: MESSAGE G-Q
(The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
EXTENDED CHECK OFF/ON)
<B>The  Piece of code is </b>
CATCH cx_ai_system_fault .
        DATA fault TYPE REF TO cx_ai_system_fault .
        CREATE OBJECT fault. 
        WRITE :/ fault->errortext.
    ENDTRY. 
Could you please suggest any solution

Your code looks wrong. You don't use CREATE with an exception class inside the CATCH.  It should look something like this:
DATA fault TYPE REF TO cx_ai_system_fault .
TRY...
CATCH cx_ai_system_fault INTO fault.
  WRITE :/ fault->errortext.
ENDTRY.
matt

Similar Messages

  • 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..

  • Syntax check warning

    Hi All,
              I hav a small query . i m working in upgrade and in slin syntax check warning i m getting warning
    i hav a statement like   ULINE AT 0(120).
    Its giving a warning " Syntax check warning
    The static output position "0" must be positive."
    Can anyone plzz guide me regarding this,
    thanking u all.
    regards,
    sahakla

    Hi..,
    in list output..
    the list output length  will be counted in terms of characters.. the default list length is 132 characters..
    maximum no.of characters is 1023..
    the count starts from 1.
    thats it !!
    there is nothing much abt it.
    plz do remember to close the thread when ur problem is solved !! reward all helpful answers !!
    regards,
    sai ramesh

  • Warning Messages related to Reconstruct Availability Control for Project

    Hi Gurus,
    In Transaction IM52 - Change Original Budget for Investment Management Program, after changing the Budget Values of Investment Management Position and when we check the transaction for error, we get Warning Messages, the warning message is as follows:
    You Must reconstruct the availability control for Project P.000XXX.
    We tried to reconstruct the Availability Control in Transaction CJBN and again checked for errors in IM52, then also we get Warning Messages.
    As these are only Warning Messages we can ignore and save the modified budget values for the Investment Management Program.  But we want to know whey these Warning Messages are keep on cropping up inspite of reconstructing the Availability Control for Project.
    You inputs on this will help us immensly.
    Thanks,
    KRN

    hi KRN!
    I am also facing the same issue.
    Even if i am having enough budget, while making a PO, the system says " Budget exceeded".
    i could processs the PO, after performing CJBW (deactivate), CJEN (refresh) and then performing CJBV ( activate availabilty control) for that project.
    This is repeating everytime i make a PO. is there any permanent solution?
    Even after performing all the above, if i check in IM52, and check for budgets (perform from menu), the error is " You Must reconstruct the availability control for Project P.000XXX"

  • How to rectify Extended Syntax check warning , when object REF TO is used..

    hi all,
    when  running "Extended program check " for the below , I am getting warning error when I delcare the below stmts.
    DATA: go_alv  TYPE REF TO cl_salv_table.
            lo_selections   TYPE REF TO cl_salv_selections,
          lo_display_settings
                        TYPE REF TO cl_salv_display_settings,
        lo_events       TYPE REF TO cl_salv_events_table,
        lo_content_top  TYPE REF TO cl_salv_form_element,
    THE MESSAGE ARE
    Field GO_ALV is not referenced statically in the program                
    (The message can be hidden with "#EC *)                                                                               
    Program:  ZJTEST  Row:     69                                     
    Field LO_EVENTS is not referenced statically in the program             
    (The message can be hidden with "#EC *)                                                                               
    Program:  ZJTEST  Row:     74                                     
    Field LO_DISPLAY_SETTINGS is not referenced statically in the program   
    (The message can be hidden with "#EC *)                                                                               
    Program:  ZJTEST  Row:     76                                     
    Field LO_SELECTIONS is not referenced statically in the program         
    (The message can be hidden with "#EC *)        
    is there any way I can avoid this warning message apart using #EC ??? is there any way to avoid this ??/
    kindly help
    thanks

    In Program
    a)
    DATA: lo_top_element TYPE REF TO cl_salv_form_layout_grid,
             lo_grid      TYPE REF TO cl_salv_form_layout_grid,
             lo_header    TYPE REF TO cl_salv_form_header_info,
             lo_label     TYPE REF TO cl_salv_form_label,
             lo_text      TYPE REF TO cl_salv_form_text,
             lo_logo      TYPE REF TO cl_salv_form_layout_logo,
             lv_logo      TYPE bds_typeid,
             lv_title_h   TYPE sytitle.
    TYPES:  ty_logo(70)  TYPE c.
      CONSTANTS:
            lc_alv_logo                TYPE ty_logo VALUE 'CE_NEW_LOGO'.
      CREATE OBJECT lo_top_element
          EXPORTING
            columns = 3.
      lo_grid = lo_top_element->create_grid( row = 3
                                            column = 1 ).
      CONCATENATE 'Header ' 'Information' INTO
                         lv_title_h SEPARATED BY space.
    Row 1 header information is set
      lo_header = lo_grid->create_header_information(
         row     = 1
         column  = 1
         text    = lv_title_h
         tooltip = lv_title_h ).
      lo_grid->add_row( ).
    Row 2 Doc. date is set
      lo_label = lo_grid->create_label(
        row     = 2
        column  = 1
        text    = text-b02
        tooltip = text-b02 ).
      lo_text = lo_grid->create_text(
        row     = 2
        column  = 2
        text    = s_docket-low
        tooltip = s_docket-low ).
      lo_text = lo_grid->create_text(
        row     = 2
        column  = 3
        text    = s_docket-high
        tooltip = s_docket-high ).
      lo_grid->add_row( ).
      CREATE OBJECT lo_logo.
      lo_logo->set_left_content( lo_grid ).
      lv_logo = lc_alv_logo.
      lo_logo->set_right_logo( lv_logo ).
      pt_content_top = lo_logo.
    Extended program check :
    No read access to field LO_HEADER             
    (The message can be hidden with "#EC NEEDED)  
    No read access to field LO_LABEL              
    (The message can be hidden with "#EC NEEDED)  
    No read access to field LO_TEXT               
    (The message can be hidden with "#EC NEEDED)  
    Kindly giude

  • STO Availability Check - Warning Message

    When you create an STO & if there is not enough stock in supplying plant, you got a WARNING message saying something like u201C of Material XXXXXX, only 49 EA are available on desired dateu201D. The STO is saved but the system put a date of 12/31/9999 into the COMMITTED DELIVERY DATE for that material/line item. Even when additional materials are available, since the COMMITTED DELIVERY DATE is 12/31/9999, SAP will not try to deliver them. Now the business is asking to change this warning message to error message (06 450 Message number). If I change this warning message to error message, I believe it will impact all other type of STO's, PO's & SO's also. We want this warning message to be changed to Error message only for a particular STO type. What are the options available to us.

    Hi Jay,
    Please, see SAP Note 323306 - Adjust availability check for delivery creation. You can see as you can create your own VOFM where you have the message.
    I hope this helps you
    Regards
    Eduardo

  • Extended Program Check Warning For Syntax Check

    Warning:
    Syntax Check Warning
    This Warning only Displayed in SLIN
    WHERE lgtyp IN S_LGTYP.
      Messages :
      In "SELECT SINGLE...", the where condition for the key field "LGTYP" does not test  for equality .
      There fore the single record yuor searching may not be unique.
    IF NOT S_LGTYP[] IS INITIAL.
        SELECT SINGLE * FROM T301
         WHERE lgtyp IN S_LGTYP.----
    >IT SHOWING THIS LINE
        IF SY-SUBRC NE 0.
          MESSAGE E005(Z01).
        ENDIF.
    ENDIF.

    Hi Raghu,
    When you are using SELECT SINGLE, it is always better to use EQ in the condition than IN.
    Instead of using select-options S_LGTYP, declare a parameter: P_LGTYP and if possible re-write the select query as below:
    SELECT SINGLE * FROM T301 into lv_variable
    WHERE lgtyp EQ  P_LGTYP .
    Regards
    Deepa.

  • 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.

  • Transfer of warning message to black berry

    Hi,
    I am working on Offline approval of Shopping cart and Purchase Order to blackberry. I wanted know how to transfer the error/warning message to black berry.
    Thnks

    For Account Assignment WBS element, budget check warning message. Expectation is that even if the shopping cart/PO is exceeding the budget, shopping cart/PO should be allowed for approval with the warning message. This warning message should be displayed in the blackberry.
    The Budget check warning message for WBS element from ECC should be displayed in offline approval email.
    I wanted to know how can we manage this situation
    Edited by: a.sreenivas77 on Jan 26, 2012 7:21 PM

  • Warning in query in Extended Syntax Check

    Hi all,
    I perform Extended Syntax Check.
    It generates following warning for the query: -
    In "SELECT SINGLE....", the WHERE condition for the key field "MATNR" does not test for equality. Therefore the single record in question may not be unique.
    (You can hide the message using "#EC *)
    Please tell me what does it mean. How can I suppress this warning?
    Regards,
    Saurabh A. Buksh

    Hi,
    whenu r using select single use a variable or a workarea don't use tables.
    select single matnr from mara into v_matnr
    where matnr in s_matnr.
    also as it is warning message u can neglectit .
    when u  r using select single u should give entire key information also.
    Regards,
    Nagaraj
    Message was edited by: nagaraj kumar nishtala

  • Extended syntax check how to remove warning

    I get the following WARNING message in extended syntax xheck.
    How to remove it.
    INT_TABLE stands for 2 fields: Table INT_TABLE[] and its header line           
    Field INT_TABLE is not referenced statically in the program       
    Here is the definition of int_table
    TYPES : BEGIN OF x_table,
              SIGN(1) TYPE C,
              OPTION(2) TYPE C,
              LOW(10) TYPE C,
              HIGH(10) TYPE C,
            END OF x_table.
    int_table    TYPE STANDARD TABLE OF x_table.             
    Int_table is used in a function module as a TABLE parameter in the form,
    In the perform S_user_field is used

    Hi,
    Do some kind of check for ur interanl table in the program.
    if not INT_TABLE[] is initial.
    endif.
    Regards,
    Nagaraj

  • Warning assigning 0 to BA... in ABAP syntax check on DELETE itab statement

    Hello,
    I didn't see an answer to that question in the forum/internet, nor in SAP notes, so I post it.
    I have a 7.01 system, and this code:
    TYPES : BEGIN OF ts_record,
              carrid    TYPE S_CARR_ID,
              employees TYPE p,
            END OF ts_record.
    TYPES tt_record TYPE SORTED TABLE OF ts_record
          WITH UNIQUE KEY carrid.
    DATA lt_record TYPE tt_record.
    DELETE lt_record WHERE employees = 0.
    The syntax check sends the following warning and places the cursor on the number "0" of the DELETE statement:
    Assigning "0" to "BA" could result in data loss. It is therefore not
    possible to optimize the LOOP. The components and values should have
    identical types The types have identical types
    Same thing if I make the internal table hashed or non-unique.
    The warning is removed only if I replace 0 by a data object of same type as EMPLOYEES, or if I make the internal table standard.
    Do you now why, I mean what is the intrinsec kernel algorithm that would make something slow? (and why a "data loss"?, what is "BA", is it a wrong translation or something else?)
    Thank you
    Sandra

    Hi Gautham,
    So, it would mean something like "hey do you know you could access the internal table by using = on the key fields and it will be optimized", like a kind of advertisement, but sent only in a few cases, I don't see why in other ones they are not sent... Hopefully we don't have this warning with READ TABLE. Maybe this warning is more useful in 7.02 with secondary index... ( BTW could somebody test if the warning is sent in 7.02 systems? )
    In German, I get a better message I think, so "BA" is a bug:
    Die Zuweisung von "0" nach "EMPLOYEES" ist potentiell nicht
    verlustfrei. Es sind deshalb keine Optimierungen beim LOOP möglich.
    Bitte eine identische Typisierung bei Komponenten und Werten benutzen.
    which is google-translated:
    The assignment of "0" after "EMPLOYEES" is potentially not
    without loss. It is therefore not possible to use optimizations for LOOP.
    Please identical components and typing in values.
    which seems a better translation.
    Hi Maximilian,
    you're right, <= keeps the warning from being displayed, that's fun!
    Well, I guess the warning is not very welcome, I hope that will be changed in the future!
    Thanks for your valuable answers
    Sandra
    Edited by: Sandra Rossi 1 minute later
    One more question: Is there a way to suppress this warning from the syntax check?

  • Warning message in me_process_req_cust badi - check method

    Hi all,
    I have implement me_process_req_cust badi and I want to give a warning message in check method. But it doesnt work. When I change the message type to E instead of W, it works. How can I give a warning message in check method? I will be very happy if you help me..
    Thanks...

    Thanks, but it didn't solve my problem. I still can't see my message..

  • Warning messages from ME_PROCESS_REQ_CUST  method CHECK

    Hello All,
    I am facing below mentioned issue with BADI ME_PROCESS_REQ_CUST
    1: how can we issue warning messages from BADI ME_PROCESS_REQ_CUST method CHECK?
    2: Check method is called twice if I click on check button in ME52N.
    Thanks

    HI  ,
    You can  use  Below 
    include mm_messages_mac. "useful macros for message handling
    if  ur condition   .
    mmpur_message_forced 'W' 'ME' '083' text-001 '' '' ''.
    endif.
    text-001  : text element   for your description  .
    BUt Warning Message will not keep the screen on error page  .  it will be  better  to use   'E' for error   if you want 
    mmpur_message_forced 'E' 'ME' '083' text-001 '' '' ''.
    regards
    Deepak.
    Edited by: Deepak Dhamat on Oct 21, 2011 8:20 AM

  • In iphoto how to get the gold you delete a photo warning message when you check the box not ask

    in iphoto how to get the gold you delete a photo warning message when you check the box not ask

    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7 or later: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

Maybe you are looking for