Condition Exceptions

Hi
Im using the following API:
CL_WS_HELPER=>get_proxy_abapkey_by_esrkey(
  EXPORTING
    esr_key   = l_t_esr_key
  IMPORTING
    abap_key  = l_t_abap_key
EXCEPTIONS
   not_found = 1
This API throws NOT_FOUND Exception.
Questions:
1. I'm not able to find this exception type anywhere in the workbench. In the error it says Exception Condition NOT_FOUND is thrown.
2. How to catch these kind of exceptions?
Please help.
Thanks,
Piyush

Hello,
You donot have to create / handle these EXCEPTIONS. Just uncomment these lines & check SY-SUBRC after the method call:
CL_WS_HELPER=>get_proxy_abapkey_by_esrkey(
EXPORTING
esr_key = l_t_esr_key
IMPORTING
abap_key = l_t_abap_key
EXCEPTIONS   "Uncomment these lines
not_found = 1 "Uncomment these lines
CASE sy-subrc.
WHEN 0.
WHEN 1.
" Error Handling
WHEN OTHERS.
ENDCASE.
BR,
Suhas

Similar Messages

  • Info about conditions, exceptions and celldefinitions

    Hi,
    Please tell me about conditions, exceptions, cell definition and structures.
    can we create conditions characteristics and exceptions on characteristics.
    what is the meaning of cell definitions and how it will be useful.
    Thanks,
    Annam

    Hi,
    Chk this link.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    Regards,
    Mansi

  • Condition / Exception

    Have you ever used a condition / Exception based on the selection screen of a query? This is what i'm trying to do.
    In my query, I have:
    Service Order (CHAR1)
    (Actual Time) KF1
    Planned time KF2
    Deviation (KF1 -KF2)
    My requirement is to highlight service orders where the actual time is greater than a given percentage parameter of the planned time. This parameter should be entered manually on the selection screen. So if the user imputs 10 in the selection screen, the condition would bring back the values where KF1 is 10% more than KF2.
    I havent done this before and unfortunately I dont have any suitable query to play with at work.
    First of all, if I go to the condition box (its 3.5 we use) and try to create a new condition with a variable thats ready for input based on the Actual Time. What else do I need to do to be able to get the percentage and also to make it apprear on the selection screen?

    Jimi,
    Use a CKF to calculatethe percentage. Again use a condition on that CKF to filter the values.
    Again, you can try in the columns itself. Hide the KF1 and KF2. in a new formula you can calculate the diff percentage. And use a forumula variable with user entry to enter percentage and populate it in one column. The hide thath too and in a new column write a formula which shows values for KF if greater than KF2 based on the percentage entered by the user.
    hope this helps you.........

  • Problem evaluating a condition: Exception CX_SWF_RLS_RULE occurred

    Hi all,
    I have a scenario MAIL TO PROXY, and i would like to receive incorrect xml files and send an answer telling this error.
    My problem is in the receiver determination, an error is produced as "Problem evaluating a condition: Exception CX_SWF_RLS_RULE occurred".
    Is there any way to solve this and send an email as an answer?

    Hi,
    Can you provide the whole error message ?
    Check out this thread : Re: Error in Receiver Determination
    Thanks,
    Pooja Pandey

  • In what condition exception "Items with a shortage" will appear?

    Hi All
    i have already running MRP. than i was check in horisontal plan for item MAT-024-NC09 like this.
    my question is :
    1. why in this condition not appear exception : "Items with a shortage"?
    2. in what condition exception "Items with a shortage" will appear?
    3. are there any setup i need to do?
    thanks
    the pooh

    Hi Mohan Balaji,
    this is the setting i have done :
    And i have already assign this planning exception set into item in master item (invetory).
    after I was done running "MRP", it appears a few exceptions, one of which is Item with excess inventory.
    the graph is like this :
    Thanks,
    The pooh

  • How to display top Position Level using conditions / Exception Aggregation

    Hello,
    I have the following problem where I need to list out the row with the highest POSITION LEVEL (with reference to BUSINESS PARTNER). I have tried out all possibilities including Conditions and Exception Aggregation (MAX) but nothing seems to work. Conditions work to an extent i.e. it shows the top position level but unfortunately for the entire query result i.e. only one row is displayed in the result (the first row to satisfy the condition) instead of all the rows for each Business Partner. POSITION LEVEL is a KEY FIGURE value. It also exists as a CHARACTERISTIC under a diferent name in the cube. How can I solve this? Pls help.
    This is how the report looks at present...
    First Name     Last Name     Business Partner Nr.     Date of Birth     Postalcode     City     Position Level
    Testfallini     Enzweiler     3000000020     21.10.1990     63674     New York     1
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     2
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     1
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     1
    Thu-Ha     Tran     3000069951     25.12.1988     93047     Atlanta     2
    Thu-Ha     Tran     3000069951     25.12.1988     93047     Atlanta     1
    This is how the report looks when I use conditions...
    First Name     Last Name     Business Partner Nr.     Date of Birth     Postalcode     City     Position Level
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     2
    This is how the report should look...
    First Name     Last Name     Business Partner Nr.     Date of Birth     Postalcode     City     Position Level
    Testfallini     Enzweiler     3000000020     21.10.1990     63674     New York     1
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     2
    Thu-Ha     Tran     3000069951     25.12.1988     93047     Atlanta     2
    Thanks in advance,
    SD

    Hi Sebastian,
    I thought you need to display all the records with the highest position level at top. But now I realize your requirement.
    It should only display only the maximum position level for each level.
    You can try using the Condition for the position level KF, with Top N operator and value = '1'
    And then go to char assignement tab in the exception and select Most Detail Chars along Rows/Individual Chars. and combinations for the required combination of Chars.
    [List Condition for All Characteristics in Drilldown Independent|http://help.sap.com/saphelp_nw04/helpdata/en/86/dfc405ab60524ea0d3e89db15fb2e7/content.htm]
    [Defining Conditions |http://help.sap.com/saphelp_nw04/helpdata/en/73/702e39074dc93de10000000a114084/frameset.htm]
    Hope this helps....
    Rgs,
    Ravikanth.

  • How many conditions and exceptions  can be defined in a query?

    hi,
    Can any one tell
    How many conditions and exceptions  can be defined in a query?
    i.e
    How many condtion can be defineon an keyf igure with respective to charecteristics?
    Because if we define more conditions on one keyfigure with respective to different chars,there might be some overlap among the conditons andconditions might not work.
    Am i coorect?
    Similary for the exceptions also.
    Simply to be asked aswhat are the limitations of conditons and exceptions?
    Regards
    Naresh

    Hi Naresh,
    In Query we can no limit for creating Condition & Exception
    but Creating Condition : You can create two condition in a single condition it's work 'OR' Condition.
    You can build different condition it will work "AND' Condition.
    Thanks & Regards,
    Venkat.

  • Please Help !  Exception in closing resultset,statement.

    In an application developed on , i am closing the resultsets and statements in finally block as
    finally {
         if (resultset != null) resultset .close();
         if (statement != null) statement.close();
    the above block does not take care of exceptions that might arise while closing resultset/statement. Please help with this:
    what the conditions exceptions may arise in closing resultset/statements.
    when does the garbage collector free such resources and what are the implications of not catching exception while closing - can this cause database handle leaks.
    Please help!

    I don't know what exceptions might occur, but since the close() method can throw SQLException, your program has to catch it. Maybe if you close twice, the second time will throw an exception? Anyway, it doesn't really matter, you still have to write a try-catch around it. What you do there is up to you -- you could ignore it (which is what I do) or you could end the program with a message.
    When does the garbage collector free those resources? The garbage collector only frees memory. Nothing else. And the garbage collector will free a ResultSet object only when there are no references to it anywhere in your program. That doesn't mean just in code that you wrote, but anywhere in code that's running in your program. For example, the Statement object that produced the ResultSet might hold a reference to it. However, the API documentation for ResultSet does say that when the garbage collector does free a ResultSet object, it will automatically close it.
    However, the best practice is to close ResultSet and Statement objects when you are finished with them, and not rely on garbage collection to clean up after you.

  • How to restrict values and apply condition for a characteristic in a query.

    Hi,
    I have to add two customer class(characteristic) fields to my query which is available as a navigational attribute in my multiprovider ( from which my query is built ).
    One field should give the values directly from master data. The values would be PV, CV, IT, OT. The other field should give only PV and CV based on the condition - Except CV, all others (ie. IT and OT) should be converted as PV.
    I like this to be achieved in the query level since i dont want to disturb the underlying cubes in the multicube.
    So i have two questions.
    1. How to bring two fields in the query for the same characteristic.
    2. How to achieve the condition in a characteristic for second customer class field mentioned above.
    Could somebody help me in solving this?
    Thanks in advance,
    Somenath

    Hi Somenath,
    you are absolutely right;)
    Besides the Third step
    Try to add two new Selections to your Structure as
    New Selection1 -> Set the Customer Class value to fix 'PV'
    New Selection2 -> Set the Customer Class value to fix 'CV'
    <b>you have to add</b>
    New Selection3 -> Set the Customer Class value to fix 'IT'
    New Selection4 -> Set the Customer Class value to fix 'OT'
    Fourth step
    Hide these four selections
    Fifth step: Add a new formula to your Structure
    (Customer Class == New Selection3)* New Selection1(Customer Class == New Selection4)* New Selection1(Customer Class == New Selection1)* New Selection2+Customer Class == New Selection2)* New Selection2
    Hope it helps
    Gabor
    ps: experts maybe suggest easier way...

  • Urgent  issue in reciver determantion condition.

    Hi All,
    My interface source is EDI data to traget is WBI MQ(JMS).One of the partner is sending the EDI data trough Seeberger AS2 Adapter and receiving the data through JMS adapter.I did my interface in Receiver determination define the routing condation and configure the receiver id.
    i got error like this.Could you any help me out.
    The messages were not sent due to program error on the receiver determination. Here's the specific error:
    <b>"Error when determining the receiver: Problem evaluating a condition: Exception CX_SWF_RLS_RULE occurred (program: CL_SAI_SWF_RULE_ENGINE========CP, include: CL_SAI_SWF_RULE_ENGINE========CM00W, line: 51). Problem evaluating a condition: Exception CX_SWF_RLS_RULE occurred (program: CL_SAI_SWF_RULE_ENGINE========CP, include: CL_SAI_SWF_RULE_ENGINE========CM00W, line: 51). Exception CX_SWF_RLS_RULE occurred (program: CL_SAI_SWF_RULE_ENGINE========CP, include: CL_SAI_SWF_RULE_ENGINE========CM00W, line: 51)"</b>
    Regards,
    Ramesh

    Hi Ramesh,
    I am sorry my message is not related to your question,but I need some info,
    what are the Seeburger adapters(FTP,As2,Generic EDI,BIC) need to implement EDI=>XI=>SAP and we are getting EDI structure in file format.
    what are the end to end steps involved in implementing this..
    I really appreciate your help.
    thank you,

  • Bex Query Exception Not Appearing In Bex Report

    I have a created an exception in a Bex Query and built a report using the Bex Report Designer. But the exceptions that work fine in the query dont seem to work once I've embedded the query in a report. Is this right? is it not possible to use exceptions in a report or do I need to turn something on etc?
    Any help much apreciated.

    Hi Joel,
    Pls refer the OSS # 331772 reg. this limitation. Exceptions if applied will not be dynamic in RD.
    Report designer is a flat structure. You cannot collapse or expand the static columns. Hence, Conditions/Exceptions are not supported in Report Designer. You may try alternatively in WAD. It will surely work in WAD for formatted web based reports.
    Thanks,
    Arun Bala

  • In Exceptions ,, Cell Restrictions

    Hai ,
      Good morning... in BEX Analyzer i'm  using  Exceptions.... in that two tabs are there..      1.Exception Values
                    2.Cell Restrictions
    my doubt is.. What is the use for Cell Restrictons.... and in that two options are there..1..Totals only
              2. All
    what is  the use for this tab... and.. if i select  Totals... then i'm not able to see the output with exceptions...
    could you plz explain me this.. and send me any documents related to this exceptions..
    thanks
    @jay

    Add one or more alert level rows to the list. See Conditions/Exceptions: Inserting, Changing, Deleting Rows
    An alert level row consists of
    From-value
    To-value
    Alert Level
    From and To Values
    Specify floating point numbers for the from and to values. If you want to, you can leave either the from- or the to- value blank.
    The format depends on the country setting in the operative
    CELL RESTRICITONS
    Choose the Cell Restrictions tab page if you want to define more precisely the data cells of the report for which the exception is evaluated
    REFER THIS LINK
    http://help.sap.com/saphelp_nw04/helpdata/en/1e/7875a998bc44409f6002e28552685a/frameset.htm
    regards,
    raj

  • "Problem evaluating a condition" at Receiver Determination

    Hi,
    I've created a complex mail to rfc interface, in which, message is being send as mail attachment  and service inbound interface has multiple operations (each for corresponding rfc).
    at Receiver Determination, rule was created with multiple conditions, in order to determine correct "Communication Component" (multiple receiver agreement and  interface determination were created to supported this "multi interfaces" scenario).
    If no receiver was found message is ignored.
    once in a while, bad non-xml messages (e.g., "asdfasdfasdfffdfdsasdf") are being send,  is this case, while PI is trying to determining the receiver (i.e., evaluate Receiver Determination conditions) exception is being thrown, message is therefor has system error status* (at sxmb_moni) and it can not be ignored (as i wanted it to be).
    how can i workaround this problematic scenario?
    Regards
    Uri
    *Error message (sxmb_moni)
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Receiver Determination
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">CX_RD_PLSRV</SAP:Code>
      <SAP:P1>Problem evaluating a condition: An exception has occurred.</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Error when determining the receiver: Problem evaluating a condition: An exception has occurred. Problem evaluating a condition: An exception has occurred. An exception has occurred. An exception has occurred. An exception has occurred. An exception has occurred. An exception has occurred. Problem extracting values from the Payload: Check line 2 column 1 of the XML document</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    Abhishek,
    10x for your replay, but as far as i understand this is exactly the case here.
    conditions are:
    cond1: (/rfc: RFC1 ~ *)
    cond2: (/rfc: RFC2 ~ *)
    this works as expected in cases of xml messages (in case no cond is satisfied) message is ignored. but, in case of non-xml message exception is being thrown while cond is assessed.
    Regards
    Uri

  • Schedule Agreement Conditions

    Hi Gurus,
    I want all those conditions that are present in Pricing procedure and those appear in PO to appear in Schedule agreement too. I am not getting the conditions except discounts in SA. I want conditions like Packing & Forwarding, Frienght to appear in SA too.
    I am getting these conditions only when I make the SA document type as Time Indipendent which I do not want. That mean I want these conditions to appear in SA even when it is time dependant.
    I appreciate speedy response and reward...
    Regards
    Shash

    Hi,
    In pricing procedure please give all the condition and assing the schema group to the vendor .try to create scheduling agreement definitely all the condition will come there
    G.Ganesh Kumar

  • Conditions in report (radiobutton : single char or combination of char)

    Hi friends,
    I have a got a doubt while writing conditions , could you please help me?
    Question : What is the use of "radiobutton: <u>single charateristics or combination of charateristics</u>" under  "Evaluate the conditions below" block.
    Points will be rewarded

    Hi
    You can find more information under Ranked List Condition: Top 5 Products and Ranked List Condition for All Characteristics in Drilldown Independent: Top 3 Products and Top 3 Sales Channels.
    ¡        If you want to evaluate the condition for certain drilldowns of defined characteristics or characteristic combinations, in the field Evaluate the Conditions Below for Single characteristics or Combinations of Characteristics. You can then make entries in the list of characteristics used in the queries in rows, columns, or free characteristics.
                                                      i.       If you only want to evaluate the condition when a certain characteristic is present in the drilldown, select this characteristic.
                                                    ii.       If you want to evaluate the condition for characteristic combinations, select multiple characteristics.  You can find more information under Ranked List Condition for Characteristic Combination: Top 3 Combinations of Product and Sales Channel.
    ¡        In the field Display all values for which at least one of the following conditions applies, enter one or more condition rows into the list. See Conditions/Exceptions: Add, Change, Delete Rows
    A condition row is always derived from the determination of an element for every structure used in the query (usually one or two structures), an operator, and a value that matches the operator.
    You can choose from the following operators for threshold conditions:

Maybe you are looking for