Open form - close form problem

Hi. Using JDeveloper 10.1.3.3., ADF BC.
Simple, yet not so simple problem: I have two forms, Main and Detail (JFrame). Main form has menu item which I use to open Detail form:
try {
FormDetail frmDetail = new FormDetail();
frmDetail.setBindingContext(panelBinding.getBindingContext());
// center jframe, visible = true
showNewForm(frmDetail);
} catch (Exception ex) {
ex.printStackTrace();
} finally {
I want to create new instance every time I show Detail form. But I have problem closing detail form. Here is Detail constructor:
public FormDetail() {
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
dispose();
Here are actions:
1) start Main form
2) open Detail form
3) close Detail form
4) try to open Detail form - oracle.jbo.JboException 35001.
I've read about this error, but I don't know how to avoid it.
I cannot accept that I always have to use setVisible(true) and setVisible(false) on all my forms. There has to be a way to dispose of detail forms, and re-create them. Can someone please help?
Also, read article on Re: ADF-JClient bug
No solution there

I have looked at it before. I am not working with MDI forms, so I cannot apply this.
I found this article which could solve my problem, but I don't know how is "thedude" creating that Abstract class he was talking about...
Link: Re: how to release panelbinding correctly?
As I understood, I should release panel binding before I can release the form...
Default behavior of detail form's window listener is Exit(0). I want to reinstantiate form every time I open it.

Similar Messages

  • Right/best method to open and close form?

    When i click a button from FormA, it open FormC and it should be the same with button from FormB-used to open the same FormC but it doesn't.
    this happen when i previously open FormC from FormA before opening it in FormB.
    I use setvisible(true) to open form and setvisible(false) to close the form and this doesn't seem right..
    i use exactly the same method as shown in Creating Swing Clients for Business Components Tutorial
    anyone can help? i'm new with Java n Jdeveloper...
    Thank You..

    Fatima,
    this question is best answered in teh JDeveloper forum on OTN because this Forum is for Oracle Forms. You can start and hide forms in Java using setVisible(true|false), howvere, this doesn't release the hanlde to the data bound.
    In the HowTo setcion of the otn.oracle.com/products/jdev there exist a document "How Do I dynamically Change the Binding of a View Object to JClient Panel?"
    This explains how you work with RowSet Iterators to reuse forms.
    Frank

  • Why we use write form,open form,close form,in script

    urgent

    Hi,
    OPEN_FORM
    The function module OPEN_FORM opens form printing. You must call this function module before you can use any other form function (WRITE_FORM, START_FORM, CONTROL_FORM...).
    You need not specify a form name. If you omit the name, you must use the function module START_FORM to open a form before starting the output.
    You must end form printing by using the function module CLOSE_FORM. Otherwise, the system does not print or display anything.
    Within a program, you can use several OPEN_FORM.. CLOSE_FORM pairs. This allows you to write output to several different spool requests from within one program.
    START_FORM
    In-between the function modules OPEN_FORM and CLOSE_FORM, you can use different forms. This allows you to combine several different forms into one print output. However, you can combine only those forms that have the same page format.
    To switch forms, use the function module START_FORM. If another form is still open, you must close it first using END_FORM.
    If you specify no form name when calling START_FORM, the system restarts the last open form. If after OPEN_FORM no form was activated yet, the system leaves the function module with the exception UNUSED.
    OPEN_FORM->
    To initialize the printing of forms via the Raw Data Interface, use function modules (OPEN_FORM und CLOSE_FORM) and a flag in the form (administration data). For this purpose, the function modules include the additional optional import parameter RAW_DATA_INTERFACE.
    http://help.sap.com/saphelp_nw04s/helpdata/en/d2/cb3d8e455611d189710000e8322d00/content.htm
    START_FORM->
    In-between the function modules OPEN_FORM and CLOSE_FORM, you can use different forms. This allows you to combine several different forms into one print output. However, you can combine only those forms that have the same page format.
    To switch forms, use the function module START_FORM. If another form is still open, you must close it first using END_FORM.
    If you specify no form name when calling START_FORM, the system restarts the last open form. If after OPEN_FORM no form was activated yet, the system leaves the function module with the exception UNUSED.
    from: http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/0dba1a494511d182b70000e829fbfe/frameset
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • Open and Close Dataset problem

    Hi All,
    I am facing a weird problem in transferring data to application server.
    I have used Open dataset to write my file in text format to the application server.
    Now everything works fine when small amount of data is there.When the number of records increases and when it takes lot of time , the format of the text file is completely distorted.
    I have used tab as the delimiter. Please suggest me some solution for this.
    Is this due to the time taken?
    Regards.

    Hi
    in the above program , when i had created 1st i had same problem
    then i had worte the logic likethis
    parameter: file_nm type localfile.
    types : begin of it_tab1,
            f1(20),
            f2(40),
            f3(20),
           end of it_tab1.
    data : it_tab type table of ALSMEX_TABLINE with header line,
           file type rlgrap-filename.
    data : it_tab2 type it_tab1 occurs 1,
           wa_tab2 type it_tab1,
           w_message(100)  TYPE c.
    at selection-screen on value-request for file_nm.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
      PROGRAM_NAME        = SYST-REPID
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
       STATIC              = 'X'
      MASK                = ' '
      CHANGING
       file_name           = file_nm
    EXCEPTIONS
       MASK_TOO_LONG       = 1
       OTHERS              = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    start-of-selection.
    refresh it_tab2[].clear wa_tab2.
    file = file_nm.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        filename                      = file
        i_begin_col                   = '1'
        i_begin_row                   =  '1'
        i_end_col                     = '10'
        i_end_row                     = '35'
      tables
        intern                        = it_tab
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    <b>loop at it_tab.
      case it_tab-col.
       when '002'.
        wa_tab2-f1 = it_tab-value.
       when '004'.
        wa_tab2-f2 = it_tab-value.
      when '008'.
        wa_tab2-f3 = it_tab-value.
    endcase.
    at end of row.
      append wa_tab2 to it_tab2.
    clear wa_tab2.
      endat.
    endloop.</b>
    data : p_file TYPE  rlgrap-filename value 'TEST3.txt'.
    OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *--- Display error messages if any.
      IF sy-subrc NE 0.
        MESSAGE e001(zsd_mes).
        EXIT.
      ELSE.
    *---Data is downloaded to the application server file path
        LOOP AT it_tab2 INTO wa_tab2.
          TRANSFER wa_tab2 TO p_file.
        ENDLOOP.
      ENDIF.
    *--Close the Application server file (Mandatory).
      CLOSE DATASET p_file.
    loop at it_tab2 into wa_tab2.
      write : / wa_tab2-f1,wa_tab2-f2,wa_tab2-f3.
    endloop.
    with the bold letters above
    i had wrote that logic for that
    reward if usefull

  • Open/Close form from Menu

    I am having a frustrating problem! I am trying to set up a menu that will open a form ('Open_Form('myform')) and close the current form. Opening the new form is no problem, but I can't seem to find the code to close the first form. This can't be that difficult! Can anyone help?
    Thanks

    SaraS
    Use new_form built-in.
    Regards

  • I used migration to send photos form my Mac Book to my I Mac now i get an error message "iPhoto can not be opened because of a problem"  Check with the developer to make sure iPhoto works with this version of Max OSX.  You may need to install any availabl

    I used migration to send photos form my Mac Book to my I Mac now i get an error message "iPhoto can not be opened because of a problem"  Check with the developer to make sure iPhoto works with this version of Max OSX.  You may need to install any available updates or reinstall IPhoto.
    I tried installing Iphoto it said it was downloaded successfully. I still get the error messafe, and can not open any photos of program,  any suggestions?

    What version of iPhoto do you have on the Macbook and on the iMac? What systems are you running on the Macbook and on the iMac?
    Does the message only refer to "a problem" or does it specify what it is?
    Happy Holidays

  • Urgent: Problem opening a data form that uses a smart list

    Hi, we've got a problem with a data form that is quite unusual.
    The data form was working perfectly until yesterday when we put a smart list in it. The smart list is composed of 8 possible choices activated by the following member formula:
    IF (SML==1)
    ((BDG->BegBalance->&CurrYear)/12);
    ELSEIF (SML==2)
    ((INC_BDG->BegBalance)*("01A2"->ACT_FINAL));
    ELSEIF (SML==3)
    ACT_FINAL->&PreYear;
    ELSEIF (SML==4)
    (INC_ACT->&PreYear)*("01A2"->ACT_FINAL);
    ELSEIF (SML==5)
    ACT_FINAL;
    ELSEIF (SML==7)
    (INP_PER)*("01A2"->ACT_FINAL);
    ELSEIF (SML==8)
    INP_ASS;
    endif;
    Initially we tested the functioning of every different choice in the smart list and it was working properly. After a while we tried again to change the choices combination and we couldn't open the data form due to an error.
    It is quite strange because sometimes it work and sometimes it doesn't. In the data form (that is very large) there are many accounts and scenarios that are dynamic calc, in addition to the smart list formula; we tried to open the form two minutes ago converting the data storage type of a scenario from "Dynamic calc" into "Dynamic calc and Store", and it seems to work at the moment... does planning have a memory limit? Can someone suggest a solution (or help us find out the reason)?
    Bye

    Anton,
    new thread is one possibility, but the messsage box is not win message box, but SAP form, so I think you can clcik there without new thread too.
    Check this thread, hope it helps
    Re: Confirmation Dialog in my way

  • HELP - Having Problem in opening PDF online form

    Hi,
    I am having a problem in opening a PDF form online, in fact it is a Canadian visa application form which i need to fill and submit online, but it's been more than 2 weeks I am unable to open it online, all the time I am getting same message 'To view the full content of this document you need a later version of PDF viewver' I have already installed the latest version but still it's not opening, I tried all the Browsers too but no scuccess, I am using Mac but I tried it on PC of a friend too and got the same Error.
    Please Help me, I am getting frustated now, it's wasted my 2 weeks, and the most interesting thing is that you can save this PDF on your computer, and once you have saved it its opening too in Adobe reader, but NOT at all opening online, but need to do it online - http://www.cic.gc.ca/english/pdf/kits/forms/IMM5257E.pdf
    Please HLEP
    Thanks in Advance.

    I don't know Safari, but I know that Chrome and Firefox use their own PDF viewers, not the Adobe Reader plugin.
    Try to configure them to use the Adobe PDF plugin: http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • Close a form and before open a new form

    Hi,
    I open a new form(form B) from a form (from A), can I close "form A" before opening "form B" ?
    Moreover, can I re-open a form itself ?
    Thx!
    Gary

    Use one of following
    CALL_FORM
    This builds a stack of forms; exiting the current form
    returns you to the previous form.
    Performing a call_form('b') from FORM A will do the following:
    Deactivate FORM A.
    FORM A becomes MODAL.
    Focus is now on FORM B.
    Must Exit FORM B to return focus to FORM A.
    OPEN_FORM
    This allows you to have two forms open and active at the same time,
    and to work on both forms at the same time.
    Performing an open_form('b') from FORM A will do the following:
    Both FORM A and FORM B remain open and you can use the mouse
    to switch back and forth between the forms.
    NEW_FORM
    . This replaces the current form with a new form.
    Performing a new_form('b') from FORM A will do the following:
    Closes FORM A and Opens FORM B.
    Regards

  • Problem to close Form window

    I want to close Form portlet window after the user has pressed Insert.
    I have added code go('javascript:self.close();') into onSuccess section. This works fine when I'm using Netscape but not in IE 6. Method self.close (or window.close) works fine in IE when I'm using it e.g. in UIF templates.
    Does anyone know any trick how to close Form window after successful (Insert) operation?
    Regards
    Rainer

    I found solution myself. I inserted illegally formatted URL in to onSuccess field, and I managed to debug error. The portal is trying to call page http://server:7778/pls/portal/javascript:window.close();
    My solution was to write a simple HTML page:
    <html><body onLoad="self.close();"></body></html>
    whose URL is written into onSuccess field.
    Please comment, if you find possible errors in this solution.
    Regards
    Rainer

  • UNABLE TO OPEN MASTER ITEM FORM OF ORACLE APPLICATIONS: 11.5.10.2 IN FORM 6

    Hi,
    I am beginner in oracle apps technical
    Using Oracle Application 11.5.10.2
    I am not able open INVIDITM.fmb( Inventory Master Item Forms)
    in form 6i. version 6.0.8.26
    Getting a mysterious error that :-
    Oracle Forms Designer has encountered a problem and needs to close. We are sorry for the inconvenience.
    After that I regenerate the INVIDITM.fmb using following command :-
    [root@oraapp US]# f60gen module=/apps/visappl/au/11.5.0/forms/US/INVIDITM.fmb userid=apps/apps@vis output_file=/apps/visappl/cus/11.5.0/log/INVIDITM.fmb module_type=form batch=yes compile_all=special
    The form is regenerated on the server and copying that fmb file on my local machine.
    Now trying to open it in form bulider again but now getting FRM-10043 : Cannot Open File.
    Could any body help me out in resolving this error ????
    And how to open this fmb file in form 6i ??
    Please feel free to mail regarding this issue on [email protected]
    Thanks & Regards
    Ashutosh Chowdhary

    Hi,
    Performing your action plan by copying all the files from AU_TOP to my local machine and then try to open the INVIDITM.fmb but still the same problem.
    Is this the problem of forms version or some thing else?
    Because I am able to able the POXPOEPO.fmb( Purchase Order form ) in the same version and do the customization as per requirement.
    Could you please suggest any other alternative solution?
    Thanks
    Ashutosh Chowdhary

  • UNABLE TO OPEN MASTER ITEM FORM OF ORACLE APPLICATIONS: 11.5.10.2 IN FORMS6

    Hi All,
    I am beginner in oracle apps technical,
    Using Oracle Application 11.5.10.2
    I am not able open INVIDITM.fmb( Inventory Master Item Forms) in form 6i.
    Getting a mysterious error that Oracle Forms Designer has encountered a problem and needs to close. We are sorry for the inconvenience.
    After that I regenerate the INVIDITM.fmb using following command :-
    [root@oraapp US]# f60gen module=/apps/visappl/au/11.5.0/forms/US/INVIDITM.fmb userid=apps/apps@vis output_file=/apps/visappl/cus/11.5.0/log/INVIDITM.fmb module_type=form batch=yes compile_all=special
    The form is regenerated on the server and copying that fmb file on my local machine.
    Now trying to open it in form bulider again but now getting FRM-10043 : Cannot Open File.
    Could any body help me out in resolving this error ???
    Please feel free to mail regarding this issue on [email protected]
    Thanks & Regards
    Ashutosh Chowdhary

    There are so many restrictions and special circumstances for creating or editing a custom form for Applications that you should ask this question in the Apps Forum (http://forums.oracle.com/forums/category.jspa?categoryID=3). People here might or might not have any experience with this. In the Apps Forums they definitely do.

  • Can not open PLLs on Forms Builder 10g

    Hi Folks,
    everytime I try to open an existing PLL-File via the Forms Builder FileOpen-Dialog I have got the message
        PDE-PLI018 Couln not find library
        Drive:\Path\LibName.pll
    Pressing the OK-Button returns to the FileOpen-Dialog. The selected FileType in the Dialog take effect to the filelist but nothing else.
    Note that the file exists and I select it from the Filelist!
    About Forms Window shows the following:
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Toolkit Version 10.1.2.0.2 (Production)
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 10.1.2.0.2 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
    Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE     10.1.0.4.0     Production
    While converting from 6i to 10g it is unavoidable to convert forms and libraries, so please help me!
    PS: I can recompile forms with attached libraries if the PLX-Files (6i) are available, but the forms will not work with these PLX-Files.
    edited by ths:
    I tried to generate a new library. This works fine until I saved it. After naming the library and pressing the save button in the dialog the pll file was created and the same error message appears.
    I closed form builder and tried to reopen the library: same error.
    I generated another new library and save this by selecting the first new I generated. Jippee! I get the message that the file already exists! I selected "overwrite" and the file was overwritten. After that the same error appears.
    How can I (re)open PLL files? It is no solution to generate a new library overwriting the old one everytime some changes should made.
    Trying to build the library (Ctrl+T) produces another error:
        FRM-91507: Internal Error: Unable to generate library.
    Compiling (Ctrl-Shift-K) works fine.

    Hi Mark,
    there's no user except of me on the pc and server (I'm working via rdp-client on a virtual server), no server and no oc4j task or instance started. The one and only program that runs is forms builder. The error occurs if I just try to open a pll file via the file open dialog of forms builder.
    With my admins we found that forms builder creates a (temporary) file (e.g. s22o without extension with 827392 bytes) in c:\ but only if I'm the actual user. After I'm getting the permission to create and update files on c:\ forms builder was able to open pll files. Now we're trying to find out why this accurs only on my login. With other users we tried these file was created on F:\ which is the personal drive of the user. I'm only wondering about the fact that temporary files were not created in the TEMP folder defined by the TMP or TEMP environment variable.
    So we solved this unusual problem in an unusual way.

  • Hyperion planning data form in smartview: problem with summary time period

    We are using Planning ver. 11.1.2.2.300.20 and smartview 11.1.2.2.300 (build 070)
    We use common Data Form:
    In columns: Periods (Descendants including YearTotal - with no checkbox on start expanded)
    In Rows :accounts
    In some of our users computers,
    When they open Data Form in Excel (with Smart View) - its appears very strange:
    Summary Accounts are displayed as level 0 account in the summary Period columns (i.e. not in grey) and permit entering data.
    In addition when Entering data in summary time period (i.e. Year or Quarter),
    strangely,  the data doesn't  spread to the descendants months (level 0) .
    This phenomenon occurs just in few of the computers.
    Please help, how can we overcome this problem?
    Thanks and Regards
    Tami Kedem

    Hi Celvin,
    Thanks for your rapid response!
    All computers have the same version of planning and smartview.
    The computers where the Periods spreading and aggregation properties in Data form are not working,
    do work wonderfully when opening the Data forms in the web.
    I've tried everything, (remove suppressing, validations etc.):
    In all kind of data forms the spreading and aggregation properties on summary time periods are not working in smartview -
    and summary accounts on rows are not displayed in grey and permit entering data.
    We remove and reinstall MS-Office (2007) from the problematic computers, but it didn't help.
    Do you know if there is any kind of settings or softwares that might cause this phenomenon
    i.e. interrupts the smartview translation of the web Data Forms.
    Thank and best regards,
    Tami Kedem

  • Error while opening the ADOBE FORM via mail

    Hi to all,
    I have created a program to attached ADOBE FORM to mail.
    When I execute the program, it sends ADOBE FORM to my mail ID successfully.
    But when I open my mail and try to open attached ADOBE FORM, it gives error
    ADOBE READER COULD NOT OPEN u2018PDF FORM (1). PDFu2019 because it is either not a supported file type or because the file has been damaged ( for example, it was sent as an email attached and wasnu2019t correctly decoded).
    Please can any tell me, what the problem is and what the solution is for that?
    I shall be thankful to you for this.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Aug 1, 2011 2:22 PM

    Thanks for reply,
    below is the code.
    data:
      l_fm_name         TYPE rs38l_fnam,
       l_formname   TYPE fpname VALUE 'ZTESTF1' ,
      fp_docparams      TYPE sfpdocparams,
      FP_FORMOUTPUT     TYPE FPFORMOUTPUT,
      fp_outputparams   TYPE sfpoutputparams.
    data:  I_ATT_CONTENT_HEX  type SOLIX_TAB.
    START-OF-SELECTION.
    data: st  TYPE  ZTABFM11.
    data: it type table of sflight.
    data: wa like LINE OF it.
    data: wa_st like LINE OF ST.
      fp_docparams-langu   =      'E'.
      fp_docparams-country =      'US'.
      fp_docparams-fillable =      'X'.
      fp_outputparams-nodialog = 'X'.
      fp_outputparams-preview =   'X'.
      fp_outputparams-device   =  'LP01'.
      fp_outputparams-getpdf  =   'X' .
      fp_outputparams-dest   =    'LP01'.
      fp_outputparams-reqimm  =   'X'.
      fp_outputparams-reqdel  =   'X' .
      fp_outputparams-xfpoutdev = 'LP01'.
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = l_formname
        IMPORTING
          e_funcname = l_fm_name.
      E_INTERFACE_TYPE           =
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = fp_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
    select * from sflight into TABLE it.
      loop at it into wa.
        wa_st-CARRID = wa-CARRID.
        wa_st-CONNID = wa-CONNID.
        wa_st-FLDATE = wa-FLDATE .
        wa_st-PLANETYPE   = wa-PLANETYPE.
        append wa_st to st.
        endloop.
      CALL FUNCTION l_fm_name
        EXPORTING
          /1bcdwb/docparams  = fp_docparams
              st               = st
        IMPORTING
          /1BCDWB/FORMOUTPUT = FP_FORMOUTPUT
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4
       CALL FUNCTION 'FP_JOB_CLOSE'
      IMPORTING
        E_RESULT             = result
       EXCEPTIONS
         usage_error          = 1
         system_error         = 2
         internal_error       = 3
         OTHERS               = 4
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER                = FP_FORMOUTPUT-PDF
      APPEND_TO_TABLE       = ' '
    IMPORTING
      OUTPUT_LENGTH         =
        TABLES
          BINARY_TAB            = I_ATT_CONTENT_HEX  .
    CLASS cl_bcs DEFINITION LOAD.
      DATA:
      lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
      lo_send_request = cl_bcs=>create_persistent( ).
    Message body and subject
      DATA:
      lt_message_body TYPE bcsy_text VALUE IS INITIAL,
      lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
      APPEND 'Dear,' TO lt_message_body.
      append ' ' to lt_message_body.
      APPEND 'Fill the details.'
      TO lt_message_body.
      append ' ' to lt_message_body.
      APPEND 'Thank You,' TO lt_message_body.
      lo_document = cl_document_bcs=>create_document(
      i_type = 'RAW'
      i_text = lt_message_body
      i_subject = 'flight details' ).
      DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
      TRY.
          lo_document->add_attachment(
          EXPORTING
          i_attachment_type = 'PDF'
          i_attachment_subject = 'flight details'
    I_ATTACHMENT_SIZE =
    I_ATTACHMENT_LANGUAGE = SPACE
    I_ATT_CONTENT_TEXT =
    I_ATTACHMENT_HEADER =
          I_ATT_CONTENT_HEX  = I_ATT_CONTENT_HEX  ).
        CATCH cx_document_bcs INTO lx_document_bcs.
      ENDTRY.
    Add attachment
    Pass the document to send request
      lo_send_request->set_document( lo_document ).
    Create sender
      DATA:
      lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
      l_send type ADR6-SMTP_ADDR value 'mail id '.
    lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
      lo_sender = cl_sapuser_bcs=>create( sy-uname ).
    Set sender
      lo_send_request->set_sender(
      EXPORTING
      i_sender = lo_sender ).
    Create recipient
      DATA:
      lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
    lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
      lo_recipient = cl_cam_address_bcs=>create_internet_address( l_send ).
    Set recipient
      lo_send_request->add_recipient(
      EXPORTING
      i_recipient = lo_recipient
      i_express = 'X' ).
    lo_send_request->add_recipient(
    EXPORTING
    i_recipient = lo_recipient
    i_express = 'X' ).
    Send email
      DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
      lo_send_request->send(
      EXPORTING
      i_with_error_screen = 'X'
      RECEIVING
      result = lv_sent_to_all ).
      COMMIT WORK.
      message 'Form sucessfuly send to person' type 'I'.
    plesase can any one, provide the soultion.
    i shall be thankful toy you for this.
    regards
    pavneet rana

Maybe you are looking for

  • Probably a stupid question - what does '256' mean in response to a command

    Hi, I.m just learning PHP (I mean at the very beginning). The tutorial I'm following was running through how to start and stop the apache server via terminal. When I entered the commands, I received the following error" /usr/sbin/apachectl: line 82:

  • From Pagemaker 7 to Indesign CS4

    My employer is looking to upgrade from Pagemaker 7 to Indesign CS4 for our publication needs. I have Indesign CS2 at home, so it definitely looks like Indesign will make things easier. However, the main publication we will be using in Indesign relied

  • Load Default Value after CreateInsert.Execute

    Hello all ! this is my first post so be polite ;) Well i have this input that is binding to a DataControl <af:inputText value="#{bindings.ApiState.label}"                                       label="#{bindings.ApiState.inputValue}"                  

  • Blank window page cannot display page when going to database home page

    I cannot view my home page comes up error on oracle express data home page, probably because my config on my listner and tnsnames file during my remote connections I have been making adjustments. Can someone send me a link for default on these. There

  • Message delete without reading it

    On an iPhone 4, how do I delete a SMS without opening and reading it (unsollicited SMS)?