How to handle help function type in a dynpro

Hello
I've made a button with the functiontype H ( Help Function) and now I'd like to react on this button.
But in the POV AND POH I can't call a module, because for this I need an input-/outputfield.
(FIELD "FIELDNAME" MODULE "MODULENAME").
My question is, how can I react on this functiontype / "HelpButton" ?
Thx in advance
Christian

There are two ways:
First************
Process after input.
module user_command.
Code inside module user_command:
IF SY-UCOMM = 'H'      "Function code for help button
*fetch all the list and store into an internal table.
* Call another screen to display the internal table.
endif.
Second*****************
Create an input field on the screen and make it invisible.
Process after input.
module user_command.
Code inside module user_command:
IF SY-UCOMM = 'H'      "Function code for help button
*fetch all the list and store into an internal table.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
*         DDIC_STRUCTURE         = ' '
      retfield               = 'name of field of internal table which is to be returned to invisible dynpro field'
*         PVALKEY                = ' '
     dynpprog               = 'program name'
     dynpnr                 = 'dynpro number'
     dynprofield            =  'name of invisible dynpro field'
*    STEPL                  = 0
*    WINDOW_TITLE           =
*    VALUE                  = ' '
    value_org              = 'S'
*   MULTIPLE_CHOICE        = ' '
*   DISPLAY                = ' '
*   CALLBACK_PROGRAM       = ' '
*   CALLBACK_FORM          = ' '
    TABLES
      value_tab              = Internal table containing list to be displayed
*     FIELD_TAB          =
*     RETURN_TAB             =
*      dynpfld_mapping        =
   EXCEPTIONS
     parameter_error        = 1
     no_values_found        = 2
     OTHERS                 = 3
endif.

Similar Messages

  • How to handle multiple exception types in JSF 2?

    I'm trying to handle multiple exception types in JSF2, including a default error page for any unexpected exception types. The problems I'm having are:
    1) ViewExpiredException is handled only when no generic exception handler is specified
    2) "Regular" exceptions like NullPointerException are never handled
    My managed bean:
    @Named
    @SessionScoped
    public class MyController implements Serializable {
    /* A method that does nothing */
    public void doNothing() {
        //do nothing
    /* Generate a null pointer exception on purpose */
    public void generateNpe() throws NullPointerException {
        Object x = null;
        x.toString();
    My test page to generate the exception:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Test page</title>
    </h:head>
    <h:body>
        <h:form>
            <h:commandButton id="button1" value="do nothing" action="#{myController.doNothing}" />
            <h:commandButton id="button2" value="generate NPE" action="#{myController.generateNpe}" />
        </h:form>
    </h:body>
    </html>
    My web.xml:
    <!-- Redirect all NPEs to this page; this never works! -->
    <error-page>
        <exception-type>java.lang.NullPointerException</exception-type>
        <location>/error/error003.jsf</location>
    </error-page>
    <!-- Redirect all VEEs to this page; this works fine if the next section is excluded -->
    <error-page>
        <exception-type>javax.faces.application.ViewExpiredException</exception-type>
        <location>/error/error002.jsf</location>
    </error-page>
    <!-- This grabs everything, even with the previous sections defined.  If I exclude this error-page section, VEE works fine but NPE still does not get redirected -->
    <error-page>
        <exception-type>java.lang.Exception</exception-type>
        <location>/error/error001.jsf</location>
    </error-page>My questions are as follows:
    1) How can we handle "regular" java exceptions like NPE?
    2) How can we define a catch-all for unexpected exception types, while still respecting specific exception handlers for VEE, etc?
    Thanks,
    Benjamin

    Is your data model right? If you are adding in one and deleting in another it sounds to me more like a process that an entity, in which case you may revisit your data model and simplify it, add in a session bean with the process method to co-ordinate between the two.
    However, if you want to map multiple different tables within a single entity bean it is possible and just part of the mapping. How you actualyl specify it depends on which implementation you are working with.
    Cheers,
    Peter.

  • How to handle "byte" data type

    Hi,
    In web dynpro java project to consume a web service, I am unable to handle "byte" data type in binding wizard. It is not allowing to bind a element saying that "Context Attribute with Java Native Type BYTE cannot be selected". Please help me to resolve this.
    Thank you.
    Regards
    Bhanu.

    Hi
    you can define byte[] in golobal area, at the end of iview. 
    //@@begin others
    byte b1[];
      //@@end
                      IWDResource r;
           byte b[];
           InputStream inputStream;
         try {
              inputStream = r.read(true);
                int x = inputStream.read(b);
         } catch (IOException e) {
              e.printStackTrace();
    Regards
    Anup

  • How to handle NUMBER data type of SQL

    Hello All,
    I have to call an Oracle store procedure developed by 3rd party, it has once of the input parameter as NUMBER.
    Since NUMBER SQL data type is not support by PI 7.0 (http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/7b72b2fde93673e10000000a114a6b/content.htm),
    when I am execute this scenario, it through an error for - Unsupported parameter type 'NUMBER'.
    I cannot change the store procedure or any thing in Oracle.
    I gone through some thread but did not find any help. NUMBER type for Oracle SP
    Please let me know if there any work around.
    Thanks in Advance.
    Pradeep

    Thanks for your reply.
    I cannot customize the stored procedure parameter to NUMERIC, as this is standard SP is from a product.
    Below is the final XML generated with error on PALC and PREL parameter for NUMBER, ideally it should be
    <PALC isInput="true" type="NUMBER"/>
    <PREL isInput="true" type="NUMBER"/>
    <Statement xmlns="">
    <LSA_REL_DM action="EXECUTE">
        <table>ACQDR.lsa_rel_dm</table>
          <PPROJECTID isInput="true" type="VARCHAR">85LJ24210</PPROJECTID>
          <PDMC isInput="true" type="VARCHAR">LJ200-A-J00-00-00-00-00AAA-00K-AA</PDMC>
          <PLCN isInput="true" type="VARCHAR"/>
          <PALC isInput="true"/>     
          <PTYPE isInput="true" type="CHAR"/>
          <PSOURCE_CODE isInput="true" type="VARCHAR"/>
          <PREL isInput="true"/>     
          <PRFU isInput="true" type="VARCHAR"/>
          <POBJECT isInput="true" type="BLOB">&lt;dmodule xsi:noNamespaceSchemaLocation="C:/Projects/S1000D/Document/schema/TIR_Parts_Vendors.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;identAndStatusSection&gt;&lt;dmAddress&gt;&lt;dmIdent&gt;&lt;dmCode modelIdentCode="LJ200" systemDiffCode="A" systemCode="J00" subSystemCode="00" subSubSystemCode="00" assyCode="00" disassyCode="00" disassyCodeVariant="AAA" infoCode="00K" infoCodeVariant="A" itemLocationCode="A"/&gt;&lt;language languageIsoCode="US" countryIsoCode="sx"/&gt;&lt;issueInfo issueNumber="0" inWork="1"/&gt;&lt;/dmIdent&gt;&lt;dmAddressItems&gt;&lt;issueDate year="20111107" month="20111107" day="20111107"/&gt;&lt;dmTitle&gt;&lt;techName&gt;General&lt;/techName&gt;&lt;infoName&gt;Organizations technical information repository&lt;/infoName&gt;&lt;/dmTitle&gt;&lt;/dmAddressItems&gt;&lt;/dmAddress&gt;&lt;dmStatus&gt;&lt;security securityClassification="01"/&gt;&lt;responsiblePartnerCompany enterpriseCode="24210"&gt;&lt;enterpriseName&gt;Learjet&lt;/enterpriseName&gt;&lt;/responsiblePartnerCompany&gt;&lt;originator enterpriseCode="24210"&gt;&lt;enterpriseName&gt;Learjet&lt;/enterpriseName&gt;&lt;/originator&gt;&lt;applicCrossRefTableRef&gt;&lt;dmRef&gt;&lt;dmRefIdent&gt;&lt;dmCode modelIdentCode="LJ200" systemDiffCode="A" systemCode="J00" subSystemCode="0" subSubSystemCode="0" assyCode="00" disassyCode="00" disassyCodeVariant="A" infoCode="00W" infoCodeVariant="A" itemLocationCode="A"/&gt;&lt;/dmRefIdent&gt;&lt;/dmRef&gt;&lt;/applicCrossRefTableRef&gt;&lt;brexDmRef&gt;&lt;dmRef&gt;&lt;dmRefIdent&gt;&lt;dmCode modelIdentCode="LJ200" systemDiffCode="A" systemCode="J00" subSystemCode="0" subSubSystemCode="0" assyCode="00" disassyCode="00" disassyCodeVariant="A" infoCode="022" infoCodeVariant="B" itemLocationCode="D"/&gt;&lt;/dmRefIdent&gt;&lt;/dmRef&gt;&lt;/brexDmRef&gt;&lt;/dmStatus&gt;&lt;/identAndStatusSection&gt;&lt;content&gt;&lt;techRepository&gt;&lt;partRepository/&gt;&lt;/techRepository&gt;&lt;/content&gt;&lt;/dmodule&gt;</POBJECT>
            <PSTATUS isInput="true" type="CHAR">D</PSTATUS>
            <PISSTYPE isInput="true" type="CHAR"/>
            <POBJECT_CLASS isInput="true" type="VARCHAR">XML</POBJECT_CLASS>
        </LSA_REL_DM>
    </Statement>
    Thanks in Advance

  • How to handle different message types of EDIFACT in single input file.

    Hi All,
    Currently we have a requirement like we will be receiving the input with different messages in the same input file (eg: ORDERS and ORDRSP in the same file).
    We have configured both the message types in the document definitions. One more thing is the versions of the messages are different.
    When we pass the input we are getting the error.
    The input looks like below,
    UNB
    UNG
    UNH*ORDERS
    UNT
    UNE
    UNG
    UNH*ORDRSP
    UNT
    UNE
    UNZ
    Please assist us to overcome the error.
    Thanks,
    Ravindra.

    Hi Prasanna,
    Thanks for your reply.
    I have created the agreements for both the messages still i'm getting the below error,
    B2B-50037
    B2B inbound message processing error
    If i give the input as separate messages (i mean 2 input files). Its working fine.
    Also let me know is there any configuration settings to handle multiple messages in a single input file.
    Thanks,
    Ravindra.

  • How to handle "Variant" data type?

    I am using SQL 2000, and want to use "Variant" data type. Can I handle it in java with ODBC connection? What classes and methods need I use? Thanks a lot.

    ODBC does not have a notion of variant types. This limits the use of the sql_variant data type with an ODBC driver in SQL Server 2000. In SQL Server 2000, if binding is specified, the sql_variant data type must be bound to one of the documented ODBC data types.
    (Quote from http://msdn.microsoft.com/library/en-us/odbcsql/od_6_020_28yr.asp )
    Possible solutions:
    - CAST or CONVERT the datatype to another suitable data type in the query
    OR
    - Retrieve the column as a binary stream

  • How to handle accessing different types of files in e-tester

    I have a page which has 8 links: 1st link points to a zipper file, 2nd~7th link point to several word file and 8th link points to a GIF file. In this step, i will just randomly click one link and verify if the file can be successfully accessed.
    The problem is: If i click zipper link, it will directly download the file and open winzip. If i click word links , it will download the file and then display Word content just in place. If i click GIF link, the GIF will be normally shown.
    What i want is just to verify if the step is successful only when the file can be successfully accessed(download or viewed). So does anyone have some workrounds or VBA codes to just verify if file access is successfully done
    Edited by: user783927 on Dec 4, 2008 1:55 AM

    Hello sir,
    This is rohit kumar doing final year project on Network Security(Cryptography)
    my topic is Rijndael algorithm.
    i am searching for code and documentation. so could u give me full information
    of rijndael algorithm .
    It will be helpful
    Thanks,

  • How to handle Decode function?

    Hi All,
    I am using a dynamic sql query for deletion. here is the Query
    DELETE FROM t_mob WHERE EXISTS (SELECT 1 FROM temp_sal
    WHERE UPPER(sm_trans) IN ('CHG') AND sm_code IS NOT NULL AND fsyb_code = sm_code)
    AND (fsyb_code, fsyb_code) NOT IN (
    SELECT sm_code, vds_code FROM t_ven , temp_sal
    WHERE UPPER(sm_trans) IN ('CHG') AND sm_code IS NOT NULL
    AND vds_code = sm_code and vds_code <>'CQ' AND vds_code = sm_code) ;
    Before running the above Query i have few list as CQ/YY/TT/GG and so on and this are called as vend.
    Now when i am trying to run the 2nd inner query i am getting result as YY/TT9/GG...
    But when i have run the 1st ineer Query then it is displaying result as "TT" which is geeting deleted from the table.
    Now the requiremnet is when evere we have TT it should not delete that record..What i have analyzed that 2nd inner loop is appending with TT9 but where as 1st one is showing as TT and hence the records is geeting deleted.
    How i can append 9 to the above query so that it matches and hence it will stop deleting those records.
    Hope u have understood my problem.
    Thanks,
    Anoo..

    got a little lost on what is going on but if you are just trying to change a TT9 into TT a decode as you mentioned or case
    should work
    with t as  (select t.column_value vendor_cd  from table(sys.odcivarchar2list('YY','TT9','GC','CQ','TT')   ) t)
    select vendor_cd,  decode(vendor_cd,'TT9','TT',vendor_cd) new_vendor_cd  from t;
    VENDOR_CD     NEW_VENDOR_CD
    YY     YY
    TT9     TT
    GC     GC
    CQ     CQ
    TT     TT

  • Wireless keyboard operation on ipad - how to handle touch functions like email garbage can?

    Received gift of wireless keyboard for my ipad. Managed bluetooth pairing and am stumped on functions other than simple typing. Can any keys be used for functions like the garbage can in email?

    As far as I know it just replaces the onscreen keyboard, the iPad is a touch device and you will need to touch the screen for some things. The function keys for display brightness control, iPod and volume control also work.

  • How to handle boolean data type

    class one{
    public static void main(String args[]){
    two obj=new two();
    int number=5;
    boolean answear=obj.greater(number);
    if(answear=true){
    System.out.println("number is greater than 3");}
    else {
    Sytem.out.println("number is less than 3"); }
    //main
    }//class
    class two{
    boolean greater(int no){
    if (no>=3) return true;
    else return false;
    }//greater
    }//class two
    What i want is to pass variable 'number' in to
    class two method greater and print the greatest
    number in main method.
    but this don't give me the correct answear . whats wrong .
    Please help me..

    You must be getting the output as
    number is greater than 3
    everytime. right?
    its because of this line
    if(answear=true)
    This line will make the if loop as true everytime irrespective of answear, as you are not comparing true with answear but ur assigning true to answear.
    it should be
    if(answear == true)
    then it will work

  • How to handle sy-ucomm in generated screen/dynpro

    Hi,
    like the topic says, I have a problem to handle
    the user-input in or better, after the first screeen!
    I think, the best Info is the code itself:
    SELECTION-SCREEN BEGIN OF screen 100 as window.
    SELECT-OPTIONS:  s_kunnr  for wa_besuche-kunnr,
                     s_bzirk  FOR wa_besuche-bzirk,
                     s_vtweg  FOR wa_besuche-vtweg,
                     s_vkgrp  FOR wa_besuche-vkgrp,
                     s_dat    FOR sy-datum DEFAULT '20070101' TO '20071231'.
    SELECTION-SCREEN END   OF screen 100.
    call screen 100.
    datumuntergrenze = s_dat-low.
    datumobergrenze  = s_dat-high.
    perform daten_selektieren_generieren.
    * Here I want to handle sy-ucomm (if the user doesn't
    * pushed the EXIT/CANCEL/BACK-Buttton in screen 100,
    * the following screen 200 should be called)
    * --------> BUT SY-UCOM IS EMPTY
    call screen 200.
    I would be very nice, if somebody can
    help me with this sh...!

    hi, thanks for your response!
    I can't use your hint, because with the code:
    SELECTION-SCREEN BEGIN OF screen 100 as window.
    there will be a "GENERATED" screen. This means, there
    is a screen with all the input fields und the label 100 which I can't
    edit! Because if I edit this screen and activate my source again,
    my changes will be undone!
    So is my question, if there is another system-field than sy-ucom?

  • How to handle table type record in OAF

    Hi ,
    Req:
    There is a search page that can be accessed from different locations .
    The result set should be different when accessed from each location .
    Approach to be used :
    Call a PL/SQL api which returns a table type input parameter for different search conditions . Each record that is returned by the table type input needs to be iterated and a new row should be created in a transtient VO to show results on the UI
    Problem :
    How to handle to table type input returned from pl/sql in java and show the results?
    Thanks in advance.

    There is a requirement to fetch records from cursor into a collection .Following is the code snippet that I have used.
    /** creating an object **/
    CREATE OR REPLACE TYPE XXCRM_GBL_DSW_AUDIT_RSTLS_O_TP AS OBJECT (
    CUSTOMER_NAME VARCHAR2(360),
    PROJECT_NAME VARCHAR2(40),
    BOARD_NAME VARCHAR2(40),
    ARROW_UNIQUE_NO NUMBER,
    FIELD_NAME VARCHAR2(2000),
    OLD_VALUE VARCHAR2(2000),
    NEW_VALUE VARCHAR2(2000),
    USER_ID NUMBER,
    USER_NAME VARCHAR2(100),
    AUDIT_DATE DATE,
    AUDIT_TYPE VARCHAR2(1),
    SUPP_SYS_LAST_UPDATE_ON DATE,
    SUPP_TRACKING_NUM VARCHAR2(50),
    CONSTRUCTOR FUNCTION XXCRM_GBL_DSW_AUDIT_RSTLS_O_TP
    RETURN SELF AS RESULT
    /** initializing the object **/
    CREATE OR REPLACE TYPE BODY XXCRM_GBL_DSW_AUDIT_RSTLS_O_TP IS
    CONSTRUCTOR FUNCTION XXCRM_GBL_DSW_AUDIT_RSTLS_O_TP
    RETURN SELF AS RESULT IS
    BEGIN
    self.customer_name := fnd_api.g_miss_char;
    self.project_name := fnd_api.g_miss_char;
    self.board_name := fnd_api.g_miss_char;
    self.arrow_unique_no := fnd_api.g_miss_num;
    self.field_name := fnd_api.g_miss_char;
    self.old_value := fnd_api.g_miss_char;
    self.new_value := fnd_api.g_miss_char;
    self.user_id := fnd_api.g_miss_num;
    self.user_name := fnd_api.g_miss_char;
    self.audit_date := fnd_api.g_miss_date;
    self.audit_type := fnd_api.g_miss_char;
    self.supp_sys_last_update_on := fnd_api.g_miss_date;
    self.supp_tracking_num := fnd_api.g_miss_char;
    return;
    END;
    END;
    /** creating a collection of object**/
    CREATE TYPE XXCRM_GBL_DSW_AUDIT_RSTLS_C_TP AS TABLE OF XXCRM_GBL_DSW_AUDIT_RSTLS_O_TP;
    /**Inside the package body **/
    CURSOR c_proj_cur is
    SELECT NULL CUSTOMER_NAME,
    (SELECT project_name
    FROM xxcrm_gbl_dsw_projects_all
    WHERE project_id = xgda.project_id) PROJECT_NAME,
    DECODE(xgda.board_id,NULL,'test',
    (SELECT board_name
    FROM xxcrm_gbl_dsw_boards_all
    WHERE board_id = xgda.board_id)) BOARD_NAME,
    DECODE(xgda.internal_dwr_id,
    NULL,NULL,
    (SELECT internal_dwr_id
    FROM xxcrm_gbl_dsw_regstrations_all
    WHERE internal_dwr_id = xgda.internal_dwr_id)) ARROW_UNIQUE_NO,
    fielslu.meaning FIELD_NAME,
    xgda.old_value OLD_VALUE,
    xgda.new_value NEW_VALUE,
    xgda.created_by USER_ID,
    'kuldeep' USER_NAME,
    xgda.Creation_Date AUDIT_DATE,
    xgda.audit_Level AUDIT_TYPE,
    SYSDATE SUPP_SYS_LAST_UPDATE_ON,
    't001' SUPP_TRACKING_NUM
    FROM XXCRM_GBL_DSW_AUDIT_ALL xgda ,
    FND_LOOKUP_VALUES_VL fielslu
    WHERE xgda.project_id =174
    AND fielslu.lookup_type = 'XXCRM_DSW_REV_FIELD_NAMES'
    AND fielslu.lookup_code = xgda.FIELD_NAME
    AND enabled_flag = 'Y'
    AND TRUNC(SYSDATE) BETWEEN TRUNC(NVL(fielslu.start_date_active,sysdate))
    AND TRUNC(NVL(fielslu.end_date_active,sysdate))
    ORDER BY xgda.creation_date;
    Tab XXCRM_GBL_DSW_AUDIT_RSTLS_C_TP ;
    BEGIN
    OPEN c_proj_cur;
    LOOP
    FETCH c_proj_cur BULK COLLECT INTO tab; --ERROR type mismatch found at 'TAB' between FETCH cursor and INTO variables
    END LOOP;
    END;
    /**Error */
    When the above script is executed it gives an error “type mismatch found at 'TAB' between FETCH cursor and INTO variables” (at line highlighted above).
    I have validated the data type of cursor and object too. But still the error is not resolved .
    Did anyone of you come across a similar requirement, fetching the values from cursor into a collection? Please help.

  • Parameter Variable Handling in own Function Types

    Hi experts,
    I've implemented a customer function type using a separate ABAP class. The function type has got several parameters that should be filled in a command that is defined on a WebTemplate button group. Planning functions that use this type are working fine by setting the parameter in the WebTemplate statical (using a string). But if the parameter is bind to a BEx variable or are DataProvider selection nothing will be given to the function type. Investigation in the SAP ABAP code gave me the information, that in case of variables the SAP code will return only empty values, although the code itself has got the technical id of the corresponding variable.
    So my question is, how to give own function types implementation the current navigation state of WebTemplates, e.g. using the DataProvider selection or the state of BEx variables?
    Anyone here with interesting and helpful hints?

    Timo,
    When you stated that parameter readings in your function returns nothing when using variables i assumed that binding is not happening because in the case of binding with variables not only the definition of the binding is important but also the settings of the variables in the metadata (input ready, mandatory etc.),also i assumed that your button is not showing the variable screen and in this case with mandatory variables when no value is bound to the variable then the popup screen appears any way and the function is stopped .
    Hope this helps.
    Regards,
    Eitan.

  • I bought a cd with Lightroom 5. After installation and registration I am not able to use 'help' function and I cannot update the software. I anyone able to give me a hint how to handle it? Thank you ind advance Karl

    I bought a cd with Lightroom 5. After installation and registration I am not able to use 'help' function and I cannot update the software. Is anyone able to give me a hint how to handle it?
    Thank you in advance
    arl

    Hi Keith, sorry for my late reply.
    Surely I am able to connect to the help function when Icontact the website
    of AdobeLR5.The problem is as follows,
    When I open LR5 on my computer and work with it and try to open the help
    function in the software, I don't get it.
    When I bought the CD I was naiv enough to believe that I get an independent
    working software. I learned in the meantime, that the seller does not allow
    to work with, without being connected to them.
    I don't believe that I am paranoid, but I like to buy something and use it
    without to inform the supplier that I do it. Otherwise I could have bought
    the license fpr LR5 via internet.
    Best regards
    Karl
    2015-01-02 13:42 GMT+01:00 kglad <[email protected]>:
        I bought a cd with Lightroom 5. After installation and registration I
    am not able to use 'help' function and I cannot update the software. I
    anyone able to give me a hint how to handle it? Thank you ind advance Karl
    kglad <https://forums.adobe.com/people/kglad?et=watches.email.outcome>
    marked Keith_Reeder
    <https://forums.adobe.com/people/Keith_Reeder?et=watches.email.outcome>'s
    reply on I bought a cd with Lightroom 5. After installation and
    registration I am not able to use 'help' function and I cannot update the
    software. I anyone able to give me a hint how to handle it? Thank you ind
    advance Karl
    <https://forums.adobe.com/thread/1669640?et=watches.email.outcome> as
    helpful. View the full reply
    <https://forums.adobe.com/message/7059196?et=watches.email.outcome#7059196>

  • How to handle JCO Exceptions at JCO (RFC) function call

    Hello Forum,
    I am implementing an JCO Server scenario.
    I use dynamic repositories like Example7.java from the JCO documentation.
    Example7 throws an JCO.AbapException if anything went wrong, e.g. the function is not implemented.
    How to react on this AbapException?
    The examples in SAP Help documentation only catch
    SYSTEM_FAILURE and COMMUNICATION_FAILURE.
    All other RFC modules I have seen which declare the function modules to be used by dynamic JCO repositories (like Example7.java) do not define any other Exception parameters.
    But these two are only thrown and caught when something with communication went completely wrong, e.g. RFC not found.
    But when RFC can be reached and the JCO Server is executing the Java method, an AbapException could be thrown on error. How to react on this?
    In my implementation based on the examples I always get a ABAP dump. The dump says:
    Exception named  without message text. Why that name?
    How to handle this type of exception in order to avoid the dump?
    Can anyone post an example please?
    Thanks,
    Carsten
    Edited by: Carsten Schön on Apr 15, 2008 4:22 PM
    Edited by: Carsten Schön on Apr 15, 2008 4:24 PM

    Hi Micky,
    thanks for your quick response.
    If so, to throw JCO.AbapException on JCO Server side is not correct?
    What I do is throwing the JCO.AbapException (like in the JCO Example 7).
    At the RFC call in APAB I handle both exceptions SYSTEM_FAILURE and COMMUNICATION_FAILURE like
    CALL FUNCTION 'MY_JCO_FUNCTION_MODULE'
        DESTINATION JCO_DEST
        <...>
        EXCEPTIONS
          SYSTEM_FAILURE        = 1  MESSAGE RFC_MESS
          COMMUNICATION_FAILURE = 2  MESSAGE RFC_MESS.
    This works as far something with RFC is wrong, e.g. Server can not find the function or Server not reachable.
    But the AbapException thrown by the JCO Server (Java) is not handled that way. Why?
    Sorry if this is the wrong forum but I tried posting in Netweaver integration and got no answer for 1 week and because it's ABAP related I thought the topic suites here.
    Carsten
    Edited by: Carsten Schön on Apr 15, 2008 5:10 PM

Maybe you are looking for