Loading documents and attaching them to business objects

Hi,
I am trying to load documents (Word and PDF files) into a content management server linked to a SAP CRM system. The documents need to be attached to business objects such as interaction records (BUS2000126) and service tickets (BUS2000116).
I have experimented with FMs <b>BDS_BUSINESSDOCUMENT_CREATEF</b> and <b>ARCHIV_CONNECTION_INSERT</b> but haven't yet found the right combination of values. The best I have done is to create a link which is visible in the GUI as an icon, but when I double click on it, I get an error message saying that the document does not exist (error 404).
The import parameters I am using in BDS_BUSINESSDOCUMENT_CREATEF are:
LOGICAL_SYSTEM = [blank]
CLASSNAME = ZCSIP_LTR (a value from table TOADV)
CLASSTYPE = BO
CLIENT = [default]
OBJECT_KEY = [blank]
FILES
  DOC_COUNT = 00000001
  COMP_COUNT = 00000001
  COMP_ID = [blank]
  DIRECTORY = U:\DOCUMENTS\TEST DATA\
  FILENAME = FA.PDF
  MIMETYPE = application/pdf
SIGNATURE
  DOC_COUNT = 00000001
  PROP_NAME = BDS_CONTREP
  PROP_VALUE = ZT (my content repository name)
The FM returns a GUID as the OBJECT_KEY ...
Then I am using ARCHIV_CONNECTION_INSERT as follows:
ARCHIV_ID = ZT
ARC_DOC_ID = [GUID returned by BDS_BUSINESSDOCUMENT_CREATEF]
AR_OBJECT = ZCSIP_LTR (a value from table TOADV - as above)
MANDANT = [default client as above]
OBJECT_ID = [GUID of the object I want to attach the document to]
SAP_OBJECT = [Business object identifier] e.g. BUS2000126
DOC_TYPE = PDF
Can what I need to do be achieved through just using BDS_BUSINESSDOCUMENT_CREATEF? What import parameters should I use? What values should they contain?
Many thanks in advance,
Peter

Hi,
    BDS classname BUS2032 and classtype BO
but function module 'BDS_BUSINESSDOCUMENT_CREATEF' and cl_bds_document_set class method
here is the code..
DATA: o_document_set TYPE REF TO cl_bds_document_set,
wa_signature LIKE bapisignat,
i_signature LIKE bapisignat OCCURS 1,
wa_files LIKE bapifiles,
i_files LIKE bapifiles OCCURS 1,
i_object_key LIKE bapibds01-objkey.
CREATE OBJECT o_document_set.
MOVE: '1' TO wa_signature-doc_count,
'1' TO wa_files-doc_count,
'c:\temp' TO wa_files-directory,
'1.jpg' TO wa_files-filename.
APPEND wa_signature TO i_signature.
APPEND wa_files TO i_files.
i_object_key = '0000261877'.
BREAK-POINT.
CALL METHOD o_document_set->create_with_files
EXPORTING
classname = 'BUS2032'
classtype = 'BO'
CHANGING
object_key = i_object_key
files = i_files
signature = i_signature
DATA : files LIkE BAPIFILES OCCURS 1 WITH header line.
files-doc_count = '1'.
files-directory = 'c:\temp\'.
files-filename = '1.jpg'.
APPEND files.
CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CREATEF'
EXPORTING
LOGICAL_SYSTEM =
classname = 'BUS2032'
classtype = 'BO'
CLIENT = SY-MANDT
OBJECT_KEY = '0000261877'
IMPORTING
OBJECT_KEY =
tables
files = files
SIGNATURE =
EXCEPTIONS
NOTHING_FOUND = 1
PARAMETER_ERROR = 2
NOT_ALLOWED = 3
ERROR_KPRO = 4
INTERNAL_ERROR = 5
NOT_AUTHORIZED = 6
OTHERS = 7
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF
And check the OSS Note 317250.
<b>Reward points</b>
Regards

Similar Messages

  • Way to scan the documents and attach to individual vendors

    Is there a way we can scan documents and attach them to individual Vendors(invoices) and/or Customers

    Hi,
    Yes, you can attach scanned copies to the vendor / customer invoices or to their master data.
    This can be done only after the transaction got posted or the master data has been created.
    After your invoice entry, either with FB60/F-43/MIRO, go to the document display.
    There in the title bar of the doc display screen, you will see a button called Services for Object
    Click on that button, choose create, choose create attachment, here choose a scanned doc from your PC to attach to it.
    So with this, attaching a file to the posted doc is completed.
    in case if you want to see the attached doc, click on the same button and choose attachment list and you will see a screen with the attachments, which you have attached to it.
    This will serve your purpose.
    Thanks,
    Srinu

  • Pages 5.2 - When I try to reorder different pages it just takes all the pages within the document and turns them into a stack! Why is this happening and how can I oder pages as the update is meant to let me?

    When I try to reorder different pages it just takes all the pages within the document and turns them into a stack! Why is this happening and how can I oder pages as the update is meant to let me?
    Any Help?I know the update has only been out a while but if anyone has an idea why it is doing this, please let me know!

    But you are telling me something I already know.
    Be precise.
    It is not Pages '09 that is broken.
    I am back in Mavericks and testing Pages 5.2.
    There are improvements, we shall see how useful, but in less than a minute I have already discovered bugs.
    Peter

  • HT2470 how would i go about taking multiple files from documents and make them part of 1 master file

    how would i go about taking multiple files from documents and make them into 1 master file? I want to put all documents associated with this project together for easier access.

    From the finder window, click File, click new folder, you can drag all documents into that Folder making it the master folder. You can ajso drag folders into the Master folder, and have them as sub-folders if you wish to  do that. Either way they will all be in one master folder.

  • I had a trial version of Pages for 30 days and then purchased the actual software without removing the trial. Now when I try to edit documents and save them it wont because it tells me I am using a trial version.... How can I remove the trial version?

    I had a trial version of Pages for 30 days and then purchased the actual software without removing the trial. Now when I try to edit documents and save them it sometimes wont because it tells me I am using a trial version.... But sometimes it lets me!! How can I remove the trial version? I cannot tell which one I am using when I open it....

    Question asked and answered quite once a week.
    Go to my iDisk (address below)
    and download :
    For_iWork:iWork '09:uninstall iWork '09.zip
    Run it then reinstall the purchased software.
    Yvan KOENIG (VALLAURIS, France)  vendredi 2 janvier 2011 16:21:41
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please :
    Search for questions similar to your own
    before submitting them to the community

  • I have scanned about 1600 pages of 100-year old documents and saved them as pdf files.  I would like to search them for keywords and phrases.  Can anyone recommend software that can be used as an index for these documents?

    I have scanned about 1600 pages of 100-year old documents and saved them as pdf files.  I would like to search them for keywords and phrases.  Can anyone recommend software that can be used as an index or search engine for these documents?

    If you have Adobe Acrobat (not Adobe Reader) the program can perform an OCR on the document you acquired.
    In the past I used ABBYY FineReader

  • How do I set up pages for mac and ipad to share a document and keep them synced.

    How do I set up pages for mac and ipad to share a document and keep them synced.

    You can upload them from Mac to iCloud and then download on the iPad. They only directly sync between iOS devices. The Mac version of Pages has more options that are not available on iOS. If you use a font that is not available on iOS it will change the font. Some layout options aren't available either.

  • Document attachment to a business object

    Hi All,
    I am trying to attach a document to a business object. Can anybody tell me what is the function module I need to use for this ?
    Please help.
    Regards,
    Jeetu

    Hi,
    If you are using a Web UI, then i suppose you can attach documents or URL's through Attachments assignment block in the transaction.
    If not, can you explain in detail, what is the requirement.
    Regards,
    Krishna

  • Create a PDF document and attach it to a service order business transaction

    Hi all,
    I have following requirement. For a particular service order, i am reading the entire survey details and then my requirement is that i want to convert this details into a PDF document and then attach the document to the same service order.
    Right now, i have created a SMARTFORM which prints the required details. I got the OTFDATA of the smartform and now my problem is to convert it into PDF and then attach it to the service order .
    Kindly help.
    Points will be rewarded.
    Thanks in advance,
    Karan

    business object
    business_object-instid = guid.
    business_object-typeid = 'BUS2000116'.
    business_object-catid = 'BO'.
    PROPERTIES
    ls_loio_properties-name = 'DESCRIPTION'.
    APPEND ls_loio_properties TO l_loio_properties.
    ls_loio_properties-name = 'KW_RELATIVE_URL'.
    ls_loio_properties-value = 'Test'.
    APPEND ls_loio_properties TO l_loio_properties.
    CLEAR ls_loio_properties.
    ls_loio_properties-name = 'DESCRIPTION'.
    APPEND ls_loio_properties TO l_phio_properties.
    ls_loio_properties-name = 'KW_RELATIVE_URL'.
    ls_loio_properties-value = 'any name'.
    APPEND ls_loio_properties TO l_phio_properties.
    ls_loio_properties-name = 'LANGUAGE'.
    ls_loio_properties-value = 'EN'.
    APPEND ls_loio_properties TO l_phio_properties.
    FILE_ACCESS_INFO
    FILE_SIZE = l_filesize.
    mimetype = 'application/pdf'.
    file_name = 'any name'.
    binary_flg = 'X'.
    FILE_CONTENT_BINARY
    pass the binary content
    RAW_MODE
    X
    package_id  -> to create package id
    CONSTANTS: c_objtype   TYPE skwf_ioty VALUE 'P',
               c_sign      TYPE sdok_qusgn VALUE 'I',
               c_op        TYPE sdok_cxop VALUE 'NX'.
               c_class     TYPE sdok_class VALUE 'BDS_POC1'.
    DATA: appl TYPE skwf_appl.
    DATA: cspc TYPE sdok_ent VALUE 'CRM'.
            CALL FUNCTION 'CRM_KW_BOR_SET'
              EXPORTING
                iv_business_object = business_object.
            ls_selectors-type = c_objtype.
            ls_selectors-attribute = 'LANGUAGE'.
            ls_selectors-sign      = c_sign.
            ls_selectors-op        = c_op.
            APPEND ls_selectors TO lt_selectors.
            ls_selectors-type = c_objtype.
            ls_selectors-attribute = 'BDS_DOCUMENTTYPE'.
            ls_selectors-sign      = c_sign.
            ls_selectors-op        = c_op.
            APPEND ls_selectors TO lt_selectors.
    KW Framework: Context Treatment
            CALL FUNCTION 'SKWF_CTX_CREATE'
              EXPORTING
                context_class      = 'CRM_CTXCL'
                x_reduce_to_one    = reduce_to_one
                description        = 'Default Context'
                x_transient        = 'X'
              IMPORTING
                context_id         = lv_context_id
              TABLES
                instance_selectors = lt_selectors.
    KW Framework: Package Handling
            CALL FUNCTION 'SKWF_PKG_DYNAMIC_CREATE'
              EXPORTING
                package_desc   = 'PAKET'
                x_transient    = 'X'
                appl           = appl
                cspc           = cspc
                context_id     = lv_context_id
              IMPORTING
                new_package_id = l_pkgid
                error          = l_error.

  • Attaching link to business object using SO_NEW_DOCUMENT_ATT_SEND_API1

    Hi ABAP experts,
    I am trying to send a SAP mail with a link.  When the user clicks on the link
    they will jump to a transaction passing the parameters specified in the link.
    I have created the business object and want to know how to pass the
    parameters in the link.
    I have done it in the past so I know it can be done.  I just can't seem to remember how....
    When I click on the link it goes the transaction but I can't pass the parameters and execute the program....
    Thanks for your help in advance.
    Please see below code.
    ldf_facility = 'DH'.
    doc_chng-obj_name = 'mail_att'.
    doc_chng-obj_descr = text-024. "Validate Status
    *w_objtxt = text-999.
    w_objtxt = '<A HREF="sap-object://YJPV_REPT ">Document Status</a>'.
    *replace '&&' with ldf_facility into w_objtxt.
    *append w_objtxt to t_objtxt.
    *replace 'FF' with ldf_filename into w_objtxt.
    append w_objtxt to t_objtxt.
    w_objtxt = text-025. "Click the link above.
    append w_objtxt to t_objtxt.
    *Read last line.
    describe table t_objtxt lines tab_lines.
    read table t_objtxt into w_objtxt index tab_lines.
    *Get object document size.
    doc_chng-doc_size = ( tab_lines - 1 ) * 255 + strlen( w_objtxt ).
    *Document entry
    clear w_objpack-transf_bin.
    *header start
    w_objpack-head_start = 1.
    w_objpack-head_num = 0.
    *number of lines.
    w_objpack-body_start = 1.
    w_objpack-body_num = tab_lines.
    w_objpack-doc_type = 'RAW'.
    append w_objpack to t_objpack.
    w_objbin = 'YJPV_REPT'.
    append w_objbin to t_objbin.
    describe table t_objbin lines tab_lines.
    *Attached document text
    w_objhead = text-033. "IDoc List
    append w_objhead to t_objhead.
    w_reclist-receiver = sy-uname.
    w_reclist-rec_type = 'B'.   "'B' = R/3 user  'U' = internet mail
    w_reclist-express  = 'X'.
    append w_reclist to t_reclist.
    *Send document
    call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      exporting
        document_data                    = doc_chng
        put_in_outbox                    = 'X'
    IMPORTING
      SENT_TO_ALL                      =
      NEW_OBJECT_ID                    =
      tables
        packing_list                     = t_objpack
       object_header                     = t_objhead
       contents_bin                      = t_objbin
       contents_txt                      = t_objtxt
      CONTENTS_HEX                     =
      OBJECT_PARA                      =
      OBJECT_PARB                      =
        receivers                        = t_reclist
    exceptions
       too_many_receivers               = 1
       document_not_sent                = 2
       document_type_not_exist          = 3
       operation_no_authorization       = 4
       parameter_error                  = 5
       x_error                          = 6
       enqueue_error                    = 7
       others                           = 8.

    Hello,
    You can have the fixed width of the colums in excel (No additional spaces in the column) is you use, the seperator between the fields.
    For eg : If you are displaying 3 fields in the excel file, say MATNR, WERKS and QUANTITY.
    Then you need to
    Concatenate  matnr
                          werks
                          quantity
    into                ls_contents_bin-line
    separated by lc_tab.
    append ls_contents_bin to lt_contents_bin.
    Here lc_tab is the tab seperator to be declared as follows : -
    CONSTANTS : lc_tab         TYPE char01     VALUE  cl_abap_char_utilities=>horizontal_tab.
    The internal table lt_contents_bin is then passed to the table parameters contents_bin of the FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    Thanks.
    Regards,
    Rinkesh Doshi

  • Attachment list for business objects is not visible

    Dear all
    I have connected an external server to SAP.
    Created repository and created Doc types (say for ex : ZFIINV,  ZMM DRW) and created entries using tcode OAC3
    now i have assigned my doc type to corresponding Business Objects (BKPF for accounting doc,BUS2105 for purchase requisition ,MKPF for MM related docs)
    now i have created entries for my scanned docs in table TOA01.
    i can search an display these docs which are already placed  there in my content server. but i can not see these documents links entries in the attachment list of corresponding Business objects entries.
    for example in BO : BKPF  attachment list i cant see al the link entries .
    please suggest whether any BO is not published or R/3 application connection to the generic object service is not done?
    thanks sandeep

    Hi Sandeep,
    I am not totallt getting your point but can suggest following points:
    1. Check whether these object are displaying in DIR's as object links.
    2. If it is there then it shoud be displayed in document data of those objects.
    3. Check that documents are properly checked-in.
    Hope this may help.
    Regards,
    Ravindra

  • Headings and commands duplicated in Business Objects XIR2

    Post Author: Jon Webb
    CA Forum: .NET
    My headings and commands keep getting duplicated in Business Object XIR2 for Visual Studio 2005. It's hard to take a picture because screen capture closes the menu, but right now I have two "Crystal Reports" menus listed in the Visual Studio 2005 main menu. Each of these menus has four insert items, with similar duplication for the other items, and the inset menus have similar duplicates. I think all this duplication is eating up memory in Visual Studio because I keep getting out of memory messages even though I have a lot of RAM and a large page file. Any idea what is going on here? How can I reset the menus back to their original state without manually editing them?

    Post Author: andrewn
    CA Forum: .NET
    Are there any other options? Did that process fix the issue? I hate to go through all of that to have the same problem.  It seems like there should be an easier/faster way. Thanks,Andrew

  • Monitoring and Alerting tools for Business Object Data Integrator

    Hi,
    We have Business Objects DI installed in AIX 5.3 environment. Please advise any type of monitoring and alerting tools for DI.
    Monitor tools to monitor Job servers(like job service and web services running properly) and also to monitor long running extraction jobs and alerting the same. Thanks.
    Thanks.
    Raj.

    Hi Thomas
    Though both the tools objectives are for Data integration, the purpose for both tools are different.
    SAP BODS/ BOBJ Data Integrator is an ETL tool which involves combining data residing in different sources and providing users with a unified view of the data
    SAP PI is a Middleware/EAI tool which have a mechanism/technology that connects different parts of an application or a series of applications
    SAP BOBJ Data Integrator
    Bulk Data Integration
    Extraction Transformation and Loading
    Deals of huge volume of data
    SAP PI
    It is process based integration of application data
    It is a middle ware which integrates various project applications into a common programming package that can be operate/access as a single application
    SAP NetWeaver PI is SAP’s implementation of Service-oriented Architecture (SOA) middleware and facilitates the integration of business processes that span different departments, organizations, or companies.
    SAP PI uses SAP NetWeaver Application Server and message servers where in fail over cases the messages can be resent again.
    The below differences will gives you more clarity
    Verdict is we can use both the tools for data transfer/migration and for choosing the tool depends upon the business requirement
    Please reply back if you need more information.
    Regards
    Murthy

  • Using what I believe is image capture, how do I go about pulling up a scanned document and attaching it to send it via email?

    Using what I believe is the app Image Capture, exactly how do I go about scanning and attaching a PDF document in order to email it?  After scanning it I'm having trouble locating it while attempting to attach it to an email.  Thanks.

    At the bottom left of the Image Capture window is a drop down menu called Scan To which will let you choose where your scan will be sent. Create a folder on your desktop named Scans and send your scans to it. Then rename the scan to whatever will help you remember what it is.
    Then when in Mail you can click on Attach and find the Scans folder and attach your scan.

  • Signaling start and stop of a Business Objects report execution

    Hi we are facing the following issues on Business Objects:
    When starting a report we would like to signal to the backend database that the report has stared.
    When finishing a report we would like to signal to the backend database that the report execution has ended.
    Any idears on how this can be hooked into the reports?
    Best regards
    Jacob Mossin Andersen

    What type of report, and what type of signal?  Are you scheduling or on-demand viewing?
    Need more info.
    Sincerely,
    Ted Ueda

Maybe you are looking for

  • Unable to deactivate call forwarding on my Att IPhone 6

    I Am unable to deactivate my call forwarding feature on my iPhone 6. I have reset my phone, turned it off for 30 minutes as well as tried to input my own number into the forwarding box. It shows that it is turned off(button is turned to white) but th

  • How to get camera from DVR Card?

    I want do a application record camera from DVR Card( Not Webcam). so can do? DVR Card http://www.dvrcards.com/cards.htm Thank you?

  • Filter on Leave Type based on ESG

    Hi All, I have one PSG and within that I have 2 ESG. One Type of leave is applicable to only 1st ESG. So for other ESG, that leave type should not come at all. How can we achieve this since leave type can only be mapped to PSG. I have seen many threa

  • New BW 7.4 Features for HANA - Presentation

    Hi All, Here is an in-depth presentation of SAP BW 7.4 that shows how all changes and screenshots for how it works with HANA and the new features in the tool. I wrote it for the HANA 2014 conference and you can use it in your classroom for leactures.

  • Adobe won't let me download any more trials? I need to try Photoshop CC.....

    For some reason, Adobe will not let me download any more trials, and I really need to download Photoshop CC. It has been exactly one day since I've started the other trials. I click the "try" in the stupid window for the creative cloud, but nothing h