Creating document with content from a remote system

Any sample code that I have seen for creating a new document requires that the file (the content) of the document resides on the Server machine.
What is the best way to create a document with content that comes from a remote file?

The Java code which is trying to load a file into IFS must have access to the file to load it.
If the file you are trying to load is in a remote location from the Java code, then you would need to use some remote access protocol, such as NFS, to ensure the file was accessible to the Java code.

Similar Messages

  • Error while extracting data from a remote system

    Hi,
    I am facing problem while extracting data from a remote system. The connection is alright I can extract the table required from the remote system,but when I deploy it I get this error
    ORA-04052: error occurred when looking up remote object [email protected]@ORACLE_UBN_15_LOCATION1
    ORA-00604: error occurred at recursive SQL level 1
    ORA-28000: the account is locked
    ORA-02063: preceding line from UBNDW@ORACLE_UBN_15_LOCATION1
    here Scott.demo1 is the table and UBNDW is the sid of the remote system and ORACLE_UBN_15_LOCATION1 is the location. Please help me out with this
    Thanks

    Hi,
    IDOC's need to be processed manually either in OLTp or in BW depending on the failure. Error msg in monitor status will take u to either BW or OLTP whernever there is a prob. Process IDOC's , this will start the left over packets and will finish the load.
    we hav to check IDOC in WE05(t-code) and know the status these are WE51,WE52,WE53 AND GOTO WE19 there we hav to execute the exist Idoc will succesfully loaded Idoc
    Goto St22 see the short dump error msg..
    post if there any inf..
    Thanks,
    Shreya

  • IDOC with extension from external ECC system

    Hello experts.
    I have a scenario where I need to receive an IDOC with extenstion from an external system.
    how can I define the xsd of that IDOC in my PI system?
    will I need to receive an xsd file from the external system and import it as an external defenition?
    how is it done? (this 3rd party doesn't have a PI system, so they can't export XSD like me)
    another option is to build a similar IDOC with extenstion in our SLD, and import it into the PI system... but it seems  a bit problematic.
    I'll be happy to hear suggestions from people who had to implement a similar scenario.
    thanks,
    Imanuel Rahamim.

    Hi,
    Three questions:
    1. how your external system will send to you the data: by an Idoc-XML file ? or by directly an IDoc (so with an ALE config) ?
    if it's ALE config, then you should have also a connexion to this Ext. ECC system, for instance to return back an acknowledgment. And so, if you have a connexion, you can import this IDoc into PI.
    If it's a file, they have to provide to you an XSD file, that you can use as External Def, and create a Service Interface. So it will be not really like an IDoc, but like all other message which look like an idoc.
    2.  with this ext. ECC system, do you have a logon connexion ?
    if yes, you can import this IDoc into PI.
    3. Do you have to send the same IDoc to your own ECC system ?
    if yes, that means the extension has to be developped in also in your own ECC. In that case, you will be able to import it PI and use it for source and target.
    > how is it done? (this 3rd party doesn't have a PI system, so they can't export XSD like me)
    you can find on SDN, some program to generate an XSD from a DDIC table/structure, but for complete IDoc, I don't know.
    Anyway, if it's really an ECC system, the better way to exchange data, it's to do an ALE config from their system to your PI, and no issue to import the IDoc def in PI.
    regards.
    Mickael

  • Create Documents with any Currency

    Hi,
    it´s possible create documents with SDK objects in any currency?
    I need create a invoice in Local Currency or System Currency depending the source.

    Hi Victor,
    Yes, you can create marketing documents through the DI API and set any currency code (...well, any currency code that already exists in the company setup). The Documents object has a DocCurrency and DocRate property for defining the currency.
    Kind Regards,
    Owen

  • Not able to access javaFx charts from a remote system after using ext. jars

    We are facing following issue. Any recommendations to resolve these issues are highly appreciated.
    1. Not able to access javaFx charts from a remote system (More details at the end of mail).This is high priority requirement as we have a web based reporting application and users access it over our static IP address.
    We are using Java Fx charts in our web application where we built jnlp and jar files in a separate fx project and kept jar and jnlp’s inside our web project.
    It is working fine when we did not used any external jar files and remotely it is accessible. But when we used external jars our project is running on local
    system but remotely it is not working due to some path settings. We modified jnlp files where entry of jar files exists and modified the jar path as per our
    project. But still it did not work.
    Before using external jars inside our java fx project my jnlp looks like:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://localhost:8083/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/F%3A/New+FX+Projects+08-12-
    2009/JavaFXApplication3/dist/" href="JavaFXApplication3.jnlp">
    <information>
    <title>JavaFXApplication3</title>
    <vendor>Saurabh</vendor>
    <homepage href="http://localhost:8083/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/F%3A/New+FX+Projects+08-12-
    2009/JavaFXApplication3/dist/"/>
    <description>JavaFXApplication3</description>
    <offline-allowed/>
    <shortcut>
    <desktop/>
    </shortcut>
    </information>
    <resources>
    <j2se version="1.5+"/>
    <extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/>
    <jar href="JavaFXApplication3.jar" main="true"/>
    </resources>
    <application-desc main-class="com.sun.javafx.runtime.main.Main">
    <argument>MainJavaFXScript=misc.Test</argument>
    </application-desc>
    <update check="background">
    </jnlp>
    After modifying my jnlp as per my project as
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="/PiFx/FxFiles/" href="JavaFXApplication3_browser.jnlp">
    <information>
    <title>JavaFXApplication3</title>
    <vendor>Saurabh</vendor>
    <homepage href="/PiFx/FxFiles/"/>
    <description>JavaFXApplication3</description>
    <offline-allowed/>
    <shortcut>
    <desktop/>
    </shortcut>
    </information>
    <resources>
    <j2se version="1.5+"/>
    <extension name="JavaFX Runtime" href="/PiFx/FxFiles/javafx-rt.jnlp"/>
    <jar href="/PiFx/FxFiles/JavaFXApplication3.jar" main="true"/>
    </resources>
    <applet-desc name="JavaFXApplication3" main-class="com.sun.javafx.runtime.adapter.Applet" width="500" height="500">
    <param name="MainJavaFXScript" value="misc.MyChart">
    </applet-desc>
    <update check="background">
    </jnlp>
    After adding external jars my jnlp looks like this :
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://localhost:8083/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/F%3A/New+FX+Projects+08-12-
    2009/JavaFXApplication3/dist/" href="JavaFXApplication3.jnlp">
    <information>
    <title>JavaFXApplication3</title>
    <vendor>Saurabh</vendor>
    <homepage href="http://localhost:8083/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/F%3A/New+FX+Projects+08-12-
    2009/JavaFXApplication3/dist/"/>
    <description>JavaFXApplication3</description>
    <offline-allowed/>
    <shortcut>
    <desktop/>
    </shortcut>
    </information>
    <resources>
    <j2se version="1.5+"/>
    <extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/>
    <jar href="JavaFXApplication3.jar" main="true"/>
    <jar href="lib/jdom.jar"/>
    </resources>
    <application-desc main-class="com.sun.javafx.runtime.main.Main">
    <argument>MainJavaFXScript=misc.Test</argument>
    </application-desc>
    <update check="background">
    </jnlp>
    I have modified the jnlp as per my project :
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="/PiFx/FxFiles/" href="JavaFXApplication3_browser.jnlp">
    <information>
    <title>JavaFXApplication3</title>
    <vendor>Saurabh</vendor>
    <homepage href="/PiFx/FxFiles/"/>
    <description>JavaFXApplication3</description>
    <offline-allowed/>
    <shortcut>
    <desktop/>
    </shortcut>
    </information>
    <resources>
    <j2se version="1.5+"/>
    <extension name="JavaFX Runtime" href="/PiFx/FxFiles/javafx-rt.jnlp"/>
    <jar href="/PiFx/FxFiles/JavaFXApplication3.jar" main="true"/>
    <jar href="/PiFx/FxFiles/lib/jdom.jar"/>
    </resources>
    <applet-desc name="JavaFXApplication3" main-class="com.sun.javafx.runtime.adapter.Applet" width="500" height="500">
    <param name="MainJavaFXScript" value="misc.MyChart">
    </applet-desc>
    <update check="background">
    </jnlp>
    where PiFx is our project Name

    We have tried few things given in thread : http://forums.sun.com/thread.jspa?threadID=5401999
    Now it is not able to get the external jar file only
    exception: Cannot find cached resource for URL: http://192.168.0.111:8086/PiFx/FxFiles/lib/jdom.jar.
    java.io.IOException: Cannot find cached resource for URL: http://192.168.0.111:8086/PiFx/FxFiles/lib/jdom.jar
         at com.sun.deploy.net.DownloadEngine.getCachedResourceFilePath(Unknown Source)
         at com.sun.javaws.LaunchDownload.getSignedJNLPFile(Unknown Source)
         at com.sun.javaws.LaunchDownload.checkSignedLaunchDescHelper(Unknown Source)
         at com.sun.javaws.LaunchDownload.checkSignedLaunchDesc(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.io.IOException: Cannot find cached resource for URL: http://192.168.0.111:8086/PiFx/FxFiles/lib/jdom.jar
    exception: Cannot find cached resource for URL: http://192.168.0.111:8086/PiFx/FxFiles/lib/jdom.jar.
    java.io.IOException: Cannot find cached resource for URL: http://192.168.0.111:8086/PiFx/FxFiles/lib/jdom.jar
         at com.sun.deploy.net.DownloadEngine.getCachedResourceFilePath(Unknown Source)
         at com.sun.javaws.LaunchDownload.getSignedJNLPFile(Unknown Source)
         at com.sun.javaws.LaunchDownload.checkSignedLaunchDescHelper(Unknown Source)
         at com.sun.javaws.LaunchDownload.checkSignedLaunchDesc(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.io.IOException: Cannot find cached resource for URL: http://192.168.0.111:8086/PiFx/FxFiles/lib/jdom.jar
    JavaFXApplication3.jnlp
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="/PiFx/FxFiles/" href="JavaFXApplication3.jnlp">
        <information>
            <title>JavaFXApplication3</title>
            <vendor>Saurabh</vendor>
            <homepage href="/PiFx/FxFiles/"/>
            <description>JavaFXApplication3</description>
            <offline-allowed/>
            <shortcut>
                <desktop/>
            </shortcut>
        </information>
        <resources>
            <j2se version="1.5+"/>
            <extension name="JavaFX Runtime" href="/PiFx/FxFiles/javafx-rt.jnlp"/>
            <jar href="/PiFx/FxFiles/JavaFXApplication3.jar" main="true"/>
            <jar href="/PiFx/FxFiles/lib/jdom.jar" main="true" />
        </resources>
        <application-desc main-class="com.sun.javafx.runtime.main.Main">
            <argument>MainJavaFXScript=misc.MyChart</argument>
        </application-desc>
        <update check="background">
    </jnlp>JavaFXApplication3_browser.jnlp
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="/PiFx/FxFiles/" href="JavaFXApplication3_browser.jnlp">
        <information>
            <title>JavaFXApplication3</title>
            <vendor>Saurabh</vendor>
            <homepage href="/PiFx/FxFiles/"/>
            <description>JavaFXApplication3</description>
            <offline-allowed/>
            <shortcut>
                <desktop/>
            </shortcut>
        </information>
        <resources>
            <j2se version="1.5+"/>
            <extension name="JavaFX Runtime" href="/PiFx/FxFiles/javafx-rt.jnlp"/>
           <jar href="/PiFx/FxFiles/JavaFXApplication3.jar"  main="true"/>
            <jar href="/PiFx/FxFiles/lib/jdom.jar" main="true"/>
        </resources>
        <applet-desc name="JavaFXApplication3" main-class="com.sun.javafx.runtime.adapter.Applet" width="500" height="500">
            <param name="MainJavaFXScript" value="misc.MyChart">
        </applet-desc>
        <update check="background">
    </jnlp>Applet Code
    javafx({
    archive: "../FxFiles/JavaFXApplication3.jar",
    draggable: true,
    height:hgt,
    width:wdt,
    code: "misc.MyChart",
    name: appletName,
    id: appletName
    });

  • Query a List of Open WMI connections on a server from a remote system

    We are monitoring a specific windows service on a server using Sitescope remote monitoring. The sitescope system uses a WMI method to Check if the service on a specific server is up or not. Initially it works like a charm but over time the WMI connections from
    sitescope time out and we have been told that Sitescope is not closing the WMI connection it opens gracefully and the open connections pile up.
    I am looking for a way to list open WMI connections to a specific service and/or server from a remote system and a way to kill those connections via a scheduled PowerShell (or batch/perl) script. I was able to list specific classes by -list parameter
    of the Get-WmiObject cmdlet
    but am unable to determine which class will give me the information that I require and the method to kill those connections.

    Sitescope is not closing the WMI connection it opens gracefully and the open connections pile up.
    1. It's not clear what "not closing the WMI connection it opens gracefully" means. WMI is a management technology that uses DCOM to connect to remote computers. (Is it really a question about DCOM?)
    2. It's not clear what specifically "open connections pile up" means and what problem(s) it causes.
    3. This is really a support question for that software's developer, not a question about WMI.
    -- Bill Stewart [Bill_Stewart]

  • HT1766 After I backed up my new iPhone with content from my old iPhone, all of my new content was deleted. How do I retrieve it?

    After backing up my new iPhone with content from my old iPhone, all of my new content (photos, voice memos, etc) was deleted. How do I retreive this?

    If you just bought the iPhone today, the first time you connect a new iPhone or iOS device to iTunes the first time that is used to sync with another iOS device, you are prompted to transfer the backup for the other iOS device to the new iOS device, or set up the new device as a new device.
    Sounds like you did the former and if so, this did not include backing up the new iPhone first. All data on the iPhone was replaced with the backup for the iPod Touch. The data that was on the iPhone at that time is gone.

  • How to resize document with content?

    ID CC 2014
    How do you resize a document with content so that the scale of everything is maintained, but the final output is just a smaller size?
    I have a 7x7 square booklet, laid out with content, I want to make this a  6x6 square booklet.

    Thank you.
    …The more I use InDesign and Illustrator the more and more amazed I am at Adobe's ability to entirely disregard features that seem obvious and required. This process should be no more complex than a dialog box, much like Photoshop's "image size" - Enter a new desired page size, and all objects scale up or down in uniform to match the new page size.
    How is this not in the software already?
    I can't be the only one who has had a output size change after the project has started or is finished.

  • Reg Creating Document with predefined content and it should be send by mail

    Hello Friends,
    I created one report containg Customer Realted Info.
    Requirement:
    now when user click or select one customer no then that time one document will be generated with predifined format having that selected customer no and address
    and that document will be sent by mail to 4 persons. ( like automailers ).
    so plz tell how to create that document with predefined letter content and how can i send that document via mail ????
    Thanks in advance.
    Marmik

    Hi
    <b>Here is custom sample code for E-mail purpose</b>
    *& Report  ZSEND
    report zsend .
    tables: kna1.
    data for send function
    data doc_data  like sodocchgi1.
    data object_id like soodk.
    data objcont   like soli occurs 10 with header line.
    data receiver  like somlreci1 occurs 1 with header line.
    select * from kna1 where anred like 'C%'.
      write:/ kna1-kunnr, kna1-anred.
    send data internal table
      concatenate kna1-kunnr kna1-anred
                             into objcont-line separated by space.
      append objcont.
    endselect.
    insert receiver (sap name)
      refresh receiver.
      clear receiver.
      move: sy-uname to  receiver-receiver,
            'X'      to receiver-express,
            'B'      to receiver-rec_type.
      append receiver.
    insert mail description
      write 'Sending a mail through abap'
                     to doc_data-obj_descr.
    call function 'SO_NEW_DOCUMENT_SEND_API1'
         exporting
              document_data              = doc_data
         importing
              new_object_id              = object_id
         tables
              object_content             = objcont
              receivers                  = receiver
         exceptions
              too_many_receivers         = 1
              document_not_sent          = 2
              document_type_not_exist    = 3
              operation_no_authorization = 4
              parameter_error            = 5
              x_error                    = 6
              enqueue_error              = 7
              others                     = 8.
    Hope this will help.
    Please rewards suitable points.
    Regards
    - Atul

  • How to extract data from a remote system

    Hi,
    I want to extract data from another system and map it with a target table in my local machine. what is the procedure to do that?
    I tried to create another module specifying location of that remote system I could extract the table but when I am mapping with the target table I am getting this error
    ORA-04052: error occurred when looking up remote object [email protected]@ORACLE_LOCATION_UBN_15
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from UBNDW@ORACLE_LOCATION_UBN_15
    here ORACLE_LOCATION_UBN_15 is the location and UBNDW is the SID for that system
    SCOTT is the username I have provided while creating the module
    Please help me out with this..
    Thanks

    Hi Roberto,
    thank you for the fast answer. I have read this before but i don't understand the needed steps on the Oracle-System.
    Hope anyone can help me...
    Thanks
    Muammer
    Message was edited by:
            Muammer Kizilaslan

  • CV01N - create document with template - path length

    Hi all,
    i want to create a document from a template document with an original file.
    A popup is displayed and i specify the new path for the new original file.
    --> Error when copying from ... <directory>
    Only 50 characters of the directory string are displayed in the message box???
    Any ideas?
    regards

    hi,
    go to trasaction dc30
    If you are using word file, then select it and click on define template for original file. Make new entry, define all things
    like  Document Type
    Applic.
    Language
    No
    Description
    Copy from...............
    this way you can maintan the template for original file.
    create new document, cleck on create original.
    once you click it, there is a button create with template.
    in dc20 ,click Define data carrier type "server, front end".
    if you are not using content server , then say default entry.
    regards
    nitin
    Award point if useful.

  • Calling a report from a remote system

    Hello All,
    Any idea on this issue will be of great help.
    The scenario is like this.
    a. There are two SAP systems. SYS1 and SYS2.
    b. SYS2 has ALV reports which need to be executed from SYS1.
    c. I applied the following logic which successfully calls the report in SYS1 but does not show up in the ALV format.
    d. The following is the logic used.
    There is an RFC enabled function module in SYS2 that has the statement SUBMIT EXPORTING.... Within the same FM, the LIST_MEMORY imports the report contents. This FM since it is being called from SYS1, sends back the imported contents from SYS2 to SYS1.
    e. In SYS1, the WRITE_LIST is being used that prints the report.  BUT THIS SHOWS THE OUTPUT in the form of a normal report.
    My question is, how do I show the contents in the ALV format.
    Please note,, the reuse_alv..list..display FM cannot be used as the internal table that is imported in SYS1 has the data in the RAW format.
    Any help??/
    Thanks for your time

    Yes, you can do that using the RFC, but you won't be able to send any parameters thru the selection screen.
    report zrich_0003 no standard page heading.
    data: source type table of  PROGTAB with header line,
          output like listzeile occurs 10 with header line.
    call function 'RFC_ABAP_INSTALL_AND_RUN'
               destination <system_name>
             exporting
               mode                = space
               programname         = <the_program_name>
             tables
                program            = source
                writes             = output.
    loop at output.
      write:/ output.
    endloop.
    Regards,
    Rich Heilman
    Message was edited by: Rich Heilman

  • How to use a Web Template with queries from multiple BW Systems?

    Hi all,
    can anybody help me how to use a Web Template with queries (DATA PROVIDER)in it from multiple BW Systems?
    Thanks in advance, best regards
    Frank

    Great! Thanks for the quick response.
    Have you tried this for XMLA datasources created within the EP system also?
    i.e use Web Analyzer to create a view from the XMLA source and use that view within WAD?
    Thanks.

  • Retrieving classical F1-help from a remote system

    Hi,
    when pressing Ctrl-F1 on an ABAP WebDynpro screen the system displays the F1-help text of the data element bound to the UI element. This F1-help text must be maintained in the system on which ABAP WebDynpro is running. However, I need the F1-help text of a data element that exists in a remote system.
    Is there a way to change the standard behavior of ABAP WebDynpro such that the F1-help of a remote data element is displayed (certain events to which I can register and implement my own F1-help; user exits that allow to change the standard behavior)?
    Thank you,  Peter

    Hi Makarand,
    Saw your reply.
    Just ignore this piece of coding...
    <%
    if((request.getParameter("file")==null)||(request.getParameter("file")==""))
    fb.setMessage("");
    Kindly help me out with this :
    File f1=new File((String)request.getParameter("file"));
    out.println("the files exists "+ f1.exists());
    fb.doZip(f1,"d:\\mmzip\\exec1.zip");
    When I say trying to access jsp from another system. I mean this : The jsp pages and the corresponding beans are located in my local system and it is running in Tomcat server. If I move to another system, say my friend's system who is sitting next to me and try to access this jsp page, giving the path as http://server:8080/abc.jsp, (wherein server refers to my system's name), I need to know how the bean that is running under the server know from where to bring the file.
    I repeat that if all is running under my local system, it works perfectly fine. But when the same page is accessed from my friend's system, I need to know how to get the relative path.
    Something has to be done in the folliwng place in the bean.
    public void doZip(File source, String target) throws Exception
    try
    String str=source.getAbsolutePath();//the source name is passed to str
    int strlen=str.length(); int x=str.lastIndexOf("\\");
    String actualFileName=str.substring(x+1,strlen);
    File zippedfile = new File(target);
    the getAbsolutepath() returns the path of the file. i.e if the file is in the directory of c:\sajiv\somefiles\abc.bmp, the absolute path returns c:\sajiv\somefiles\abc.bmp. It does not bring the relative path that is required. When the jsp page is accessed from my friend's sytem, the path passed is c:\myfriend directory\somefile\xyz.bmp, which is fine for that system. The bean is running in my system, and it takes the path as c:\myfrienddirectory\somefiles\xyz.bmp, which is not available in the local system.
    Am Imaking myself veyr clear.
    Now, any solutions please.............
    Sajiv

  • Error while creating document with attachment.

    Hi,
    I am getting an error "An error occured while creating the original attribute for PDF"
    I tried with out file attachment, it works as you know it is simple....
    I tried with various types of attachments like .TXT and .WRD (changed both wsapplication and docfile parameters), however i get the same error. I tried both from presentation and application server (by providing   pf_ftp_dest                = 'SAPFTPA'    pf_http_dest               = 'SAPHTTPA' )
    Any idea on how to solve this?
    All i need is create a DMS document with a PDF attachment from application server. Are there any other ways to solve this issue?
    ws_docdata-documenttype = 'ARE'.
    ws_docdata-description = 'BAPI DMS'.
    ws_docdata-statusextern = 'CR'.
    ws_file-storagecategory = 'DMS_C1_ST'.
    ws_file-wsapplication   = 'PDF'.
    ws_file-description = 'Job output'.
    ws_file-docfile = 'C:\CAD Integ BAPIS_46.pdf'.
    append ws_file to it_files.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
      EXPORTING
         documentdata               = ws_docdata
    IMPORTING
         return                     = v_ret
    TABLES
         documentfiles              = it_files   .
    BREAK-POINT.
    IF v_ret-type CA 'EA'.
      ROLLBACK WORK.
      WRITE : v_Ret-message.
    ELSE.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = '5'.
    ENDIF.
    Thanks
    Pavan

    Hi,
    I found that it is due to document type = 'ARE'. I changed hte document type to one of hte standard type 'TST'. It works for presentation server, but does not work for application server. Any ideas? Any help is appreciated with points.
    ws_docdata-documenttype = 'TST'.
    ws_docdata-description = 'BAPI DMS'.
    ws_docdata-statusextern = 'CT'.
    ws_docdata-documentnumber = 'ZNG-10000000017'.
    ws_file-storagecategory = 'DMS_C1_ST'.
    ws_file-wsapplication   = 'PDF'.
    ws_file-description = 'Job output'.
    ws_file-docfile = p_file.
    append ws_file to it_files.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
      EXPORTING
        documentdata               = ws_docdata
       pf_ftp_dest                = 'SAPFTPA'
       pf_http_dest               = 'SAPHTTPA'
    IMPORTING
       documentnumber             = v_docnum
       documentpart               = v_docpart
       documentversion            = v_docver
       return                     = v_ret
    TABLES
       documentfiles              = it_files   .
    IF v_ret-type CA 'EA'.
      ROLLBACK WORK.
      WRITE : v_Ret-message.
    ELSE.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = '5'.
    ENDIF.
    Thanks
    Pavan

Maybe you are looking for

  • Multiple Select in same Query

    I'm building a report based on a single table in APEX. The report requires the following. select user, project, count(start date ), project, count(end date) where date between 01-jan-07 01-feb-07 (simplified to show the idea) basicaly a count of proj

  • File Adapter and reading all XML files from direcotry

    Problem occurs on PI 7.1 I defined sender file adapter. File name mask is: "*.xml" to read all XML messages from directory. Quality of service is: Exactly One. Poll Interval: 30 Retry interval: 30 Processing mode: Archive with option "Add Timestamp".

  • Issue with payment run

    hi guru's We have one vendor in two company code one is India and one is USA. The bank account number  is different in vendor master data but both accounts in the same country. When we make the payment run it has to split to different account based o

  • SSIS Lookup Conversion failed when converting date and/or time from character string

    Hi all, I'm trying to do a lookup by passing a date, however (i'm guessing) one of the dates is in a bad format and is failing the component.  How do I find the suspect row?  I set both lookup outputs to flat file but it is just erroring and not outp

  • Help me itunes is not a substitute for my own data by :(

    as do I get to connect my iphone to itunes data is not replaced by itunes?? the first time you connect it asked me if I wanted Replaces the data and put yes but now I want to revert