Missing code in "Offline Interactive Forms Using ABAP" SDN document?

I am trying to build a sample offline form scenario using the code published in the SDN document "Offline Interactive Forms Using ABAP" written by Vani Krishnamoorthy. Everything works perfectly up to the point where we instantiate the PDF Object to extract the data from the form. Then there seems to be some code missing just before we call the method SET_DOCUMENT. We are supposed to export the parameter pdfdata = pdf_data , but I cannot find where pdf_data variable is declared or assigned. Also, an ENDTRY statement seems to be missing.
Has anyone had success with Vani's offline scenario, and if so, do you know what code is missing, if any?
Thanks in advance for any help you can offer.

I found the missing code in sample program FP_PDF_TEST_06. Everything works well now.
The PDF file that was uploaded from the PC first needs to be converted from binary to XSTRING before you can create the PDF object:
data: lt_rawtab type standard table of raw255,
        g_pdfdata type xstring,
        l_len type i.
  call method cl_gui_frontend_services=>gui_upload
    exporting
      filename                = l_filename
      filetype                = 'BIN'
    importing
      filelength              = l_len
    changing
      data_tab                = lt_rawtab   "PDF file (binary)
    exceptions
      file_open_error         = 1
      file_read_error         = 2
      etc. etc.
Convert binary tab to Xstring
  call function 'SCMS_BINARY_TO_XSTRING'
    exporting
      input_length = l_len
    importing
      buffer       = g_pdfdata              "converted to Xstring         
    tables
      binary_tab   = lt_rawtab
    exceptions
      failed       = 1
      others       = 2.
  if sy-subrc is not initial.
    message id sy-msgid type sy-msgty number sy-msgno
               with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.
Instantiate PDF object..
  data: l_fp     type ref to if_fp value is initial,
        l_pdfobj type ref to if_fp_pdf_object value is initial,
        l_fpex    type ref to cx_fp_runtime,
        l_type    type string,
        l_errmsg  type string.
Get FP reference
  l_fp = cl_fp=>get_reference( ).
Handle exceptions with Try..Endtry
  try.
  Create PDF Object using destination 'ADS' (<--this is how it is
  defined in SM59)
      l_pdfobj = l_fp->create_pdf_object( connection = 'ADS' ).
  Set document
      l_pdfobj->set_document( exporting pdfdata = g_pdfdata ). 
  Tell PDF object to extract data
      l_pdfobj->set_extractdata( ).
  Execute the call to ADS
      l_pdfobj->execute( ).
    catch cx_fp_runtime_internal
          cx_fp_runtime_system
          cx_fp_runtime_usage into l_fpex.
      case cl_abap_classdescr=>get_class_name( l_fpex ).
        when '\CLASS=CX_FP_RUNTIME_INTERNAL'.
          l_type = 'INTERNAL ERROR'.
        when '\CLASS=CX_FP_RUNTIME_SYSTEM'.
          l_type = 'SYSTEM ERROR'.
        when '\CLASS=CX_FP_RUNTIME_USAGE'.
          l_type = 'USAGE ERROR'.
      endcase.
      l_errmsg = l_fpex->get_short( ).
      message e010(ad) with l_type ':' l_errmsg.
  endtry.

Similar Messages

  • Offline Interactive Forms Using ABAP

    Hi Sap Gurus,
    Here i had n requirement that i must Read a PDF file from application server and pass into XI for further processing
    I know how to read a file.it is by using open dataset,Read..., and Close
    after reading the file, we have to create a
    The dowloaded file is just a stream of raw data. We need to extract just the data from this file. For this we feed the data to the PDF object and use the methods to extract data. The first step would be to create a form object. Once a form object is created we can create a PDF object and assign the file to this object. The PDF object also needs to be informed that the mode would be to extract data. We can then generate a form by connecting to the assigned ADS.
    how this functionality can be acheived,
    Please give me some inputs on this.
    Thanks
    Srinivas

    closing this thread

  • Create offline interactive forms using webdynpro java with XML data source

    Hi Gurus,
    I am having a scenario like below:
    Sales guy request for order list online from portal- Sytem receives the request and creat XML file- from xml file need to create a Offline interactive form-Sales guy fills it offline at customer site- uploads in portal -on submit xml has to be generated with captured data at customer site-Process to  ECC.
    So my questions are:
    How to create the offline interactive form  from XML?
    Once filled offline interactive form uploaded into portal how to create XML again from pdf ?
    Please give some idea on this as this is my first Offline interactive form using XML datasource.
    Thanks
    Ravi
    Edited by: Ravi Sunkara on Jul 27, 2010 5:25 PM

    Hi Otto,
    Sorry for replying lately. First of all  I did not get your suggestions as your are editing the same posting.
    Secondly we will be using WDJ. Actually in between SAP Portal and ECC we are having adobe LCES so we need to create Interactive form using XML only. Once it is filled again the form will be submitted to another application which is running on FLEX, which will process the order.
    if you can give me your personal id i can send you the detailed process
    Thanks
    Ravi

  • F4 help in online interactive forms using ABAP

    Hi,
    Question 1:
                     I am able to get f4 help in online interactive form using ABAP. but after selecting the value from pop-up the value is not populated in PDF field. Can u help regardiing this.
    Question 2:
                     I am able to get f4 help in online interactive form using value help dropdown, first time if i click the dropdown button it is showing the popup, if i click second time it is not showing the popup.
    Thanks & Regards,
    Krishna

    Hi,
    1. I you are woking from the Web Dynpro for ABAP then after binding the Context variable in the view, and in the Adobe Layout Designer from the Library goto WebDynpro Native Tab and drag and drop the Value Help and for this automatically JavaScript is being generated, go that script and edit the line
    Var fieldname = "yourfieldname";
    Note: dont forget to link the context attribute to search help. ie. in the context properties of the attributes select the input help mode as dictionary search help and specify the name of the search help present in data dictionary.
    And now go to Utilities and click on u201CInsert Web Dynpro Scriptu201D.
    Also make sure that you specify the Layout as ZCI Layout in the Propertioes of the Adobe Form.
    2. Only the Submit button , the Enumerated Drop-Down List as well as the Value help button from the Web Dynpro Native library of Adobe LiveCycle Designer are supported. Check SAP Note: 1098009
    Regards
    Pradeep Goli

  • Problem with interactive forms using ABAP

    Hi all,
        I am trying to create an interactive adobe form using ABAP in ECC 6.0. But while execute the form, it is creating an error saying that
    Exception       SYSTEM_ERROR
    Message ID:          FPRUNX                     Message number:           001
    Message:
    ADS: The render error log file has been written to D:\u(200101)
    But i was able to create adobe interactive form using WebDynpro and its working perfectly. But the problem is while using ABAP method.
    Do anyone have an idea why its happening?
    Thanks and Regards,
    Raja Sekhar

    Hi
    Interactive Forms based on Adobe software is SAP's new solution for forms development. Its first release has the focus on interactive use of forms. High-volume printing is supported in principle, but - being a new solution - the performance has not yet reached the same level as Smart Forms or SAPscript, two established solutions that had years to grow. Interactive Forms is the only solution that will continue to be enhanced with new features, while SAPscript and Smart Forms will be supported without limitations.
    When (or if) to move to Interactive Forms depends on your requirements. For interactive forms usage, i.e. the new functions, you have no choice, as the existing solutions don't support it. High-volume print scenarios need to be carefully analyzed to see whether your concrete requirements can be met at this point.
    However, it is possible to move to Smart Forms and design your forms in such a way that a migration at any point in the future would be but a small step. Smart Forms offers from Web AS 6.40 a migration wizard to Interactive Forms. Technically, everything can be migrated, but we recommend against things like ABAP program nodes, for example.
    You are not forced to ever go to Interactive Forms if you don't want to. It really depends on whether your client needs any of the new features in Interactive Forms. Also, if they are currently working with JetForms, they could enquire with Adobe directly what migration path they offer to the joint solution.
    It is impossible to make a blanket statement on what needs to be done in each of the applications using a form for output. Despite the same underlying technology, forms handling has always been a decision for each SAP application: Some do it through customizing, some through coding, some in yet anither way.
    What I CAN say from a technology pespective is that all applications are in the process of creating their forms based on Interactive Forms so that by 2007 pretty much all SAP forms will be PDF-based. Obviously, each application does it within the framework of their application - but they all use Interactive Forms.
    By the way, be aware that in ERP 2004 this forms solution is subject to a limitation for high-volume printing scenarios as we cannot ensure that ALL customers will be content with the performance in ALL scenarios with this release. (see SAP Note 863893).
    To get an overview idea about Adobe forms ,
    Using SFP , first you need to create a interface . in interface you can declare the import and export parameters and also the declaration part, coding etc : This is nothing but similar to Function module interface.
    And now we have to create the Form which is interactive. Create the form and enter the interface name which you have created in first step, so that the parameters , declarations of fields etc : will be copied and available in the form layout. So that you can drag and drop these declared fields ( dclared fields of interface ) to the layout.
    Create the context and layout in the form.
    The layout generated can be previewed and saved as PDF output.
    Now we need to integrate the driver program and the PDF form to get the final output as per the requirement.
    On activating and executing the form you will get a function module name just similar to smartforms.
    The driver program needs to call this FM.
    Refer to the below sample code :
    DATA : is_customer TYPE scustom.
    DATA : it_bookings TYPE ty_bookings.
    DATA : iv_image_url TYPE string.
    DATA : iv_sending_country TYPE adrc-country.
    DATA : it_sums TYPE TABLE OF flprice_t.
    DATA : docparams TYPE sfpdocparams.
    DATA : formoutput TYPE fpformoutput.
    DATA : outputparams TYPE sfpoutputparams.
    PARAMETERS : pa_cusid TYPE scustom-id.
    SELECT SINGLE * FROM scustom INTO is_customer
    WHERE id = pa_cusid.
    SELECT * FROM sbook
    INTO CORRESPONDING FIELDS OF TABLE it_bookings
    WHERE customid = pa_cusid.
    outputparams-nodialog = 'X'.
    outputparams-getpdf = 'X'.
    *outputparams-adstrlevel = '02'.
    CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
    ie_outputparams = outputparams
    EXCEPTIONS
    cancel = 1
    usage_error = 2
    system_error = 3
    internal_error = 4
    OTHERS = 5.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    docparams-langu = 'E'.
    docparams-country = 'US'.
    docparams-fillable = 'X'.
    CALL FUNCTION '/1BCDWB/SM00000043'
    EXPORTING
    /1bcdwb/docparams = docparams
    is_customer = is_customer
    it_bookings = it_bookings
    IV_IMAGE_URL =
    iv_sending_country = 'US'
    IT_SUMS =
    IMPORTING
    /1bcdwb/formoutput = formoutput
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL FUNCTION 'FP_JOB_CLOSE'
    IMPORTING
    E_RESULT =
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/4a94696de6429cada345c12098b009/frameset.htm
    https://www.sdn.sap.com/irj/sdn/interactiveforms-elearning
    /people/thomas.jung3/blog/2005/07/13/lessons-learned-from-adobe-forms-development
    /people/community.user/blog/2006/11/20/search-help-in-isr-adobe-forms
    /people/franklin.herbas/blog/2005/12/13/2d-barcode-pdf-forms-with-sap-netweaver
    /people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/849b3482206353e10000000a11466f/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/82538c0c4458bbe10000000a422035/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/46/55c841d202c317e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/6d/bd2d828aa04eeb9451aad0d02ae9a0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4132
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
    https://www.sdn.sap.com/irj/sdn/interactiveforms
    http://www.sap.com/company/press/press.epx?pressID=2785
    http://www.adobe.com/enterprise/partners/sap.html
    http://www.adobe.com/enterprise/partners/pdfs/sap_datasheet.pdf
    look at the Adobe page here in SDN:
    https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=AdobeForms.htm
    Check these links on Adobe forms
    http://help.sap.com/saphelp_nw04/helpdata/en/1e/05853ff8ec2c17e10000000a114084/content.htm
    https://www.sdn.sap.com/irj/sdn/interactiveforms
    http://www.sap.com/solutions/solutionextensions/pdf/BWP_Interactive_Forms_Adobe.pdf
    It contains lots of useful information, documentation, and e-learning materials teaching you the basics.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b7/64348655fb46149098d95bdca103d0/frameset.htm
    Use the Tcode : SFP
    https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=AdobeForms.htm
    Check these links on Adobe forms
    http://help.sap.com/saphelp_nw04/helpdata/en/1e/05853ff8ec2c17e10000000a114084/content.htm
    https://www.sdn.sap.com/irj/sdn/interactiveforms
    http://www.sap.com/solutions/solutionextensions/pdf/BWP_Interactive_Forms_Adobe.pdf
    It contains lots of useful information, documentation, and e-learning materials teaching you the basics.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b7/64348655fb46149098d95bdca103d0/frameset.htm
    Very useful
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/00f4f594-7306-2a10-8483-b45bec157093 [original link is broken]
    for PDF forms
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/content.htm
    See the links for debugging
    Refer to this thread
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    Debugging
    Check these documents.
    http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
    http://help.sap.com/saphelp_nw04/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
    http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm
    http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
    ABAP Debugging
    http://www.saplinks.net/index.php?option=com_content&task=view&id=24&Itemid=34
    Look at the SAP help link below
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    For online PDF form creation...........
    https://createpdf.adobe.com/index.pl?BP=IE&LOC=en_US
    for Other information use these Links
    C:Documents and Settingsvuser01DesktopSANKET SPersonalVikalpsap netweaver ABAP and adobe Formspdf form webpdf based print forms.htm
    C:Documents and Settingsvuser01DesktopSANKET SPersonalVikalpsap netweaver ABAP and adobe Formspdf form webSAP Interactive Forms by Adobe.htm
    http://searchsap.techtarget.com/generic/0,295582,sid21_gci1079310,00.html?Offer=SAPwn927nw
    http://www.thespot4sap.com/articles/SAP_Netweaver_Introduction.asp
    http://help.sap.com/saphelp_webas630/helpdata/en/cb/f4bc3d42f46c33e10000000a11405a/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c7cbe08d-0c01-0010-8bac-b9ce7348246c?source=gawindev09&kw=sap+netweaver&adgroup=brand_netweaver
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/cfc19866-0401-0010-35b2-dc8158247fb6
    https://websmp204.sap-ag.de/~sapidp/011000358700004952682004E
    /people/venkata.ramisetti/blog/2006/09/21/configuring-output-types-for-pdf-based-print-forms
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/96/6ee0d5b39640d68fc0078fc575114a/frameset.htm
    D:adobe livecycle designerAdobe_Designer_71BeforeInstall.htm
    http://sdn.sap.com/irj/sdn/interactiveforms
    very imp ADS configuration guide
    http://help.sap.com/saphelp_nw2004s/helpdata/en/95/5a08cd0e274a0bae559622d6670722/frameset.htm
    Could anyone provide the complete manual of SAP Query Creation
    Tcode is : SFP
    chk these links:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4132
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
    see these links..
    https://www.sdn.sap.com/irj/sdn/interactiveforms-elearning
    /people/thomas.jung3/blog/2005/07/13/lessons-learned-from-adobe-forms-development
    /people/community.user/blog/2006/11/20/search-help-in-isr-adobe-forms
    /people/franklin.herbas/blog/2005/12/13/2d-barcode-pdf-forms-with-sap-netweaver
    /people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/849b3482206353e10000000a11466f/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/82538c0c4458bbe10000000a422035/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/46/55c841d202c317e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/6d/bd2d828aa04eeb9451aad0d02ae9a0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4132
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
    https://www.sdn.sap.com/irj/sdn/interactiveforms
    http://www.sap.com/company/press/press.epx?pressID=2785
    http://www.adobe.com/enterprise/partners/sap.html
    http://www.adobe.com/enterprise/partners/pdfs/sap_datasheet.pdf

  • Adobe Interactive Forms using ABAP in ERP2004

    Hi
    I am using following code to create interactive form.
    However not getting any output. But if I pass fp_docparams-FILLABLE  = '' the output pdf is produced.
    Does the interactive functionality works on ERP2004?
    Regards
    Girish
    data fp_outputparams type SFPOUTPUTPARAMS .
    data fm_name TYPE  FUNCNAME .
    First get name of the generated function module
    call function 'FP_FUNCTION_MODULE_NAME'
    exporting
    i_name = 'ZZFP_TEST_01'
    importing
    e_funcname = fm_name.
    fp_outputparams-nodialog = 'X'. " suppress printer dialog popup
    fp_outputparams-GETPDF = 'X'. " launch print preview
    fp_outputparams-CONNECTION = 'ADS' .
    call function 'FP_JOB_OPEN'
    changing
    ie_outputparams = fp_outputparams
    exceptions
    cancel = 1
    usage_error = 2
    system_error = 3
    internal_error = 4
    others = 5.
    data fp_docparams type sfpdocparams  .
    data fp_formoutput type fpformoutput .
    fp_docparams-langu = 'E'.
    fp_docparams-country = 'GB'.
    fp_docparams-FILLABLE = 'X'.
    data t_head type thead .
    t_head-tdobject = 'ZCMP' .
    T_HEAD-TDNAME = 'HA000000022222000' .
    T_HEAD-TDID = 'Z001'.
    T_HEAD-TDSPRAS = SY-LANGU.
    call function fm_name
    exporting
    /1bcdwb/docparams = fp_docparams
    sapscript_header =  t_HEAD
    importing
    /1BCDWB/FORMOUTPUT = fp_formoutput
    exceptions
    usage_error = 1
    system_error = 2
    internal_error = 3
    others = 4.
    call function 'FP_JOB_CLOSE'
    exceptions
    usage_error = 1
    system_error = 2
    internal_error = 3
    others = 4.
    data lt_att_content_hex type SDOKCNTBINS .
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = fp_formoutput-PDF "PDF file from function module
    TABLES
    binary_tab = lt_att_content_hex.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
      EXPORTING
       BIN_FILESIZE              =
        FILENAME                  = 'c:\TEST1.PDF'
         FILETYPE                  = 'BIN'
       APPEND                    = SPACE
       WRITE_FIELD_SEPARATOR     = SPACE
       HEADER                    = '00'
       TRUNC_TRAILING_BLANKS     = SPACE
       WRITE_LF                  = 'X'
       COL_SELECT                = SPACE
       COL_SELECT_MASK           = SPACE
       DAT_MODE                  = SPACE
       CONFIRM_OVERWRITE         = SPACE
       NO_AUTH_CHECK             = SPACE
       CODEPAGE                  = SPACE
       IGNORE_CERR               = ABAP_TRUE
       REPLACEMENT               = '#'
       WRITE_BOM                 = SPACE
       TRUNC_TRAILING_BLANKS_EOL = 'X'
       WK1_N_FORMAT              = SPACE
       WK1_N_SIZE                = SPACE
       WK1_T_FORMAT              = SPACE
       WK1_T_SIZE                = SPACE
    IMPORTING
       FILELENGTH                =
      CHANGING
        DATA_TAB                  = lt_att_content_hex
      EXCEPTIONS
        FILE_WRITE_ERROR          = 1
        NO_BATCH                  = 2
        GUI_REFUSE_FILETRANSFER   = 3
        INVALID_TYPE              = 4
        NO_AUTHORITY              = 5
        UNKNOWN_ERROR             = 6
        HEADER_NOT_ALLOWED        = 7
        SEPARATOR_NOT_ALLOWED     = 8
        FILESIZE_NOT_ALLOWED      = 9
        HEADER_TOO_LONG           = 10
        DP_ERROR_CREATE           = 11
        DP_ERROR_SEND             = 12
        DP_ERROR_WRITE            = 13
        UNKNOWN_DP_ERROR          = 14
        ACCESS_DENIED             = 15
        DP_OUT_OF_MEMORY          = 16
        DISK_FULL                 = 17
        DP_TIMEOUT                = 18
        FILE_NOT_FOUND            = 19
        DATAPROVIDER_EXCEPTION    = 20
        CONTROL_FLUSH_ERROR       = 21
        NOT_SUPPORTED_BY_GUI      = 22
        ERROR_NO_GUI              = 23
        others                    = 24
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
         DOCUMENT               = 'C:\test1.pdf'
       APPLICATION            =
       PARAMETER              =
         DEFAULT_DIRECTORY      = 'c'
       MAXIMIZED              =
       MINIMIZED              =
       SYNCHRONOUS            =
       OPERATION              = 'OPEN'
      EXCEPTIONS
        CNTL_ERROR             = 1
        ERROR_NO_GUI           = 2
        BAD_PARAMETER          = 3
        FILE_NOT_FOUND         = 4
        PATH_NOT_FOUND         = 5
        FILE_EXTENSION_UNKNOWN = 6
        ERROR_EXECUTE_FAILED   = 7
        SYNCHRONOUS_FAILED     = 8
        NOT_SUPPORTED_BY_GUI   = 9
        others                 = 10
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    Hi Girish,
    Is your problem solved? Because I am also facing the same problem. Could you please tell me what you did to see the PDF output.
    Regards,
    Amit

  • Render error while running interactive forms using ABAP

    Hi all,
       I am trying to create an adobe form using ABAP through SFP T-code. While I am trying to execute it, it is generating a Render Error. The error message is as follows:
    Exception       SYSTEM_ERROR
    Message ID:          FPRUNX                     Message number:           001
    Message:
    ADS: The render error log file has been written to D:\u(200101)
    But in the file, it is showing  'NO ERROR REPORT FOUND'.
    I have also tested by FP_PDF_TEST_00 program if the connection with the server is fine. It is showing it is fine. I have tested with JAVA code as well. It is also showing that connection is fine.
    I could'nt get the reason for the error. It would be great if anyone can help me in this issue.
    Thanks in advance.
    gopal

    Dear Gopal,
    please use the search function. This question has been answered many times here in the forum.
    Best regards,
    Dezso

  • Interactive forms using ABAP

    Hi ,
              Is it possible to design Interactive forms in ABAP. I have a requirement for a client using R/3, there is no Portal involved so WebDynpro ABAP is not an option.In this case I am wondering is this a possibility using general ABAP.
    Cheers
    S Kumar

    Hi S Kumar,
    You can design the Adobe Interactive Forms without WebDynpro or Portal, This can be done by writing a driver program similar to driver program where we write for SmartForm. Or you can use the WebServices to design your forms. But some functionalities may not be satisfied as in the WebDynpro or Portal.
    Regards
    Pradeep Goli

  • Interactive form using ABAP workbench

    Hi All,
    I have develped Print forms using ABAP workbench using SFP transaction.
    I am really confused with the terms Print forms and Interactive forms..
    Actually I was able to make my Print form which I have created using SFP transaction, Interactive by giving the appropriate form parameter(fillable).
    But I have read some SDN article in which it says that Interactive forms can only be created in Webdynpro environment..  (Either ABAP webdynpro or Java Webdynpro)..
    In the design time how we will know that the form is interactive or not?
    Please let me know ur thoughts on this..
    Regards,
    Sreejith A P

    HI Sree jith,
    At Design Time, we design a form using the Adobe Designer tool, which allows to to create forms with input fields etc, which can be filled by the user, if the runtime supports it.
    When you design a form via transaction SFP,y ou are essentially designing the form and adding the elements, but, whether the form would be interective or not would be defined by the run time environment.
    If you add an input field to the form, and execute it via an ABAP report, then the form would not be inteactive but, if you use the same form in WebDynpro, then the form could be interactive.
    Designing the form via SFP or via the WebDynpro Interactive form element, both, inherently call the Adobe Designer, but executing the form via WebDynpro Environment would supoprt its interactove nature whereas via an ABAP report, it would not, although the tool allowed you to add the UI element.
    Hope this helps,
    Regards,
    Siddhartha

  • Online interactive form using ABAP

    Is it possible to create an ABAP program for Online Interactive form (NW 2004)? or do we need ABAP Webdynpro (NW 2004s)?
    We have implemented an offline scenario i.e. create an interactive PDF, fill the forms, save it, upload it and extract information from PDF.  It is working fine.  But we are not able to implement online interactive scenario.
    Any suggestion?
    Thanks,
    Pranav

    While SAP certainly does not recommend to create interactive scenarios from transaction SFP (please use Web Dynpro for such scenarios), it is not entirely correct to say that it is not possible.
    The issue we see is that SFP was created for output forms, i.e. "one way out of the system" (to print etc.). Interactive Forms is based on XML, which means that in ABAP you need to convert the ABAP structures to XML for generation of the PDF on the ADS, and - in interactive scenarios - on the return trip you need to convert the XML (in the PDF) back to ABAP structures. The conversion from ABAP to XML and vice versa is done in the background automatically by the Web Dynpro environment, which is why we recommend it for interactive use. There is no automatic back conversion in SFP, i.e. you'd need to handcode this - which means additional cost and potential for error.
    Hope this helps,
    Markus
    and, thanks, Eddy, for pointing out that the FAQs need an update...
    Markus

  • Adobe interactive forms using ABAP

    Hi,
    Anyone could help me to develop Adobe interactive forms (online and offline cases)   using ABAP (not Java). I would need <b>step by step procedures</b> to develop quickly.
    Thanks.
    Ramana reddy

    HI,
    Can you try these threads
    Display Smartform Pdf output in ABAP Webdynpro application
    Display PDF from BAPI in Webdynpro
    It might helps you.
    thanks ,
    Lohi.

  • Problem activating interactive forms using ABAP WD - tutorial Thomas Jung

    Hello,
    We are trying to built the sample WDA application with the interactive form, as described in the video of Thomas Jung.
    Unfortunately, we are not able to activate the form.
    In SE80, we don't see any errors at all. It simply isn't activated.
    When we try to activate the form in trx SFP, the error "error during activation", is displayed, but no log, no solutions.
    We use an Netweaver 2004s system ( WAS700 ) and the Adobe Lifecycle Designer 7.1
    Anybody can help us on this issue ?
    Thanks in advance,
    Yoeri

    Hello Yoeri,
    I've a similar problem but when I try to activate the form there is an error number: EU837. Unfortunately there is no further advice. I tried the search-function but could not find anything.
    Did you find out any solution for your problem?
    Is there someone else who can give me a hint?
    Thanks in advance,
    Nadin
    Edit:
    Updating SAP GUI to 6.40 was the solution in my case.
    Message was edited by:
            Nadin Schaa

  • "URGENT" adobe form using ABAP

    Hi all,
              I am working with offline interactive form using ABAP for vendor master so anybody could help me for the same my problem is
    1.  How can we download the form at non sap system.
    2.  How can we upload the forms to sap system
    Plz give the solution and also the sample example if possible for the above problem.
    Thanks & Regards
    Anirudh

    Hi,
    Your process is in the ABAP Stack right ?
    You download the PDF in ABAP and then you are not able to retrieve the value in order to update the database , that's right ?
    I done it several times and there's no problem for me . If you want send me your Abap code and i'll look at this ( [email protected])
    Regards.

  • About dynamic offline interactive form

    I have a request for working with pdfs in netweaver java, but the requisites are quite tight and I don't know if it will be possible to achieve with interactive forms.
    I need to:
    1- Generate a pdf file (many in fact) using preloaded data from backend for offline use.
    2- The pdf must be interactive so the user can introduce new data or modify the preloaded data.
    3- The user should be able to change dynamically the format of the pdf: add rows to tables, make visible/invisible parts of the document, fire different events...
    4- The user should be able to save his work in the file including the format (if he has added rows to a table or made invisible an object it should be saved).
    5- The user should be able to send the data to the server through a send button.
    In short, strange as it may sound, I need to simulate a web dynpro application using an offline pdf.
    I've been searching and I think 1 and 2 are not a problem. I would just need to use a template created in LiveCycle Designer and link the data source to Web Dynpro context. Please correct me if I'm wrong.
    I think 3 can be done using scripting and events set in LiveCycle Designer, though I have 0 experience with it.
    I don't know if I can achieve 4. From what I've read dynamic content can't be saved. That is, if the user changes dynamically the pdf format and saves it will be lost when opened again. Is it true?
    I don't know about 5 either. With online interactive form of course, but with offline? I've seen examples that use and upload control in a Web Dynpro application as an alternative but I'd like to avoid that if possible.
    I'd like to get some indications about if these points can be done or not, if possible with some references that illustrate it (links to blogs, sap help...)
    Some tips and references about how to implement the different parts of this scenario (specially from point 3 and beyond) would be really welcome.
    Thanks in advance.

    Almost all things you mentioned are quite possible with Adobe Forms.
    1- Generate a pdf file (many in fact) using preloaded data from backend for offline use.
    You can do this by creating a Interactive Form using ABAP or create an online form using WD ABAP and just save the required form when done to be used for offline use
    2- The pdf must be interactive so the user can introduce new data or modify the preloaded data.
    You need to have Adobe forms License in case you want your forms to be interactive. In ABAP I think in the driver program you need to set FILLABLE = X or something like that and for WD there is enabled property which needs to be set true.
    3- The user should be able to change dynamically the format of the pdf: add rows to tables, make visible/invisible parts of the document, fire different events...
    The user can add rows to table and depending upon conditions you can set the required fields as visible/invisble
    4- The user should be able to save his work in the file including the format (if he has added rows to a table or made invisible an object it should be saved).
    If your form is fillable and interactive the data can be saved by end user.
    5- The user should be able to send the data to the server through a send button.
    There are different types of Submit options available. You can use Submit by email so that the user can submit the form via email.
    Also I would strongly advise just try Search on forum and I am sure that you would get plenty of links/examples to work with.

  • Adobe interactive form with ABAP workbench

    Hi Experts,
    Need to know, can we run Online Adobe interactive form using ABAP ( Not webdynpro ABAP or Java) workbench? If so how? and if possible please provide the driver program which run the form & after filling it, it updates SAP data online.
    Regards,
    Nik

    That is possible by using FLM tool. You need to buy it separately. Its an ARCH product. Or if its HR forms then you can use HCM proceess & forms.

Maybe you are looking for

  • [weblogic 8.1-sp4] standard taglib versions

    today i got "java.lang.ClassCastException: javax.servlet.jsp.jstl.fmt.LocalizationContext". in my application i include jstl-1.0.6.jar, so i guess weblogic uses some other version of jstl-related classes, but i couldn't even find these in server clas

  • Can't get the install from disk Production Premium from cs 5.5 to 6 to recognize my serial #

    My install takes the new serial, but says it can't find a qualifying product. SO I enter the serial listed on my account for the 5.5 & it says it is not for a qualifying product, what gives?

  • Linkage in PR & PO & FS10N

    Hi, We have a requirement of linkage between PR --> PO --> FS10N. Actually, we want a extra field where we insert Asset Number. Suppose we find a field a PR and insert Asset Number there, then Asset Number should be display in PO and FS10N also. How

  • Motorola to Intel chip help

    I have a Mac Mini (w/Tiger) and would like to go to either an Intel Mini or an Intel iMac. Can I assume that I will be unable to load my current apps like Photoshop, etc. but my iTunes and iPhoto library will transfer with no problem? Anything else I

  • I did not go to work?Agrrr

    has anyone successfully upgraded an iphone to 2.0 ?