Need to call attached file from standard tcode va42.

Hi Friends,
I have attached a file thru tcode va41. I have to call this attachment in my driver program.
Already I have copied standard program sd_sdoc_print01 into zprogram.
N it has one attachment of my adobe form.
N the second has to be attachment of the particular file saved in va41.
Then I have to send this two files to the customer via email as an attachment.
how do i call this attachment in my zprogram.
how do i combine this two files and send this two documents as an attachment
Can any one help me in this issue.
REgards,
V B

It can be done using so_new_document_att_send_api,
Created a customized funtional module for attaching this file thru gos (Generic Object Service) and called itinto my program where the 2nd attachment is attached.

Similar Messages

  • I need to call main window from a Standard program

    I need to call main window from a Standard program for SAP Script. I have wrote the code like this but it is not working. Kindly help me on that.
          FORM OPEN_AND_START_FORM                                     
    FORM open_and_start_form.
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          device   = 'PRINTER'
          dialog   = space
          form     = 'ZOTC_SLI'
         language = print_co-spras
         OPTIONS  = pr_options
        EXCEPTIONS
          canceled = 01
          device   = 02
          form     = 03
          OPTIONS  = 04
          unclosed = 05.
      CHECK sy-subrc IS INITIAL.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          window  = 'MAIN'.
    ENDFORM.                    "OPEN_AND_START_FORM
          FORM CLOSE_AND_END_FORM_FORM                                  *
    FORM close_and_end_form.
      CALL FUNCTION 'END_FORM'.
    ENDFORM.                    "CLOSE_AND_END_FORM

    Hi,
    FORM CLOSE_AND_END_FORM_FORM *
    FORM close_and_end_form.
    CALL FUNCTION 'END_FORM'.
    change this to CALL FUNCTION 'close_FORM'.
    as you are not using the start_form
    you can use End_form
    i hope you understand now
    ENDFORM. "CLOSE_AND_END_FORM
    reward points if helpful.
    thanks & regards,
    venkatesh

  • Send mail witch attach files from forms server 6i

    How to attach file from my logical drive , and sending mail via forms web 6i ?

    Hi jean,
    there is a lot of complication involved with trying to attach files using the java web server, the best thing i have done was i have added a microsoft windows email component on to my form and invoked its methods and properties, for eg. for attaching a file u have something called as microsoft windows common controls which opens the file open dialog box. Remember , trying to build email and messeging kind of applications with oracle tools is a bit complicated as of now because windows 2000 server has additional security features equivalent to standard firewall and the java interface of oracle looks for certifications for each and every cgi request.
    Rajendra - [email protected]

  • Call .bat file from java code

    I need to call an application that uses a .bat file to execute from a java program. Is that possible?
    This is the .bat file:
    importcli.exe ciaf2735 C:\Importcli\files\SAI2735*.txt  
    importcli.exe ciaf2735 C:\Importcli\files\CI2735*.txt  
    importcli.exe ciaf2735 C:\Importcli\files\SC2735*.txt  
    importcli.exe db1800 C:\Importcli\files\*.mdb

    magaupe wrote:
    I need to call an application that uses a .bat file to execute from a java program. Is that possible?
    This is the .bat file:
    importcli.exe ciaf2735 C:\Importcli\files\SAI2735*.txt  
    importcli.exe ciaf2735 C:\Importcli\files\CI2735*.txt  
    importcli.exe ciaf2735 C:\Importcli\files\SC2735*.txt  
    importcli.exe db1800 C:\Importcli\files\*.mdb
    Hmmm, I wonder what would happen if there were a web search engine and you could research like this:
    [http://www.google.com/search?hl=en&q=call+.bat+file+from+java]

  • How to call java files from different directories

    hi, how do i call java files from a different directory??
    let say i got partA.java, and i need to include functions from partB.java which is in a different folder. how can i do that?

    Chicon wrote:
    Hi nuttynibbles,
    Before the class declaration in partA.java, you must have an import statement like :
    import someDirectory.partB;
    public class partA {
    ... and before you ask... you'll probably want to read through this http://java.sun.com/docs/books/tutorial/java/package/index.html

  • How to remove attached files from an interactive Form?

    Hi,
    is it possible to delete all the attached files from an interactive form?
    I'm able to extract all the files and store them separately. But I found no way to store the interactive form without attachments.
    There is a method called SET_ATTACHMENTS, but transferring an empty table is not allowed.
    What should I do?
    Code:
    *     Create PDF Object.      lo_pdfobj = lo_fp->create_pdf_object( connection = l_dest ).
    *     Set document.      lo_pdfobj->set_document( pdfdata = iv_filecontent ).
    *     Set task to get attachments.      lo_pdfobj->set_task_getattachments( ).
    *     Execute, call ADS.      lo_pdfobj->execute( ).
    *     Get result.      et_attachments = lo_pdfobj->get_attachments( ).
    Regards,
    Mario

    Any ideas?

  • The circuit of my macbook is dead yet the hard drive is fine.  I need to access a file from the hard drive, how can i do this? is there a cable i can connect to another mac that will let me transfer the file?

    The circuit of my macbook is dead yet the hard drive is fine.  I need to access a file from the hard drive, how can i do this? The mac turns on the screen freezes as bright blue.  Is there a cable i can connect to another mac that will let me transfer the file?

    There is another option if the Macbook will start up in Target Disk Mode.
    Restart the computer while holding down the T key. If you see the firewire symbol moving around on the screen you can connect this one to another one in TDM. You will need a suitable cable to connect the two Macs.
    http://support.apple.com/kb/ht1661
    Firewire symbol:

  • I need to upload my files from one directory into other directory.

    i need to upload my files from one directory into other directory.( all its contents,folders,sub folders, files etc)
    for this task
    suppose my source folder is C:/test/test1/test2/test3
    and my destination is D:/
    first i have to check whether my dest dirctory already contains source directory..and its files
    if it contains the same structure then i have to replace the destination dir structure to source dir structure( to upadte changes)
    if it(dest dir) not contains source dir ..means it doesn't contain source folder then
    i have to create same source folder directory structure ( test.test1/test2/test3...) at destination(D:/) and copy all its contents frm source directory...
    ( means i don;t want to create manually same dir structure as source at destnation dir to copy all contents)

    I believe you need to read up on the class File.java (it comes with java).
    Some examples:
    File file = new File("C:/myDirectory");
    if(file.isDirectory())
    System.out.println("this is a directory");
    if(file.isFile())
    System.out.println("this is a file").
    You will then need to read up on other classes to read/write to the file such as FileReader and FileWriter.

  • I wants to call .Exe file from Java Programme

    I wants to call .Exe file from Java programme. Please give answer with example. This very urgent. Help me

    hi
    u can use Runtime.exec() method in java.lang package
    to execute exe files
    regards
    pnp

  • I need to drag a file from my time machine backup to a usb

    I need to drag a file from my time machine backup to a usb

    You can restore it to the original location as a copy, if you have a newer version there that you want to keep. So Restoring a file from TM won't over-write a newer file.

  • Need to call a repaint from another class

    I need to call a repaint from another class, but since I can't make the paint() method a static one, it will not let me access the repaint method, any ideas? thanks guys
    Conor

    ok here's a very basic idea of whats goin on...
    <code>
    MainFrame class (in which the paint method resides)
    public void paint()
    // draw lines
    // opens an instance of the settings window
    void procSettings_actionPerformed(ActionEvent e)
    if(procRunning)
    procRunning = false;
    timer.stop();
    procPaused = true;
    procSettings s = new procSettings();
    s.setSize(370, 467);
    s.setLocationRelativeTo(null);
    s.setResizable(false);
    s.setVisible(true);
    ProcSettings class
    if(certain condition)
    // reset the lines of the graph
    // REPAINT <--- I want to know how to call this repaint, MainFrame.repaint() does not work
    thanks

  • Can I set up e-mail to automatically download attached files from a trusted source

    can I set up e-mail to automatically download attached files from a trusted source to a desktop folder?  Can't find the option (if one exists) in "Rules."

    Have you checked Mail > Preferences > General > Downloads folder - change that to desktop. That should do it (that is my setting and it works here).

  • How to Call .XDO file From Java Program

    Hi,
    I have developed a report in using BI Publisher version 10.1.3.
    I created the report and it only created XDO files. If I want to call XDO file from Java program how I can do that.
    What are the APIs available to do that.
    Thanks
    -Ashutosh

    Hi,
    the JavaAPI didn't work with the xdo-Files. But you can create a proxy stub for the Web Service API of BI Publisher which uses the xdo's in the repository.
    regards
    Rainer

  • Calling jar file from jsp - serious problem !

    Hi there, I'm trying to call a jar from a jsp file. I need an import clause in my jsp, to the class I want to use.
    I'm using eclipse, and while i"m writing "<%= " and the begining of my class name , he autocompletes it and automatically puts an import of my class in the top of the html. It is very convenient , but the problem is that he underling the class name (in the impot: <%@page import="myClass"%>), and I get "The import myClass cannot be resolved" error.
    I got an advice to put my class in a package, since it was in a default package. I did it. But now I have 2 problems:
    1. I can't run my jar in command window: java - jar myJar.jar. in gives me: Exception in thread "main" java.lang.NoClassDefFoundError....
    2. I still get an error - "The import myClass cannot be resolved" in the jsp, although I threw the old jar (that his class I want to use was out of package), and brought a new jar after creating it.
    I hope I managed to clarify myself. I'll be thankful of any help !!!

    Hi MSoldier.
    There are two ways to do this:
    1) You use the java.lang.Runtime classes to start the java application in your JAR file, just like you would have done it from the command line. The Runtime class has three different exec() methods that can be used to run any program just like you would from the command line. Remember, using this method you will have to write everything just like if you run your Java application from the command line, incl. classpath etc. This way your Java application will be run as a separate process. When the application finishes the process is shutdown and the resources (RAM etc.) taken by it freed, just like when you shutdown any other application.
    2) You can open the JAR file yourself from inside the JSP page, look inside the META-INF file to find the main class, and then calls the main class main method. There is an example of how to do this in the Java Tutorial available from Sun under the JAR files track. Check these links :
    The Java Tutorial at Sun
    http://java.sun.com/docs/books/tutorial/
    The JAR File Tutorial at Sun
    http://java.sun.com/docs/books/tutorial/jar/index.html
    Opening JAR Files via the Java JAR File API
    http://java.sun.com/docs/books/tutorial/jar/api/index.html
    Note however, if you have just created some classes that you want to use from inside your JSP pages, and not a separate application that needs to be run separately, you should just include the JAR file with your custom classes inside the WEB-INF/lib directory. These classes are then automatically available to your JSP pages, just like the rest of the Java API.
    I hope this answers your questions,
    Kind Regards,
    Jakob Jenkov
    Software Architect
    Jenkov Development
    www.jenkov.com

  • Call Excel file from Forms10g

    Dear friends,
    I've list of excel VBA file which generated the report. All the reports are used world wide and the tough job is whenever any modifications done, need to send the .xls file for more than 200 users.
    I'm trying to bring them under one roof. Is there is any possibilities to call those excel files via Forms and access through internet. We use 10g forms, so looking for the possiblities. I dont want to upload or send data to excel, just call the excel macro file from different destinations.
    Pls. share your suggesstions..
    Thanks in advance..
    Rgds,
    DL

    hi friends,
    i'm calling the forms from the server. now it is fetching the excel path, but couldnt open the excel file. I doubt whether system is looking for excel.exe in server or local machine
    declare
    searchType VARCHAR2(10);
    extHandler VARCHAR2(100);
    exePath VARCHAR2(512);
    Extension varchar2(5) := 'xls';
    X NUMBER;
    AppID PLS_INTEGER;
    BEGIN
    -- Do the registry lookup for the extension
    extHandler := Client_Win_API_Environment.Read_Registry
    ('HKEY_CLASSES_ROOT\'||'.XLS',chr(0),True);
    -- Then see what executable the handler invokes:
    exePath := Client_Win_API_Environment.Read_Registry
    ('HKEY_CLASSES_ROOT\'||extHandler||'\shell\Open\command', chr(0),True);
    :exepath:= nvl(exePath,'no value');
    X:= INSTR(exepath,'EXCEL.EXE');
    X:= X+9;
    :EXEPATH := SUBSTR(EXEPATH, 1, X)||' "g:/risk/xls/rsk_position_report.xls"';
    AppID := DDE.App_Begin('"C:\Program Files\Microsoft Office\OFFICE11/excel.exe" "g:/itops/risk/xls/rsk_position_report.xls"' ,DDE.APP_MODE_MAXIMIZED);
    exception
    when others then
    :exepath:=sqlerrm;
    END;
    this is throwing me 106500: non-ORACLE exception
    any idea?
    Rgds,
    DL

Maybe you are looking for

  • How do I delete an old device off my iTunes account to all ow for a new one?

    I'm wanting to delete the 2 iPod touches off my account

  • How can I convert to NTSC color space?

    I'm developing graphics for a Roku application which requires that colors be broadcast safe in the SDTV NTSC color space. For instance, I cannot have true white or true black colors. They are not allowed. There is an RGB color space available. When I

  • Iphoto - web gallery

    i've created a new web gallery and iphoto will not publish it. it says "pending". all of my others have worked in the past and i've deleted my old ones. why is the new one still pending?? my iweb will not not publish my site after changes either. i'm

  • Servlets design - use singletons??

    I am building a servlet to handle incoming POST connections. The user can send information to be added to the database. I have a servlet to handle the HTTP connection and a seperate class to handle the database interaction. Currently the database cla

  • Completely frozen and unrecognized

    Ive tried about everything and nothing works. My ipod is frozen on the "do not disconnect" screen and if i want it to go off, i have to disconnect it and wait until the battery dies. I tired pushing all the stupid buttons and all that but it still do