Simple Transformation from Adobe Form XML document to Dictionary structures

I have an XML document that I am receiving via email (the XML document is generated from an Adobe Interactive form). I would like to write a simple transformation that will map that XML document to a structure and internal table in my ABAP program. I am new to Simple Transformations and I am having trouble working out how to write a simple transformation for this type of XML document. I would prefer to write a custom transformation rather than using the identity transformation (ID). I would appreciate any help you can provide.
Please refer to the below for an example of the XML file.
This maps directly to 2 dictionary structures that exist within our system containing all of the same components. PIM_REQUEST_HDR has a corresponding SAP dictionary structure Y_REQUEST_HDR and PIM_REQUEST_ITEMS has a corresponding SAP dictionary structure Y_REQUEST_ITEMS.
Can anyone help with some instructions or examples of how to create the simple transformation?
Thanks for your help! We are using ECC 6.0
Sample XML to be transformed:
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<SFPSY>
  <DATE>2007-07-03</DATE>
  <TIME>07:25:21</TIME>
  <USERNAME>TLCITY</USERNAME>
  <SUBRC>0</SUBRC>
  </SFPSY>
<PIM_REQUEST_HDR>
  <MANDT />
  <REQ_NUM />
  <REQ_DESC>blah blah blah</REQ_DESC>
  <PROC_AREA>CTC</PROC_AREA>
  <REQUESTED>2007-07-03</REQUESTED>
  <REQUIRED>2007-07-03</REQUIRED>
  <REQUESTOR>TLCITY</REQUESTOR>
  <MOD_TYPE>SAP Note manual changes</MOD_TYPE>
  <SAPNOTE_NUM>59549656</SAPNOTE_NUM>
  <SAPMSG_NUM>0000000000</SAPMSG_NUM>
  <TECH_SCRIPT />
  <REASON />
  <DEV_ENV>ECC6</DEV_ENV>
  <INSTALL_NO>2861655161</INSTALL_NO>
  <BASIS_REL>700</BASIS_REL>
  <REG_STATUS />
  <REJ_REASON />
  <APP_DATE />
  <REJ_DATE />
  <APPROVER />
  <REGISTRATOR />
  <REG_DATE />
  </PIM_REQUEST_HDR>
<PIM_REQUEST_ITEMS>
<DATA>
  <MANDT />
  <REQ_NUM />
  <PGMID>R3TR</PGMID>
  <OBJECT>PROG</OBJECT>
  <OBJ_NAME>RSDIJOIJSDOIF</OBJ_NAME>
  <ACCESSKEY />
  </DATA>
<DATA>
  <MANDT />
  <REQ_NUM />
  <PGMID>R3TR</PGMID>
  <OBJECT>PROG</OBJECT>
  <OBJ_NAME>RRRSDIJOIJS03</OBJ_NAME>
  <ACCESSKEY />
  </DATA>
  </PIM_REQUEST_ITEMS>
  </data>

I have solved this one with the help of another collegue.
To simplify, we changed the XML to be as follows:
[code]
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<PIM_REQUEST>
<REQ_HDR>
  <MANDT />
  <REQ_NUM />
  <REQ_DESC>Key required for pricing routines</REQ_DESC>
  <PROC_AREA>SD</PROC_AREA>
  <REQUESTED>2007-07-30</REQUESTED>
  <REQUIRED>2007-08-02</REQUIRED>
  <REQUESTOR>TLCITY</REQUESTOR>
  <MOD_TYPE>SAP Note: Manual Changes</MOD_TYPE>
  <SAPNOTE_NUM>0000000000</SAPNOTE_NUM>
  <SAPMSG_NUM>0000000000</SAPMSG_NUM>
  <TECH_SCRIPT>TS-2498 Pricing Routines</TECH_SCRIPT>
  <REASON>New pricing routines required</REASON>
  <DEV_ENV>ECC6</DEV_ENV>
  <INSTALL_NO>029</INSTALL_NO>
  <BASIS_REL>700</BASIS_REL>
  <REG_STATUS />
  <REJ_REASON />
  <APP_DATE />
  <REJ_DATE />
  <APPROVER />
  <REGISTRATOR />
  <REG_DATE />
  </REQ_HDR>
<KEY_DETAILS>
<DATA>
  <MANDT />
  <REQ_NUM />
  <PGMID>R3TR</PGMID>
  <OBJECT>PROG</OBJECT>
  <OBJ_NAME>RVGHT902</OBJ_NAME>
  <ACCESSKEY />
  </DATA>
<DATA>
  <MANDT />
  <REQ_NUM />
  <PGMID>R3TR</PGMID>
  <OBJECT>PROG</OBJECT>
  <OBJ_NAME>RVGHT901</OBJ_NAME>
  <ACCESSKEY />
  </DATA>
  </KEY_DETAILS>
  </PIM_REQUEST>
  </data>
[/code]
This maps directly to 1 dictionary structure that exists within our system containing all of the same components. PIM_REQUEST has a corresponding SAP dictionary structure Y_REQUEST_HDR which is a deep structure and has within it a structure REQ_HDR and a table KEY_DETAILS.
The corresponding simple transformation we have then used is as follws:
[code]
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
  <tt:root name="root"/>
  <tt:template>
    <data>
      <PIM_REQUEST>
        <tt:copy ref="root"/>
      </PIM_REQUEST>
    </data>
  </tt:template>
</tt:transform>
[/code]
Alternatively the following 2 options also work:
Option 2:
[code]
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
  <tt:root name="root"/>
  <tt:template>
    <data>
      <PIM_REQUEST>
        <REQ_HDR>
          <tt:copy ref="root.REQ_HDR"/>
        </REQ_HDR>
        <KEY_DETAILS>
          <tt:loop name="KEY_DETAILS" ref="root.KEY_DETAILS">
            <DATA>
              <tt:copy ref="$KEY_DETAILS"/>
            </DATA>
          </tt:loop>
        </KEY_DETAILS>
      </PIM_REQUEST>
    </data>
  </tt:template>
</tt:transform>
[/code]
Option 3:
[code]
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
  <tt:root name="root"/>
  <tt:template>
    <data>
      <PIM_REQUEST>
        <REQ_HDR>
          <MANDT tt:value-ref="root.REQ_HDR.MANDT"/>
          <REQ_NUM tt:value-ref="root.REQ_HDR.REQ_NUM"/>
          <REQ_DESC tt:value-ref="root.REQ_HDR.REQ_DESC"/>
          <PROC_AREA tt:value-ref="root.REQ_HDR.PROC_AREA"/>
          <REQUESTED tt:value-ref="root.REQ_HDR.REQUESTED"/>
          <REQUIRED tt:value-ref="root.REQ_HDR.REQUIRED"/>
          <REQUESTOR tt:value-ref="root.REQ_HDR.REQUESTOR"/>
          <MOD_TYPE tt:value-ref="root.REQ_HDR.MOD_TYPE"/>
          <SAPNOTE_NUM tt:value-ref="root.REQ_HDR.SAPNOTE_NUM"/>
          <SAPMSG_NUM tt:value-ref="root.REQ_HDR.SAPMSG_NUM"/>
          <TECH_SCRIPT tt:value-ref="root.REQ_HDR.TECH_SCRIPT"/>
          <REASON tt:value-ref="root.REQ_HDR.REASON"/>
          <DEV_ENV tt:value-ref="root.REQ_HDR.DEV_ENV"/>
          <INSTALL_NO tt:value-ref="root.REQ_HDR.INSTALL_NO"/>
          <BASIS_REL tt:value-ref="root.REQ_HDR.BASIS_REL"/>
          <REG_STATUS tt:value-ref="root.REQ_HDR.REG_STATUS"/>
          <REJ_REASON tt:value-ref="root.REQ_HDR.REJ_REASON"/>
          <APP_DATE tt:value-ref="root.REQ_HDR.APP_DATE"/>
          <REJ_DATE tt:value-ref="root.REQ_HDR.REJ_DATE"/>
          <APPROVER tt:value-ref="root.REQ_HDR.APPROVER"/>
          <REGISTRATOR tt:value-ref="root.REQ_HDR.REGISTRATOR"/>
          <REG_DATE tt:value-ref="root.REQ_HDR.REG_DATE"/>
        </REQ_HDR>
        <KEY_DETAILS>
          <tt:loop ref="root.KEY_DETAILS" name="KEY_DETAILS">
            <DATA>
              <MANDT tt:value-ref="$KEY_DETAILS.MANDT"/>
              <REQ_NUM tt:value-ref="$KEY_DETAILS.REQ_NUM"/>
              <PGMID tt:value-ref="$KEY_DETAILS.PGMID"/>
              <OBJECT tt:value-ref="$KEY_DETAILS.OBJECT"/>
              <OBJ_NAME tt:value-ref="$KEY_DETAILS.OBJ_NAME"/>
              <ACCESSKEY tt:value-ref="$KEY_DETAILS.ACCESSKEY"/>
            </DATA>
          </tt:loop>
        </KEY_DETAILS>
      </PIM_REQUEST>
    </data>
  </tt:template>
</tt:transform>
[/code]

Similar Messages

  • Simple Transformation from ABAP to XML and back

    Hi experts,
    Can anyone provide me a simple example of a 'simple transformation' that will convert and internal table with more than one column into XML via a simple transformation.
    I've spend days now reading SAP help and e-learning examples, but this just won't work and I am getting short dumps saying 'The goal was to access variable "ROOT". However, this access was notv possible.'
    Here is my ABAP:
    data: begin of struc,
               counter type i,
               aname type string,
               aname2 type string,
          end of struc.
    data: cnt_c type c.
    data: itab like table of struc with HEADER LINE,
          xml_string type xstring.
    do 3 times.
         move sy-index to: itab-counter, cnt_c.
         concatenate 'nameA' cnt_c into itab-aname.
         concatenate 'nameB' cnt_c into itab-aname2.
         append itab.
    enddo.
    CALL TRANSFORMATION Z_ST_TEST5
           SOURCE  ROOT = itab
           RESULT XML xml_string.
    CALL FUNCTION 'DISPLAY_XML_STRING'
      EXPORTING
        XML_STRING            = xml_string.
    skip 1.
    and here is my ST:
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
      <tt:root name="ROOT"/>
        <tt:template>
         <TABLE>
          <tt:loop ref=".ROOT" name="line">
            <ITEM>
              <counter>
                <tt:value ref="$line.aname" />
              </counter>
              <name>
                <tt:value ref="$line.aname" />
              </name>
              <name2>
                <tt:value ref="$line.aname2" />
              </name2>
            </ITEM>
          </tt:loop>
         </TABLE>
        </tt:template>
    </tt:transform>

    Figured it out. The interla tables used in teh call transformation statement can never have a header line.

  • Simple Transformation with very long XML element names

    I am trying to write a program to deserialize XML documents using the Simple Transformation technique.  There are many optional elements in the XML document, so I need to have conditional statements statements to avoid trying to process elements that are not in the document.  The XML document, however, has several Element Names that are greater than 30 characters in length.  The Simple Transformation technique seems to require ABAP data dictionary structures that mirror the schema of the XML document.  But one cannot create structure component names that are greater than 30 characters in length.  We don't have any control over the XML schema as the XML documents come from the US government.  The ST fragment below shows the statement that I want to write, but since the ABAP Structure PlasticCardInformationGroup cannot have a component AuthorizationResponseInformation, the ST syntax checker yields an "Illegal Reference ADDITIONALPLASTICCARDINFORMATION" error message.
    Does anyone know a way to avoid this error?
    <tt:d-cond check="exist(TRS_TradingPartner_Agreement.TRS_FinancialTransaction.PlasticCardInformationGroup.AdditionalPlasticCardInformation)">
    <ns2:AdditionalPlasticCardInformation>
    <tt:attribute name="CardNetworkType" value-ref="TRS_TRADINGPARTNER_AGREEMENT.TRS_FINANCIALTRANSACTION.PLASTICCARDINFORMATIONGROUP.ADDITIONALPLASTICCARDINFORMATI.CARDNETWORKTYPE"/>
    <tt:attribute name="DraftLocatorNumber" value-ref="TRS_TRADINGPARTNER_AGREEMENT.TRS_FINANCIALTRANSACTION.PLASTICCARDINFORMATIONGROUP.ADDITIONALPLASTICCARDINFORMATI.DRAFTLOCATORNUMBER"/>
    </ns2:AdditionalPlasticCardInformation>

    could anyone help me?

  • Simple Transformation to deserialize an XML file into ABAP data structures?

    I'm attempting to write my first simple transformation to deserialize
    an XML file into ABAP data structures and I have a few questions.
    My simple transformation contains code like the following
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates"
                  xmlns:pp="http://www.sap.com/abapxml/types/defined" >
    <tt:type name="REPORT" line-type="?">
      <tt:node name="COMPANY_ID" type="C" length="10" />
      <tt:node name="JOB_ID" type="C" length="20" />
      <tt:node name="TYPE_CSV" type="C" length="1" />
      <tt:node name="TYPE_XLS" type="C" length="1" />
      <tt:node name="TYPE_PDF" type="C" length="1" />
      <tt:node name="IS_NEW" type="C" length="1" />
    </tt:type>
    <tt:root name="ROOT2" type="pp:REPORT" />
        <QueryResponse>
        <tt:loop ref="ROOT2" name="line">
          <QueryResponseRow>
            <CompanyID>
              <tt:value ref="$line.COMPANY_ID" />
            </CompanyID>
            <JobID>
              <tt:value ref="$line.JOB_ID" />
            </JobID>
            <ExportTypes>
              <tt:loop>
                <ExportType>
                   I don't know what to do here (see item 3, below)
                </ExportType>
              </tt:loop>
            </ExportTypes>
            <IsNew>
              <tt:value ref="$line.IS_NEW"
              map="val(' ') = xml('false'), val('X') = xml('true')" />
            </IsNew>
          </QueryResponseRow>
          </tt:loop>
        </QueryResponse>
        </tt:loop>
    1. In a DTD, an element can be designated as occurring zero or one
    time, zero or more times, or one or more times. How do I write the
    simple transformation to accommodate these possibilities?
    2. In trying to accommodate the "zero or more times" case, I am trying
    to use the <tt:loop> instruction. It occurs several layers deep in the
    XML hierarchy, but at the top level of the ABAP table. The internal
    table has a structure defined in the ABAP program, not in the data
    dictionary. In the simple transformation, I used <tt:type> and
    <tt:node> to define the structure of the internal table and then
    tried to use <tt:loop ref="ROOT2" name="line"> around the subtree that
    can occur zero or more times. But every variation I try seems to get
    different errors. Can anyone supply a working example of this?
    3. Among the fields in the internal table, I've defined three
    one-character fields named TYPE_CSV, TYPE_XLS, and TYPE_PDF. In the
    XML file, I expect zero to three elements of the form
    <ExportType exporttype='csv' />
    <ExportType exporttype='xls' />
    <ExportType exporttype='pdf' />
    I want to set field TYPE_CSV = 'X' if I find an ExportType element
    with its exporttype attribute set to 'csv'. I want to set field
    TYPE_XLS = 'X' if I find an ExportType element with its exporttype
    attribute set to 'xls'. I want to set field TYPE_PDF = 'X' if I find
    an ExportType element with its exporttype attribute set to 'pdf'. How
    can I do that?
    4. For an element that has a value like
    <ErrorCode>123</ErrorCode>
    in the simple transformation, the sequence
    <ErrorCode>  <tt:value ref="ROOT1.CODE" />  </ErrorCode>
    seems to work just fine.
    I have other situations where the XML reads
    <IsNew value='true' />
    I wanted to write
    <IsNew>
            <tt:value ref="$line.IS_NEW"
            map="val(' ') = xml('false'), val('X') = xml('true')" />
           </IsNew>
    but I'm afraid that the <tt:value> fails to deal with the fact that in
    the XML file the value is being passed as the value of an attribute
    (named "value"), rather than the value of the element itself. How do
    you handle this?

    Try this code below:
    data  l_xml_table2  type table of xml_line with header line.
    W_filename - This is a Path.
      if w_filename(02) = '
        open dataset w_filename for output in binary mode.
        if sy-subrc = 0.
          l_xml_table2[] = l_xml_table[].
          loop at l_xml_table2.
            transfer l_xml_table2 to w_filename.
          endloop.
        endif.
        close dataset w_filename.
      else.
        call method cl_gui_frontend_services=>gui_download
          exporting
            bin_filesize = l_xml_size
            filename     = w_filename
            filetype     = 'BIN'
          changing
            data_tab     = l_xml_table
          exceptions
            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.

  • ABAP Simple Transformation - How to save XML to file with CL_FX_WRITER?

    Hello!
    When calling a Simple Transformation program for transformation from ABAP to XML, it is possible to specify RESULT XML rxml as a class reference variable of type CL_FX_WRITER, which points to an XML writer.
    How to handle CL_FX_WRITER in order to save XML to a file?
    Thanks and regards,
    Andrey

    Hallo Rainer!
    Many thanks. I have checked the profile parameter ztta/max_memreq_MB and it is set to 2048 MB in the development system. I hope, that won't be less on the client's machine. The only thing I did not clearly explained, is that I need to write XML data to the server. I am so sorry. Downloading to the local PC is very helpful for me also, but only for the test purposes.
    Regards,
    Andrey

  • Simple transformation error in converting XML to internal table

    Hi Team,
    I have an issue, its working in Dev, QA, and Prod in PI 7.0, once we upgrade it to PI 7.1 I'm getting the  below mention error,   
    Unknown Simple transformation error in converting XML to internal table
    Application error in mapping program ZF_INT006_FILE_TO_SAP_FILE, error code: , error text: Unknown Simple transformation error in converting XML to internal table An exception has occurred.
    Can any one suggest related notes are suggestion.
    appericate in advance for the solutions which you all provide me
    Thank you
    Venkat Anil

    Check the flag "use SAP XML toolkit" for the operation mapping and try, if that works then.
    Check the flag for all XSLT and Java mappings which is migrated from PI 7.0

  • Connecting SQL server from Adobe forms

    Hi Experts,
    I want to know, whether it is possible to connect SQL Server database from Adobe Form directly at runtime without WAS/ADS. If it is possible, please provide any material to proceed further.
    Please help.
    Thanks,
    Rajee

    Have a look at the following document, it explains how to use a MS Access database but it should also work when using a ODBC Data source configured for a MS SQL database.
    [Providing interactive database lookup from forms|http://www.adobe.com/devnet/livecycle/articles/lc_designer_db_lookup_tip.pdf]
    I hope I could help you.

  • Cannot save file as pdf from adobe form central

    I cannot longer save file as pdf or excel once it downloads from adobe form central, can someone please help me as I have a whole hosts of applications waiting to be downloaded

    Could you please one or more of your forms with me so I can try this as well?  Add [email protected] as a Co-author. 
    -Jeff Canepa
    Jeff Canepa
    Software Quality Engineer
    Adobe Systems, Inc.
    [email protected]

  • How can I embed an DOCTYPE HTML Form from Adobe Forms central into a responsive html5 page?

    How can I embed an DOCTYPE HTML Form from Adobe Forms central into a responsive html5 page?
    -Luis

    Hi,
    You can embed the form on your website, but you need to make sure that javascript has been enabled in the browser. You need to copy the embed code and add it into your HTML code. If you would like FormsCentral to generate embeded HTML form without using javascript, you may post a feature request and vote it. Hope it helps! Thanks!
    Kind regards,
    Shiyao Bao

  • Can I convert a from from Adobe Forms Central to a PDF Form?

    Can I convert a from from Adobe Forms Central to a PDF Form?

    Yes, you can save a FormsCentral form as a PDF form. In FormsCentral, the menu item when in design view is: File > Save as PDF Form

  • Update SAP from Adobe forms

    Hi all,
    I use BAPI with web service to update several line items (e.g. of a PO) from a table in Adobe forms to SAP.  I expect that all the occurrences of the line items to be transferred to the func mod. via the defined table interface, but only the last line got transferred and the others seem to be overwritten.  I have tried adobe fixed and dynamic tables but that did not change the outcome (In another application, I'm able to display all line items from func. mod. to Adobe form).  Question : What do I need to do to have ALL the line items transferred  from Adobe form to the func. mod. ?            
    Components used : Designer 7, SAP ECC 6 level 9 .
    Please, provide help with concrete and proven information only.
    Best regards,
    Nancy

    Hi Vaibhav,
    Thanks for the reply.  I use table and not structure but somehow all the records did not get transferred.  So far i've been able to get the data to and from SAP without web dynpro and hope to be able to get this scenario to work as well.
    Regards,
    Nancy

  • How SAP smartforms are different from Adobe forms

    Hi,
    Can  anyone explain me how SAP smartforms are different from Adobe forms
    Tthanks&Regarda
    Rama Devi

    Hi,
    Both are same but adobeforma are advance version of smartforms
    for more details check with the following links
    Smartforms:
    tcode:smartforms
    [Smartforms|http://help.sap.com/saphelp_nw04/helpdata/EN/a5/de6838abce021ae10000009b38f842/content.htm]
    Adobeforms:
    tcode: sfp
    [Basics of Adobe|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4]
    [Adobeforms|http://help.sap.com/saphelp_nw70/helpdata/EN/c8/4adf7ba13c4ac1b4600d4df15f8b84/content.htm]
    Hope this helps you.
    Regards,
    Rajani

  • Error while loading an XML document using a structured application

    Hi,
    I try to load an XML document using a structured application defined in the default structapps.fm
    My code is shown down, extracted from the FDK API code sample.
    Problem, I always have the same message :
    "Cannot find the file named e:\xml\AdobeFrameMaker10\file. Make sure that the file exists. "
    Where "e:\xml\AdobeFrameMaker10\" is my install directory.
    So I assume that frame try to find the structapps.fm file but does not find it.
    What else can it be ?
    Does anyone knowns how to achieve this simple task using extendScript ?
    Thanks for any comments, Pierre
    function openXMLFile(myLastFile) {
        var filename = myLastFile.openDlg("Choose XML file ...", "*.xml", false);
        if (filename != null) {
            /* Get default open properties. Return if it can’t be allocated. */
            var params = GetOpenDefaultParams();
            /* Set properties to open an XML document*/
            /*Specify XML as file type to open*/
            var i = GetPropIndex(params, Constants.FS_OpenAsType)
            params[i].propVal.ival = Constants.FV_TYPE_XML;
            /* Specify the XML application to be used when opening the document.*/
            i = GetPropIndex(params, Constants.FS_StructuredOpenApplication)
            params[i].propVal.sval = "myApp";
            i = GetPropIndex(params, Constants.FS_FileIsOldVersion)
            params[i].propVal.ival = Constants.FV_DoOK
            i = GetPropIndex(params, Constants.FS_FontNotFoundInDoc)
            params[i].propVal.ival = Constants.FV_DoOK
            i = GetPropIndex(params, Constants.FS_FileIsInUse)
            params[i].propVal.ival = Constants.FV_DoCancel
            i = GetPropIndex(params, Constants.FS_AlertUserAboutFailure)
            params[i].propVal.ival = Constants.FV_DoCancel
            /*The structapps.fm file containing the specified application must have
            already been read. The default structapps.fm file is read when FrameMaker is
            opened so this shouldn't be a problem if the application to be used is
            listed in the structapps.fm file.*/
            var retParm = new PropVals()
            var fileObj = Open(filename, params, retParm);
            return fileObj
        } else {
            return null;

    Pierre,
    Depending on the object "myLastFile", the method openDlg might not even exist (if the myLastFile object is not a File object, for instance). And I do not see any need for the myLastFile anyhow, as you are presenting a dialog to select a file to open. I recommend using the global ChooseFile( ) method instead. This will give you a filename as string in full path notation, or null when no file was selected in the dialog. I am not sure what your ExtendScript documentation states about the return value for ChooseFile, but if that differs from what I am telling you here, the documentation is wrong. So, if you replace the first lines of your code with the following it should work:
    function openXMLFile ( ) {
        var filename = ChooseFile ( "Choose XML file ...", "", "*.xml", Constants.FV_ChooseSelect );
    While writing this, I see that Russ has already given you the same advice. Use the symbolic constant value I indicated to use the ChooseFile dialog to select a single file (it can also be used to select a directory or open a file - but you want to control the opening process yourself). Note that this method allows you to set a start directory for the dialog (second parameter). The ESTK autocompletion also gives you a fifth parameter "helplink" which is undocumented and can safely be ignored.
    Good luck
    Jang

  • How to make an XML in form of String to well-formed XML document

    Hi Folks,
         Thanks for all you support in Advance, i have a requirement, where i have an XML in one line string form and i wondering how to convert into well formed XML?
    Input XML sample:
    <root> <one><link1></link1></one><two></two> </root>
    to well-formed XML
    <root>
          <one>
              <link1></link1>
         </one>
         <two>
         </two>
    </root>
    I was trying to create a well-formed document using DOM or SAX parsers in ExcuteScript activity, but it is leading to some complicated exceptions. And i am looking for the simplest way for transformation.
    Please let me know
    thanks,
    Rajesh

    Rajesh,
    I don't understand. There is no difference between the two XML instances other than whitespace. They are both well-formed XML.
    <root> <one><link1></link1></one><two></two> </root>
    <root>
          <one>
              <link1></link1>
         </one>
         <two>
         </two>
    </root>
    Steve

  • Adobe Forms, XML(PDF format) to PDF binary

    Hi experts!
    I'm working with Interactive Adobe Forms and the form function return the PDF in a XML format (xstring) through the parameter FPFORMOUTPUT-XML.
    I need to save the PDF file (binary) without geting it through the "getpdf" parameter FPFORMOUTPUT-PDF.
    Because the "getpdf" don't permit to show the user dialog print options.
    How could I transform the XML(PDF) returned in binary PDF file?
    Thank you all!

    Hello Evaristo
    You can make use of CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' and CALL METHOD cl_gui_frontend_services=>gui_download to achieve this requirement.
    Regards
    Sandy
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
                   EXPORTING
                     buffer        = ls_params->es_output-s_form_output-xml
                   IMPORTING
                     output_length = lv_pdf_len
                   TABLES
                     binary_tab    = lt_pdf.
                 lv_file_name = p_xml.
    CALL METHOD cl_gui_frontend_services=>gui_download
                   EXPORTING
                     bin_filesize = lv_pdf_len
                     filename     = lv_file_name
                     filetype     = 'BIN'
                   CHANGING
                     data_tab     = lt_pdf
                   EXCEPTIONS
    OTHERS       = 1.

Maybe you are looking for

  • String won't copy to array

    I had to create an applet that would take in two binary numbers from the keyboard and would add/subtract/multiply them. To do this we needed an int array. But when i tried doing the method shown to us, it didnt work and it would literally output garb

  • Error: java.sql.SQLException: ResultSet is closed

    Hi, Can anyone help me figure out why I am getting this error for the program below. All that I am trying to do is, retrieve the " patchid, email_sent, AM_updated, admin_pqr_created " fields from a previous page and update my incompleteTasks table wi

  • Our company portal is not compatible with the latest version so I want to reverse the last upgrade

    I upgrade Mozilla to the latest release and I cannot log into company intranet because is not supported. I need to reverse the upgrade or to reinstall Mozilla to an earlier version before 6.0 thanks,

  • Video File Location

    I have a considerable number of home movies (mp4) on an external hard drive.  I would like to add them to my iTunes library so I can watch them on my ATV.  My question is:  When the title is added to the iTunes library, is the entire video file physi

  • Fillable fileds are printing with garbage font, rest of form prints fine.

    I've downloaded an application to be filled out and printed. When I print the application, I get some garbage in the fields that I filled out. The rest of the application looks fine. The whole thing looks great on the screen, I just can't print it. T