ArchiveLink FileNet :TOA01-ARC_DOC_ID

Hello,
Does anybody know how SAP get next value for field TOA01-ARC_DOC_ID?
After production refresh test system creates record in TOA01 table already existing arc_doc_id number.

Thanks for your reply Raja,
We checked in table NRIV, but we are not sure where this numbers are being defined. Probably, SAP is making RFC call to FileNet to get next number or reading some file in FileNet or reading caches. We're still debugging RSNAST00. Only thing we see that is that entry is being created at commit in this program.
Thanks.

Similar Messages

  • Output type - Special function 8 - ARCHIV_CONNECTION_INSERT

    Hi gurus,
    I created a new Output Type with special function 8 called ZPDF in transaction NACE with application MR (invoice verification) and I added to that Output Type ZPDF our custom program called ZXXX_ARCHIVE_LINK in order to post into the MM invoice, a PDF who cames from the SD inovoice.
    The SD invoice number is recorder into the field "Referece" in the MM invoice.
    So, the program should (through the output type and the program):
    1. Read the MM invoice number generated (NAST table into NAST-OBJKY).
    2. Enter to table RBKP with MM invoice number RBKP-BELNR and get the SD invoice number: RBKP-XBLNR.
    3. Enter with SD invoice number XBLNR to table TOA01-OBJECT_ID And get TOA01-ARC_DOC_ID.
    4. Call FM ARCHIV_CONNECTION_INSERT.
    The problem here is when I post a MM inovice in MIRO transaction the system through the condition record added the ZPDF Output Type but don´t read the program ZMIC_INVOICE_PDF_ARCHIVE_LINK added to that output type. The status of the output type is green (but without any processing log). I checked the setting for the Output Type like 100 times and everything seems to be OK.
    Please this is very urgent. Any advice?
    I don´t know why SAP don´t call the program. I think the ABAP code is wrong:
    REPORT ZXXX_ARCHIVE_LINK.
    Table Declaration
    TABLES: NAST, " Message Status
    CMFP, " Storage Structure for Errors Collected
    EDIDS, " Status Record (IDoc)
    VBRK, " Billing Document: Header Data
    TOA01. " Link table 1
    TYPES: BEGIN OF TY_RBKP,
    BELNR TYPE RE_BELNR, " Document number of an invoice document
    XBLNR TYPE XBLNR1, "SAEOBJID, " Reference Document Number
    END OF TY_RBKP.
    TYPES: BEGIN OF TY_TOA01,
    OBJECT_ID TYPE SAEOBJID, " SAP ArchiveLink: Object ID (object identifier)
    ARC_DOC_ID TYPE SAEARDOID, " SAP ArchiveLink: Document ID
    END OF TY_TOA01.
    Data Declaration
    DATA: WA_BELNR TYPE RE_BELNR ,
    WA_ARC_DOC_ID TYPE TY_TOA01 , "-ARC_DOC_ID,
    WA_SAP_OBJECT LIKE SAPB-SAPOBJID," TYPE TOAOM-SAP_OBJECT ,
    ARC_DOC_ID TYPE TOAV0-ARC_DOC_ID,
    GT_RBKP TYPE STANDARD TABLE OF TY_RBKP , "WITH HEADER LINE,
    GT1_RBKP TYPE STANDARD TABLE OF TY_RBKP, " WITH HEADER LINE,
    GT_ARC_DOC_ID TYPE STANDARD TABLE OF TY_TOA01, " -ARC_DOC_ID,
    WA1_RBKP TYPE TY_RBKP ,
    WA_RBKP TYPE TY_RBKP.
    DATA: WA1_OBJECT_ID TYPE SAEOBJID.
    DATA: WA_OBJKY TYPE NA_OBJKEY,
    WA1_OBJKY TYPE RE_BELNR.
    FORM entry USING ent_retco ent_screen.
    CLEAR ent_retco.
    PERFORM ARCHIV_CONNECTION_INSERT USING nast-objky ent_retco.
    ENDFORM. "entry
    FORM ARCHIV_CONNECTION_INSERT USING objky returncode.
    * Select Reference Document Number from RBKP table
    SELECT BELNR XBLNR
    FROM RBKP
    INTO TABLE GT_RBKP
    WHERE BELNR = objky . " .WA1_OBJKY .
    IF SY-SUBRC EQ 0 .
    LOOP AT GT_RBKP INTO WA_RBKP.
    WA1_OBJECT_ID = WA_RBKP-XBLNR .
    CONCATENATE WA1_OBJECT_ID '%' INTO WA1_OBJECT_ID .
    WA_SAP_OBJECT = WA_RBKP-BELNR .
    SELECT OBJECT_ID
    ARC_DOC_ID
    FROM TOA01
    INTO TABLE GT_ARC_DOC_ID
    WHERE OBJECT_ID LIKE WA1_OBJECT_ID.
    IF SY-SUBRC EQ 0 .
    READ TABLE GT_ARC_DOC_ID INTO WA_ARC_DOC_ID INDEX 1.
    ARC_DOC_ID = WA_ARC_DOC_ID-ARC_DOC_ID.
    WA_SAP_OBJECT = WA_ARC_DOC_ID-OBJECT_ID.
    ENDIF.
    CALL Function Module:Link table operations
    CALL FUNCTION 'ARCHIV_CONNECTION_INSERT'
    EXPORTING
    ARCHIV_ID = 'Z0'
    ARC_DOC_ID = ARC_DOC_ID
    AR_DATE = SY-DATUM
    AR_OBJECT = 'MMILOGINV'
    DEL_DATE = ' '
    MANDANT = SY-MANDT
    OBJECT_ID = WA_SAP_OBJECT
    SAP_OBJECT = 'BUS2081'
    DOC_TYPE = 'PDF'
    BARCODE = ' '
    EXCEPTIONS
    ERROR_CONNECTIONTABLE = 1
    OTHERS = 2
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CLEAR: WA_RBKP.
    ENDLOOP.
    ENDIF.
    ENDFORM.

    Hi,
    Use
    You can process a message immediately by updating the application document or you can process it at a later time. For later processing you must use the report program RSNAST00 or a corresponding application function.
    The individual possibilites are:
    Time 1: The message is processed through report program RSNAST00. This report program can be scheduled periodically or started manually.
    Time 2: As in time 1, but the message contains an earliest processing date and a requested processing time. The message is ignored by report program RSNAST00 before the requested date.
    Time 3: The message is selected and processed by application specific programs. Processing can take place online or in the background.
    Time 4: The message is processed when the application document is saved. No further processing of the message is necessary.
    Kapil

  • Special function 8 - Output Type

    Hi gurus,
    I created a new Output Type with special function 8 called ZPDF in transaction NACE with application MR (invoice verification) and I added to that Output Type ZPDF our custom program called ZXXX_ARCHIVE_LINK in order to post into the MM invoice, a PDF who cames from the SD inovoice.
    The SD invoice number is recorder into the field "Referece" in the MM invoice.
    So, the program should (through the output type and the program):
    1. Read the MM invoice number generated (NAST table into NAST-OBJKY).
    2. Enter to table RBKP with MM invoice number RBKP-BELNR and get the SD invoice number: RBKP-XBLNR.
    3. Enter with SD invoice number XBLNR to table TOA01-OBJECT_ID And get TOA01-ARC_DOC_ID.
    4. Call FM ARCHIV_CONNECTION_INSERT.
    The problem here is when I post a MM inovice in MIRO transaction the system through the condition record added the ZPDF Output Type but don´t read the program  ZMIC_INVOICE_PDF_ARCHIVE_LINK added to that output type. The status of the output type is green (but without any processing log). I checked the setting for the Output Type like 100 times and everything seems to be OK.
    <removed by moderator>. Any advice?
    I don´t know why SAP don´t call the program. I think the ABAP code is wrong:
    REPORT  ZXXX_ARCHIVE_LINK.
    Table Declaration
    TABLES: NAST,     " Message Status
            CMFP,     " Storage Structure for Errors Collected
            EDIDS,    " Status Record (IDoc)
            VBRK,     " Billing Document: Header Data
            TOA01.    " Link table 1
    TYPES: BEGIN OF TY_RBKP,
           BELNR TYPE RE_BELNR,   " Document number of an invoice document
           XBLNR TYPE XBLNR1, "SAEOBJID, " Reference Document Number
      END OF TY_RBKP.
    TYPES: BEGIN OF TY_TOA01,
      OBJECT_ID     TYPE SAEOBJID,    " SAP ArchiveLink: Object ID (object identifier)
      ARC_DOC_ID TYPE     SAEARDOID,  " SAP ArchiveLink: Document ID
      END OF TY_TOA01.
    Data Declaration
    DATA: WA_BELNR TYPE RE_BELNR ,
          WA_ARC_DOC_ID TYPE TY_TOA01 , "-ARC_DOC_ID,
          WA_SAP_OBJECT LIKE SAPB-SAPOBJID," TYPE TOAOM-SAP_OBJECT ,
          ARC_DOC_ID TYPE TOAV0-ARC_DOC_ID,
          GT_RBKP TYPE STANDARD TABLE OF TY_RBKP , "WITH HEADER LINE,
          GT1_RBKP TYPE STANDARD TABLE OF TY_RBKP, " WITH HEADER LINE,
          GT_ARC_DOC_ID TYPE STANDARD TABLE OF TY_TOA01, " -ARC_DOC_ID,
          WA1_RBKP TYPE TY_RBKP ,
          WA_RBKP TYPE TY_RBKP.
    DATA:  WA1_OBJECT_ID TYPE SAEOBJID.
    DATA: WA_OBJKY TYPE NA_OBJKEY,
          WA1_OBJKY TYPE RE_BELNR.
    FORM entry USING ent_retco ent_screen.
      CLEAR ent_retco.
      PERFORM ARCHIV_CONNECTION_INSERT USING nast-objky ent_retco.
    ENDFORM.                    "entry
    FORM ARCHIV_CONNECTION_INSERT USING objky  returncode.
    * Select Reference Document Number from RBKP table
    SELECT BELNR XBLNR
           FROM RBKP
           INTO TABLE GT_RBKP
           WHERE BELNR = objky . " .WA1_OBJKY .
    IF SY-SUBRC EQ 0 .
      LOOP AT GT_RBKP INTO WA_RBKP.
        WA1_OBJECT_ID = WA_RBKP-XBLNR .
        CONCATENATE WA1_OBJECT_ID '%' INTO WA1_OBJECT_ID .
        WA_SAP_OBJECT = WA_RBKP-BELNR .
        SELECT OBJECT_ID
               ARC_DOC_ID
               FROM TOA01
               INTO TABLE GT_ARC_DOC_ID
               WHERE  OBJECT_ID LIKE WA1_OBJECT_ID.
        IF SY-SUBRC EQ 0 .
          READ TABLE GT_ARC_DOC_ID INTO WA_ARC_DOC_ID INDEX 1.
          ARC_DOC_ID = WA_ARC_DOC_ID-ARC_DOC_ID.
          WA_SAP_OBJECT = WA_ARC_DOC_ID-OBJECT_ID.
        ENDIF.
    CALL Function Module:Link table operations
        CALL FUNCTION 'ARCHIV_CONNECTION_INSERT'
               EXPORTING
                ARCHIV_ID                   = 'Z0'
                 ARC_DOC_ID                 = ARC_DOC_ID
               AR_DATE                     = SY-DATUM
                 AR_OBJECT                  = 'MMILOGINV'
            DEL_DATE                   = ' '
                MANDANT                     = SY-MANDT
                 OBJECT_ID                  = WA_SAP_OBJECT
                 SAP_OBJECT                 = 'BUS2081'
                DOC_TYPE                    = 'PDF'
            BARCODE                    = ' '
             EXCEPTIONS
             ERROR_CONNECTIONTABLE      = 1
             OTHERS                     = 2
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        CLEAR: WA_RBKP.
      ENDLOOP.
    ENDIF.
    ENDFORM.
    Edited by: Thomas Zloch on Oct 26, 2011 10:52 AM

    ok, if you set for your output type NAST-VSZTP=3 you can add code in your print program to display popup window in which
    user specify own path for storing PDF...
    but if output type will be created in background ( VSZTP ne 3) then
    you must save PDF in server path...and user may download it by
    cg3y...
    regards, darek

  • Your opinion on:  BSP or Java Webdynpro or ABAP Webdynpro?

    Could you please give me your opinion on the business scenario we have here:
    We are implementing SRM 4.0 with backend R/3 4.6C, WAS 6.4 and Portal 6.0. SRM has its typical shopping cart applications mainly for procurement and the workflow trail displaying the approval. The client wants us to build a few custom forms on the web frontend of SRM (or may be in Portal). The idea is to store these forms and display when needed with the status info just like a shopping cart.
    <b>Now the requirements for these forms are as follows:</b>
    1. These forms will have multiple fields which need to have the F4 kind of help. (the F4 options will reside in SRM or R/3)
    2. The form should have some kind of a ALV grid  (autoexpanding feature) which will allow the user to put in multiple line items so that they could submit more items on one form.
    3. Users need to be able to attach a spreadsheet to the form which should not be editable once the form is submitted. The attached spreadsheet should be stored. (We are planning on using Archivelink Filenet for this)
    4. Upon submission, a workflow will be kicked off as per the defined Org structure for approval of the form.
    5. After submission, the user should be able to go and view the approval status of the form and also print the summary of the values that he entered in the form. (may be a smartform could be provided for this)
    We looked at different options to accomplish this task:
    <b>BSP:</b>
    Creating BSP pages and giving access as links to the user on the webfrontend of SRM. Now, if we go the BSP route, we need to develop in SRM as the R/3 4.6 c does not have BSP development capabilities. If we take this approach, I am not sure if all the above requirements (specially like attaching spreadhseets) will be met with BSP pages.
    SAP Webdynpro Java: 
    It seems that the Webdynpro is easier to use because of the graphical tools available. But the only problem if we go this route is that we will have to find a java guy.
    SAP Webdynpro ABAP:
    We currently have WAS 6.4. As per the documentation, the ABAP Webdynpro development tool is available from NW04s onwards. So, we are still not sure if we could use it. But, we want to push towards upgrading if necessary. Being an old time ABAPer, developing ABAP Webdynpro seems do-able. (i know it may not be that easy).
    Last but not the least, DIALOG Program:
    Creating a dialog program in R/3 or SRM seems fairly simple. Then, an iview could be created on the portal for this transaction, though at this point I am not sure how a spreadsheet could be attached and stored within a dialog program.
    The creation of the workflow may not be that bad after the original form is designed. The graphical display of the approval trail might be difficult, but we might get away with a report for that. For printing the details of the form, I guess I could develop a smartform and put out a button on the screen to print it out in the display view.
    Could you please give me your opinion /  best approach for accomplishing this task, keeping in mind the complexities of these new dimension products?
    Thanks
    Sri

    I would say that all four solutions to solving your tasks are technically feasible.  Here are some thoughts that I had however:
    First ABAP Webdynpro: it is true that ABAP webdynpro is only available with Netweaver04s.  04S is still in ramp-up which means that only a subset of the customer base is allow to implement it.  It will not become generally available until later this year (check the service marketplace for current release estimates).  That being said, it probably elimintes WDA as a possiblity for your project unless you are will to wait and to upgrade.
    However having worked with WDA for a while it is probably the best tool to custom develop what you describe.  It has excellent built-in F4 value help.  It also has a damn fine ALV grid implementation.  The spreadsheet could be just as simple as file upload in binary or your could try your hand at office integration.  Finally for the form you could use Adobe Interactive Forms which also has very nice integration into WDA. 
    Now to Dialog Programming: You could of course use dialog programming.  It seems a little bit of a waste to custom build something so large if WDA is in your near future.  There are obvious disadvantages (little OO structure, no MVC, etc).  You would have ALV grid, office integration and of course F4 help.  You could still use Adobe forms if you implement this on the 640 system.  However there are integration points with dialog and Adobe Interactive Forms.  You could still use printed forms however. If you did the dialog program on the 640 system, you could use the integrated ITS to expose it to the web.  The integrated ITS in my experience has quite nice performance although the look and feel remains just like the SAPGui.
    The Java Webdynpro route:  Well you hit the nail on the head - if you don't have a Java programmer already and you don't have the bandwidth to invest in learning Java, this can be a problem.  The Java Webdynpro environment is quite nice.  There are some things I like better than ABAP and some things that ABAP is defintely still better at.  However when it comes to heavy integration with an ABAP backend - ABAP Webdynpro is still the way to go.  Java Webdynpro does have a help feature (OVS), but it isn't "for free" or nearly as nice as the ABAP Webdynpro (perhaps it will get there some day).  That is one of the major advantages of WDA - its closeness to the business data brings several framework advantages like F4 and field help.  WebDynpro Java in 640 also doesn't have an ALV grid implementation.  I am sure that this is something both environments will eventually have, but right now ABAP has the advantage.  On the other hand, Webdynpro Java has equal support when it comes to office integration, file upload, and Adobe Forms support.  You would have a more difficult time integration SmartForms however.
    Finally we come to BSP.  Honestly if I were in your position I would probably choose BSP (unless you could wait for the ABAP Webdynpro upgrade).  You could build a nice MVC OO application using BSP (stateful or stateless).  The BSP product is mature and quite well documented thanks to SDN.  You have the BSP Extensions which when used in Design2003 use the Unified Renderer.  That means that your output will look nearly identical to the same UI elements in Webdynpro.  Also BSP supports portal integration (session management, eventing, and themes). 
    The downside to BSP is that it isn't a full framework (also one of its advantages).  You can insert all your own html and javascript (unlike webdynpro). But this also means that SAP doesn't delivery as many framework services.  For instance there is no ALV or Value Help.  There is no Office Integration or Adobe Forms integration.  There is some farily good Smart Forms integration.  Now the upside- many people have already hit these limitations and overcame them.  In the weblogs on SDN and in a certain SAP Press book (cough, cough) you will find out of the box solutions for many of these problems.  You can find ready to use solutions for Adobe Integration, Office Integration (using Microsoft Office Web Controls), and F4 help.  It will mean investing a little more time up front to get this "home grown framework" up and running - but it is perfectly feasible. 
    There is a learning curve to all these new technologies however.  This sounds like an abmious project.  I wouldn't want to try and tackle this project in any of these technologies if I was new to them.  With Webdynpro or BSP - consider giving yourself time to learn the environment and cut your teeth on some demo apps before jumping into such a huge development.

  • Problems while retrieving from content repository

    Hi,
    I am facing problems while retrieving documents stored the content repository. I have some pdf files as well as text documents stored in the content repository. I need to get retrieve the contents of the text files. My problem lies with how to retrieve the data from the files.
    I have used SCMS_URL_GENERATE, followed by the FM ''HTTP_GET''.  Though I  do get the File id , my problem is how to proceed from this point. Should i wriite an RFC ?
    Thanks and Regards,
    Anie

    Hi,
    I checked the code one again - SCMS_URL_GENERATE is used to send url to the user (to open file in web browser).
    SCMS_HTTP_GET code looks like this:
    CONCATENATE <ls>-vbeln space <ls>-optarcnr
      INTO lv_vbeln_obj
      RESPECTING BLANKS.
    SELECT SINGLE *
      FROM toa01
      WHERE sap_object EQ 'VBRK'
        AND archiv_id EQ co_arch
        AND ar_object EQ 'SDOINVOICE'
        AND object_id EQ lv_vbeln_obj.
    CALL FUNCTION 'SCMS_HTTP_GET'
      EXPORTING
        crep_id   = co_arch
        doc_id    = toa01-arc_doc_id
        comp_id   = 'data'
        length    = 0
        no_cache  = no_cache
      IMPORTING
        length    = comp-size
        mimetype  = comp-type
      TABLES
        data      = comp-bin
      EXCEPTIONS
        not_found = 1
        OTHERS    = 2.
      IF sy-subrc IS NOT INITIAL.
        PERFORM log_create USING <ls>-vbeln.
      ENDIF.
    IF comp-bin IS NOT INITIAL.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          bin_filesize = comp-size
          filename     = dstpc
          filetype     = 'BIN'
        TABLES
          data_tab     = comp-bin
        EXCEPTIONS
          OTHERS       = 1.
      IF sy-subrc IS NOT INITIAL.
        PERFORM log_create USING <ls>-vbeln.
      ELSE.
        MESSAGE s000(38) WITH 'Success'.
      ENDIF.
    ENDIF.
    Regards,
    Przemysław

  • Update of TOA01 for ArchiveLink

    Hello,
    We are changing an implementation of ArchiveLink using 'Early' archiving to 'Late' achiving.  This has caused a change to the workflow.
    In the new process, the implementation of the SAP RFC interface for archiving is called with an IDOC number.  After archiving the file/document we then want to update SAP's TOA01 table to link the new ID created by the archive with the IDOC ID.
    What is the simplest way to get this data updated in SAP?  We're not sure of the process to call back into SAP.  If we write an ABAP procedure, how can it be called from 'outside' SAP?  Is there a reference for how to programatically update a row in an SAP table?
    Thanks

    Hi Dick,
    I'm not an expert on IDOC. Generally speaking, an archiveLink image can be linked to any BOR (Business object repository) instance.
    If your IDOC types are represented by different BOR types (transaction SWO1) then they can be attached to those. The archiveLink link table means the following:
    SAP_OBJECT: Business object type (TA SWO1)
    OBJECT_ID: business object ID (instance of Business object)
    ARCHIV_ID: content repository ID
    ARC_DOC_ID: archive doc ID
    AR_OBJECT: archiveLink document type (OAC2)
    AR_DATE: archiving date
    RESERVE: document class (PDF,...)
    What I mean with a wrapper is: Write a (RFC) function module that calls the ARCHIV_CONNECTION_INSERT in the way you need for your specific application.
    Best regards
    Torsten

  • GOS / TOA01 & ArchiveLink

    Hi,
    I would like to add my own entries in the GOS, save the file saved with this link in a specific place using the TOA01 table.
    so... what I have done
    -> Trans. SWO1 create my own entries
    -> Trans. OAC2 : create my doc type : ZBA_CC link to PDF file format
    -> Trans. OAC3 : create the entrie : object type ZLO_BACC,  doc type ZBA_CC, id ref. Z1 and the link TOA01
    -> SM30 on SGOSATTR : Service name ZLO_BACC, class : CL_GOS_SRV_ATTACHMENT_CREATE
    When I go in MSC3n, I see the new entries in the GOS
    When I click the entry, nothing is added in the TOA01  table, I can't see the file in the list of attachment file.
    Anyone already made this kind of stuff ?
    Best regards
    Fred

    Now I could save the file, I see it in the list of attachment file.
    --> I have forget the checkbox : commit in the table SGOSATTR
    now, my big problem, is : I would like to save in a specific place (logical directory : trans. FILE)
    I have set an entry in the table CREP ..
    but nothing in the directory
    nothing in the table TOA01

  • Automate attach docs to SAP Objects and store in FileNet P8 and Toa01 table

    Hi..
    I would like to know how to automate the process of attaching documents to SAP objects and simultaneouly store the documents in Filenet P8 Database creating a link in the archive table T0A01.
    Appreciate all your thoughts <b><REMOVED BY MODERATOR></b>..
    Thanks.
    Message was edited by:
            Alvaro Tejada Galindo

    Hi.
    1) Is that true? Do I need to purchase the P8 adapter?
    Yes you have to buy this adapter. the sap systems communicates via archive link with acsap.
    2) Will upgrading to 4.5 allow us to communicate to P8 without the adapter?
    NO, sorry.
    3) Or finally, is no change required?
    see qustion one...
    best regards, Martin

  • Store pdf from ArchiveLink (binary) down to Netweaver file system

    Hello!
    I have a problem: I need to extract a pdf-file which is stored in table TOA01 in binary format. The pdf should be generated and stored into a pdf-file in the file system of the Netweaver application server.
    The main problem: Whenever I extract the data from the table and write it down to a file, the data in the pdf-file is corrupted. I tried all kinds of convertation routines (OFT to Binary, OTF to XString, Binary to XString,...)
    Can anybody help me with my problem? I need a pdf from the ArchiveLink table as a file on the filesystem.
    Thank you for your help!
    Best regards,
    Markus

    Hello Otto!
    thanks for your help. I compared the input- und the output-data now and discovered, that the data is identically. The problem which causes my problem, lies in the writing of the data into the file by dataset.
    First, I extract my pdf binary data from database table with the following function module.
    CALL FUNCTION 'SCMS_AO_TABLE_GET'
            EXPORTING
              arc_id       = ls_toa01-archiv_id
              doc_id       = ls_toa01-arc_doc_id
              comp_id      = 'data'
            IMPORTING
              length       = filesize
            TABLES
              data         = lt_data
            EXCEPTIONS
              error_http   = 1
              error_archiv = 2
              error_kernel = 3
              error_config = 4
              OTHERS       = 5.
          IF sy-subrc <> 0.
            RAISE error_retrieving_file.
          ENDIF.
    The result of this operation is stored in lt_data and seems to be correct. I compared the filesize of a pdf which I downloaded from GUI and lt_data. The size is exactly the same amount of bytes.
    This is the coding part which doesn't work properliy is the following:
          OPEN DATASET lv_pdf FOR OUTPUT IN BINARY MODE.
          IF sy-subrc = 0.
          LOOP AT lt_data INTO ls_data.
            transfer ls_data TO lv_pdf.
          ENDLOOP.
          ELSE.
            RAISE error_writing_file.
          ENDIF.
          CLOSE DATASET lv_pdf.
    When the data is written into the dataset, the resulting file is corrupted in a certain way. I compared the binary content of both files, the correct one and the file created with the dataset part and discovered, that the data is identically. Only some line breaks are different. The result of this little differences is a blank pdf file instead of the correct one with text. Seems like really every single bit position has to be identically to the working pdf. If there is one space in the file too much or one line break, the pdf is corrupted.
    Can anybody help me and describe how to create a pdf file out of an internal table?
    Best regards,
    Markus

  • Archivelinking using barcodes in HR T&E workflow

    Hi all,
    As part of Travel & Expenses workflow in HR we have a requirement of linking images of the trip receipts first to the trip document (BUS2089) and then to the FI document (bus type: BKPF) using archivelinking with barcode (late storing scenario).
    The trip receipts are scanned and the images are stored as image document in a external content repository system. For the link to be established between the trip document and the image document, an entry is created in the link table TOA01 with a unique id for the image document called arc_doc_id. Linking images to the trip document in HR system is straightforward.
    But how to link the same image document to the FI document created in another system. HR and FI systems are linked via ALE.
    Thanks
    Kiran

    Hi Sudhakar,
    Please refere to the below path and try to supress/block the required characteristics.
    SPRO --> Financial Accounting --> Travel Management --> Travel Expenses --> Dailog and Travel Expenses Control -->  Forms --> Form structure for ABAP list --> Modules of Form Variant --> Form block Characteristics --> suppress information/columns
    The entire block will be hidden from the layout. But, does the users have access to PR05 transaction..?
    If you want to mask only the card number, then the changes can be easily done in the FORM, by the ABAP team.
    Hope this helps..
    Thanks,
    Praisty

  • Archivelink using IXOS - linking image document to business document

    Hi all,
    We are trying to link trip document (BUS2089) with image document of trip receipts in the Travel & Expenses workflow in HR.
    The scanning of paper receipts is done by the IXOS server. The archivelinking is done using late storage using barcodes.
    My question is when the scanning is done and the link is established between the trip document and the image document, is the event "assigned" of business object type "BARCODE" triggered.
    I want to use this event in "wait for event" step in the workflow.

    Hi Kiran
    Not sure about two differnt system but on the same system same image can be linked to two different SAP documents vai function module ARCHIV_CONNECTION_INSERT. Field assignment: tick upper/lower case; archiv_id / arc_doc_id (ixos image address), ar_date, ar_object fileds to be assigned with TOA01 data for the image associagted with SAP document that is already linked. Fields mandant, object_id, sap_object, doc_type to be assigned with 2nd SAP document as it should appear in table TOA01.
    Hope this helps.
    Regards, Deepak

  • How can I display a document stored in ArchiveLink?

    Hello people,
    We developed a solution to attach some files related to a requisition in IXOS.
    We have an interface using webdyn and we need to display these files. I can read some details in TOA01, and I can create a link to the document. But when the user clicks on this link, the file must be opened. I thought when the user clicks on the link, a RFC function is called on R3, passing the ARC_DOC_ID and some function will be called to send the file contents to the frontend. Which function??
    Thank you!

    I decided generate the URL using function ALINK_RFC_DOCUMENTS_GET.

  • Archivelink in MIGO causes PT019 problem (V1 in SM14) during Goods receipt

    Hello Experts,
    I have SAP R/3 Enterprise:
    SAP_BASIS     620     0050     SAPKB62050
    SAP_ABA     620     0050     SAPKA62050
    SAP_APPL     470     0022     SAPKH47022 Logistics and Accounting
    At the beginning I say that Archivelink works in V3(Billing) in NACE, but in ME(Inventory Management) it does'nt; despite the fact that I have done similar configuration.
    Mesage in sm14 and express message:
    "PT 019: No archive information found for object type &1 and document type &2"
    What I have done is blue (and what was done before) is below:
    NACE: ME->Condition records: Output Type->ZWE3: Trans./Event Type WE; Print version 3 -> Condition Recs. in Material Document Pr i choose Storage Mode Print and archive.
    NACE: ME->Output types->ZWE3: Storage system: Storage Mode  Print and archive; Document type MMIDELNTOR Goods receipt with reference to PO
    OACA MMIDELNTOR - Goods receipt with reference to PO - TRANSACTIONCODE - MIGO
    OAC2: MMIDELNTOR - Goods receipt with reference to PO - TIF
    OAC3: BUS2017-MMIDELNTOR-X-T1-TOA01-0 (T1-TOA01 works in V3 - transaction VF02)
    OAD5 Doc.type MMIDELNTOR; Doc.type MMIDELNTOR; Object, method and tasks Obj. type BUS2017 Entry Method CREATE Task TS30001128 Assignment Task TS30001117; Workflow parameter  TRANSACTIONCODE MIGO; Storage system and link table Cont.Rep.ID T1 Link TOA01
    Any questions?
    Thank You for your answers.
    Edited by: Piotr Konarski on Jun 1, 2011 11:38 AM
    Edited by: Piotr Konarski on Jun 1, 2011 11:43 AM

    Hello.
    I have read the same, at the same time that you (Juan),
    at
    http://help.sap.com/saphelp_47x200/helpdata/EN/63/566039b85f9443e10000000a114084/frameset.htm
    -> Information for Developers -> Storing Outgoing Documents -> Import Parameters for Storing Outgoing Documents
    This information and insert MSEG in oac3 had resolved problem with archiving.
    We have problem with polish signs in pdf, but this is another problem.
    Thanks, Juan.

  • Connecting SAP CRM (or R/3) to FileNet

    We are implementing a SAP CRM 5.0 system, and FileNet P8 is to be used as the document repository for SAP CRM.
    We are using the FileNet adaptor, called ACSAP for SAP R/3, which allows us to connect to SAP CRM using the generic ArchiveLink functionality. However, we have found that the generic SAP ArchiveLink functionality is very restricted compared with the standard SAP CRM document management (e.g. versioning, creation from templates etc).
    For example the documents tab on a SAP object, such as the business partner, allows users to import or create documents from new or from a template.  The user will be prompted to enter metadata and this document will have a version associated with it and it can be checked in and checked out by the user.  However we are currently using ArchiveLink which requires the user to click "activate ArchiveLink" to create the ArchiveLink folder.  In order to save a document in ArchiveLink the user must then import or create a document in the ArchiveLink folder.  Unfortunately most of the functionality mentioned previously, such as creation from a template and metadata capture, is not available when creating a document in the ArchiveLink folder.  We have also found that due to the lack of metadata the document name is generically assigned and thus is not useful to the user for identification.
    In addition it is not possible to force users to save their documents into ArchiveLink, therefore they are able to save them outside of the required document repository. We have been unable to find a good solution to this problem.
    So we want to know if it is either possible to:
    - Specify that SAP CRM document management use ArchiveLink as its standard document repository?
    - Connect FileNet/ACSAP directly to SAP CRM document management without using ArchiveLink?
    Has anyone had experience connecting SAP CRM (or SAP R/3) to FileNet, and is able to provide us with some insight?
    Thanks
    Philip

    Question was recreated in DMS group. No answer as yet, but hoping to get answers from SAP soon.

  • DMS and Filenet

    Hi! All,
    We have a requirement at work which is to create PO attachments at the PO Item level.  I'm new to DMS and I've read that DMS can be integrated with Filenet via SAP Archivelink and we already made several config changes in Archivelink and DMS.  Here are my questions:
    1) I noticed that business documents can be attached via "Services for Object" in the DMS txn (CV01N and CV02N).  Id this the proper way?  Also, the document is always in ALF format.  How can this be changed to DOC or XLS?
    2) Any ideas on how to attach a document to PO item level using DMS and Filenet?
    Thank you all for your help.
    TM

    Hai,
    Acsap is used to connect the filnet, this is the filenet component for SAP - you have to pay it extra.
    Regards,
    Keerthika

Maybe you are looking for

  • Retrieving Dunning Clerk's name from Customer master data

    Hi all, I have to retrieve the dunning clerk's name in report ZRSD0001 (Customer Master Data Report). There are standard methods to call the subroutine to retrieve the texts for some field like the bank statement text: PERFORM TEXTFIELD_CALL(RSAQEXCE

  • Add a new column in Folder in Discoverer9i Administrator

    Hi, We are using Discoverer9i Administrator. Initially we have created a view and add this view in Discoverer Administrator. After somtime we have added two new columns in the view, but these new columns are not reflecting in Discoverer Administrator

  • MRP+Batch determination/restriction complex scenario

    I have a very complex issue with MRP and Batch Determination. Here is my situation. Please help me find a solution. I have materials which are batch managed and each material can have numerous batches based on the quality (80%, 70%, 90%). Materials c

  • Moving an image with actionscript

    I'm trying to move an image from position Y:0 to Y:-100 using actionscript when the .swf file loads, as this is smoother than conventional tweening??

  • Photomerge and other tools problems

    Photomerge (panorama) and Open as layers in Photoshop, will not work from either Bridge CC or Lightroom LR5 and Photoshop CC on my iMac (2013), but work perfectly on my Macbook Pro 13" (2009). Both OS's and Applications are virtually identical and bo