Link DMS document to Sales Order

Hello -
Currenlty, our Quality Department manually opens each applicable sales order and manually attaches a required document via the "Extras/Documents" path from within VA02 menu bar. It is extremely time consuming.
I want to know if it is possible to automatically attach a "linked document" to a sales order after it has been saved? I'd like to create/run a batch job that loops through these sales orders, and if applicable, attaches the "linked document". DMS is setup and working and the document that I need to attach is ready. I don't know where I need to put the record of this "link". I can see all of the "links" via CV03N (Object Links/Sales Document Item), but I don't know how they get there.
Any advice or link to documentation would be greatly appreciated.
Thanks,
Bryan

Benakaraj ES -
A few more questions with BAPI_DOCUMENT_CREATE2.
Here is the FM. Can you assist in helping me establish which parameters I need to provide?
Example:
Sales Order: 2142342 with one line item.
Document:
TYPE: ZQN (DRAW-DOKAR)
DOC: QZ6 (DRAW-DOKNR)
PART: 000 (DRAW-DOKTL)
VER: 00 (DRAW-DOKVR)                                     
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
    documentdata                           = ls_doc
    HOSTNAME                             =
    DOCBOMCHANGENUMBER     =
    DOCBOMVALIDFROM              =
    DOCBOMREVISIONLEVEL       =
    CAD_MODE                             = ' '
    PF_FTP_DEST                         = ' '
    PF_HTTP_DEST                       = ' '
IMPORTING
    documenttype                 = lf_doctype
    documentnumber             = lf_docnumber
    documentpart                  = lf_docpart
    documentversion             = lf_docversion
    return                             = ls_return
TABLES
    CHARACTERISTICVALUES      =
    CLASSALLOCATIONS              =
    DOCUMENTDESCRIPTIONS     =
    OBJECTLINKS                         = lt_drad
    DOCUMENTSTRUCTURE         =
    DOCUMENTFILES                   =
    LONGTEXTS                           =
    COMPONENTS                       =
I see that there is an objectlinks table which I assume is used to create the link between the document and VA02/VA03. The underlying structure for the objectlinks table is BAPI_DOC_DRAD. I'm not clear on what values I need to add to this table when calling the BAPI_DOCUMENT_CREATE2. FM.??
Any advice on how to fill stucture BAPI_DOC_DRAD?
Also, I don't want to create any documents. The document already exists. I just want to establish a link. Can I do that without creating a document that already exists?
Thanks,
Bryan

Similar Messages

  • How to link Material Document with Sales Order

    Hi,
    When we receive stock through MFHU transaction it becomes sales order stock. The movement type used to receive these into stock would be 131 for MTS & 131 E for MTO. My question is how link Material Document (MKPF/MSEG) with Sales Order because later using that sales order and line item I want to get the planned order number in SAP from PLAF table.
    Thanks & Regards,
    Balaji Viswanath.

    Hi,
    To refer to Sales order you have to go to Purchase order .
      Step1 -From MSEG table you can get  the EBELN ( PO)  EBELP 
      BWART (Movement  Type).
      Step2-Now go to EKPO and retrieve all the PO EBELN, LABNR corrresponding
      to the PO  found the MSEG table.
      Step3-Now go to the VBAK for Sales order Header record and compare the field 
      VBELN = EKPO-LABNR+0(10) and to rerive Sales order item go to VBAP and
      copmpare the fields  VBELN = EKPO-LABNR+0(10)  and
       POSNR = EKPO-LABNR+10(5).
    Thanks
    PK

  • To attach DMS document in sales order at item level

    Hi gurus,
    My requirement is whenever sales order is changed, I need pull off a particular DMS document and attach it to sales order at item level in background.
    This is different from GOS concept of attachement.
    Please give your thoughts on this.
    Regards,
    Thiyagu

    This functionality is not available in Standard SAP. PDF will have to be attached outside SAP system, but you can certaionly maintain a text as 'PDF attached with Sales order'
    Regards,
    Rajesh Banka

  • Link between Delivery Header & Sales Order Item for extraction to 2nd level

    Hi Guys ,
    I am having a requirement that need to pull the following data to 2nd level DSO
    1.  Delivery Header Data
    2. Sales Order Item data. ( Sales Document, Item, Item RDD, Material)
    So I am planning create a 2nd level DSO on top of Delivery header and need to pull the sales order ITEM level data ( Sales document , Order ITEM, ITEM RDD date , Material)  through start routine u2026
    How can I pull the Sales Order Item data through start routine?  i.e I need the link between Delivery Header & Sales Order Item Data .
    or I need the link between LIKP ( Delivery Header) Vs VBAP ( Sales Document Item).
    Thanks
    Edited by: krismady on Sep 22, 2010 2:26 AM
    or I need the link between LIKP ( Delivery Header) Vs VBAP ( Sales Document Item).

    Hi Krish,
    You can use VBLEN (Sales Document) to link Delivery header DS (2LIS_12_VCHDR) and Delivery item DS (2LIS_12_VCITM). Now In delivery item DS (2LIS_12_VCITM) you have VGBEL (Reference doc.) and VGPOS (Reference item) which is nothing but sales order document number and sales item in Order item DS (2LIS_11_VAITM) .
    So you need to link in above way to get other values in your DSO.
    It is proven method.
    Thanks,
    Uday Shankar.

  • How to attachm a pdf document in sales order in background

    Hello All,
    I need to attach a pdf document in sales order in background.
    Can anyone guide me on this?
    Thanks,
    Thiyagu

    Hello Janagar,
    Pdf file is not at the desktop to attach using GOS.
    Pdf file is at Document Management System, requirement is to attach it to the sales order item.
    Note: DMS file can be always allowed to attach at item level.Please dont bring GOS concept here.
    It can be done manually via VA02 --> Extras --> Documents.
    I need to automate the above process.
    Regards,
    Thiyagu

  • Attached documents in sales order disappears in Invoice

    Hi All,
    I attach some documents in change mode of sales order and when i see the Invoice it disappears. Can someone help me what settings or which object if activated can carry the attached documents from sales order to Invoice.
    Thanks.....

    Hi,
    Please refer to this link. A similar situation has been discussed in this link.
    File to copied from one tcode to another tcode
    Let me know if you are still having issues with this.
    Regards,
    Rohan Gudavalli

  • How to find linked IDOCs from Archive Sales Orders

    Hi Experts,
        Just would like to know if there's a way to find  IDOCs that is linked to an archive Sales Order. I'm archiving IDOCs base on its Sales Order Document, If the SO doc is already archive then its IDOCs should also be archive.
    Best regards,
        JP

    Hi Mylen,
    Yup... they're linked. Our sales order document are created from an IDOCs. During the archiving of those sales orders, it's related  IDOCs are still left in the system and later archived according to their age and not the status. What I want to do is  to hold  IDocs for as long as the reference sales document (object) is still on the system and archive them if the reference doc has been archived. Thanks for replying.
    Best regards,
       JP

  • Link between Delivery and Sales Order Schedule Line

    Hi Gurus,
    I have a requirement in which i need to display quantity and amount at schedule line level and also the delivery and delivery item for each schedule line.
    For example, if there is a sales order O1 and item 10 for which we have 3 schedule lines and 3 deliveries as well say D1, D2 and D3.
    Report should be something like this
    Sales Order    Item   Schedule Line    Delivery    Del Item   Confirmed Order Qty
    O1                 10      1                       D1           10            5
    O1                 10       2                      D2            10            5
    O1                 10       3                      D3            10            4
    How can i determine that a particular delivery corresponds to which schedule line of that saler order-item?
    We have the link between delivery and sales order but is there any way that we can get the link of delivery at schedule line level?
    Please help.
    Regards,
    Gaurav

    Hi,
    I suppose you must check with SD functional consultant and the post should also be in the logistics SD forum and not BI. But I suppose there is know specific link between the schedule line of SO to the Delivery. It is more like a bucket flow for ex.
    Sale order   Item    Schedule line  qty
    SO1            Item1     Sch1            10
    SO2            Item1      Sch2           10
    Delivery Item QTy
    DO1       IT1   15
    DO2       IT1    5
    In this case qty 15 is distributed over both SO1 and SO2, and SO2 ITem1 Sch2 has link to both the DOs
    So I am not sure if you can establish a one to one link, please check with your SD consultants.
    Regards,
    Ashwin G

  • Populating the Partners from Sales document (Customer/Sales order/delivery)

    Hi All,
    Is there any way to Populate the Partners which are mantained in Sales document (Customer/Sales order/delivery) into Customer Quality notification (Q1)
    Presently only Sales to party and ship to party is getting populated when we create Q1 notification.
    Thanks in advance
    jay

    Explore :
    Quality notification>Notifcation creation->partner->Define partner fuction procedure->Assign Partner Functions to Notification Type--->
    Check here whether you can get here the partner function.

  • New DMS document attachment to order header - can it also be done to a task list?

    With business function LOG_EAM_CI_6, you can now attach DMS documents to the order header or operation level in the 'Additional Data' tab.
    Since a lot of clients use documents to list complex preventive maintenance instructions, is it also possible to attach a DMS document to a task list header (or operation) and have it show up in the new 'Additional Data' screen area of the resulting order (using a maintenance item/plan to generate the order)?  Or do we still have to use the task list operation PRT functionality and have it show up in the order's operation PRT?

    Hi Arthur,
    I have configured Task list as per the SAP note 1821916  & activated DOC_TL_GUI. This allowed me to attach documents to the Operation &/or Header of the Task Lists. The problem I am facing is when I assign the task list to the work order the documents are not transferred . You have stated that they have transferred to the work order so I am wondering if there is something I missed.
    Arthur Balajthy wrote:
    And I checked that by adding documents to a task list header or operation, the work order generated from a maintenance plan/item referencing that task list does have those documents attached also.
    I haven't tried from a Plan but will do that now.
    I assumed if they were attached to the Task List Operation they would transfer to the Work Order like everything else on the Task List
    Thanks in advance

  • Link of vendor in sales order through WBS element

    Hi
    My sales order line items are having WBS assigned.All these line items are direct bought out items from vendors and supplied to customer.
    Please suggest me link of vendor in sales order through WBS element.
    I want to use the same logic for billing split criteria for individual line items(hence for individual vendors) Presently my client is getting common invoice for all line items but they want separate invoice for each line items.
    Awaiting for your valuable inputs
    Thanks
    Manoj

    Hi Manoj,
    I need to understand your process in more detail.
    How do you procure?  Create a sales order with TAS item category to create a PReq and PO?
    Very simple explanation: Resource Related billing/DIP profiles are used to accumulate costs on WBS elements and then bill the client as needed.

  • Create Billing Document from Sales Order (Without Delivery)

    Dear Experts,
    Pls note, presently we are creating Billing Document (VF01) from Outbound Delivery Number after Post Good Issue. All sales Document like Billing Document, Output Type, Invoice Type has been configured for this process and we are doing this without any error. Fyki, we have configured lots of Z Order, Billing & Delivery type to do this processes.
    But for one of this order type we need not do any delivery. We want to create Billing Documents from sales order directly (without doing any Outbound Delivery).
    So, would u pls advise the steps how can we configure and assign Order Type, Billing Type or any other type  to meet above requirement.
    Thanks in advance.
    Best Regards.
    Ripon

    Hi
    There are two most important configuration:-
    1) In VOV8 for your Order Type maintain the Order Related Billing Document
    2) Maintain the Copy control setting in VTFA betwwen your Order Type and billing Type.
    Also note that if your line item is not require to be delivered then for your Item category maintain (in VOV7) not relevant for delivery and not relevant for scedule line.
    Regards
    Amitesh Anand
    Edited by: Amitesh Anand on May 24, 2010 5:09 PM

  • Company Code Validation of Financial Document with Sales order during Sales

    Dears,
    We are working on ECC 6.0 version and our requirement is to restrict saving the Sales order if the Company codes in Sales order and Financial document (L/C) when assigning Financial Document in Sales order are different.
    With the configuration settings in Foreign Trade, it is possible to restrict this but the system only gives information message if the company codes are different but save the sales order.
    Is it possible to restrict the sales order from saving if the Comapany codes are different through SAP standard configuration or do we need to go for any development only.
    Looking forward to your suggestions.
    Elliah.

    hi Elliah,
    for this task, there are good Userexits. I don't know any customizing for this.
    I would do it in the roule of the copying or in the Userexit while saving the invoice. But this is in your point of view ABAP developement.
    Hans

  • Outbound delivery document from Sales order

    Hi ,
    While creating the outbound delivery document from Sales order, all the line items of the Sales order are populated in the Delivery document. The line items where stock is not available, the line is still populated in the delivery document with zero quantity.
    Pls suggest the way in config, so that at the time creation of the delivery document system to populate only the lines with the available stock.
    Thnx

    Hello Soumya
    I could not able to find any std transaction or config via you could restrict it. However you also no till 'Picking' not completed user is not able to make postings... so i couldnt see any issue in this.
    Still you need to restrict this, you to configure User Exit via you can restrich the lin items to come in delivery for no stock item.
    Amol

  • I need to modified or changes in Ordering Document of Sales order

    Dear All,
    Currently i have a task to modified the changes in Ordering Document of Sales Order where
    Products
    You have ordered the products described below for use in the U.S., and not for resale, unless otherwise specified.
    Currency Used On This Document........
    Changes required in U.S. ----- Pakistan
    Please advice how can i do this.

    How does one remove the following text from the Ordering Document that is generated from Sales Order Preview and Print?
    "Products
    You have ordered the products described below for use in the U.S., and not for resales unless otherwise specified"

Maybe you are looking for

  • How do I change vertical menu to a horizontal menu in Dreamweaver CS5?

    Doing a website (my first) for a friend of mine. Followed the Adobe tutorial for a lot of it (with Paul Trani) and have everything done but now my friend wants the menu bar to be horizontal instead of vertical. (I have other questions but this is the

  • Digital Signatures (.pfx)

    In the past, we have purchased digital ID's from Verisign to digitally sign our pdf forms.  They recently changed their website format and now when you purchase a digital ID, it will read "Persona Not Verified" as the name of the person that signs th

  • [nForce] K7N2GM2 Shutting down when installing windows

    I have tried everything. I have changed the processor, I have changed the memory, I have changed the hard disk but the same thing happens everytime. The machine boots fine. I go into the bios and I can see everything. I even manage to format a sata d

  • PRT Production Resource Tools Counter

    Hi, I am trying to setup a production resource tool which is counted at time of production. I have setup the Material, Equipment, BOM, Counter, Routing. When executing a production order the Counter is not updated with the ammount produced. Does anyo

  • Launching date chooser popup using keyboard shortcut

    Hi, Our application is configured to launch the LOV's using the keybooard shortcut f8.Now that our users want the date popup also to be launched using the same shortcut. Is there a way to launch the date popup using the keyboard shortcut. The javascr