Digital Signatures in Adobe Forms (Non-Interactive)

Hi everyone,
I need to sign a receipt that will be sent by e-mail. The form is non-interactive, it´s only a simple receipt. This form may be printed or sent by e-mail; in case of being sent it must be signed before sending it. The receiver should be able to open it using Adobe Reader.
I´ve read other posts/help about singatures in Adobe Forms, but none of them of non-interactive forms; I need to know if it is possible to do this if the form is not interactive, and how it can be done.
Thanks!
Pablo

Hi Jinal,
Here it goes:
report fp_pdf_test_07.
* set signature
class cl_fp definition load.
selection-screen begin of block s_files with frame title text-100.
  parameters: p_pdf(64)    type c lower case obligatory,
              p_out(64)    type c lower case obligatory.
selection-screen end of block s_files.
selection-screen begin of block s_conn with frame title text-101.
  parameters: p_dest       type rfcdest default 'ADS' obligatory.
selection-screen end of block s_conn.
selection-screen begin of block s_sig with frame title text-102.
  parameters: s_key(64)    type c lower case,
              s_field(64)  type c lower case,
              s_reason(64) type c lower case,
              s_loc(64)    type c lower case,
              s_cinfo(64)  type c lower case.
selection-screen end of block s_sig.
types: ty_raw(255) type x,
       ty_tab type standard table of ty_raw.
data: l_filename_pdf   type string,
      l_filename_out   type string,
      l_fp             type ref to if_fp,
      l_pdfobj         type ref to if_fp_pdf_object,
      l_pdf            type xstring,
      l_out            type xstring,
      l_fpex           type ref to cx_fp_runtime.
  l_filename_pdf = p_pdf.
  l_filename_out = p_out.
  perform load_file using    l_filename_pdf
                    changing l_pdf.
* get FP reference
  l_fp = cl_fp=>get_reference( ).
  try.
*   create PDF Object
    l_pdfobj = l_fp->create_pdf_object( connection = p_dest ).
*   set document
    call method l_pdfobj->set_document
      exporting
        pdfdata = l_pdf.
*   set signature
    call method l_pdfobj->set_signature
      exporting
        keyname     = s_key
        fieldname   = s_field
        reason      = s_reason
        location    = s_loc
        contactinfo = s_cinfo.
*   execute, call ADS
    call method l_pdfobj->execute( ).
*   get result -> l_out
    call method l_pdfobj->get_document
      importing
        pdfdata = l_out.
  catch cx_fp_runtime_internal into l_fpex.
    perform error using l_fpex 'INTERNAL ERROR'.
  catch cx_fp_runtime_system into l_fpex.
    perform error using l_fpex 'SYSTEM ERROR'.
  catch cx_fp_runtime_usage into l_fpex.
    perform error using l_fpex 'USAGE ERROR'.
  endtry.
  check l_fpex is initial.
* download PDF
  data: l_len      type i,
        l_tab      type tsfixml.
  call function 'SCMS_XSTRING_TO_BINARY'
    exporting
      buffer                = l_out
    importing
      output_length         = l_len
    tables
      binary_tab            = l_tab.
  call method cl_gui_frontend_services=>gui_download
    exporting
       bin_filesize            = l_len
       filename                = l_filename_out
       filetype                = 'BIN'
    changing
       data_tab                = l_tab
    exceptions
       others                  = 1.
  if sy-subrc = 0.
    write:/ 'Datei erfolgreich geschrieben'(001).
  else.
    write:/ 'Fehler beim Schreiben der Datei'(002).
  endif.
form error using p_fpex type ref to cx_fp_runtime
                 p_str  type string.
data: l_errcode  type i,
      l_errmsg   type string,
      l_string   type string.
  write:/ '***************************************************'.
  write:/ '***', p_str.
  write:/ '***************************************************'.
  skip 2.
  call method p_fpex->get_errall
    importing
      errcode  = l_errcode
      errmsg   = l_errmsg.
  write:/ 'ERROR CODE       : ', l_errcode.
  write:/ 'ERROR MESSAGE    : ', l_errmsg.
  l_string = p_fpex->get_text( ).
  write:/ l_string.
endform.
form load_file using    p_filename type string
               changing p_content  type xstring.
data: l_rawtab type ty_tab,
      l_len    type i.
  call method cl_gui_frontend_services=>gui_upload
    exporting
      filename                = p_filename
      filetype                = 'BIN'
    importing
       filelength             = l_len
    changing
      data_tab                = l_rawtab
    exceptions
      file_open_error         = 1
      file_read_error         = 2
      no_batch                = 3
      gui_refuse_filetransfer = 4
      invalid_type            = 5
      no_authority            = 6
      unknown_error           = 7
      bad_data_format         = 8
      header_not_allowed      = 9
      separator_not_allowed   = 10
      header_too_long         = 11
      unknown_dp_error        = 12
      access_denied           = 13
      dp_out_of_memory        = 14
      disk_full               = 15
      dp_timeout              = 16
      not_supported_by_gui    = 17
      error_no_gui            = 18
      others                  = 19.
  if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
               with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.
  perform convert_tab_to_x using    l_rawtab l_len
                           changing p_content.
endform.
form convert_tab_to_x using    p_rawtab type ty_tab
                               p_len    type i
                      changing p_xstr   type xstring.
data: l_line  type ty_raw,
      l_count type i,
      l_len   type i,
      l_rest  type i.
  describe table p_rawtab lines l_count.
  loop at p_rawtab into l_line.
    if sy-tabix = l_count.
      l_rest = p_len - l_len.
      concatenate p_xstr l_line(l_rest) into p_xstr in byte mode.
    else.
      concatenate p_xstr l_line into p_xstr in byte mode.
      add 255 to l_len.
    endif.
  endloop.
endform.
Good Luck!
Pablo

Similar Messages

  • Digital Signature problem : Adobe forms

    Hi Experts,
    I am facing one issue in Adobe forms while implementing Digital Signature in one of the Custom Adobe form. I am following some steps as mentioned in the below link
    <link to blocked site removed by moderator>
    The problem is when I execute my Adobe form I am not getting SIGN button in my generated form as mentioned in the link.
    I am using Adobe Live cycle designer 8.2 and Adobe reader 9.
    Please help me out on this since I am new to Adobe forms as well.
    Thanks
    VJ
    Moderator message: this is the wrong forum, please have a look in the forum for "SAP Interactive Forms by Adobe".
    Edited by: Thomas Zloch on Oct 21, 2011 1:56 PM

    Apart from the above question can anybody guide me whether do we need Adobe Acrobat instead of Adobe reader to implement  Digital Signature in Adobe form.
    Looking forward towards some useful suggestions!!
    Thanks
    VJ

  • ADOBE Form - How to include digital signatures in adobe forms?

    Hi all,
    Can any one tell me the procedure for including a digital signature in adobe form?
    Thanks,
    Vineel.

    Hi,
    If you have a third party software which captures the signatures (Ex: ePad), then you can have that integrated to SAP where all the signatures get stored as in SE78. From here you can insert directly in Adobe Form using Graphic Content method in an image field. Hope this is helpful for you.
    Regards,
    Ram

  • Adobe Form - non-Interactive Pdf Print - Access to table cell

    Hi experts
    I am new to Adobe Print Form (non-interactive flowed form) and I am desparately need your help.
    I am merging table data from a context into a table on a form layout and then use function call to generate a print form and send it out as an email. Sofar, everything works fine - except one of the requirement that if , on any row, a cell value in column 1 > 5 (i.e. example), set the font color to red.
    I tried all sort of ways (in JavaScript) - but cannot get hold of the cell to check the value. Please show me
    1) how to get to the cell in Javascript
    2) in What event that I must place the Javascript in
    At the moment, I have the form layout as followed:
    Data
    | Report
    | | Table1
    | | | Header
    | | | | ...........H_Fd1
    | | | | ...........H_Fd2
    | | | Row
    | | | | ...........R_Fd1
    | | | | ...........R_Fd2
    etc...
    There are no reference to "table" object in Adobe lc designer - If you have please also send me some
    Thanks
    Points will be rewarded for any reply.

    Hi
      JS to fetch a the value of a field in a table is
    xfa.resolveNode("form_name.subform_name.table_name.Row1["Row Index"].column_name[0]").rawValue;
    You can write the code in the exit or validate event of the second column
    Thanks
    Gopal

  • Digital Signature in Adobe Forms

    Hi ,
    I want to know the data type for the Digital signature in Adobe , as i need the data type to map it to the Backend.
    Thnaks
    Manish

    Hi Manish,
    Data Type for Digital Signature :
    Data Type : SIGN_GUID_22         CHAR 22
    Thanks

  • Adobe forms, non-interactive (HR)

    Hi,
    I'm trying to get in touch with SAP web applications (webdynpro, adobe form, bsp...).
    I have the following requirement:
    I have to provide a page within the sap enterprise portal to allow the employee to track his presence. In this page the employee has to check a presence/absence flag and in another page he can justify his absence with some reason.
    I didn't find a standard functionality to meet this requirement, so I think a new form has to be created.
    As additional requirement this form as to be stored as PDF document and it is not needed to store the information contained in the form in the sap backend system. The information contained in the form has to be stored in a non-sap system, so this information should be available as flat file to be imported in the non-sap system.
    I'd like to understand the possible scenarios from a technical point of view to create the required functionalities.
    ADOBE Interactive Form.
    This is a webdynpro (java or abap) that contains the adobe component. The fields of the adobe component are linked to the sap backend system and are editable. The adobe component reads some data from sap bakend system and stores the values filled by the employee via the adobe component in the backend system.
    ADOBE non-interactive Form
    A webdynpro (java or abap) or a BSP has to be built to create some values, then once the user save/submit the information a PDF document is created with the information created in the previous page.
    What is the difference between ADOBE (non-interactive) Form and ADOBE Interactive Form? The difference is that the first one is not editable? There is a big difference in terms of complexity develop an interactive or a non-interactive adobe form?
    BSP that generate the PDF as output?
    Could you please provide some input/defintion/sample to clarify this topic?
    Thanks in advance
    MP

    Hi,
    I'm trying to get in touch with SAP web applications (webdynpro, adobe form, bsp...).
    I have the following requirement:
    I have to provide a page within the sap enterprise portal to allow the employee to track his presence. In this page the employee has to check a presence/absence flag and in another page he can justify his absence with some reason.
    I didn't find a standard functionality to meet this requirement, so I think a new form has to be created.
    As additional requirement this form as to be stored as PDF document and it is not needed to store the information contained in the form in the sap backend system. The information contained in the form has to be stored in a non-sap system, so this information should be available as flat file to be imported in the non-sap system.
    I'd like to understand the possible scenarios from a technical point of view to create the required functionalities.
    ADOBE Interactive Form.
    This is a webdynpro (java or abap) that contains the adobe component. The fields of the adobe component are linked to the sap backend system and are editable. The adobe component reads some data from sap bakend system and stores the values filled by the employee via the adobe component in the backend system.
    ADOBE non-interactive Form
    A webdynpro (java or abap) or a BSP has to be built to create some values, then once the user save/submit the information a PDF document is created with the information created in the previous page.
    What is the difference between ADOBE (non-interactive) Form and ADOBE Interactive Form? The difference is that the first one is not editable? There is a big difference in terms of complexity develop an interactive or a non-interactive adobe form?
    BSP that generate the PDF as output?
    Could you please provide some input/defintion/sample to clarify this topic?
    Thanks in advance
    MP

  • Adobe form -Non Interactive - Line across when we have any entry

    Hi,
    In my line items I need a horizontal line separtor based on a field.
    I mean when there is an entry(ITEM A) I need it to be underlined alll through the form horizontally or a horizaontal separator line.
    I have follwoing output
    ITEM A         10.00        20.00
                        40.00        60.00
                        65.00        80.00
    ITEM B         30.00        40.00
                        70.00        45.00
                        23.00        22.00
    ITEM C         32.00        20.00
                        221.00      60.00
                        65.00        80.00
    I need output
    ITEM A         10.00        20.00
                        40.00        60.00
                        65.00        80.00
    ITEM B         30.00        40.00
                        70.00        45.00
                        23.00        22.00
    ITEM C         32.00        20.00
                        221.00      60.00
                        65.00        80.00
    I am expecting we should do this via javascript.
    Any ideas?
    Rgds
    Vara
    Edited by: Vara K on Apr 20, 2009 4:57 PM
    Edited by: Vara K on Apr 20, 2009 5:11 PM

    Petr,
    I am following you now.
    I have created a group section with both rows.I went into edit alternatives .
    Now I have 2 rows with DATA(0)  and DATA(1).
    Basically I have to use underlined DATA(0) one  when field has no value
    and other DATA(0) when field has value.
    So basically my pop -up box has javascript
    Name: DATA[0]      Binding : DATA
    Expression:
    PHCODE.value == ""
    Name: DATA[1]      Binding : DATA
    Expression:
    PHCODE.value != ""
    Do i need to write something else in expression for this?
    Although I don't have value for that rows Now I am getting bottom lines for every row.
    If i use null like below I am only getting rows with bottom lines and remaining are disappearing.
    Expression:
    PHCODE.value == null
    Name: DATA[1]      Binding : DATA
    Expression:
    PHCODE.value != null
    Is my expression correct?
    What is operator for checking not equal to in javascript? is it !=? or !==?
    Rgds
    Vara
    Edited by: Vara K on Apr 23, 2009 6:05 AM

  • How to create a digital signature in adobe reader

    how to create a digital signature in adobe reader?

    Adobe Reader Touch (Windows Store app with "modern" UI) does not support any types of signatures yet.
    Digital Signatures with certificates
    Electronic Signatures (that are legally enforceable)
    Signature annotations (hand-writing annotations which may not be secure and legally enforceable)
    Adobe Reader XI (traditional desktop app with classic UI) supports #1 and #3.
    Adobe EchoSign supports #2.
    Adobe Reader for iOS/Android supports #3.

  • Digital Signatures in Adobe 8 Professional

    I have 2 questions regarding digital signatures in Adobe Acrobat Professional
    1.) Is it possible to digitally sign a document multiple times without having to resave the document each time you sign?  This would be really helpful in dealing with contracts in adobe where multiple signatures are required.
    2.) If you email a pdf with digital signatures is it possible for the recipient to delete these signatures?  Or to not be able to view them?
    Thanks a lot!

    Regarding #1, the short answer is no. Every time the file is digitally signed it necessitates it being saved. That's what allow "View Signed Version" and signature roll back to work.
    As for # 2, it depends on the version of Acrobat. Versions 6 and 7 allowed anyone to remove a signature as long as it wasn't a certifying signature. In the case of the certifying signature on the signer could remove. Beginning with version 8 you can only clear if you have access to the digital ID that was used to create the signature.
    Steve

  • Appearance of Digital Signature in Adobe Acrobat 8

    I am creating a digital Signature in Adobe Acrobat 8 and am having difficulty getting all the information to appear clearly. The first example below shows, the signature, name and date. I would also like to include the name of the Company. The only way I have been able to do that is by clicking the “distinguished name” box in the appearance section of the digital signatures. An example of this signature is also shown below. However, additional information such as the name (again), email and country are also being listed. There are numerous abbreviations and equal signs now appearing as well. Ideally I would like the signature to look like the first one with the company name appearing just above the person’s name. Can anyone help me do this?
    Thank you!

    Hi,
    For the first problem (word wrap).  The problem you are encountering is if "Maryanne Doe" is too long to fit in half of the signature field, the text wraps to the next line. The signature appearance that is written into the signature field consists of two halves. The left half contains the graphic properties and the right half contains the text properties.
    You need to lengthen the width of the area where the graphics portion of the signature is contained. You can do this one of two way. Either lengthen the physical dimensions of the signature field before you sign. Or, you could create a custom signature appearance where you turn off all of the text properties, which has the effect of giving the whole signature fields over to the graphics portion. To play with custom signature appearances:
    Select the Edit > Preferences (Win) or the Acrobat > Preferences (Mac) menu item
    Select Security from the Categories list box
    Click the New button in the Appearance group box
    If you select the No Graphic radio button you give all of the space to the text portion. If you deselect all of the checkboxes in the Configure Text area, you give all of the space to the graphics portion.
    While you are in the Preferences dialog, select Identity from the Categories list box. Go ahead and fill in all of the editable fields. This is where the data is procured during the creation of a self-signed digital ID. I think that will fix the second issue you raised.
    Steve

  • Problem creating PKCS# 12 Digital Signature in Adobe Reader X - where do I confirm the Password?

    I cannot create a PKCS# 12 Digital Signature in Adobe Reader X. It says the passwords don't match when I create it. The problem is, I never was asked to confirm the P/W when I created it. It asked once for the P/W and then the only thing I can do is click "Finish" and then it says my P/W don't match. I am able to create a DS on my other computer using Reader 9 (and it did ask me to confirm the P/W when creating). I have re-booted my computer and still it will not work.

    You'll need to ask in the Acrobat Pro forum. There are people there with expertise who can answer this. I use Acrobat myself, but I'm a novice when it comes to signature settings.

  • Adobe Forms wo/Interactive Fields Completed in Workspaces?

    Can I complete an Adobe form without interactive fields in Workspaces?  If so, how?

    Unfortunately, there is no way to do this within Workspaces.

  • Implement Digital signatures in adobe using sap

    how do i implement digital signatures in adobe using sap web dynpro netweaver and abap for backend? if you can provide some documents or links that can help for the same.

    Hello,
    You can add digital signatures and/or encryption to the document going out of the SAP system.
    To add a signature from WDA you can use the PDFObject API.
    Regards,
    Francois

  • Digital Signatures on Scanned forms

    Is it possible to apply Digital Signatures on Scanned form; i.e can we add a hidden signature field?
    Thanks,
    Nith

    Answered my own question. These numbers represent the time zone of the area where the digital signature was created.

  • I can't affix my valid digital signature to adobe reader pdf document?

    I can't affix my valid digital signature to adobe reader pdf document. When the signature field is clicked, it is not showing my digital ID so that I can sign with it. Why it is not displaying my valid digital ID?

    What is your operating system?  What is your Reader version?  What means "can not"?
    Can you post a screenshot of such a message "to buy Adobe XI"?

Maybe you are looking for

  • 1.1.1 Tried to reinstall, wont show window

    My wife had been having some intermittent problems with her iP not opening up when she plugged her camera into her ibook. She was told to try reinstalling iP. She has an Ibook with 10.2.8 and the iP info says it's 1.1.1 Well, I did it. I put all of o

  • How to play Animation with site loading in background to reveal website?

    So I know there are pre loaders and you can make that with edge... But they are so small and just a little circle moving around or something... I more mean a full page pre-loader then I guess... I have created an animation of a M with marquee lights

  • Why, oh why, won't my music go on my iPod?!

    So here's the deal. I had an iPod that worked fine about two years ago, and then it suddenly and mysteriously died about six months ago. Because of my warranty, Apple replaced it. Since then, I have not been able to get it to work. I've been lazy abo

  • 5800 Xpressmusic folder query

    I have created some folders (3 in total) to download emails to Folders have the @ in the corners. But now I would like to delete them having decided to just read emails on line. Is this possible as I cannot find a delete folder option under options n

  • Freeform file encryption app?

    I would like to dump about 150 records of freeform sensitive data into a file that I can synch with my iPhone and which is strongly encrypted and password protected. Having the ability to modify the file on the iPhone is not needed but would be desir