Attaching file to a Order form by UDF - SAPB1 2007A

Hi,
I would like to know if there away to attach files (*.PDF) to a Order Form as same as  the activities tab in the Service Form.
It can be done by using UDF but I don't know how .
SapB1 version 2007A
Thanks
                        Erez

You can attach your form to the activitiy and link the activity to the order, or , you  can create a UDF of type Link, then from the UDF, navigate to the document you want to attach and create the link. In some versions of 2007A there is a bug that will recreate a copy of your file in the attachments path however, so do watch for that.

Similar Messages

  • Problem with attaching file to Sales Order

    Hello,
    In my company we have the possibility to attach files to sales orders, e.g. pdf files with the printing details.
    These files are added by the GUI user, this works fine.
    Now we have an extra order creation stream in which a pdf file has to be added to the SO without user interaction.
    I found a helpful link ( /people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background )
    This program creates URL links with no problem, but the file generation is not implemented yet.
    I tried to add the file functions to his sample report but still have one problem. The file is uploaded, but not reported as a PDF file in sap. If I select the created attachment SAP allows only the saving of the attachment. After saving the created file is a good PDF file, it opens with PDF-viewers.
    Why does SAP not know this is a PDF file and report it as such (and open the pdf viewer when selected).
    Thanks, Frank.
    source-code:
    REPORT  zzfb_brc                                .
    * Report  Z_RMTIWARI_ATTACH_DOC_TO_BO
    * Written By : Ram Manohar Tiwari
    * Function   : We need to maintain links between Business Object and
    *              the attachment.Attachment document is basiclally a
    *              business object of type 'MESSAGE'.In order to maintain
    *              links, first the attachment will be crated as Business
    *              Object of type 'MESSAGE' using Message.Create method.
    *              Need to check if we can also use FM
    *              'SO_DOC_INSERT_WITH_ORIG_API1' or SO_OBJECT_INSERT rather
    *              than using Message.Create method.
    * I took this program and removed all the parts for adding URL's and
    * notes.
    * Include for BO macros
    INCLUDE : <cntn01>.
    * Load class.
    CLASS cl_binary_relation DEFINITION LOAD.
    CLASS cl_obl_object      DEFINITION LOAD.
    PARAMETERS:
    *  Object_a
       p_botype LIKE obl_s_pbor-typeid DEFAULT 'BUS2032',    "SO
       p_bo_id  LIKE obl_s_pbor-instid DEFAULT '0000757830', "example number
    *  Object_b
       p_docty  LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
       p_msgtyp LIKE sofm-doctp        DEFAULT 'EXT'     NO-DISPLAY,
    *  Relationship
       p_reltyp  LIKE mdoblrel-reltype DEFAULT 'ATTA'.
    TYPES: BEGIN OF ty_message_key,
            foltp     TYPE so_fol_tp,
            folyr     TYPE so_fol_yr,
            folno     TYPE so_fol_no,
            doctp     TYPE so_doc_tp,
            docyr     TYPE so_doc_yr,
            docno     TYPE so_doc_no,
            fortp     TYPE so_for_tp,
            foryr     TYPE so_for_yr,
            forno     TYPE so_for_no,
           END OF ty_message_key.
    DATA : lv_message_key TYPE ty_message_key.
    DATA : lo_message TYPE swc_object.
    DATA : lt_doc_content TYPE STANDARD TABLE OF soli-line,
           ls_doc_content TYPE soli-line.
    * Create an initial instance of BO 'MESSAGE' - to call the
    * instance-independent method 'Create'.
    swc_create_object lo_message 'MESSAGE' lv_message_key.
    * Upload the pdf file, for now from the frontend, in the future from
    * the server.
    DATA:
    *  dsn(40) TYPE C VALUE '/usr/sap/trans/convert/1.pdf', "server location
    l_lines TYPE i. "filelenght
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename   = 'c:t1.pdf'
        filetype   = 'BIN'
      IMPORTING
        filelength = l_lines
      TABLES
        data_tab   = lt_doc_content.
    * no exceptions, the file is there in this example
    break brouwersf.
    ** the coding for the server input, for later
    *OPEN DATASET dsn FOR INPUT IN BINARY MODE.
    *IF sy-subrc <> 0.
    *  EXIT.
    *ENDIF.
    *READ DATASET dsn INTO ls_doc_content.
    *WHILE sy-subrc EQ 0.
    *  APPEND ls_doc_content TO lt_doc_content.
    *  READ DATASET dsn INTO ls_doc_content.
    *ENDWHILE.
    *CLEAR ls_doc_content.
    *CLOSE DATASET dsn.
    * define container to pass the parameter values to the method call
    * in next step.
    swc_container lt_message_container.
    * Populate container with parameters for method
    swc_set_element lt_message_container 'DOCUMENTTITLE' 'Title'.
    swc_set_element lt_message_container 'DOCUMENTLANGU' 'E'.
    swc_set_element lt_message_container 'NO_DIALOG'     'X'.
    swc_set_element lt_message_container 'DOCUMENTNAME' p_docty.
    swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
    swc_set_element lt_message_container 'DocumentSize'    l_lines.
    swc_set_element lt_message_container 'DocumentContent' lt_doc_content.
    swc_call_method lo_message 'CREATE' lt_message_container.
    * Refresh to get the reference of create 'MESSAGE' object for attachment
    swc_refresh_object lo_message.
    * Get Key of new object
    swc_get_object_key lo_message lv_message_key.
    * Now we have attachment as a business object instance. We can now
    * attach it to our main business object instance.
    * Create main BO object_a
    DATA: lo_is_object_a TYPE sibflporb.
    lo_is_object_a-instid = p_bo_id.
    lo_is_object_a-typeid = p_botype.
    lo_is_object_a-catid  = 'BO'.
    * Create attachment BO object_b
    DATA: lo_is_object_b TYPE sibflporb.
    lo_is_object_b-instid = lv_message_key.
    lo_is_object_b-typeid = p_docty.
    lo_is_object_b-catid  = 'BO'.
    *TRY.
    CALL METHOD cl_binary_relation=>create_link
      EXPORTING
        is_object_a = lo_is_object_a
        is_object_b = lo_is_object_b
        ip_reltype  = p_reltyp.
    * Check if everything OK...who cares!!
    COMMIT WORK.

    Hi,
    Welcome to the SDN Forums!!!
    You need to supply the PC file extension in the container element 'DOCUMENTTYPE'.
    swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
    In your case change the above statement as below:
    swc_set_element lt_message_container 'DOCUMENTTYPE' 'pdf'.
    <b>OR</b> change the default value of p_msgtyp to 'PDF'.
    Cheers,
    Ramki Maley.
    Please reward points if the answer is helpful.
    For info on awarding points click on this link: https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm
    Message was edited by: Ramki Maley

  • Attaching files to a web form

    please tell me how to attach files to a web form for uploading. i know how to make a page that just uploads a file. but before i do it, i have to attach files( sent by a pop-up window ) to a web form in a main window. There are some resources about uploading files, but not for attaching files to a web form... please help me...
    Thanks in advance...

    I gotcha!
    Try this:
    1) Open new window with file inputs within a std form.
    2) Have form submit to servlet
    3) Have servlet retrieve file(s) and save them in session.
    4) Have servlet spit out javascript to close popup window and refresh main page (which will then show some sort of verification that the files were received.
    5) When main form is submitted, retireve (and remove) files from the session and process.
    Hope that helps,

  • 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?

  • Attaching files to a PDF form and Submission.

    I'm pretty new to LC (hence the sn) and running into a little problem.  Currently, I have created a form that allows the attachment of files.  Everything is fine and dandy as I am able to ADD, OPEN and DELETE any file as I'm filling out the form.  However, when I SUBMIT the form in an email to myself, the submitted PDF form does not have any of the files attached to the form.  What am I not doing?  Any help would be greatly appreciated!  Thanks in advance.

    Hi, I'm responding on behalf of AdobeNoobie122...
    Thanks for your response Paul.  I’m currently using LC to develop/run the PDF.  It is in the PDF that I attach the files associated with my form and submit to myself.  Upon receiving the email, I notice the PDF is present without any of the attachments.  And yes, I am submitting the entire PDF and not a data file. 

  • View attached files for Sales Order in Approbation.

    Hi,
    I have attached a file in a Sales Order. My Sales Order then goes to approbation. Can my approbator open the attached file WITHOUT having to open the Sales Order.
    Thank you !

    Hi Thanh,
    There is no such option to open the attached file without opening the sales order the approver has to open the order to check the attachment.
    Regards,
    Suresh

  • Attach files to the adobe form : offline

    <u>Hi all,</u>
    <b>NW04S
    SPS8
    We have the above mentioned.</b>
    My requirement is to create an interactive form, that should have the ability to attach files offline. This means that the user of the form will have no access to the SAP system and should be able to attach supporting documents with the help of the adobe form itself, only.
    How can this be done?
    Is there any solution available to this or we still have to wait for forthcoming support packages?
    <u>Regards.</u>
    <i>Ali</i>

    In Web Dynpro for Java, this function will be available with SPS 10, on the ABAP side it will probably not be available before SPS 12.
    For SPS schedules of SAP NetWeaver, go to <a href="http://service.sap.com/ocs-schedules">http://service.sap.com/ocs-schedules</a> > Basis, ABA, R/3 Support Package Schedule
    Best regards,
    Markus Meisl
    SAP NetWeaver Product Management

  • Is there a way to attach files linked in FormCentral form to email notifications?

    As part of my FormCentral form design, the end User is required to link a file (copy of Purchase Order). Is there a way of forcing this file to attach to the email notifications? I can obviously see the file attachments in the backend and download from there, but it would be preferable if I could deliver with the email notification to circumvent other processes.
    Any suggetsions?

    Sorry this is not possible to have the files attached to the email notification.
    Gen

  • Can you auto-attach files in a PHP form?

    Hi there,
    Have been looking over everywhere for a solution to my problem. I am going to try and be as clear as I can about the problem.
    I have had some experience making simple PHP forms that let the user put their name, email, subject and body text and send it in an email using the form.
    But for a project I am currently undertaking - the client has requested a form that will pre-attach a particular document to the email when it is sent. All the user has to do is input the email address of the adressee and their name/email address and all the other fields are custom made (i.e. subject, body text) - and the email will be sent to the selected recepient with the file already attached.
    I was envisaging the PHP script would collect the reference for a file that is already sitting on the web server and attach it in the function.
    Is there anyway to do this? Because if it isn't I may as well tell the client to go and use outlook - because the web form will really have no purpose.
    Thanks in advance

    Hi have proceeded along the path of inserting links
    into PHP generated email but I am having trouble in outputting the body message in HTML - All I get out
    in the output email is the HTML tags with the text (plain text).
    Did some research and found out that I have to determine the content type/charset.
    I have tried to do this in my PHP but to no avail. Also I am not getting the email or name of the sender in the email that is generated....
    Anyway, there is the PHP code (and it's not that tight but it works):
    AND SOME DEFAULT TEXT THAT WILL CONTAIN LINKS TO NECESSARY FILES TO DOWNLOAD:
    link to PDF '.$field_message; $headers = 'From: '.$cf_yremail."\r\n"; $headers .= 'Reply-To: '.$cf_yremail."\r\n"; /* If your e-mail is not valid show error message */ if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $mail_to)) { ?>
    Any help on this would be much appreciated....
    Thanks

  • How I can attach files on a Web Form

    Hi everybody,
    When I add a document on a web form, the document I have to attach from the workspace directory... the server is on Linux ... instead of put the files on linux server, exists the possibility to parameterize a local directory to be easier to attach the file.....???? Or Sombeone knows about a link to see some information about my question.
    Regards

    Hi,
    You can attach documents at two steps.
    1. Go to Explore screen at workspace, import file(s) to workspace via (file->import). Make sure you defined necessary security on the folder and document alike.
    2. Go to Planning, open a form, select a cell, click on "Add/Edit document" button, follow the steps and choose the file that you want to attach from workspace.
    There is no dependency for attaching documents on the OS.
    Cheers,
    Alp

  • How to display attached file size in XML Forms

    Hi,
    I've created a XML form to store presentations general information like author, subject, summary and a RID field pointing to the ppt file itself.
    I'd like to show the size of the ppt file but I don't know how... Any ideas?
    When I use default:size property, the size showed is the XML size, not the ppt size.
    thanks,
    Marcelo

    Hello Sudip,
    Which is the JRE version which you are using ? Check this SAP note 1341069, which specifies that the properties will not load when JRE 1.6 is used. (Try 1.4 or 1.5 )
    For author field try giving caption $sap_user, and schema reference, creator. For created which is date try giving /Properties/default:created, and /Properties/default:createdby for created by.
    Regards,
    Vinod

  • Can your attached files in your online form be downloaded/viewed from an email submission reciept?

    Question is listed above

    This is not something we currently support but you can add or vote on feature ideas at:
    http://forums.adobe.com/community/formscentral?view=idea
    If you need to add a new idea click "Create an idea" under "Actions" in the top right.
    Jeff Canepa
    Software Quality Engineer
    Adobe Systems, Inc.
    [email protected]

  • How To Find Attachment File Location .....?

    Hi,
    Can anyone tell me the location where the file attached using GOS is stored.
    I have created a attachment file in PURCHASE ORDER . i wanted to know that where it has saved in the system..
    location and path.... 
    Thanksin Advance,
    Anthyodaya.
    Edited by: anthyodaya Reddy Nagaram on Oct 22, 2009 1:05 PM

    ok

  • Can I create a fillable PDF that allows the user to attach a file to the submitted form?

    There are suggestions in the Help documentation and on this site that indicate it is possible to attach files to a fillable PDF form that is being submitted. But I do not see any instructions for adding this functionality to a form. I am using Acrobat 9 Pro to create my form. I have a Submit button with an Action/Menu Item/Submit a form option, and the URL link for the submission is a local coldfusion file with a #FDF suffix. The export format is HTML. The form also contains a hidden EMAILTO field, with an Options/DefaultValue option identifying the recipient's email address. (I'm guessing the local cfm file uses this field.) There is also a hidden URL field in the form, and its Options/DefaultValue specifies the URL of the fillable form itself. (Perhaps the local cfm file uses this field too.)
    How can I add functionality to this form, using Adobe/PDF, to allow the user who submits the form to attach a file to the submission?

    You have to first configure a text field so it can be used for file selection. You do this on the Options tab of the field properties dialog. In order to select the corresponding check box, make sure only the "Scroll long text" option is selected.
    You then can set up a button that has the following JavaScript attached to the Mouse Up event:
    // Mouse Up script for button
    getField("upload_text_field").browseForFileToSubmit();
    Replace "upload_text_field" with the actual name of the file selection text field.

  • Custom order form with file upload facility

    Hi all,
    I'm trying to create a custom order form(for a printing company) where the user can select their product, enter their credit card details and then upload the file. I've created the combo box & user input text fields. Now what I want is that when user clicks the submit button:
    1. A mail is sent to the admin which contain all the details about the form that was filled by the user.
    2. The file that is uploaded by the user should also be sent as attachment in the same mail. I'm not able to figure out how to add the feature of file upload in ActionScript.
    3. This one is optional, but will add value to me if possible. The website is developed in Wordpress. Can we have a feature where a logged in user can save his order and come again later and retrieve his order form.
    Any help would be appreciated. Thanks for your time.
    Regards,
    Rajeev

    your client is, i believe, legally negligent.  you are probably jointly liable with your client.
    you should try and protect yourself.  you should keep a record that you've informed him that he needs to encrypt all credit card numbers during all phases of transmission but i doubt that will be enough to protect you because you are in a position to know and, will know, that he's not fulfilling his obligations to protect sensitive information.
    you would use the urlloader class to communicate between flash and the server and you will probably use php (another coding language) for the server-side coding.
    you can use google to search for php tutorials and help.

Maybe you are looking for

  • Why can't I move downloads to flash drive  without "don't have permission" message

    I continue to get this message when I go to the files I downloaded onto the computer and drag them to the flash drive, "The operation can't be completed because you don't have permission to access some of the items." I can move the files anywhere on

  • JDBC adapter connection

    Hi Gurus, My user has a web based system where goods receipt details are entered and it gets updated in mySql DB. In return the user would gather information from sap and displayed back on web at real time. They do not have option for web services or

  • Microsoft Office Product Integration in GP

    Hi, I know there is rather extensive integration possiblities avialable for Adobe Document Services (ADS) in GP. I read somewhere that it is also possible to integrate other products. Does anyone have any experience in this area? In particular with M

  • Front Row can't find the latest version of my iMovie project

    I need some help figuring out just where my iMovie project really is. I have been creating a project in order to learn how to manage all of the features of iMovie '09. I have revised many times and if I follow the path MacHD>Movies>iMovie Projects>fi

  • .exe Build from LabWindow/CVI 7.1 run exception under RTE 8.0.1

    Below is the source file  of test1.exe, which was built using LabWindow/CVI 7.1 environment, OS is Windows XP SP3 Due to some reason(install TestStand, or LabView, or ...), the Runtime  Engine  cvirte.dll, cvirt.dll (exists in c:\windows\system32\ )i