Attach a file to purchase requisition

Hi Experts,
We have a requirement of attaching a file of any type(Doc,PDF,TXT,PPT) to the purchase requisition, We are able to attach a document through transaction(ME51n). Can any one please suggest are there any function modules or classes to do the same through coding.
Thanks in advance,
Regards,
Praveen

Difference between DMS and GOS attachement
GOS Attachment list:
This attachment list can be found for nearly all object (document info record, material master,euqipments,...) and allows you to add specific files to the object and store them by archivelink technique.
Original tab in DMS:
This area is something DMS specific and allows you to store original files to the document info records. This original files are normally stored in a content server and from DMS point of view you will have more functionalities as when you add the files to the attachment list.
How to create DMS attachment master?
[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/30bba04a-0114-2d10-6696-9898522c97df]
Important tables and FM related to DMS
[http://forums.sdn.sap.com/thread.jspa?threadID=1366084&tstart=2355]
With the tables and FMs you can work with ABAPER to achieve your requirement

Similar Messages

  • Attach the file for purchase requisition using BSP service

    Hi All,
    I have Requirement Attach the any file like(PDF,TXT,PPT) to Purchase requisition using BSP service.Could please provide me any function module or BAPI for this functionality.
    Thanks in advance.
    Regards,
    Rajesh.

    Hi All,
    REPORT ZTESTJLG3 . .
    parameter p_mandt like sy-mandt default '120' .
    parameter p_equi type equnr default '1000007' .
    parameter p_path like IBIPPARMS-path memory id AD_LOCAL_PATH .
    parameter p_name(30) default 'Test attach 100007' lower case .
    " nom attachement .
    data w_prog like sy-repid .
    data w_dynnr like sy-dynnr .
    data w_attachement type borident .
    initialization .
    w_prog = sy-repid .
    w_dynnr = sy-dynnr .
    " test jean luc recuperer le code de
    fucntion module 'GOS_EXECUTE_SERVICE'
    data lo_container TYPE REF TO cl_gui_container .
    *call method lo_container->get_container_type .
    at selection-screen on value-request for p_path .
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    PROGRAM_NAME = w_prog
    DYNPRO_NUMBER = w_dynnr
    FIELD_NAME = 'P_PATH'
    IMPORTING
    FILE_NAME = p_path .
    start-of-selection .
    if sy-mandt ne p_mandt .
    write 'Erreur mandt ' .
    exit .
    endif .
    data ws_borident like borident .
    ws_borident-OBJKEY = p_equi.
    ws_borident-OBJTYPE = 'EQUI'.
    data w_document like SOOD4 .
    data : begin of wt_files occurs 0 .
    data fname(128) .
    data end of wt_files.
    wt_files-fname = p_path .
    append wt_files .
    data folder_id like SOODK .
    call function 'SO_FOLDER_ROOT_ID_GET'
    EXPORTING
    region = 'B'
    IMPORTING
    folder_id = folder_id
    EXCEPTIONS
    others = 1.
    w_document-foltp = folder_id-objtp .
    w_document-folyr = folder_id-objyr .
    w_document-folno = folder_id-objno .
    append document to documents.
    w_document-objdes = p_name .
    w_document-objnam = p_name .
    data w_h_data like sooD2 ..
    data w_fol_data like sofm2.
    data w_rec_data like soos6 .
    w_h_data-objdes = p_name .
    CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
    EXPORTING
    METHOD = 'IMPORTFROMPC'
    OFFICE_USER =
    REF_DOCUMENT = w_document
    NEW_PARENT =
    IMPORTING
    AUTHORITY =
    TABLES
    OBJCONT =
    OBJHEAD =
    OBJPARA =
    OBJPARB =
    RECIPIENTS =
    ATTACHMENTS =
    REFERENCES =
    FILES = wt_files
    CHANGING
    DOCUMENT = w_document
    HEADER_DATA = w_h_data
    FOLMEM_DATA = w_fol_data
    RECEIVE_DATA = w_rec_data .
    if w_document-okcode = 'CREA' or w_document-okcode = 'CHNG'.
    w_attachement-objtype = 'MESSAGE'.
    w_attachement-objkey = w_document(34).
    CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'
    EXPORTING
    OBJ_ROLEA = ws_borident
    OBJ_ROLEB = w_attachement
    RELATIONTYPE = 'ATTA'
    IMPORTING
    BINREL =
    TABLES
    BINREL_ATTRIB =
    EXCEPTIONS
    NO_MODEL = 1
    INTERNAL_ERROR = 2
    UNKNOWN = 3
    OTHERS = 4
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endif .
    For above requirement i am trying like above code.
    working fine but which transaction i can find the attach file.I am trying to fine using ME52N transaction but i c't find this file.
    Please suggest me how can i find this one
    Thanks in advance,
    RajeshV.

  • Transfer attachment from material to purchase requisition

    Hi all,
    I have a material in the material master with attached DMS. It is possible that when I create a purchase requisition in the transaction ME51N, I automatically transfer the attachment from the material master to the purchase requisition?
    Best regards.

    hi,
    u can use the function module : SO_OBJECT_UPLOAD inorder to upload a file and function module 'SO_ATTACHMENT_INSERT' inorder to insert an attachment in a particular folder.
    If u want to send this attachment to the workflow, then create bo such that it responds to a particular event, and this can be stored in the workflow container.
    And if u want to upload the attachment in a mail, then use the upload option in the send mail step of the workflow.
    hope this helps.
    Regards,
    Saujanya

  • Create attachment document XLS for Purchase Requisition

    Hi.
    I need to add attachment to my Purchase Requisition usig a FM.
    I found some topics on SDN where BAPI_DOCUMENT_CREATE2 is used.
    I placed it in my code and run it. Return gives me nothing.
    I get a new document number each time I run my program, but when I go to ME53n and look at attachment list no documents there.
    Can You tell me what parameters with which values should I pass to BAPI_DOCUMENT_CREATE2 to add attachment to a purchase requisition. Mayby I didn't set a good configuration somewhere. Please HLP
    Thx in advance
    Tom

    Hi,
    Did you check the function module documentation. It contains one example also. Please check that.
    BAPI fm BAPI_DOCUMENT_CREATE is internally calling this BAPI. Please check how it is calling.
    Please alos check program LWPLGF06. I think it has similar code.
    Thanks,
    Ramakrishna
    Message was edited by: Ramakrishna Prasad Ramisetti

  • Document attachment to Purchase Requisition

    Hi Folks,
    For attaching a document within Purchase Requisition, there is an option at line item level.
    Can contract documents be attached there?
    Also, I presume the doucment can be 'viewed'/ downloaded by the buyer for whom the PR was created.
    I am currently unable to view. any steps for document creation to be taken care of?
    Regards.

    Hi,
    Yes, you can attach any documents ie....contract documents also .Follow the SAP Note 913251
    Regards,
    Biju K

  • Attachment for Purchase Requisition

    How to retreive a attachement of a Archived Purchase Requisition. The attachement is created by using services for the object option (Not at line item level)

    Hi,
    Did you check the function module documentation. It contains one example also. Please check that.
    BAPI fm BAPI_DOCUMENT_CREATE is internally calling this BAPI. Please check how it is calling.
    Please alos check program LWPLGF06. I think it has similar code.
    Thanks,
    Ramakrishna
    Message was edited by: Ramakrishna Prasad Ramisetti

  • PDF Attachment in Purchase Requisition

    Hi,
    How do I upload a PDF document as an attachment in the purchase requisition?
    I'm able to upload a text file, but they want to upload a PDF document.
    Thanx
    Elan

    Hi,
    If u are using enterprise onwards then Please go to the tcode ME52N and click on the "services of object" and then click on create and create attachment and then attach the pdf file and save it.
    Hope it  wud have answered ur question
    reward if useful
    Shawn

  • Attachement to a Purchase Requisition

    How to retreive attachment of Archived Purchase Requisition. The file was attached using services for the object at header level (Not from DMS at item level)

    Hi,
    Please go through the details for the attachment configuration.
    To display attachments in your Internet browser, make the relevant settings in the
    Internet Communication Framework in transaction SICF.
    2. If you want to have several clients in the system, create an alias for each client, with the
    alias pointing to /default_host/sap/ebp/docserver.
    Go to transaction SMICM and choose Goto Services.
    _ View the domain name that is being used for SAP Web Application
    Server and check against the domain name being used in the webserver
    for SAP Internet Transaction Server. The same domain name must be
    used for both, for example, washost.<sap.corp>:4711/… and
    itshost.<sap.corp>:0815/…
    _ Go to transaction SS02, enter RFC destination NONE and execute. Check
    that the profile parameters login/create_sso2_ticket and
    In order to store shopping cart attachments in the backend system, you must first activate the
    transfer by creating an active method and by setting the indicator for parameter
    CV_ATTACH_TRANSFER_ACTIVE in BAdI BBP_CREATE_PO_BACK (for purchase orders)
    or BAdI BBP_CREATE_REQ_BACK (for purchase requisitions).
    When you are uploading and downloading files between systems, you must ensure that the
    decimal notation settings in both systems are the same. In other words, you must have the
    same decimal notation settings in your SAP Enterprise Buyer system and in the system
    where you access the file offline.
    Moreover, you can change the default value above which the system switches to background
    processing. In the standard system, this value is 1000 and currently applies to download,
    upload and other performance-critical processes within the following business objects:
    &#61472;BUS2000113 (purchase contract)
    &#61472;BUS2200 (bid invitation)
    &#61472;BUS2202 (bid)
    Award the points for the help.
    BR,
    Vijay Mittal

  • Attaching document in CREATE mode on Purchase Requisition?

    Hi,
    I am running ECC5.00.
    If using the document management system (DMS), is there any way to configure DMS such that a user can attach a document (e.g. a PDF file) to the requisition in CREATE mode, i.e. during ME51N?  Is there anyway to configure the DMS system such that the attachment is required prior to saving the requisition?
    Cheers.

    Hi,
    Yes. It is possible through Object Linking from DMS. You need to follow the below stated steps to achive Object linking.
    1.Goto SPRO->CA Components->Document Management->Control Data--->Define Document Types.
    2.Select the desired Document type which you need to make it available in your Purchase requisition. for ex: Contracts e.t.c.
       & Click on "Define Object Links" from the left hand Panel.
    3.Goto New Entries and Object as EBAN & Screen No as 247 & Save the entries.
    4.Now go to DMS & Upload your documents.
    5. To access Documents at Purchase Requisition Level first you need to maintain the Item level Details. Then Select an item and Click on the Icon "DOCUMENTS"  just above the Item level. you can access only those document types which have been defined through Object linking.
    with regards,
    S. Dayananda Murthy

  • Attachment for Purchase Order and Purchasing Requisition

    Dear All,
    At the moment we are on ECC6 EHP 4 and would like to use Document Management in SAP. Now att the PO and PR line item we need to click the Documents icon to see the if the is any document that is being attached to the line item . Is there any way that we can have and indicator at the PR or PO item to denote that there is an attachment attach without the need to click the Documents icon? Maybe an attachment symbol that outlook use whenever there is an attachment in the email.
    Would appreciate if you provide any notes or configuration step how to do this.
    Thanks

    A purchase requisition is an internal document that's created to initiate a procurement transaction. The requisition is created to identify the materials that are needed to be acquired and when they're needed. Once completed by the initiator, it's sent to the appropriate approvers.
    Upon approvals of the requsition have been provided, and a vendor is selected, a purchase order is created. The purchase order is an external document whereby an agreement is made to procure the materials at an agreed upon price and delivery schedule
    The InfoCubes for each of these is different due to the nature of the documents (internal v. external).

  • Purchase requisition,Purchase order attach to maintenance order

    Dear all,
    Can any one tell me that, is it possible to attach Reservation or Purchase requisition or Purchase order
    attach to maintenance order? (which is not created from the maintenance order)

    hi
    if you have created the material reservation against the movement type 261 the you have the option to specify the order.
    also there will be option to change the order specified.
    kindly check .also  i think there is no provision to assign reservation for material issued
    regards
    thyagarajan

  • Transfer attachment document from purchase Requisition(ME51n,ME52n) to Purc

    Hi
    How to do Transfer attachment document from purchase Requisition(ME51n,ME52n) to Purchase order(ME21n,ME23n).

    Hi Muthu,
    I understand that it is possible to bring attachments from ECC to the SRM system for the new release.
    However, I have a slightly different question.
    If I want to bring in requirements from a legacy system to SRM 7.0 system directly, what is the feasability of the same? If I have an attachment linked in the legacy system, then is it possible to bring it in SRM 7.0 system directly or will I be forced to route it to ECC 6.0 and then use the Plan Driven Procurement scenario for getting it into SRM?
    Regards,
    Abhilash

  • Enable attachement link in Purchase requisition approval WF

    Dears ,
    How to enable attachment link in purchase requisition approval wf ,??

    hi
    In the workflow, you need setup the agent assingment(i.e organizationlal roles)

  • Attach Quotation to Purchase Requisition

    Hi experts,
    Think this is a simple qn for you guys.
    Other than using Document Management, is there any other ways i can attach a document (scanned quotation) to a purchase requisition? If yes, how?
    Thanks

    hi,
    There are three ways i see:
    1. Enter the quotation in item details screen as a source...
    2. Use the document overview ....
    3. Make use of source determination from item details in the PO...
    OR
    can be done indirectly...use the quotation in the inforecord and then use the inforecord as a source....
    Anything else revert back...
    Regards
    Priyanka.P

  • Purchase requisition document attachment

    Hi,
    We are attaching document to Purchase requisition with the help
    of "Services for object" icon on top left of PR screen.
    User wants to know how to identify that a PR has document attached to
    it.
    Please advise.
    Regards,
    Pratap

    Hi Pratap,
    A workaround solution is update the PR header note with "note attached" or some other appropriate text.
    Easier for user to check the header than the services for object.
    Hope this helps.
    Cheers !

Maybe you are looking for