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

Similar Messages

  • Error in opening the adobe form to create a PCR

    Hi,
    I m getting an error while i open the adobe form to create a PCR as follows.
    Script failed. accessor '$record.ENAME.DATA.FIELD' is unknown.
    Please help.
    <b>Points are sure.</b>

    Hi,
    I m getting an error while i open the adobe form to create a PCR as follows.
    Script failed. accessor '$record.ENAME.DATA.FIELD' is unknown.
    Please help.
    <b>Points are sure.</b>

  • Error while opening PDF attachment sent via mail

    Hi,
    I am attaching PDF file to PO in me22n and sending the same file as attachment in the mail to the vendor using class CL_BCS.
    The mail is sent to the vendor successfully and they are able to successfully open the PDF attachment. But in some cases the mail is successfully received but while opening the attachment it is giving the error as file is corrupted.
    Please help me to resolve this issue.
    Thanks and regards,
    Jayashree

    Hi,
    I would like to know what font type, you are using in the forms.
    Ideally it should be HELVETICA .
    If you are using any other font in your style/form,try changing it to HELVETICA & Test.
    Also Check the OTF data at the call of gen. FM,before converting it to PDF.
    Regds,
    AS
    Edited by: abheesawant on Oct 12, 2011 7:48 AM

  • Getting Error While Opening the Oracle Form 6i in 10g

    Hi All ,
    FRM-10102: Cannot attach PL/SQL library XXX. This library attachment will be lost if the module is saved.
    I am getting above error message while opening Oracle 6i Form in 10g.
    I get the following Alert message when I try to attach the library to my form -
    Attached library name
    S:\.........xxx.pll contains non-portable directory specification. Remove path? Yes/No?
    If I select 'No', the Form compiles and runs without any error.
    But if I select 'Yes', I get the following error message:
    FRM-40039: Cannot attach library xxx while opening form.
    All files (fmb, fmx, pll, plx) are on the same path. I detached and then re-attached the library but this didn't work for me?
    Help Appreciated.
    Thanks & Regards,
    Ram.

    use the shiped batch program frmplsqlconv.bat to convert all your forms/librarys from Forms 6i to 10g.
    you can call it in wizard mode from the start menu (e.g. OracleDeveloperSuite <OraHome> => Forms Developer => Forms Migration Assistant (GUI Mode) and follow the instructions step by step
    or you can call it by batch to convert all your forms/librarys. The batch file is found in
    <ORA10g_HOME>BIN\frmplsqlconv.bat
    =>
    frmplsqlconv.bat <formname>

  • Error while opening the custom forms-''function not available to this respo

    Error: Function not available to this responsibility , change responsibility or contact ur system administrator
    Hiiiii,
    While accessing the custom forms in release 12i we are facing the popup error and the form is not getting opened up: "Function Not available to this responsibility. Change Responsibilities or Contact your System Administrator"...
    I check the custom top path in $APPL_TOP/admin/adovars.env... its fine there..
    but the $Apache_top is not there...
    can u plz tell me the solution....
    Thanks
    Meenakshi Verma

    user609981 ,
    If ur referring to forms, u need to search in appropriate forum, as this forum is only for OAF queries, and if its realted to OAF page, check the the function of oa page is attached to the specific responsibilty .
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error :-The requested resource does not exist while opening the adobe form

    hello Experts,
    We are in Portal implementation face with ECC6 EHP4 and Portal EHP1
    We have developed adobe  form using HCM forms and processes and done the required configuration in SPRO
    When we are trying to open the form from ESS we are getting below error
    404 not found
    The requested resource does not exist.
    Please look into this issue and let us know any thing we are missing
    Sincerely
    Paresh

    is ADS working correctly?
    1.  Use transaction SA38 to execute the program FP_TEST_00.
           Detailed information about this test program and about how you
           should then proceed is given in the Adobe Document Services
           Configuration Guide in the Help Portal under:
           http://help.sap.com/saphelp_nw2004s/helpdata/en/37/504b8cbc2848a4
           94facfdc09a359b1/frameset.htm -> Adobe Document Services
           Configuration Guide -> Configuring the Web Service -> Securing
           Access to the Web Service ->Configuration Check -> Configuration
           Check for PDF-Based Forms in ABAP
           -  If the FP_TEST_00 form is displayed in the print preview, the
              ADS configuration is correct.
              -> If you use scenarios with an interactive PDF, proceed with
              point 5. Otherwise, proceed with the test under point 6.
           -  If the system displays an error message instead of a form, the
              configuration of ADS is incorrect.
              -> Carry out the additional tests from point 2 onwards.
    2.  Use transaction SA38 to execute the program FP_PDF_TEST_00.
        This enables you to check the RFC connection to ADS  (see the
        reference to the documentation given above).
           -  If the system displays the version number of ADS, the
              configuration of the RFC connection is correct.
    read the note 944221
    Please paste the whole error? Is any dump in ST22

  • Getting javascript error while opening offline adobe forms sent via email.

    ERROR: script failed(language is formcalc,context is xfa[0].form[0].data[0].FORM[0].
                  script = BODY.instanceManager.addInstance(1);
                  Error:accessor "BODY.instanceManager.addInstance(1)" is unknown.
    I have written the code in Javascript and run at client.
    Below is my sample code:
    var nlength = ROW.BODY.nodes.length;
    var nrow = 0;
    for(var nCount=0;nCount<nlength;nCount++)
    {nrow = nrow + 1;}
    if (nrow == 7)
    xfa.host.messageBox("Maximum allowable rows is 7","Warning",3);
    else
    {ROW.BODY.instanceManager.addInstance(1);
    xfa.form.recalculate(1);
    xfa.host.messageBox("Row added");}
    Rows are getting added.
    I am not getting the problem,Pls help me.

    Hello all,
                Thanks for your replies.
    I have made Show -> click and Language -> Javascript and Run at -> Client  for the button 'ADD'(this button inserts line) and in the blank space i have written the code as stated above.
    Then,i have activated the form.
    As per the Submit button it is working fine...
    I am new to adobe forms and i have done a self-training for this..
    Maybe I am doing something  wrong...
    Pls help.
    Thanks and regards,
    Raka.

  • Syntax error while running the Adobe Form

    Hi to all,
    I have created an interface for adobe from
    Example:  F4_HELP type ZST
    Where ZST  is structure type.
    ZST structure has following field.
    1)     MATERIAL type MATNR
    2)     BASE_QTY type BASMN (BASMN of type QUAN, length 13 with ref table RC29K, and ref field BMEIN)
    Interface and form successful activated.
    But when I run adobe from it give syntax error for ref table RC29K, and ref field BMEIN
    Field u201CRC29K- BMEIN u201Cis unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
    Please can anyone tell me the solution for that?
    I shall be thankful to you for this.
    Regards
    Pavneet Rana

    Thanks For reply
    I have already maintained the ref table and field for field BASE_QTY type BASMN
    Ref table RC29K, and ref field BMEIN.
    But still error is coming.
    please can any one tell me the solution for that.
    i shall be thankful to you for this.
    Regards
    Pavneet Rana

  • Error while opening the receipt entry form in AR module.

    Error while opening the receipt entry form in AR module. We have created one new responsibility of Receivables for new operating unit . When we open the corresponding
    forms , we are getting the error message as :
    NO_DATA_FOUND
    FRM-40735: PRE-FORM trigger raised unhandled exception ORA-20002.
    Kindly help in resolving.
    We have ERP version of 11.5.10.2

    Please also see the following docs.
    Transactions Workbench Error: Listing of ORA Errors [ID 1336495.1]
    FRM-40735 ERROR OPENING LIFE EVENT REASONS FORM BENLEVRS [ID 1517593.1]
    APP-AR-96996: The Defined Sales Representatives Have Incorrect Id'S [ID 437107.1]
    ARXSUDRC Receipt Classes Errors With APP-AR-96994: Please Define Sales Representatives [ID 357454.1]
    Thanks,
    Hussein

  • Getting 'Out of memory' error while opening the file. I have tried several versions of Adobe 7.0,9.0,X1. It is creating issue to convert PDF into TIFF. Please provide the solution ASAP

    Hello All,
    I am getting 'Out of memory' error while opening the file. I have tried several versions of Adobe 7.0,9.0,X1.
    Also, it is creating issue to convert PDF into TIFF. Please provide the solution ASAP.

    I am using Adobe reader XI. When i open PDF it gives "OUT of memory" error after scrolling PDF gives another alert "Insufficient data for an image". after clicking both alerts it loads full data of PDF. It is not happening with all PDFs. couple of PDFs are facing this issue. Because of this error my software is not able to print these PDFS into TIFF. My OS in window7*64. I tried it on win2012R2 and XP. Same issue is generating there.
    It has become critical issue for my production.

  • Error while opening the backup information fom Maxdb

    Hello All,
    I am getting the below error while opening the backup information from Maxdb.
    Backup history file /sapdb/data/wrk/<sid>/dbm.knl corrected in line <xxxx> ; 2012-02-21 07:30:25 can not be convert in to a signed 32 bit integer value
    The full line is as below from the dbm.knl file:
    4F4337C5014C|LOG_000030571|SAVE WARM|2012-02-21 07:16:03|2012-02-21 07:20:49|2012-02-21 07:20:53|2012-02-21 07:21:04|2605155691|2605244F433A01014E|LOG_000030573|SAVE WARM|2012-02-21 07:26:09|2012-02-21 07:30:24|2012-02-21 07:30:25|2012-02-21 07:30:41|2605326357|2605411689|   |<SID>_LOG                                                         |     85344|         0|         0|                                        |
    I am able to open and check this line in the file dbm.knl ; But, i am not getting why this error is occurring while opening the backup information from Maxdb. I am able to view the backup logs through LC10.
    Currently i am getting this error and when i am click on cancel (or ok) getting the blank page.  I am not able to view the backup logs form Maxdb.
    Please give me some hint to resolve this.
    Regards,
    Nagendra.

    Hi,
    Use below procedure
    1. Go to /sapdb/SRD/data/wrk
    2. cp -rp dbm_knl dbm_knl_OLD
    3. vi +<Line in which the corruption occured> dbm.knl
    see there must be a corruption in the given line and it will specified with a green color
    delete that part and make the format as per the above line
    4. save the file
    5. execute the procedure again from Database studio or Database Manager
    (Note: Make sure that you have taken the backup first of dbm.knl file Because any extra entry may cause another corruption)
    (FYI : This file is only log file of successful backups and returns the return-code)
    Regards,
    Paramvirsinh Jetawat
    SAP BASIS Consultant

  • Error while opening the application help

    Hello,
    We are trying to open the application help from the R/3. It is giving
    us the follwoing error.
    This is linked to the knowledge warehouse server 6.20.
    Error:
    SAP Internet Knowledge Server
    The IKS cannot display the page you asked for.
    Please contact the administrator if this problem persists.
    Additional infomation:
    RFC Error: System exception raised, connection closed (SIW_IKS_VAR_GET)
    RfcRc: <3>, ErrorInfo:
    The confuguration looks fine as per the note # 381266.
    The help is working fine previously.
    Thanks in advance.
    Best regards,
    Madhav.

    Hi Arun,
    Error due to incorrect installation of life cycle designer.
    check the below links for solution.. ( same issue ).
    Error Message "Error while Opening the Document"
    Error - Adobe Live Cycle designer
    Regards
    Srinivas

  • Error Message "Error while Opening the Document"

    Hi Friends,
    I have a problem while opening the SFP transaction and Clicking on the Layout Tab the SAP System is giving an error message saying "Error while Opening the Document".
    I have tried testing on several systems like IDES, ERP, Retail systems. But it is giving me same error. Is this the problem with ADOBE LIVECYCLE DESIGNER?
    And when I click on the Performance Assistant it has given me some information:
    Error while opening document
    Message no. SOFFICEINTEGRATION143
    Diagnosis
    An error occurred in the desktop application while opening a document.
    Friends can you help me in solving this problem.
    Thanking yoy in Advance
    Pradeep Goli

    Pradeep,
    Maybe Live Cycle Designer has not been uninstalled correctly from your system. So goto the following lcaotions and remove the Designer folder if you find them:-
    C:\Program Files\Adobe
    C:\Documents and Settings\<your-username>\Application Data\Adobe\
    Alternatively try installing Live Cycle Designer on some other machine in your network and see if you encounter the same error.
    Similar thread for reference :  Error - Adobe Live Cycle designer
    Chintan

  • "The server is unavailable this is offline copy of the server workbook" error while opening the sharepoint library file

    Hi Techys,
    can you give me the suugestions for below error in sharepoint 2010.
    Error: "The server is unavailable this is offline copy of the server workbook" error while opening the sharepoint library file.
    User having the contribute permission.
    as a admin i can open the document without any error.
    user wants to open the document via online and VPN connection.
    while the user seeing the document info the below error is indicationg .
    Offline Copy, Work book is readonly Mode.
    The server is unavailable this is offline copy of the server workbook" error while opening the sharepoint library file which was upto date.
    Many Thanks,
    Madhu

    Make sure that the user is able to access workstream from the site collection through VPN. If the user is able to access already, try to download the file locally and see if the data is getting loaded and upload again.
    --Cheers

  • Error while loading the runtime repository via HTTP

    Hi Experts,
    I am trying to delete an enhancement and when I enter the component name and the enhancement set in BSP_WD_CMPWB. I get the following error when right click the enhanced view and select delete : Error while loading the runtime repository via HTTP. How do I delete this enhancement?
    Regards
    Abdullah Ismail.

    if for some reason the runtime repository is not coherent, you get an error each time you try to read it (and this is the case when you open a component using the transaction BSP_WD_CMPWB)
    this is because the XML file is interpreted by a CALL TRANSFORMATION statement, and any incorrect node will raise an uncaught exception
    solution:
    enhanced view is contained into BSP application you have created the first time you enhanced the component
    go to SE80 and enter the BSP application where your objects are stored (the name you provided the first time)
    there you can modify directly the objects, including the runtime repository which is stored under node "Pages with flow Logic"
    once the correction is done, you can access again your component through transaction BSP_WD_CMPWB (and delete it properly if this is what you want to do)

Maybe you are looking for

  • Automatic Price Change at the time of Confirmation of PP order

    Dear Sir, When Production Order is being confirmed (T Code COR6), the price of the BOM material (Finished Goods with standatd price)is getting changed. PR document type FI document is created and UMB key is getting the hit with a very minimum amount.

  • How can I get my iPod classic to output to my tuner which is mp3 compatible

    With my iPod classic can I output to my fm tuner, which is mp3 compatible, if I replace my iPod earphones with the proper cable?

  • How can I format a large number to have comma separators?

    I have numbers that are very large, i.e., in the billions. I want to format the display to show comma separators. For example: 8000000000 => 8,000,000,000 Is there an easy way to do this?

  • Error when creating volume on data group for acfs

    Hi, I want to create ACFS file system on solaris SPARC system which is running solaris 10.9. I have created data group successfully but i get an error when i try to create volume. ASMCMD> volcreate -G OEMLIB -s 30G oemlibvol1 ORA-15032: not all alter

  • Ordwebutl.cache_status

    I can not find this procedure and not sure how to create it. I am using OAS 4.0.8.1 on NT with Oracle 8.1.5 http_status := ordwebutl.cache_status( db_mod_date,http_if_modified_since, http_last_modified ); I got this sample code "MP3demo" from technet