Need to capture the output of parseEscapedXML() function in a variable

Hi All,
In my BPEL process, I am fetching the XML data from the database which is stored in a CLOB column, using the database adapter. As it is in a string type I am using parseEscapedXML() function to get the XML data out.
I have done the following:
Imported the XSD to the project. Created a variable of element type and in the type explorer , navigated to 'Project Schema Files' -> My .XSD file -> complex XML element. But when I use this variable in any of my process activities, I get the following compilation error:
Error(58):
[Error ORABPEL-10010]: unresolved element
[Description]: in line 58 of "<bpel procedure path>", XML element "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}OutboundPaymentInstruction" of variable "Variable_2" is not defined.
[Potential fix]: Make sure the XML element "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}OutboundPaymentInstruction" is defined in one of WSDLs that are referenced by the deployment descriptor.
Which WSDL file is the error referring to (I use empty BPEL process as the template)
Could anyone please let me know how do I create a variable which is of my XSD type and use the variable for further transformation.
Thanks a lot.
Regards,
Prad

Prad,
Did you get this resolved? I am having the same issue and can not get it to work.
Thanks
Troy
Message was edited by:
user641994

Similar Messages

  • How to capture the output of another program into a File/String

    I needed to capture the output of a dos program in an String/file I tried doing Runtime.getRuntime.exec("ipconfig /all >tmp.txt");
    but still I am unable to capture the output frm the program which I would like to capture in a file or String.Can anyone help

    When you use the Runtime.exec() method, it returns a Process object, that process object has access to the streams; stdout, stdin, and stderr of the application you just executed. what you'll want to monitor is the stdout or stderr streams using the
    p.getInputStream() or p.getErrorStream(), where p = the process object returned via the Runtime.exe() method.

  • Capturing the output of a os command line

    I need to capture the output of a os command line executed from one java program and I don't know how can do it.
    For example:
    Runtime.getRuntime().exec("hostid");

    Your suggestion worked very well, just in case that this could interest somebody, this is the complete solution
    Thanks for your help
    import java.io.*;
    public class HostID
    public static void main(String args[]){
    try{
    InputStream in = (Runtime.getRuntime().exec("hostid")).getInputStream();
    byte[] arreglo= new byte[200];
    int cantidad = in.read(arreglo);
    System.out.println(new String(arreglo,0,cantidad));
    } catch (IOException ioe){System.out.println(ioe.getMessage());}
    }

  • Capturing the Output of a webservice on an APEX form

    Hi,
    I have created an application that calls a Webservice (BPEL process). The application has a single form that takes in a single field (ReviewDate) and calls the Webservice. The Webservice does its thing and returns a mesage "The review date has been accepted".How do I capture this message in my form? I have the placeholders for input and output parameters but the output is not returned to the form. What do I need to do capture this message?
    Also, please note that the webservice does its thing successfully. I only need to capture the output of the webservice in my form.
    Thanks
    Vijay

    You can set the MIME content type as .doc and try to open the Page.
    res.setContentType("application/vnd.ms-excel"); to generate the Page output as Excel
    res.setContentType("application/vnd.ms-word"); to generate the Page output as MS Word doc
    Hope this helps..

  • Capturing the output from jsp selvlet

              Hi,
              I have a requirement where I need to capture the output of the JSP generated servlet
              , and do something with it before it get's to the client side.
              Has someone done something like this before.Any ideas, suggestions .
              Thanx,
              Tajdar
              

    You can set the MIME content type as .doc and try to open the Page.
    res.setContentType("application/vnd.ms-excel"); to generate the Page output as Excel
    res.setContentType("application/vnd.ms-word"); to generate the Page output as MS Word doc
    Hope this helps..

  • XI needs to capture the form back in the mail adapter

    Hi Experts,
    I am working on a scenario where , data needs to be sent from SAP and in XI , a form sort of( like a web form or pdf form) needs to be created.  This form needs to be emailed ( using the mail adapter ) to an outside entity.  They will fill out the form and email it back.  XI needs to capture the form back in the mail adapter translate it and put the data back into sap.
    Can some one help me out with this ?
    Regards,
    Hemanthika

    Hi patnaik
    Follow these links to covert to PDf and then mailing through mail adapter
    Converting Smartform into PDF and sent to EMAIL
    Check this..Smartform as attachment in mail. - 46k
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/convert-smartforms-form-in-pdf-998715 - 87k
    SMART form to PDF
    https://wiki.sdn.sap.com/wiki/display/Snippets/ConvertSmartformtoPDFformat
    smartform to MAIL
    https://wiki.sdn.sap.com/wiki/display/Snippets/SmartformtoMailasPDF+attachment
    regards
    Sandeep sharma
    If helpful kindly reward points

  • Capturing the output of a jsp page and save that output in a WORD .doc file

    Hi,
    This is Naveen. I got stuck up with a problem/doubt. URGENT ! URGENT !
    My doubt is how to capture the output of a jsp page(the content is dynamic generated) and save that output to a MS-Word doc file.
    I know that therez an option of using Servlets Filters, but this concept is supported by Servlet 2.3 spec. and not earlier. And we are working on previous spec. and our web-servers also supports the prev. version and not the 2.3 version.
    If incase, therez a third-party utility for free usage, suggestions are appreciated.
    Hope most of them came across this kind of functional requirement. If anyone of them succeeded in this, please express ur bitter experience if any, faced during the coding.
    Thanks in Advance for help.
    Naveen

    You can set the MIME content type as .doc and try to open the Page.
    res.setContentType("application/vnd.ms-excel"); to generate the Page output as Excel
    res.setContentType("application/vnd.ms-word"); to generate the Page output as MS Word doc
    Hope this helps..

  • Conv. based on the month - Need to display the output in quarterly basis.

    Hi Gurus,
    I need to display the output quarterly based on the month.
    For example,
    If the year is 2012 and month is between
    01 to 03 i need to display it as 2012Q1
    likewise 04 to 06 as 2012q2
    and 07 to 09 as 2012q3
    and 10 to 12 as 2012q4.
    Please help me by providing sample codes. Please help yourself by writing the code and get back when you have a specific question.
    Thanks!
    Regards,
    Manoj
    Edited by: kishan P on Mar 2, 2012 3:14 PM

    Hi Vinod
    To get the last 13 months in webi report .follow below approach
    Assuming you have calendar Month object in the report.
    convert your selected date into M/d/yy format . let's say you selected 12/18/13 , your variable should be 12/1/13
    variable :
    Selected Month =ToDate(FormatDate(useresponse("Date");"Mmm yyyy");"Mmm yyyy")
    Flag for month     =ToDate([CalMonth];"Mmm yyyy")<=[Selected Month]
    Report filter          =[Flag for month]+Previous(Self)
    select the table you want to filter
    add filter -> Report filter between 1 to 13.
    Hope this will help.

  • To capture the output

    Hi all ,
    I Wish You A Happy New Year!!!!!!!!
    I am trying to capture the output of a java program into a file i.e,when I run the java program at command prompt and get the output, the output must be automatically captured into a file is this possible using java code
    Please help me
    Thanks,
    raghu

    And Mac OS/X is a unix variant, so it works there too.
    You can also redirect standard output in Java itself by using System.setOut, but once you're altering the Java code, I'd suggest refactoring the code so that it doesn't send all its output to standard output necessarily.

  • Storing the output of a function module into a custom table

    Hi Gurus,
    Is it possible to store the output of a function module into a custom table.How can this be done?Is it complex?

    hi,
    After u execute the FM and get values in the internal table ITAB_RESULT. Create a custom table having structure same as ITAB_RESULT call it ZRESULT.
    data :wa type ITAB_RESULT.
    call FM and get result it ITAB_RESULT
    loop at itab_result.
    move-corresponding itab_result to wa.
    insert wa to ZRESULT.
    endloop.
    Regards,
    Mansi.

  • Populating the output parameter in function module.

    Hi Experts,
       I have written a function module,with material number,BEZEI as input and mvgr2 as output from table tvm2t.I am facing a problem in populating the material number as well in outputtable.The material number in input is nothing to do with output.
    please help me at the earliest.
    Regards,
    Sridevi.

    Hmmm, you wrote that the output is 'table parameter' but you mention 2 single fields. If you expect a good reply here, it helps to mention how you defined the table and how you select the data for the output. For example: input is matnr and you select the material group of this matnr. Output is all other matnr of this material group. Then we would know what you want to do here.
    So please describe what you need and give us the table description.
    Regards
    Nicola

  • How to break the output in a function

    Hi All,
    I am using oracle Db 10g
    I have write a function to get the output of Expire date and pass this function to Alert in oracle.
    My Function is Like this
    create or replace
    function Expiry_alert (P_EXPIRY_DATE date)
    return VARCHAR2
    IS
    lv_return_value varchar2(10000);
    cursor c_exp_alt
    is
    SELECT Distinct c_po_number,c_bg_type,c_guarantee_number,c_expiry_date,c_supplier_name
    from xxbgs_bank_guarantee_master
    WHERE TRUNC (TO_DATE (C_expiry_date) -15) = TRIM (SYSDATE)
    and c_expiry_date= p_expiry_date;
    BEGIN
    for c_exp_alt_rec in c_exp_alt
    loop
    lv_return_value:= lv_return_Value||CHR(10)||'Bank Guarantee('||c_exp_alt_rec.C_guarantee_number||','||c_exp_alt_rec.C_BG_TYPE ||','||c_exp_alt_rec.C_po_number||','||c_exp_alt_rec.c_supplier_name ||')'||'is getting expired on'||'('||C_EXP_ALT_REC.C_EXPIRY_DATE||')'||;
    end loop;
    return(lv_return_value);
    exception
    when others then
    null;
    --dbms_output.put_line ('Error:'sqlerrm);
    --return(lv_return_value);
    END;
    When i execute the function using select statement like this
    SELECT distinct Expiry_alert(C_EXPIRY_DATE)
    FROM xxbgs_bank_guarantee_master
    WHERE TRUNC (TO_DATE (C_expiry_date)-15) =
    TRIM (SYSDATE)
    My output is like this
    Bank Guarantee(100012,Parent Company Guarantee,1000,Advantage Corp)is getting expired on(02-MAR-12) Bank Guarantee(123890,Advance Bank Guarantee,1011,Office Supplies, Inc.)is getting expired on(02-MAR-12)
    In a single line, But here i have two different Guarantee number so i need two records like this
    Bank Guarantee(100012,Parent Company Guarantee,1000,Advantage Corp)is getting expired on(02-MAR-12)
    Bank Guarantee(123890,Advance Bank Guarantee,1011,Office Supplies, Inc.)is getting expired on(02-MAR-12)
    Can any one pls tell me how to change the function to achieve this.
    Regards
    Srikanth
    Edited by: Srikkanth.M on Feb 16, 2012 4:41 PM

    Srikkanth.M wrote:
    Hi All,
    I am using oracle Db 10g
    I have write a function to get the output of Expire date and pass this function to Alert in oracle.
    My Function is Like this
    .. snip ..
    exception
    when others then
    null;
    Seriously? Your function contains an exception handler to mask any and all errors that may occur? WHY?
    When i execute the function using select statement like this
    SELECT distinct Expiry_alert(C_EXPIRY_DATE)
    FROM xxbgs_bank_guarantee_master
    WHERE TRUNC (TO_DATE (C_expiry_date)-15) =
    TRIM (SYSDATE)
    My output is like this
    Bank Guarantee(100012,Parent Company Guarantee,1000,Advantage Corp)is getting expired on(02-MAR-12) Bank Guarantee(123890,Advance Bank Guarantee,1011,Office Supplies, Inc.)is getting expired on(02-MAR-12)
    In a single line, But here i have two different Guarantee number so i need two records like this
    Bank Guarantee(100012,Parent Company Guarantee,1000,Advantage Corp)is getting expired on(02-MAR-12)
    Bank Guarantee(123890,Advance Bank Guarantee,1011,Office Supplies, Inc.)is getting expired on(02-MAR-12)
    Can any one pls tell me how to change the function to achieve this.Sounds like you need a pipelined function to return multiple rows...
    Basic example of pipelined function with multiple columns...
    CREATE OR REPLACE TYPE myrec AS OBJECT
    ( col1   VARCHAR2(10),
      col2   VARCHAR2(10)
    CREATE OR REPLACE TYPE myrectable AS TABLE OF myrec
    CREATE OR REPLACE FUNCTION pipedata(p_str IN VARCHAR2) RETURN myrectable PIPELINED IS
      v_str VARCHAR2(4000) := REPLACE(REPLACE(p_str, '('),')');
      v_obj myrec := myrec(NULL,NULL);
    BEGIN
      LOOP
        EXIT WHEN v_str IS NULL;
        v_obj.col1 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
        v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
        IF INSTR(v_str,',')>0 THEN
          v_obj.col2 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
          v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
        ELSE
          v_obj.col2 := v_str;
          v_str := NULL;
        END IF;
        PIPE ROW (v_obj);
      END LOOP;
      RETURN;
    END;
    SQL> select *
      2  from table(pipedata('(1,2),(3,4),(5,6)'));
    COL1       COL2
    1          2
    3          4
    5          6of course why you need to do this in a function in the first place? Can't you just query the data concatenated as you want it?

  • I need to send the output of report as a mial

    hi all,
    how can i send the output of an ALV GRID as a mail ...
    the visibilty of this GRID is good.
    and at the same time if i use the FM 'SO_DOCUMENT_SEND_API1'
    its being sent as an attachment,which i need to send jus a mail...not as an attachment.
    kindly reply me ASAP

    REPORT  YMS_SENDMAILREPORT NO STANDARD PAGE HEADING.
    TABLES: DRAD,
            QINF,
            DRAW,
            SOUC,
            SOFD,
            DRAP.
    DATA: P_RETURN_CODE LIKE SY-SUBRC.
    data: d_username LIKE DRAP-PRNAM.
    * mail declarations
    DATA : BEGIN OF NEW_OBJECT_ID.         " the newly created email object
            INCLUDE STRUCTURE SOODK.
    DATA : END OF NEW_OBJECT_ID.
    DATA : BEGIN OF FOLDER_ID.             " the folder id of the outbox
            INCLUDE STRUCTURE SOODK.
    DATA : END OF FOLDER_ID.
    DATA : BEGIN OF REC_TAB OCCURS 5.     " the table which will contain the
            INCLUDE STRUCTURE SOOS1.       " information on the destination
    DATA : END OF REC_TAB.
    DATA : BEGIN OF OBJECT_HD_CHANGE.      " the table which contains the
            INCLUDE STRUCTURE SOOD1.       " info for the object we will be
    DATA : END OF OBJECT_HD_CHANGE.        " creating
    DATA : OBJECT_TYPE LIKE SOOD-OBJTP.    " the type of object
    DATA : BEGIN OF OBJHEAD OCCURS 5.      " the header of the object
            INCLUDE STRUCTURE SOLI.
    DATA : END OF OBJHEAD.
    DATA : BEGIN OF OBJCONT OCCURS 0.      " the contents of the object
            INCLUDE STRUCTURE SOLI.        " i.e. the text etc
    DATA : END OF OBJCONT.
    DATA : BEGIN OF OBJPARA OCCURS 5.      " formatting options
            INCLUDE STRUCTURE SELC.
    DATA : END OF OBJPARA.
    DATA : BEGIN OF OBJPARB OCCURS 5.      " formatting options
            INCLUDE STRUCTURE SOOP1.
    DATA : END OF OBJPARB.
    DATA : BEGIN OF T_MAIL_TEXT OCCURS 0,  "Message table for messages to
            STRING(255),                   "user via mailbox
           END OF T_MAIL_TEXT.
    Parameter: p_uname like sy-uname.
    **START-OF-SELECTION
    START-OF-SELECTION.
        d_username = p_uname.
        PERFORM POPULATE_EMAIL_TEXT.
        PERFORM SETUP_TRX_AND_RTX_MAILBOXES USING P_RETURN_CODE.
        PERFORM CREATE_AND_SEND_MAIL_OBJECT.
    *       FORM POPULATE_EMAIL_TEXT                                      *
    *       Inserts text for email message                                *
    FORM POPULATE_EMAIL_TEXT.
      CLEAR T_MAIL_TEXT-STRING.            "puts a blank line in
      APPEND T_MAIL_TEXT.
      APPEND T_MAIL_TEXT.
    *  adds failed list  on to end of success list.
      T_MAIL_TEXT-STRING = 'Test email message line 1'.
      APPEND T_MAIL_TEXT.
      T_MAIL_TEXT-STRING = 'Test email message line 1'.
      APPEND T_MAIL_TEXT.
      CLEAR T_MAIL_TEXT-STRING.            "puts a blank line in
      APPEND T_MAIL_TEXT.
      T_MAIL_TEXT-STRING = 'Header1    Header2    Header3'.
      APPEND T_MAIL_TEXT.
      T_MAIL_TEXT-STRING = '------------    ------------    ------------'.
      APPEND T_MAIL_TEXT.
    ENDFORM.
    *&      Form  SETUP_TRX_&_RTX_MAILBOXES
    *   Ensure that the mailboxes of the sender (INTMGR) are set up OK
    FORM SETUP_TRX_AND_RTX_MAILBOXES USING P_RETURN_CODE.
    * get the user no of the sender in order to add the mail to the
    * user name's outbox for future reference
      SELECT SINGLE * FROM SOUC
               WHERE SAPNAM = SY-UNAME.    "SAP name of a SAPoffice user
      IF SY-SUBRC NE 0.
        "Error finding the SAPoffice user info for the user
        MESSAGE E064(ZR53) WITH SY-UNAME.
        P_RETURN_CODE = 1.
        EXIT.
      ENDIF.
    *Get the outbox No for the sender from the user No where the folder
                                           " type is an outbox
      SELECT * FROM SOFD WHERE OWNTP = SOUC-USRTP   "Owner type from ID
                           AND OWNYR = SOUC-USRYR   "Owner year from the ID
                           AND OWNNO = SOUC-USRNO   "Owner number from the I
                           AND FOLRG = 'O'."Output box
      ENDSELECT.
      IF SY-SUBRC NE 0.
        " Error getting folder information for the user
        MESSAGE E065(ZR53) WITH SY-UNAME.
        P_RETURN_CODE = 1.
        EXIT.
      ENDIF.
    ENDFORM.                               " SETUP_TRX_&_RTX_MAILBOXES
    *&      Form  CREATE_AND_SEND_MAIL_OBJECT
    FORM CREATE_AND_SEND_MAIL_OBJECT.
      FOLDER_ID-OBJTP = SOFD-FOLTP.        " the folder type ( usually FOL )
      FOLDER_ID-OBJYR = SOFD-FOLYR.        " the folder year ( usually 22 )
      FOLDER_ID-OBJNO = SOFD-FOLNO.        " the folder no.
      OBJECT_TYPE     = 'RAW'.             " the type of object being added
    * build up the object information for creating the object
      OBJECT_HD_CHANGE-OBJLA  = SY-LANGU.  " the language of the email
      OBJECT_HD_CHANGE-OBJNAM = 'PS to DM Interface'. " the object name
    * mail subject 'Mass Linking of QA, pass/fail'
      MOVE TEXT-002 TO OBJECT_HD_CHANGE-OBJDES.
      OBJECT_HD_CHANGE-DLDAT = SY-DATUM.   " the date of the email
      OBJECT_HD_CHANGE-DLTIM = SY-UZEIT.   " the time of the email
      OBJECT_HD_CHANGE-OBJPRI = '1'.       " the priority ( highest )
      OBJECT_HD_CHANGE-OBJSNS = 'F'.       " the object sensitivity
    * F is functional, C - company sensitive
    * object_hd_change-skips  = ' '.       " Skip first screen
    * object_hd_change-acnam  = 'SM35'.    " Batch imput transaction
    * object_hd_change-vmtyp  = 'T'.       " Transaction type
    * add the text lines into the contents of the email
      CLEAR OBJCONT.
      REFRESH OBJCONT.
    *  free objcont.      " added this to delete the mail contents records
      LOOP AT T_MAIL_TEXT.
        OBJCONT-LINE = T_MAIL_TEXT-STRING.
        APPEND OBJCONT.
      ENDLOOP.
      CLEAR OBJCONT.
    * build up the table of receivers for the email
      REC_TAB-RCDAT = SY-DATUM.            " the date to send the email
      REC_TAB-RCTIM = SY-UZEIT.            " the time to send the email
    * the SAP username of the person who will receive the email
      REC_TAB-RECNAM = D_USERNAME.
    * the user type of the person who will send the email ( USR )
      REC_TAB-SNDTP = SOUC-USRTP.
    * the user year of the person who will send the email ( 22 )
      REC_TAB-SNDYR = SOUC-USRYR.
    * the user number of the person who will send the email
      REC_TAB-SNDNO = SOUC-USRNO.
    * the sap username of the person who will send the email
      REC_TAB-SNDNAM = SY-UNAME.
    * get the user info for the receiver of the document
      SELECT SINGLE * FROM SOUC WHERE SAPNAM = D_USERNAME.
      IF SY-SUBRC NE 0.
        WRITE : / TEXT-001, D_USERNAME.    "usnam.
        EXIT.
      ENDIF.
    * the user number of the person who will receive the email ( USR )
      REC_TAB-RECNO = SOUC-USRNO.
    * the user type of the person who will receive the email ( USR )
      REC_TAB-RECTP = SOUC-USRTP.
    * the user year of the person who will receive the email ( USR )
      REC_TAB-RECYR = SOUC-USRYR.
    * the priority of the email ( highest )
      REC_TAB-SNDPRI = '1'.
    * check for delivery on the email
      REC_TAB-DELIVER = 'X'.
    * send express so recipient knows there is a problem
      REC_TAB-SNDEX = 'X'.
    * check for a return receipt
      REC_TAB-READ = 'X'.
    * the sap username of the person receiving the email
      REC_TAB-ADR_NAME = D_USERNAME.       "usnam.
    * add this receiver to the internal table
      APPEND REC_TAB.
      CLEAR REC_TAB.
    * call the function to create the object in the outbox of the sender
      CALL FUNCTION 'SO_OBJECT_INSERT'
           EXPORTING
                FOLDER_ID                  = FOLDER_ID
                OBJECT_HD_CHANGE           = OBJECT_HD_CHANGE
                OBJECT_TYPE                = OBJECT_TYPE
                OWNER                      = SY-UNAME
           IMPORTING
                OBJECT_ID                  = NEW_OBJECT_ID
           TABLES
                OBJCONT                    = OBJCONT
                OBJHEAD                    = OBJHEAD
                OBJPARA                    = OBJPARA
                OBJPARB                    = OBJPARB
           EXCEPTIONS
                ACTIVE_USER_NOT_EXIST      = 1
                COMMUNICATION_FAILURE      = 2
                COMPONENT_NOT_AVAILABLE    = 3
                DL_NAME_EXIST              = 4
                FOLDER_NOT_EXIST           = 5
                FOLDER_NO_AUTHORIZATION    = 6
                OBJECT_TYPE_NOT_EXIST      = 7
                OPERATION_NO_AUTHORIZATION = 8
                OWNER_NOT_EXIST            = 9
                PARAMETER_ERROR            = 10
                SUBSTITUTE_NOT_ACTIVE      = 11
                SUBSTITUTE_NOT_DEFINED     = 12
                SYSTEM_FAILURE             = 13
                X_ERROR                    = 14
                OTHERS                     = 15.
      IF SY-SUBRC NE 0.
        MESSAGE A063(ZR53) WITH SY-SUBRC.
        EXIT.
      ENDIF.
    * call the function to send the already created email to the receivers
      CALL FUNCTION 'SO_OBJECT_SEND'
           EXPORTING
                FOLDER_ID                  = FOLDER_ID
                OBJECT_ID                  = NEW_OBJECT_ID
                OUTBOX_FLAG                = 'X'
                OWNER                      = SY-UNAME
           TABLES
                RECEIVERS                  = REC_TAB
           EXCEPTIONS
                ACTIVE_USER_NOT_EXIST      = 1
                COMMUNICATION_FAILURE      = 2
                COMPONENT_NOT_AVAILABLE    = 3
                FOLDER_NOT_EXIST           = 4
                FOLDER_NO_AUTHORIZATION    = 5
                FORWARDER_NOT_EXIST        = 6
                NOTE_NOT_EXIST             = 7
                OBJECT_NOT_EXIST           = 8
                OBJECT_NOT_SENT            = 9
                OBJECT_NO_AUTHORIZATION    = 10
                OBJECT_TYPE_NOT_EXIST      = 11
                OPERATION_NO_AUTHORIZATION = 12
                OWNER_NOT_EXIST            = 13
                PARAMETER_ERROR            = 14
                SUBSTITUTE_NOT_ACTIVE      = 15
                SUBSTITUTE_NOT_DEFINED     = 16
                SYSTEM_FAILURE             = 17
                TOO_MUCH_RECEIVERS         = 18
                USER_NOT_EXIST             = 19
                X_ERROR                    = 20
                OTHERS                     = 21.
      IF SY-SUBRC EQ 0.
        MESSAGE I035(ZR53) WITH NEW_OBJECT_ID D_USERNAME. "usnam.
      ELSE.
        MESSAGE I036(ZR53) WITH D_USERNAME."      sy-subrc.
      ENDIF.
    ENDFORM.                               " CREATE_AND_SEND_MAIL_OBJECT

  • Flex automation - need to capture the mousemove

    hi All,
         I am creating Whiteboard application. I want to test my application through automation, but i can't capture the mousemove event.
    Inside the Whiteboard i have drawing fucntionality, this functionality require the mousedown, mousemove and mouseup events. I need to capture these events.
    Please help me.
    - Rajan

    I tryed that method.
    This is my sample file:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml"applicationComplete="init();"
    >
    <mx:Script>
    <![CDATA[
    import mx.automation.Automation; 
    import mx.automation.IAutomationManager; 
    private function init():void
    bindDraw.addEventListener(MouseEvent.MOUSE_DOWN, _MouseDownHandler,
    false, 0, true);}
    private function _MouseDownHandler(evt:MouseEvent):void{
    this.systemManager.addEventListener(MouseEvent.MOUSE_UP, _MouseUpHandler, false, 0, true); 
    bindDraw.addEventListener(MouseEvent.MOUSE_MOVE, _MouseMoveHanlder,
    false, 0, true); 
    bindDraw.graphics.lineStyle(3, 0, 1);
    bindDraw.graphics.moveTo(evt.localX, evt.localY);
    private function _MouseMoveHanlder(evt:MouseEvent):void{
    bindDraw.graphics.lineTo(evt.localX, evt.localY);
    private function _MouseUpHandler(evt:MouseEvent):void{
    bindDraw.graphics.clear();
    this.systemManager.removeEventListener(MouseEvent.MOUSE_UP, _MouseUpHandler, false); 
    bindDraw.removeEventListener(MouseEvent.MOUSE_MOVE, _MouseMoveHanlder,
    false);}
    private var _count:Number = 0; 
    private function clickHandler(evt:MouseEvent):void{
    evt.currentTarget.label=
    "clicked "+(++_count);}
    ]]>
    </mx:Script>
     <mx:Button id="b1" label="click me" click="clickHandler(event)"/>
     <mx:Canvas showInAutomationHierarchy="true" id="bindDraw" width="100%" height="100%" />
     <mx:Canvas id="fff" width="100" height="100" backgroundColor="34233"/></mx:Application>

  • Class or method needed to capture the event triggered

    Hi All,
           Help needed in finding the event triggered in ALV container.
    As per my requirement , I am registering the event mc_evt_modify for getting the search help(MEKK) in a ALV container . However it is triggered when ever I am inserting a row in ALV container and also the method data_changed is also triggered with that. But I don't want the method data_changed to be triggered.
    Is there any method or class which captures the event triggered so that I can put a condition on mc_evt_modify event.
    Please help me to resolve this issue.
    Regards,
    Srinivas

    Hi,
    You can check event ONF4
    "1 . --------------------   first register it
      DATA: it_f4 TYPE lvc_t_f4,
            wa_f4 TYPE lvc_s_f4.
      wa_f4-fieldname = 'CONNID'.
      wa_f4-register = 'X'.
      wa_f4-CHNGEAFTER = 'X'.
      APPEND wa_f4 TO it_f4.
    CALL METHOD g_alv_grid_ref->register_f4_for_fields
        EXPORTING
          it_f4 = it_f4.
    "2. --------------------------- now handle it
    handle_on_f4 FOR EVENT onf4 OF cl_gui_alv_grid
                               IMPORTING e_fieldname e_fieldvalue er_event_data,
    METHOD handle_on_f4.
        DATA: repid LIKE sy-repid,
              dynnr LIKE sy-dynnr,
              field TYPE help_info-dynprofld.
        repid = sy-repid.
        dynnr = sy-dynnr.
        field = e_fieldname.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
          EXPORTING
            tabname           = 'SFLIGHT'
            fieldname         = 'CONNID'
            searchhelp        = "give search help here
            dynpprog          = repid
            dynpnr              = dynnr
            dynprofield       = field.  "return picked value to the one you are in
        "prevent furhter standard processing
        er_event_data->m_event_handled = 'X'.
      ENDMETHOD.                  
    Regards
    Marcin

Maybe you are looking for

  • Powerbook purchased in 2003 has no airport card?

    The manual says my powerbook is equipped with AirPort Extreme wireless technology, but system profiler says, "no information found" about the AirPort card. I never tried to connect to a wireless lan until I tried today and nothing happened – no autom

  • After downloading iOS 8.1.3, lost the use of messaging and face time, shortly after my e-mail. Any suggestions?   Valo

    After downloading iOS 8.1.3, I lost the use of messaging, face time and shortly there after my e-mail. I changed and reset everything I could on my I-Pad... same result. It can't be my router or my provider, for my I-Pod touch works fine. Any suggest

  • How to add a new tab in Multiple Selections of Select Options

    Hello Experts I have a requirement where under the standard select options there is a button "Multiple Selections", when it is clicked there should be a new tab in which there will be a list of options generated based on some condition with checkboxs

  • Base tables plsss

    hai Cananyone tell me wht are the base tables for 1) Opening , Closing Inventroy 2) Production (Material Group = Prime/Nonprime/Scrap) 3) Downstream Usage 4)Liftings 5) Shutdowns I think , these belong to PP/SD/LE/Inventory modules . Pls tell me urge

  • RV042 firmware upgrade failure to 4.0.2.08-tm

    Tried upgrading my firmware to 4.0.2.08-tm and now I cannot log in via the web interface. The router boots and gets out to the internet. It still allows incoming vpn connections. The login screen displays and will display an error message if I use in