How to use document saveAs to save a PDF to a UNC path

Can document saveAs tsave a PDF to a UNC path on a network share?

JavaScript is inherently in Unicode. I see no reason for it not to work, though in versions of Acrobat before the most recent, it could only save to files whose Unicode matched the system coding. So test that a manual save will work before trying to automate it.

Similar Messages

  • How to use documents MS-Word-Excel and Pdf on iPhone 4S

    Before I bought the iPhone I was using Sony Ericson X1 Xperia. On this phone I could easily read & write  on documents MS-word/excel and transferred them from and to my PC with Windows 7.
    Till now I cannot find an easy way to transfer these documents onto my iPhone to edit, create or read. Have already installed iTunes, iCloud and one app numbers. Sofar no success to have it on my iPhone.
    I there sombody who could help me out.
    Thnks, Cor

    http://itunes.apple.com/us/app/quickoffice-pro/id310723177?mt=8

  • Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper)

    Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper). For example, if I am downloading a paper by smith called "Surgery" that was published in 2002, it will automatically set the file name in the download to smith- surgery 2002. I have heard pages is smart enough to do this.
    thank you

    Pages can export only its own documents. They may be exported as PDF, MS Word, RTF or Text files.
    Pages can import (ie. Open a file as, or Insert a file into, a Pages document) documents in several formats, but won't rename the document as you describe. Documents that can be Opened (eg. Text, AppleWorks 6 WP, MS Word files) are converted to Pages documents, and retain their original names, with .pages replacing the original file extension. Files that can be Inserted (generally .jpg, .pdf and other image files) become part of the existing Pages file and lose their names.
    It may be possible, using AppleScript, to extract the text you want and to Save a Pages file using that text as the filename, but that would depend in part on being able to identify which text is wanted and which is not.
    How will the script determine where the author's name begins and where it ends?
    How will the script recognize the beginning and of the title, an decide how much of the title to use in the filename?
    How will the script recognize the year of publication?
    For papers published in a specific journal, with a strict format for placing each of these pieces on information, or containing the needed information as searchable meta data in the file, this might be possible. But it would require knowledge of the structure of these files, and would probably handle only papers published in a specific journal or set of journals.
    Outside my field of knowledge, but there are some talented scripters around here who might want to take a closer look.
    Best of luck.
    Regards,
    Barry

  • How to Use document.Lines.SetCurrentLine

    Hi there, due to an enormous amount of time spent on this issue, I thought I would share how to use the SetCurrentLine method as posted to me by SAP support:
    It seems very cumbersome, as I have now to do an extra Recorset look up to get all the lines if I want to get the correct index - but at least it works (hopefully).
    Daniel
    SUPPORTS MESSAGE ****
    the way the SetCurrentLine works is as following:
    You do not have to use neither the LineNum nor the VisOrder as your
    parameterfor the setCurrentLine method.
    The system will use the corresponding index (starting at zero)linked to
    that line when running a query on the database and sorting the lines by
    LineNum.
    #,,DocEntry,, Item ,,LineNum,,Price,,VisOrder
    1,,11669,, A1001,,,, 600,00,,
    2,,11669,, A1003,,2,, 3,00,, 2
    3,,11669,, A1005,,3,, 600,00,,1
    See example above, that is the result of querying the database on that
    sales order and sorting by LineNum.
    The order in which the items are displayed in the application is based
    on the VisOrder. In this example items are displayed A1001, A1005 amd
    A1003.
    In order to update Item A1005 I will need to create a recordset, query
    the database and then loop the recordset to find the corresponding item
    and then use that index from the recordset to set the value for the
    SetCurrentLine method. In the example above index 0 from recordset
    points at item A1001, index 1 points at item A1003 and index 2 points at
    A1005 so your code should use setCurrentLine(2) to update item A1005.
    If you try to use LineNum (3 in this case) you will get an error message
    as index 3 does not exist in the recordset collection ( only 3 items
    with indexes 0,1 and 2). If you use visOrder 1(for item A1005) then the
    system will update item A1003 as 1 is the index for A1003 in the
    recordset.
    END OF SUPPORTS MESSAGE ********

    Hi Curtis,
    Your situation sounds a little different to mine, in that I know the LinNum of the documentline that I need to update - that is what the lineNumber variable is...
    To update all the rows, I guess you would just iterate through all the lines sequencially (ie starting at 0 and ending at document.lines.count:
    for(int i = 0; i < doc.Lines.Count; i++)
        doc.Lines.SetCurrentLine(i);
        // do your thing here...
    How do you know what lines you want to update??
    Dan

  • How to use "document.getElementById()" using MVC and  bsp:call

    I follow the tutorial from saptechnical .com about F4 in BSP and it works.
    But my problem, is that is not working in my BSP I get javascript error "document.getElementById() is null" the popup appear I select the value but when I press the button to close the popup and pass the value nothing appears.
    I think that is because im Using MVC and Views that call a controller (like view inside views).
    I have in my main.htm this:
    <htmlb:form id     = "search"
                   method = "get" >
            <bsp:call url     = "search.do"
                      comp_id = "search" >
            </bsp:call>
    </htmlb:form>
    The code with the help values is in the search.htm(this the page associated with controller search.do)
    So Im thinking that my problem is because the form isnt in the SAME page than my inputField  and that is why im getting that error.  Can be this true ?
    And if it is,  how can I solve it?, I have several pieces of page with controllers and If I try to put the form tag in each "piece" I get an error that a button was left without a parent form tag, and I there isnt any button tag without form tag. So I think that another element tray, tabstrip or something require form tag also.
    I hope that I could explain my problem and someone can give me a hand.
    Can It be that this js statement
    document.getElementById("i_VKORG_low").value = fval;
    only works only if the form tag is in the same htm page, and cause I have teh form tag declared in the main.htm and the fieldtext i_VKORH_low in search.htm it doesnt works ?
    Thx
    EDIT: I cant post my javascript source code...dont know why I get an error from the forum that the post is not supported

    Hello,
    If I remember well, the MVC framework adds the comp_id of the bsp_call to all elements in the subcontroller.
    Try using:
    document.getElementById("search_i_VKORG_low");
    Regards,
    Tanguy

  • How do open document like word , excell or pdf ??

    hello
    on the application form , how do read (open) and print document like
    as (word , excell , pdf ) ??
    nots : we use oracle V. 10 g
    thank .

    Hello,
    I was trying to open word document from oracle 10g with below code.
    DECLARE
    AppID PLS_INTEGER;
    BEGIN
    AppID := DDE.App_Begin('d:\doc1.doc',
    DDE.App_Mode_Minimized);
    END;
    But it is showing me some error as below:
    ORA-06550: line 4, column 10:
    PLS-00201: identifier 'DDE.APP_BEGIN' must be declared
    ORA-06550: line 4, column 1:
    PL/SQL: Statement ignored
    2. AppID PLS_INTEGER;
    3. BEGIN
    4. AppID := DDE.App_Begin('d:\doc1.doc',
    5. DDE.App_Mode_Minimized);
    6. END;
    Could you please help me?
    Thanks

  • How do I calculate the size of files that I have UNC paths for

    I am on SQL Server 2008 R2. I have a table that contains a field called [Location]. In that field is a UNC path to the physical file on the repository. Is there a way in SQL Server that I can say give me the select sum([Location] UNC file) where criteria?
    I saw some posts about xp_filesize or xp_GetFileDetails, but I do not see them in master. I am unable to add anything and wondering if there is any native functionality that would allow me to accomplish this!? Thanks.

    Maybe you can use an Excel Macro for this kind of thing.
    Dim iRow
    Sub ListFiles()
    iRow = 11
    Call ListMyFiles(Range("C7"), Range("C8"))
    End Sub
    Sub ListMyFiles(mySourcePath, IncludeSubfolders)
    Set MyObject = New Scripting.FileSystemObject
    Set mySource = MyObject.GetFolder(mySourcePath)
    On Error Resume Next
    For Each myFile In mySource.Files
    iCol = 2
    Cells(iRow, iCol).Value = myFile.Path
    iCol = iCol + 1
    Cells(iRow, iCol).Value = myFile.Name
    iCol = iCol + 1
    Cells(iRow, iCol).Value = myFile.Size
    iCol = iCol + 1
    Cells(iRow, iCol).Value = myFile.DateLastModified
    iRow = iRow + 1
    Next
    If IncludeSubfolders Then
    For Each mySubFolder In mySource.SubFolders
    Call ListMyFiles(mySubFolder.Path, True)
    Next
    End If
    End Sub
    Try this too.
    Sub TestListFilesInFolder()
    ' Open folder selection
    ' Open folder selection
    With Application.FileDialog(msoFileDialogFolderPicker)
    .Title = "Select a Folder"
    .AllowMultiSelect = False
    If .Show <> -1 Then GoTo NextCode
    pPath = .SelectedItems(1)
    If Right(pPath, 1) <> "\" Then
    pPath = pPath & "\"
    End If
    End With
    NextCode: 'MsgBox "No files Selected!!"
    'Application.WindowState = xlMinimized
    'Application.ScreenUpdating = False
    Workbooks.Add ' create a new workbook for the file list
    ' add headers
    ActiveSheet.Name = "ListOfFiles"
    With Range("A2")
    .Formula = "Folder contents:"
    .Font.Bold = True
    .Font.Size = 12
    End With
    Range("A3").Formula = "File Name:"
    Range("B3").Formula = "File Size:"
    Range("C3").Formula = "File Type:"
    Range("D3").Formula = "Date Created:"
    Range("E3").Formula = "Date Last Accessed:"
    Range("F3").Formula = "Date Last Modified:"
    Range("A3:F3").Font.Bold = True
    Worksheets("ListOfFiles").Range("A1").Value = pPath
    Range("A1").Select
    With Selection.Interior
    .Pattern = xlSolid
    .PatternColorIndex = xlAutomatic
    .Color = 65535
    .TintAndShade = 0
    .PatternTintAndShade = 0
    End With
    With Selection.Font
    .Color = -16776961
    .TintAndShade = 0
    End With
    Selection.Font.Bold = True
    ListFilesInFolder Worksheets("ListOfFiles").Range("A1").Value, True
    ' list all files included subfolders
    Range("A3").Select
    Lastrow = Range("A1048576").End(xlUp).Row
    Range(Selection, Selection.End(xlToRight)).Select
    Range(Selection, Selection.End(xlDown)).Select
    ActiveWorkbook.Worksheets("ListOfFiles").Sort.SortFields.Clear
    ActiveWorkbook.Worksheets("ListOfFiles").Sort.SortFields.Add Key:=Range( _
    "B4:B" & Lastrow), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:= _
    xlSortNormal
    With ActiveWorkbook.Worksheets("ListOfFiles").Sort
    .SetRange Range("A3:F" & Lastrow)
    .Header = xlYes
    .MatchCase = False
    .Orientation = xlTopToBottom
    .SortMethod = xlPinYin
    .Apply
    End With
    Range("A1").Select
    Cells.Select
    Cells.EntireColumn.AutoFit
    Columns("A:A").Select
    Selection.ColumnWidth = 100
    Range("A1").Select
    End Sub
    Sub ListFilesInFolder(SourceFolderName As String, IncludeSubfolders As Boolean)
    ' lists information about the files in SourceFolder
    Dim FSO As Scripting.FileSystemObject
    Dim SourceFolder As Scripting.Folder, SubFolder As Scripting.Folder
    Dim FileItem As Scripting.File
    Dim r As Long
    Set FSO = New Scripting.FileSystemObject
    Set SourceFolder = FSO.GetFolder(SourceFolderName)
    r = Range("A1048576").End(xlUp).Row + 1
    For Each FileItem In SourceFolder.Files
    ' display file properties
    Cells(r, 1).Formula = FileItem.Path & FileItem.Name
    Cells(r, 2).Formula = (FileItem.Size / 1048576)
    Cells(r, 2).Value = Format(Cells(r, 2).Value, "##.##") & " MB"
    Cells(r, 3).Formula = FileItem.Type
    Cells(r, 4).Formula = FileItem.DateCreated
    Cells(r, 5).Formula = FileItem.DateLastAccessed
    Cells(r, 6).Formula = FileItem.DateLastModified
    ' use file methods (not proper in this example)
    r = r + 1 ' next row number
    Next FileItem
    If IncludeSubfolders Then
    For Each SubFolder In SourceFolder.SubFolders
    ListFilesInFolder SubFolder.Path, True
    Next SubFolder
    End If
    Columns("A:F").AutoFit
    Set FileItem = Nothing
    Set SourceFolder = Nothing
    Set FSO = Nothing
    ActiveWorkbook.Saved = True
    End Sub
    Sub CreateList()
    Application.ScreenUpdating = False
    Workbooks.Add ' create a new workbook for the folder list
    ' add headers
    ActiveSheet.Name = "ListOfFiles"
    With Cells(3, 1)
    .Value = "Folder contents:"
    .Font.Bold = True
    .Font.Size = 12
    End With
    Cells(4, 1).Value = "Folder Path:"
    Cells(4, 2).Value = "Folder Name:"
    Cells(4, 3).Value = "Folder Size:"
    Cells(4, 4).Value = "# Subfolders:"
    Cells(4, 5).Value = "# Files:"
    Range("A3:E3").Font.Bold = True
    ListFolders BrowseFolder, True
    Application.ScreenUpdating = True
    Cells.Select
    Cells.EntireColumn.AutoFit
    Columns("A:A").Select
    Selection.ColumnWidth = 100
    Columns("B:B").Select
    Selection.ColumnWidth = 25
    Range("A1").Select
    End Sub
    Sub ListFolders(SourceFolderName As String, IncludeSubfolders As Boolean)
    ' lists information about the folders in SourceFolder
    Dim FSO As Scripting.FileSystemObject
    Dim SourceFolder As Scripting.Folder, SubFolder As Scripting.Folder
    Dim r As Long
    Set FSO = New Scripting.FileSystemObject
    Set SourceFolder = FSO.GetFolder(SourceFolderName)
    ' display folder properties
    Worksheets("ListOfFiles").Range("A1").Value = SourceFolderName
    Range("A1").Select
    With Selection.Interior
    .Pattern = xlSolid
    .PatternColorIndex = xlAutomatic
    .Color = 65535
    .TintAndShade = 0
    .PatternTintAndShade = 0
    End With
    With Selection.Font
    .Color = -16776961
    .TintAndShade = 0
    End With
    Selection.Font.Bold = True
    r = Cells(Rows.Count, 1).End(xlUp).Row + 1
    Cells(r, 1).Value = SourceFolder.Path
    Cells(r, 2).Value = SourceFolder.Name
    Cells(r, 3).Value = SourceFolder.Size
    Cells(r, 3).Value = (SourceFolder.Size / 1048576)
    Cells(r, 3).Value = Format(Cells(r, 3).Value, "##.##") & " MB"
    Cells(r, 4).Value = SourceFolder.SubFolders.Count
    Cells(r, 5).Value = SourceFolder.Files.Count
    If IncludeSubfolders Then
    For Each SubFolder In SourceFolder.SubFolders
    ListFolders SubFolder.Path, True
    Next SubFolder
    Set SubFolder = Nothing
    End If
    Columns("A:E").AutoFit
    Set SourceFolder = Nothing
    Set FSO = Nothing
    ActiveWorkbook.Saved = True
    End Sub
    And, finally.
    Const BIF_RETURNONLYFSDIRS As Long = &H1 ''' For finding a folder to start document searching
    Const BIF_DONTGOBELOWDOMAIN As Long = &H2 ''' Does not include network folders below the domain level in the tree view control
    Const BIF_RETURNFSANCESTORS As Long = &H8 ''' Returns only file system ancestors.
    Const BIF_BROWSEFORCOMPUTER As Long = &H1000 ''' Returns only computers.
    Const BIF_BROWSEFORPRINTER As Long = &H2000 ''' Returns only printers.
    Const BIF_BROWSEINCLUDEFILES As Long = &H4000 ''' Returns everything.
    Const MAX_PATH As Long = 260
    Type BROWSEINFO
    hOwner As Long
    pidlRoot As Long
    pszDisplayName As String
    lpszINSTRUCTIONS As String
    ulFlags As Long
    lpfn As Long
    lParam As Long
    iImage As Long
    End Type
    Declare Function SHGetPathFromIDListA Lib "shell32.dll" (ByVal pidl As Long, ByVal pszBuffer As String) As Long
    Declare Function SHBrowseForFolderA Lib "shell32.dll" (lpBrowseInfo As BROWSEINFO) As Long
    Function BrowseFolder() As String
    Const szINSTRUCTIONS As String = "Choose the folder to use for this operation." & vbNullChar
    Dim uBrowseInfo As BROWSEINFO
    Dim szBuffer As String
    Dim lID As Long
    Dim lRet As Long
    With uBrowseInfo
    .hOwner = 0
    .pidlRoot = 0
    .pszDisplayName = String$(MAX_PATH, vbNullChar)
    .lpszINSTRUCTIONS = szINSTRUCTIONS
    .ulFlags = BIF_RETURNONLYFSDIRS
    .lpfn = 0
    End With
    szBuffer = String$(MAX_PATH, vbNullChar)
    ''' Show the browse dialog.
    lID = SHBrowseForFolderA(uBrowseInfo)
    If lID Then
    ''' Retrieve the path string.
    lRet = SHGetPathFromIDListA(lID, szBuffer)
    If lRet Then BrowseFolder = Left$(szBuffer, InStr(szBuffer, vbNullChar) - 1)
    End If
    BrowseFolder = BrowseFolder & "\"
    End Function
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • How to use SharePoint Environment to save the text of an image in the DB?

    Hi All,
    I Don't know a lot about the SharePoint Environment, But I wanna that part who is talking about getting an image from a scanner, reading the text in it and save it as a text in the DB.
    Any one can help me about that? or give me a link to learn about what I need in it?
    Note: I'm using Oracle DB 10g.

    I had a few seconds I didnt think Id need again so I googled "connecting sharepoint to oracle" and got the following link for you which list steps how to connect sharepoint to oracle
    http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/8fa4ac8b-7e27-4b8f-ad12-f81d32ba7d2c

  • How to Use Open Dialog Box, & Save Dialog Box

    Hi Frens,
    Can You tell me how can i use open dialog box, and save
    dialog box using Flex. Because there is no such components are
    given here.
    Also How can i Do when I click on some button, or some event
    Please tell me abt this, Thks in advance frens
    Ashish Mishra

    for input requested try this
    String ar = JOptionPane.showInputDialog("Please, enter artist name");for any sort of message box try this
    int answer = JOptionPane.showConfirmDialog(null, "Enter another record?",
                                "???",JOptionPane.YES_NO_OPTION);This might help you buddy.

  • How to use iPhoto in screen saver under maverick os

    With the Lion or Leopard O/S i am able to use my pictures directly from  iPhoto as screensavers.  However after upgrade to Maverick, it is now impossible to select iPhoto events as a source for any of the screensavers!
    any ideas, please help!

    I too am having the same issue.  I have a circa 2007 iMac, and recently upgraded to OS 10.9.1.  I also moved all of my photos to an external hard drive (currently have iPhoto 9).  When I try to set to set up the computer screensaver, the iphoto library on the external drive is greyed out.
    I may upgrade to iPhoto 11 if that it requirement, but if there is an easier solution, I will go for that. 
    Thanks for any feedback!!

  • How to use documents created from software on bootcamp, on my MBP at the same time?

    I have a MBP. Bootcamp was installed. VM Fusion also installed. Two industry unique software programs, one that plots legal descriptions in deeds and one that creates forms have been installed on the bootcamp side and I can acces them through VM Fusion, but when I receive documents in "ndp" format in an email I can't direct it to the application in bootcamp or on the windows side in order to open it. Any suggestions? Also, the forms program creates documents but I'd like to save them somewhere where I can access them from the Mac side. I'm new to this. I could use some help.
    Thanks.

    I do not know or have time right now to look up NDP format.
    To write to NTFS from Mac, you need a driver.
    And to write to HFS from Windows also.
    I strongly recommend Paragon drivers for both.
    That way you can access anything from any platform.
    Paragon Software for Mac

  • How to use Documents & Data in the iCloud on my mac?

    Dear Sir,
    When you activate Documents & Data from System Preferences/iCloud it means that it can be stored and synced with my MAC.
    You can see this when you disable Documents & Data from System Preferences/iCloud, it says that (All Docments & Data Stored in my MAC will be deleted)
    So, there should be a folded that can store and sync my Documents & Data with iCloud.
    So, How?
    Or anyhow, how does it work?
    Thanks,
    Boudy,

    So, iCloud is just for upload and download.
    I even could not use the documents on the web. how come?
    is it just a place to upload and download only? It should be used as a device on the Web also. and it should be synced with my Mac or PC. In this way, It could be useful. But to upload a document to the web, then modify it by any IOS5, in this case I will have 2 versions, one in the could, and another in my mac, and i have to keep update with the new one. if i modify the one in my mac, i have to re-upload again before using the one in the cloud or i'll be using another old version. and if i modify the version in the cloud, i should re-download it to my mac before using the version which is already in my mac. it is really going terrible.
    I'm really disappointed from the iCould.
    It is just for mail, syncing contacts and iCal, Find my iPhone.
    iDisk and Photo Gallery was something unbelievable.
    Hope apple to keep iDisk & Photo Galley and to update the iCloud

  • How to use document() function in PL/SQL XSLT parser ?

    The "XDB Developers Guide" documentation says on page 12-18
    >
    The application can use DBUriType objects:
    To make references, such as import or include, to related XSL stylesheets. You can encode these references within the XSL stylesheet itself.
    following this i added string like this to my stylesheet
    <xsl:apply-templates select="document('/ORADB/SCOTT/STYLESHEET_TAB/ROW[ID=1]/STYLESHEET/text()')" mode="include"/>
    <xsl:cinclude href="/ORADB/SCOTT/STYLESHEET_TAB/ROW[ID=1]/STYLESHEET/text()"/>
    But when XSLT processor reaches this, it fails.
    I also even tried like this
    <xsl:include href="/ORADB/SCOTT/STYLESHEET_TAB/ROW[ID=1]/STYLESHEET/text()"/>
    but result is the same ;(((
    Generally - is there ANY way XSLT processor can deal with stylesheet which contains
    DBURI references to another stylesheets stored in XMLTYPE columns ?
    I'm currently in charge to develop a content management system for a huge corporate site,
    so i'm VERY interested to know - does this feature really exists on Oracle 9.2 ?
    Please ansver ASAP.

    BTW: following this link
    xsl:include within XSL stylesheet stored in XMLType column
    i've encountered that this theme has been asked but none from Oracle staff has answered on it yet ;(((((((

  • How to use documents like pictures, stored on content management in forms

    Hi,
    We store on content management as an attachment, and in relations with a marketing campaign, an image which represents the campaign. We developed a smartform which restores the data of the campaign and we want to insert the image about which I speak above. It seems that the documents stored on content management are not stored on a physical path but that they are it in cluster tables and thus I does not see how can I post this image in the smartform which we have to create. Thus I seek somebody who would have the solution of this problem.
    Best regards,
    Jean-Baptiste Butat

    I do not know or have time right now to look up NDP format.
    To write to NTFS from Mac, you need a driver.
    And to write to HFS from Windows also.
    I strongly recommend Paragon drivers for both.
    That way you can access anything from any platform.
    Paragon Software for Mac

  • How to use Payload as input to a PDF document

    Hi,
    I am reading the payload using function module SXMB_GET_MESSAGE_PAYLOAD and I want to use the Payload to fill my ADOBE form.  I thought that it would be sufficient to pass to the pdf the payload but my PDF does not get populated and no error is returned.
    I created my form interface with a XSD file of the same format as the payload. I use this interface in my form and I set a data connection with a WSDL file of the same format as the Payload.
    Is there a step that I am missing? Can we pass in parameter the payload or we need to do an extra step?
    Here the code I am using to call my PDF
    Get XML output data for Message Id
            CALL FUNCTION 'SXMB_GET_MESSAGE_PAYLOAD'
              EXPORTING
                im_msgkey      = l_msgkey
              IMPORTING
                ex_msg_bytes   = l_xstring
              EXCEPTIONS
                not_authorized
                no_message
                internal_error
                no_payload.
    Create PDF
            CALL FUNCTION l_funcname
              EXPORTING
                /1bcdwb/docparams  = ls_docparams
                /1bcdwb/docxml     = l_xstring.
    Thank you

    Hi Steve,
    if your Adobe form used an xml based interface, and your xml data are into an xstring variable, then you only need the FP_JOB_OPEN and FP_JOB_CLOSE function modules - please have a look at this example; its working fine:
    DATA: gs_outputpara TYPE sfpoutputparams,
            gs_docpara    TYPE sfpdocparams,
            gs_return     TYPE fpformoutput,
            gs_result     TYPE sfpjoboutput,
            gv_form       TYPE fpwbformname VALUE 'Z_TRAVEL_REQUEST',
            gv_function   TYPE rs38l_fnam,
            gv_xml        TYPE xstring,
            gv_data_str   TYPE string.
    * create xml data
      CONCATENATE
        `<?xml version="1.0" encoding="utf-8" ?>`
        `<REQUEST>`
        `<CUSTNAME>` gs_request-custname `</CUSTNAME>`
        `<DEPARTMENT>` gs_request-department `</DEPARTMENT>`
        `<KOSTL>` gs_request-kostl `</KOSTL>`
        `<DEPDATE>` gs_request-depdate `</DEPDATE>`
        `<ARRDATE>` gs_request-arrdate `</ARRDATE>`
        `<COUNTRYTO>` gs_request-countryto `</COUNTRYTO>`
        `<CITYTO>` gs_request-cityto `</CITYTO>`
        `<CAUSE>` gs_request-cause `</CAUSE>`
        `<VEHICLE>` gs_request-vehicle `</VEHICLE>`
        `<HOTEL>` gs_request-hotel `</HOTEL>`
        `</REQUEST>`
        INTO gv_data_str.
      CALL TRANSFORMATION id SOURCE XML gv_data_str
                             RESULT XML gv_xml.
    * Get the name of the generated function module
      TRY.
          CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
            EXPORTING
              i_name           = gv_form
            IMPORTING
              e_funcname       = gv_function
    *         E_INTERFACE_TYPE =
        CATCH cx_root.
          RAISE no_active_form.
      ENDTRY.
    * Set parameters
      gs_outputpara-nodialog   = 'X'.
      gs_outputpara-preview    = 'X'.
      gs_outputpara-getpdf     = 'X'.
      gs_outputpara-connection = cl_fp=>get_ads_connection( ).
      gs_docpara-langu         = 'DE'.
      gs_docpara-country       = 'DE'.
      gs_docpara-fillable      = 'X'.
    * Open print job
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = gs_outputpara
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
      IF sy-subrc <> 0.
        RAISE job_open_error.
      ENDIF.
    * Call the generated function module
      CALL FUNCTION gv_function
        EXPORTING
          /1bcdwb/docparams  = gs_docpara
          /1bcdwb/docxml     = gv_xml
        IMPORTING
          /1bcdwb/formoutput = gs_return
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4.
      IF sy-subrc <> 0.
        RAISE form_process_error.
      ENDIF.
    * Close print job
      CALL FUNCTION 'FP_JOB_CLOSE'
        IMPORTING
          e_result       = gs_result
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
        RAISE job_close_error.
      ENDIF.
    Edited by: Jens Haehnel on Sep 1, 2009 4:19 PM

Maybe you are looking for

  • How do I (or can I) convert an embedded smart object into a linked smart object

    If I start with an embedded Smart Object (S.O)., can I easily convert in into a linked type of S.O.? I have not seen this feature available in the tooling yet. Please advise.

  • IPod touch will not turn on only 2 days old

    I Bought my son an iPod touch for Xmas sit worked grate till tonight it just turned off and will not do anything now if we return it will all the money on the games he bought be lost or what?? Or dose any one know what is wrong so I can fix it

  • IPod Nano sync snag - "cannot be updated, required folder cannot be found"

    Whenever I try to sync my iPod Nano (2nd Gen) I get the error message "the iPod cannot be updated. The required folder cannot be found". Have had this problem since I bought it! Am running latest s/w versions (reloaded iTunes v. 7.1.1.5 twice, and iP

  • Java stored procedure problem(oracle db)

    HI, we have a java stored procedure with the following definition, and that works as we want it to: CREATE OR REPLACE FUNCTION processBulletin(in_varchar VARCHAR2) RETURN VARCHAR2 AS LANGUAGE JAVA NAME 'JavaParser.Bufr_Ingest.processBulletin(java.lan

  • HELP cant get it to get music, frusterated into te

    ok, i got it for christmas, and i was realy looking forward to getting it going cause i have an mpc port in my car and i dri've alot, well...you get the drift, either way, i cant get it to work, i tried calling the customer support, but forgot they w