RFC/FM to store Business document in Purchase Order from external system

Hi All,
I have been going through various threads for suitable solution, but could not find one which can meet our requirements. Appreciate, if you could share your expertise for the following requirement.
Requirement: One of our external system is going to create/change Purchase Orders in SAP using  standard BAPI's (BAPI_PO_CREATE1,BAPI_PO_CHANGE etc.,). During this process, they would like to attach supporting documents (.pdf, .jpeg, .xls etc) as 'store business document' for the same PO. As per our current configuration, we can attach the documents as dialog user from ME22N/ME23N transaction and attached documents are stored in our IXOS/ Archive server.
Is there any standard BAPI/FM (RFC) available to achieve above requirement?. And what are the parameters we need to pass in the FM to attach or delete documents.
System Details: SAP ERP ECC6 & Netweaver 7.0
Kind Regards
Kumar
Edited by: Kumar Guntha on Sep 4, 2009 7:15 AM
Edited by: Kumar Guntha on Sep 4, 2009 7:17 AM

Hi Friends
Any sugestions?
Regards
Kumar

Similar Messages

  • How to bring 'Firm' Purchase Orders from legacy system through PDOI

    Hi
    we are interacing the purchase orders from a legacy system through Open Interface i.e PDOI.
    Here i have to enable the Firm_Flag for all these PO before converting to oracle. I found that there is a column firm_flag in po_headers_interface table , but when i am populating taht column to 'Y' also, the firm flag at the PO window , by clicking the Terms button, is not reflecting.
    Please let me know why PDOI is not picking up the value at the header table. Any help is really helpful.
    Thanks
    Vyaghresh

    Vyaghresh
    Can you tell us your version?
    Thanks
    Nagamohan

  • Loading Existing Purchase Orders from Legacy System

    Hello -
    We are moving to SRM 5.0 extended classis from an existing legacy system and we would like to load our open purchase orders into SRM.  Has anyone done this before?  Any help would be greatly appreciated.
    Thanks
    Jane

    Hi,
    I am new to SRM - I have a requirement from my client.
    How to create PO's and PO Contracts in SRM by getting the data from and excel sheet?
    Is it possible for you to provide the LSMW for this and how to call a FM for data load.
                                                        OR
    Have you done any abap program to use the functionl modules to load the data? If so, can you provide me.
    Please do reply ASAP.
    Thanks in advance.
    Edited by: abi baski on Apr 8, 2009 8:26 AM

  • RFC comparing Purchase Order from server D10 and compare the PO E10 server

    Hi Gurus,
    I want to fetch data of Purchase order from D10 system client 058 and compare whether the same Purchaser order is also present in E10 system clilent 078.
    Please send me the sample code how to retrieve the code from different servers using RFC. I am new to RFC, please guide me same code.
    Regards,
    Prasad
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Jan 30, 2008 4:24 PM

    Hello Arza
    You can use BAPI BAPI_PO_GETDETAIL to retrieve the PO data from the two (remote)systems.
    During an important migration project I had to compare whether the PO data were the same on the old and new SAP system.
    For this purpose I used the BAPI to retrieve the PO data, initialized all data of which I new they would differ between the old and the new system (e.g. time stamps, date, time).
    Next I defined a complex structure which contained all PO data that I wanted to compare.
    Each PO gave one record which I collected into an itab.
    Finally I transformed the itab data into a single XML file for the data from the old and the new system. Then I took an XML editor (e.g. Oxygen) and made a diff analysis of the two XML files which showed me every difference.
    This way I was able to compare thousands of PO's within a few hours.
    Regards
      Uwe

  • Need to create a Store Business document type for material master and store a sharepoint link

    Hello,
    I need to create a Store business document type for material master and store a URL link . How do I do that?( or is there any functionality to upload a document for a  store business document that it will automatically saves to sharepoint?)
    Thanks,
    Ran.

    >
    dhayes12 wrote:
    > A)  When I do the (Material Backflush) MFBF for the 04 type, the Inspection Lot gets created OK.  I then can go into QA32 and assign the correct Inspection Plat by clicking the Inspection Lot button.
    >
    > B)  When I do the MIGO via the Purchase Order (type Z01), it will not create the Lot if I have the Multiple Specs selected in the QM Material Master MM02.  If, I turn off the Multiple Specs in the QM Material Master and create a new PO and MIGO, it will create the Lot, however, it automatically assigns the lot to the wrong Inspection Plan (2nd Plan see above)  I need to be able to select the plan like I can with the 04 type.
    >
    > Is their some setting that can be changed in Config or somewhere that acts the same way as example A above?
    For case A, create insp plan with usage "1- production" If you have one IP with this usage for given material then system will assign Plan to lot automatically. In your case for second plan update usage as 1.
    For case B, system should assign 1st plan make sure for both plan udage is correct. for 1st plan usage should be 5 while 2nd plan usage should be 1. Now if your 1st have status 4 and key date before lot date then system will assign plan auto.
    Thanks!!!

  • How can I get INSTID_B for the documents which are stored using Store Business Document functionality

    Dear experts,
    I had activated the functionality of Store Business document and successfully stored documents in external server.
    My client have a custom function module which is used to send emails.In that FM they used SO_DOCUMENT_READ_API1, SO_DOCUMENT_SEND_API1 function modules.They passed Instance Ident(SRGBTBREL->INSTID_B)(eg: FOL33000000000004EXT39000000000026) as export parameter to the FM 'SO_DOCUMENT_READ_API1' and get the attachment details and content.
    Here my problem is I do not have entries in the table SRGBTBREL for the documents which are stored using the Store Business Document functionality and without INSTID_B I am unable to use the FM 'SO_DOCUMENT_READ_API1' to get the document details and content. Please help me to find INSTID_B for documents which are stored using Store Business Document functionality or please let me know if there is any other way to use FM 'SO_DOCUMENT_READ_API1' for documents which are stored using Store Business Document.
    Thanks in advance.
    Regards,
    Kiran

    Hi Kiran,
    You can use the following method to get the information. For example if you want to get BO documents for a customer
    CALL METHOD cl_binary_relation=>read_links
       EXPORTING
         is_object           = ls_lpor
         it_relation_options = lt_relat
       IMPORTING
         et_links            = lt_links.
    then fill  ls_por-instid with a customer number (KUNNR), ls_por-typeid = 'KNA1' and ls_por-catid = 'BO'.
    Table  lt_relat should contain a line option  for each document type (for example 'I' 'EQ' 'NOTE', 'I' EQ 'ATTA', 'I' EQ 'URL', ...
    In table lt_links you will get your information.
    Maybe some other methods of class CL_BINARY_RELATION may also solve your issue.
    Regards,
    Klaus

  • Services for Object - Store Business Documents (issue with XLSX files)

    Hi,
    We are using the Services for Object > Store Business Document to be able to drag and drop files into (for example) Sales Inquiry, Sales Order, Sales Quotations etc.
    Within OAC2 we have set up the global document types and these have been linked to the relevant Object Types and Content Repositories in OAC3.  We have also set up the Content Repository as Document Area 'ARCHLINK'.
    The ArhciveLink Basic Settings in OAG1 have the 'Always Copy Document Class from Document Type' set under Storage Settings.
    The issue we are having is with XLSX document types.  When we drag and drop the XLSX documen type using the Store Business Document the file is stored against the Sales Order but when you come to view the attachments MS Excel opens but an error message appears saying 'Excel cannot open the file '******' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file'?
    We have reviewed SAP notes 1925897, 1739026 and 1145885 however non appear to give me a clear answer as to why this is happening?
    I have found that if we unselect the option 'Always Copy Document Class from Document Type' in OAG1 then we can open the XLSX files.
    As we have a significant amount of documents attached to various objects, what would be the implications of making this change agianst existing records and new records?
    Any advice on this issue would be greatly appreciated.
    Gary B

    Hi David,
    No joy I'm afraid!!
    I added entry 'xlslx' with the relevant MIME Type, Application and Description into table TOADD for the ArchiveLink settings and also this entry was already in tables SDOKMIME and SDOKFEXT for KPro.
    I then following the process via the Services for Object within VA12 (Change Inquiry) to then Create > Store Business document > Select the relevant Document Type > Drag and Drop the XLSX file into the empty box.
    I then saved the record and tried to view the attachement but I am still getting the same message  'Excel cannot open the file '******' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file'?
    Our client is on componet SAP_BASIS release 701 Support Level 0014 and Support Package SAPKB70114 and I can see that note 1237688 is for SAPKB70112?
    Regards
    Gary

  • Using GOS to store business document on the content server

    Hello All,
    BACKGROUND
    We use content server to store business documents via ArchiveLink.  The process to store a business document is via Generic Object Services menu path "Create -> Store business document". 
    ISSUE
    When document is stored in such a way, the actual name of the document is not displayed in the "Attachment list" of the GOS menu nor is it stored on the content server.  What we see instead in the "Attachment list" is a description of the Archive object (TOASP-objecttext) for all documents that we store. 
    NEED HELP
    We need to have a document's name (i.e. name of the uploaded file) displayed in the "Attachment list" of GOS.  We also need to be able to retrieve this file name programmatically via a function call or a class method. 
    Any help is greatly appreciated.
    Gene.

    1. In GOS attachment list i can able to see the attachment name (without extension) may be you need to check your layout using change layout (its may hidden)
    2. For getting attachment name programatically try this way
      i_object-typeid = 'BUS2012'.
      i_object-catid  = 'BO'.               
      i_object-instid = yatthdr-docno.       " Document Number
      refresh : i_brel, i_link.
    * Get Attachment List
      append 'ATTA' to i_brel.
      if not i_brel is initial.
        select *
          from srgbtbrel
          appending corresponding fields of table i_link
          for all entries in i_brel
          where
            instid_a eq i_object-instid and
            typeid_a eq i_object-typeid and
            catid_a  eq i_object-catid and
            reltype  eq i_brel-reltype.
      endif.
      wa_filter-send_info = ' '.
      wa_filter-no_content = 'X'.
      loop at i_link into ls_link.
        clear : wa_doc_data.
        wa_fol_cont-doc_id = ls_link-instid_b.
        call function 'SO_DOCUMENT_READ_API1'
          exporting
            document_id                = wa_fol_cont-doc_id
            filter                     = wa_filter
          importing
            object_header              = wa_obj_hdr    
            document_data              = wa_doc_data
          exceptions
            document_id_not_exist      = 1
            operation_no_authorization = 2
            others                     = 3.
    You can find the File Name in the WA_OBJ_HDR

  • Generic Object services : Store business Document in VA03

    Hello Everybody,
    I  want to store business document in VA03, using SAP archive link.
    To get service object toolbox I had been added SD_SWU_ACTIVE = X for my user.
    Now the Toolbox appears, but the Store Business Document function is not activated.
    Could you explain to me, how to activate this functionnality for this document type (BUS2032) ?
    Regards.

    Hi Kenneth,
    For the Store Business Document option appear at GOS buttom:
    1) Check that in the OAC3 entry with Bussines Object are 'X' at field 'S' (Status)
    2) The Bussines Object are generates on SWO1 transaction.
    Can you upload any document to the repository to slant OAAD transaction??
    Best Regards

  • GOS - Store business document - creator name

    Hi All,
    I am attaching archive documents to BUS2081 - Invoice.
    I am doing it thru FBD3 transaction.
    I am using Generic Object services toolbar to attch the document.
    When I attach thru Attachment button and display by clicking on the attachments list, it is showing Creator name as my ID.
    But If I attach thru Store Business document and display it thru  attachment list, Creator name is blank. But client want to see the creator name also in the display.
    Any one has idea about this? I am not able to understand whether it is capturing my ID or not when I attach thru Store business document.
    Your help is much appreciated.
    Thanks,
    Bhavani

    Hi Seema,
    I had a look at this weblog. This is if I have to implement the functionality from Background.
    But I am attaching a document by using Storebusiness document link in the GOS toobar via frontend.
    This is late archiving.
    At this point of time if I display the attachments, it is not showing the creator name for the documents attached via the link "Store Business document" . But if I attach through "create attachment" it is displaying the creator name.
    I am wondering why it is not taking creator name, did I miss any configuration part?

  • "Store Business document" disabled

    Hi experts,
    I am activated the GOS toolbar in transaction c201, c202 and c203 with Activating Generic Object Services Toolbar in SAP Objects
    But, why appear the option "Store Business document" disabled? I configured all in oac0, oac2 and oac3; any idea?
    Thanks in advance,
    Regards,

    Hello Frighetto Antonio,
    very pleased to have a reply from you. but i was looking for any standard SAP Object link to attach documents from DMS for IW31 OR IW32 Transaction ie.. create service order.
    i could not find any unfortunately, what is the alternative that you followed to do this,
    did you attached documents from the left hand icon   Service for Objects Tab, from where also we can attach documents for any transactions.
    Can you please tell me if any document is attached with the help of this Tab, is there any search option to find the files attached,
    is there a link between this attachments and the SAP DMS or archive link.
    thanks and regards
    Priya s

  • Problem about using GOS to store business document!

    Hi Everyone,
        I am using Generic Object services toolbar to archive document.
       When I attach thru Create Attachment button and display by clicking on the attachments list, it is showing Creator name and the
    real name of document .But If I attach thru Store Business document and display it thru attachment list, Creator name and the document name is blank. But client want to see the creator name also in the display.
      Any one has idea about this?We need to have a document's name (i.e. name of the uploaded file) displayed in the "Attachment list" of GOS,We also need to be able to retrieve this file name programmatically via a function call or a class method .
    Any Your help is much appreciated.
    Thanks,
    lexian

    Hello  Sachin:
             Thank you very much!
             Now I will tell you the procedure:
             For example,enter tocode ME53,via Generic Object Services(GOS) menu path "Create -> Store business document", Then upload a document from my pc.
            If what my offer is not correct ,Please tell me.
           Thanks a lot!
         lexian!
    Edited by: le xian on Dec 3, 2010 2:47 AM

  • IMP. ME21N Store Business Document maximum attachment size.

    Hi,
    Could you please let us know, while attaching documents in PO thorough the functionality ' Store Business Documents' what is the maximum permisible size of the file that can be attached.
    Also, is there any limit to the number of files that can be attached in a single PO.
    Early response would be appriciated.
    Regards,
    Sandipan

    hi
    this depends upon the file size specified in your Document management System (DMS) customization  setting.

  • Store Business Documents

    Does anyone have any experience with storing business documents in SAP while using a Mac?
    We have several users that are on Macs.  They are unable to attach files/documents to their SAP documents.  The screens they see are not the same as I would expect from the PC world.
    Sorry to be so vague.  But, I really don't know where to begin on this one.
    A user received the following error message:  Store business document Access via 'NULL' object reference not possible.
    Monique Stephens

    Hi,
    Absolutely it is not possible.
    The services for object is only visible, once the original object is created.
    Even if you check for normal F-02 entry also, it wont be visible during entry, but will be visible after posting if we go thru FB02 or FB03.
    Any attachment can be assigned through the services for object, is possible only after creation of the dependent / original data.
    So for AS02 and AS03, the dependent data has to be there in the DB, which has been created with AS01.
    Thanks,
    Srinu

  • Store Business Document

    Dear All,
    one of my client has enabled store business document for uploading external docs along with financial transactions. The problem is when I upload the document, what appears in the Title is the name of the object under which I upload and not the file name. Also the name of the user uploading or basically the creator's name doesnt appear. How can I address this issue ? Your inputs will be highly appreciated.
    best regds
    Subha

    Hi,
    when you go to document overview in fb03,on your left you will see a button like . You click on that and select create. The fourth option is Store Business Document. Thats where we are uploading the doc. However the file name gets changed and the creator id doesnt appear. Attached image.
    best regds
    Subha

Maybe you are looking for

  • Encryption/Decryption  failure for pdf and MSWord files

    Hi, Is there anybody to help me to find out what is wrong with my class (listing below)? I am sucessfuly using this class to encrypt and decrypt txt, html files but for unknown reasons I am unable to use it for e.g. pdf files. The encrypion somehow w

  • Ipod does not turn on and is not recognized in Itunes and computer

    For some reason, one day, my ipod nano 4th generation just stopped working. On the device manager, I can see that the apple mobile USB driver is installed but it is not listed as an external hard drive on my computer. When I plug my ipod in, I have t

  • Not able to see motion in test movie.

    HI guys , I have just added a simple motion ( rotating word in additional frame ) the thing is that is comes to a point when it vanishes from the movie completely.The motion is not corrupted and I can see all the rotation when put "show redrawn regio

  • Error 7 when opening file running LabVIEW 2010 executable

    I am using Open/Create/Replace File in LabVIEW 2010 to open a text file.  This works fine until I compile the code.  I then get Error 7. I have tried paths that look like the following but none work. c:\<directory name>\file.txt c:\<application name.

  • Object reference with a String. Is it Possible?

    Hi all I know this is a long shot but I'm taking my chances. I have the following boring code if (labelNo==1) userField1Label.setText(labelText[labelNo]); if (labelNo==2) userField2Label.setText(labelText[labelNo]); if (labelNo==3) userField3Label.se